.preorders-dates-wrapper {
   display: flex;
   flex-wrap: wrap;
   align-items: flex-end;
}

.preorders-top {
   margin-bottom: 10px;

   .dates {
      display: flex;
      align-items: stretch;
      flex-wrap: wrap;
      margin: 0 calc(-#{$grid-gutter-width} / 2);
   }

   .date-item {
      margin: calc(#{$grid-gutter-width} / 2);
      line-height: 1.5;
      transition: border-color $transition-speed;
      width: calc(100% / 3 - #{$grid-gutter-width});

      @include haf {
         .date-item-title {
            border-color: $text-dark;
         }
      }


      a {
         @include underline-never;

         color: $text-dark;
      }

      .title-default {
         margin-bottom: 0;
      }
   }

   .date-item-title {
      border: 1px solid $border-color;
      padding: 18px;
   }

   .date-item-inner.active {
      .date-item-title {
         border: 1px solid $text-dark;
      }
   }
}

.preorders-search {
   margin-bottom: 10px;

   .form-control {
      min-height: 46px;
      padding: 6px 16px;
   }
}

@media screen and (max-width: $xl - 1) {
   .preorders-search {
      width: 100%;
   }
}

@media screen and (max-width: $md - 1) {
   .preorders-top {
      .date-item {
         width: calc(50% - #{$grid-gutter-width});
      }
   }
}

@media screen and (max-width: $sm - 1) {
   .preorders-top {
      .title-default {
         font-size: $font-size-smaller;
      }

      .dates {
         margin: 0 auto 20px;
      }

      .date-item {
         margin: 0 0 10px;
         width: 100%;
      }
   }

   .preorders-search .form-control {
      font-size: $font-size-smaller;
   }
}
