@import '../helpers/helpers';

.store-locator-info {
  display: flex;
  flex-direction: column;

  &__title-main {
    @include heading-3;
    text-transform: capitalize;
    text-align: left;
    margin-bottom: 0;
  }

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

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

    .store-locator-info__features & {
      padding: 0 0 10px;
      font-weight: bold;
    }
  }

  &__message {
    background: #0277bd;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-bottom: 5px;
    line-height: 1.375rem;
  }

  &__schedule-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 2rem;
  }

  &__distance {
    font-weight: 500;
  }

  &__info {
    margin-bottom: 10px;
  }

  &__text {
    font-size: 1rem;
  }

  &__address {
    padding: 10px 0;
    font-size: 1rem;
    line-height: 1.5rem;

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

  &__schedules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  &__schedule {
    line-height: 1.875rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  &__contacts {
    @include primary-text;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    margin-left: 4px;

    a {
      font-size: 14px;
      color: $blue;
      cursor: pointer;
      text-decoration: underline;
    }
  }

  &__icon {
    color: $blue-dark;

    &--rotated {
      transform: rotate(90deg);
    }
  }

  &__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-v2 {
    display: flex;
    justify-content: space-between;
    background: $gray-bg;
    line-height: 1.375rem;

    &__reason-date {
      width: 45%;
      padding-left: 8px;

      &.bold {
        font-weight: 700;
      }
    }

    &__reason {
      font-size: .875rem;
      line-height: 1.375rem;
      font-weight: 700;
      margin-bottom: 0;
    }

    &__day {
      font-size: .75rem;
      font-weight: 400;
      line-height: 1rem;
    }

    &__time {
      padding-right: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 45px;
      text-align: right;
    }
  }
}

@include media-breakpoint-up(md) {
  .store-locator-info {
    &__schedules {
      margin-bottom: 0;
    }
  }
}
