.card-store {
  border: 1px solid $gray;
  display: flex;
  flex-direction: column;

  .store-locator-details & {
    border: 0;
  }

  &__title-main {
    @include heading-5;
    text-transform: capitalize;
    font-weight: bold;

    .store-locator-details & {
      @include heading-3;
    }
  }

  &__info {
    padding: 20px 15px 0;

    .store-locator-details & {
      padding-top: 0;
    }
  }

  &__title {
    padding-top: 10px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.125rem;

    &.schedule-title.schedule-title {
      margin: 0 15px;
    }

    .card-store__schedule & {
      padding: 20px 0;
      font-weight: bold;
    }

    .card-store__features & {
      padding: 0 0 10px;
      font-weight: bold;
    }

    .store-locator-details & {
      line-height: 1.25rem;
    }
  }

  &__distance {
    font-weight: 500;
  }

  &__address {
    padding: 10px 0;

    .store-locator-details & {
      padding-bottom: 20px;
    }

    .btn {
      width: 100%;
      margin-top: 20px;
    }
  }

  &__schedule {
    line-height: 30px;
    padding: 0 0 10px;

    .store-locator-details & {
      padding: 0 15px;
    }
  }

  &__contacts {
    @include primary-text;
    padding: 0 15px;

    .store-locator-details & {
      padding: 20px 15px;
    }
  }

  &__tel {
    padding-top: 10px;
    border-top: 1px solid $gray;
    display: block;
    white-space: nowrap;

    .store-locator-details & {
      padding-top: 20px;
    }
  }

  &__fax {
    display: block;
    padding-bottom: 20px;
    border-bottom: 1px solid $gray;
  }

  &__actions {
    text-align: center;
    padding: 10px 0 20px;

    a {
      font-weight: 500;
    }
  }

  &__features {
    padding: 0 15px;
  }

  &__navigation {
    padding: 0 15px 15px;

    .btn {
      width: 100%;
    }
  }
}

.schedule-item {
  display: flex;

  &__day,
  &__time {
    width: 50%;

    .store-locator-details & {
      text-align: right;
      padding-right: 15px;
    }
  }

  &__day {
    padding-left: 15px;

    .store-locator-details & {
      text-align: left;
    }
  }

  &:nth-child(even) {
    background: $gray-light;
  }

  .store-locator-details & {
    .schedule-item {
      &:nth-child(odd) {
        background: $gray-light;
      }

      &:nth-child(even) {
        background: $white;
      }
    }
  }
}

@include media-breakpoint-down(sm) {
  .card-store {
    &__schedule {
      display: flex;
      flex-direction: column;

      .card-store__special-time {
        order: -1;
      }
    }
  }

  .schedule-item {
    &__time {
      .store-locator-details & {
        text-align: center;
      }
    }
  }
}

@include media-breakpoint-up(md) {
  .card-store {
    .store-locator-details & {
      width: 55%;
    }

    &__info {
      min-height: 240px;
    }
  }
}

@include media-breakpoint-up(lg) {
  .card-store {
    .store-locator-details & {
      width: 75%;
    }
  }
}
