.search-panel {
  margin-bottom: $margin-double;

  &-container {
    background: $color-blue-300;
    padding-top: $margin-normal;
    width: 100%;

    @include breakpoint(sm) {
      padding-left: $margin-double;
      padding-right: $margin-double;
      padding-top: 0;
    }

    @include breakpoint(lg) {
      padding-left: 0;
      padding-right: 0;
    }
  }

  &-tabs,
  .search-panel-input-container,
  .simple-filters-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  &-tabs {
    margin: 10px auto 15px;

    @include breakpoint(sm) {
      margin: 0 auto $margin-half;
    }

    ul {
      display: flex;
      margin: 0;
    }

    li {
      flex: 1;

      @include breakpoint(sm) {
        flex: initial;
        margin-right: $margin-quarter;
      }
    }

    span,
    svg {
      display: block;

      @include breakpoint(sm) {
        display: inline-block;
      }
    }

    a {
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: $color-blue-300;
      color: $color-blue-500;
      padding: 10px 7px 15px;
      text-transform: none;
      margin: 0 $margin-quarter -5px 0;
      letter-spacing: .5px;

      &.selected {
        background: #57abd2;
        color: $color-white;
      }

      @include breakpoint(sm) {
        flex-direction: row;
        padding: 11px $margin-normal 14px;
      }

      @include breakpoint(lg) {
        padding: 9px 9px $margin-normal;
      }
    }

    span {
      @include font-size(10);
      font-weight: bold;
      margin-top: 2px;

      @include breakpoint(sm) {
        @include font-size(14);
      }
    }

    svg {
      width: 40px;
      height: 40px;

      @include breakpoint(sm) {
        width: $margin-double;
        height: $margin-double;
        margin-right: 7px;
        align-self: end;
      }
    }
  }

  .search-panel-input-container {
    display: flex;
    flex-wrap: wrap;

    .search-panel-input + .search-panel-input {
      border-left: 1px solid #dfdfdf;
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);
    }
  }

  .search-panel-input {
    background: $color-white;
    width: 50%;
    display: flex;
    margin-bottom: $margin-half;
    height: 45px;
    justify-content: space-between;
    align-items: center;

    &.search {
      padding: 0;
      border-radius: 0;

      button {
        @include font-size(16);
        background: #cd5047 linear-gradient($color-red-300, $color-red-400);
        letter-spacing: normal;
        width: 100%;
        border-radius: 0;
        min-height: 45px;
      }
    }

    .input-text-container {
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 2px;
      margin-left: $margin-normal;
      flex: 1;
    }

    .input-text {
      white-space: nowrap;
      @include font-size(16);

      &-bold {
        @include font-size(16);
        font-weight: bold;
      }
    }

    .num {
      @include font-size(14);
      color: $color-blue-400;
    }

    .close {
      width: 28px;
      margin-top: $margin-third;
      color: $color-tui-grey-50;

      svg {
        transform: rotate(315deg);
      }
    }

    &.when {
      text-decoration: line-through;
      background: $color-blue-200;
    }

    @include breakpoint(sm) {
      width: calc(#{percentage(1 / 3)});
    }

    @include breakpoint(lg) {
      width: auto;
      flex: 1;
    }
  }

  .simple-filters-container {
    margin-top: $margin-normal;
    margin-bottom: $margin-normal;
    display: flex;
    justify-content: flex-end;

    label {
      margin-left: $margin-normal;
    }
  }

  &-separator {
    max-width: 1200px;
    margin-top: $margin-double;
    margin-left: auto;
    margin-right: auto;
    background: inherit;
    border-bottom: 1px solid $color-beige-300;
    display: flex;
    justify-content: space-between;
    margin-bottom: $margin-normal;

    .link-box-container {
      display: flex;
      width: 100%;
      justify-content: flex-end;
    }

    .link-box {
      background: $color-white;
      border: 0;
      border-radius: $border-radius-large;
      min-height: 44px;
      padding: $margin-half $margin-normal;
      margin-left: $margin-normal;
      margin-right: $margin-normal;
      margin-bottom: $margin-normal;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
      width: 100%;

      .link-box-text {
        font-weight: bold;
        color: $color-blue-450;
        margin-left: $margin-half;
        @include font-size(14);
        /* stylelint-disable max-nesting-depth */
        @include breakpoint(sm) {
          @include font-size(16);
        }
        /* stylelint-enable */
      }

      @include breakpoint(sm) {
        width: auto;
      }
    }

    .link-box-selected {
      color: $color-blue-500;
      font-weight: bold;
    }
  }
}
