@use '../../themes/styles/mixins' as *;

.settings-item {

  &__body {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: 56px;
    gap: 16px;

    padding: 16px;
  }

  &__left-section {
    display: flex;
    align-items: center;
    cursor: pointer;

    font-family: 'Roboto';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
  }

  &__title {
    margin-left: 16px;
  }

  &__right-section {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  &__arrow {
    width: 24px;
    height: 24px;
    fill: var(--secondary-elements);
    cursor: pointer;
    transform: rotate(270deg);
    transition: transform 0.3s ease-in-out;

    &--opened {
      transform: rotate(360deg);
    }
  }

  &__children {
    height: 0;
    overflow: auto;

    transition: height 0.2s ease-in;

    &--opened {
      height: 100%;
    }
  }

  &__icon {
    width: 24px;
    height: 24px;

    svg {
      width: 24px;
      height: 24px;
    }
  }

  @include applyBorderBox;
}
