@import '../helpers/helpers';
@import '../components/special-opening-schedule';

h1 {
  margin-bottom: 30px;
}

.cards-store {
  &-list {
    padding-right: 0;
    padding-left: 0;
    height: auto;

    &__actions {
      margin: 24px auto 0;
    }
  }

  &-wrapper {
    padding-top: 40px;

    .row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      margin-right: 0;
      margin-left: 0;
      align-items: start;
    }
  }
}

.locator {
  .forms-locator {
    .form-row__field {
      .header-search__submit {
        color: $blue;
        display: flex;
        align-items: center;

        &:hover {
          color: $blue-dark;
        }
      }
    }
  }
}

.pagination-holder {
  padding-top: 20px;
}

.btn_store-near-me {
  @include button-full;
  margin-bottom: 20px;
}

@include media-breakpoint-down(sm) {
  .cards-store {
    &-list {
      &__actions {
        width: 100%;

        .icon__eye {
          svg,
          i {
            vertical-align: -0.15em;
            margin-right: 5px;
          }
        }
      }
    }

    &-list_open .cards-store-list:not(:nth-child(-n + 3)) {
      display: block;
    }
  }

  .pagination-holder {
    display: none;
  }

  .locator {
    .forms-locator {
      .form-row__field {
        .header-search__submit {
          &-icon {
            display: inline;
          }
        }
      }
    }
  }
}

@include media-breakpoint-up(sm) {
  .cards-store {
    &-wrapper {
      .row {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    &-list__actions {
      margin: 24px 0 0;
      display: flex;
      justify-content: center;

      .btn {
        min-width: 148px;
        width: auto;
      }
    }
  }
}

@include media-breakpoint-up(md) {
  .btn_store-near-me {
    display: none;
  }
}

@include media-breakpoint-up(lg) {
  .cards-store {
    &-wrapper {
      .row {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }
}

@include media-breakpoint-up(xl) {
  .cards-store {
    &-wrapper {
      .row {
        grid-template-columns: repeat(4, 1fr);
      }
    }
  }
}
