@import "settings.breakpoints";
@import "settings.vars";

@import "mixins/tools.functions";
@import "mixins/tools.mixins";

@import "mixins/components.controls";
@import "mixins/components.header";
@import "mixins/components.scroll-menu";

.c-header-title--section {
  .c-header-title__button-containers {
    .c-control {
      // makes the buttons less in height and font size smaller
      // applies to all breakpoints
      @include c-control--short;
      // margin is 8 because there's already a padding of 2, so because of math, that makes it a total of 10
      margin: 0 rem(8) 0 0;

      &:last-child {
        margin: 0;
      }
    }
  }
}

@include desktop-down {
  .c-header-title--section {
    .c-control--login,
    .c-control--search-button,
    .c-control--adchoice {
      @include c-control--grey-700;
    }
  }
}

@include tablet-portrait-down {
  .c-header-title--section {
    .c-control--adchoice {
      @include adchoice-no-label;
    }
  }
}

@include mobile-only {
  .c-header-title--section {
    .c-control--search-button,
    .c-control--register {
      display: none;
    }

    .c-control--register {
      @include c-control--grey-700;
    }

    .c-header-title__button-containers {
      .c-control {
        @include c-control--tight;
      }
    }

    .c-control--adchoice {
      @include adchoice-small;
    }
  }
}

@include xs-mobile-only {
  .c-header-title--section {
    .c-header-title__button-containers {
      .c-control {
        @include c-control--xs;
      }

      .c-control--adchoice {
        .c-control__button {
          padding: 0 rem(12);
        }
      }
    }
  }
}
