@import "settings.colors";
@import "settings.breakpoints";
@import "mixins/settings.fonts";
@import "mixins/tools.mixins";

$o-financial-search-button-width: rem(170);

.o-financial-search {
  padding: rem(17) rem(11) rem(10);
  background-color: $color-stone-200;
}

.o-financial-search__row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
}

.o-financial-search__col--buttons {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  margin-bottom: rem(7);

  .c-button {
    padding-left: rem(6);
    padding-right: rem(6);
  }
}

.o-financial-search__col--spacer {
  width: rem(13);
  height: rem(10);
}

.o-financial-search__links {
  @include font-gm-sans;
  margin: rem(3) 0;
  padding-left: rem(25);
  font-size: rem(12);
  line-height: line-height(12, 13);
  letter-spacing: rem(1);
  list-style: disc outside;
  color: $color-grey-500; // list disc/bullet color

  li {
    margin-bottom: rem(7);
    text-transform: uppercase;
  }

  a {
    color: $color-grey-660;
    text-decoration: none;
    &:hover, &:focus, &:active {
      text-decoration: underline;
    }
  }
}

@include mq($until: rem(375)) {
  .o-financial-search__col--buttons {
    .c-button__icon {
      display: none;
    }
  }
}

@include mq($from: rem(450)) {
  .o-financial-search__col--buttons {
    .c-button {
      padding-left: rem(12);
      padding-right: rem(12);
    }
  }
  .o-financial-search__links {
    padding-left: rem(30);
  }
}

@include mq($until: tablet) {
  .o-financial-search__col--input {
    flex-basis: 100%;
    margin-bottom: rem(20);
  }
  .o-financial-search__col--links {
    width: 42vw;
  }
}

@include mq($from: tablet) {
  .o-financial-search__col--buttons {
    .c-button {
      width: $o-financial-search-button-width;
    }
  }
}

@include mq($from: tablet, $until: tabletMedium) {
  .o-financial-search__col--input {
    flex-grow: 1;
    margin-right: rem(20);
  }
  .o-financial-search__col--buttons {
    width: $o-financial-search-button-width;
  }
}

@include mq($from: tabletMedium, $until: desktop) {
  .o-financial-search__col--input {
    flex-basis: 100%;
    margin-bottom: rem(20);
  }
  .o-financial-search__col--buttons {
    flex-grow: 1;
  }
}

@include mq($from: desktop) {
  .o-financial-search__col--input {
    flex-grow: 1;
    margin-right: rem(20);
  }
}

@include mq($from: tabletMedium) {
  .o-financial-search__col--buttons {
    flex-direction: row;
  }
}
