/* Окно «Ваша бронь принята!» — разметка в inc/modal-order-table.php.
   Шрифт «KyivType Sans -» из макета на сайте не грузится (font error) — используем «KyivType Sans 2», как весь сайт.
   Макет: Figma «Booking confirmation — Літвіны» (десктоп 640px, мобильный 390px). */

.modal_booking_confirm .modal-dialog {
  max-width: 640px;
  width: calc(100% - 30px);
}

.modal_booking_confirm .modal-body {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 56px 48px 48px;
  border-radius: 32px;
  background: #fff;
  color: #1d1d1d;
}

.modal_booking_confirm .bconf__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 246px;
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
}

.modal_booking_confirm .bconf__content,
.modal_booking_confirm .bconf__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

/* Закрыть */
.modal_booking_confirm .bconf__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: rgba(221, 174, 81, 0.12);
  cursor: pointer;
  transition: background 0.3s;
}
.modal_booking_confirm .bconf__close:hover,
.modal_booking_confirm .bconf__close:focus-visible {
  background: rgba(221, 174, 81, 0.3);
  outline: none;
}
.modal_booking_confirm .bconf__close img {
  display: block;
}

/* Шапка */
.modal_booking_confirm .bconf__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.modal_booking_confirm .bconf__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  background: rgba(221, 174, 81, 0.12);
}
.modal_booking_confirm .bconf__check img {
  display: block;
}
.modal_booking_confirm .bconf__title {
  margin: 0;
  color: #ad9a74;
  font-family: "KyivType Sans 3";
  font-weight: 500;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0;
}
.modal_booking_confirm .bconf__subtitle {
  margin: 0;
  color: #787878;
  font-family: "KyivType Sans 2";
  font-weight: normal;
  font-size: 16px;
  line-height: 22px;
  opacity: 1;
}

/* Предупреждение «Бронь ещё не подтверждена» */
.modal_booking_confirm .bconf__notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 20px 16px 16px;
  border: 1px solid rgba(217, 84, 41, 0.3);
  border-radius: 16px;
  background: rgba(217, 84, 41, 0.07);
  text-align: left;
}
.modal_booking_confirm .bconf__notice-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #d95429;
}
.modal_booking_confirm .bconf__notice-icon img {
  display: block;
}
.modal_booking_confirm .bconf__notice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  color: #1d1d1d;
}
.modal_booking_confirm .bconf__notice-title {
  margin: 0;
  font-family: "KyivType Sans 2";
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
}
.modal_booking_confirm .bconf__notice-desc {
  margin: 0;
  font-family: "KyivType Sans 2";
  font-weight: normal;
  font-size: 14px;
  line-height: 20px;
}

/* Данные брони */
.modal_booking_confirm .bconf__details {
  width: 100%;
  margin: 0;
  padding: 8px 24px;
  border-radius: 20px;
  background: #f8f5f0;
}
.modal_booking_confirm .bconf__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.modal_booking_confirm .bconf__row:last-child,
.modal_booking_confirm .bconf__row.is-last {
  border-bottom: none;
}
.modal_booking_confirm .bconf__row[hidden] {
  display: none;
}
.modal_booking_confirm .bconf__row dt {
  flex: 0 0 auto;
  margin: 0;
  color: #787878;
  font-family: "KyivType Sans 2";
  font-weight: normal;
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
}
.modal_booking_confirm .bconf__row dd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.modal_booking_confirm .bconf__value {
  color: #1d1d1d;
  font-family: "KyivType Sans 2";
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
}
.modal_booking_confirm .bconf__value-sub {
  color: #787878;
  font-family: "KyivType Sans 2";
  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
}
.modal_booking_confirm .bconf__value-sub:empty {
  display: none;
}

/* «Планы поменялись?» */
.modal_booking_confirm .bconf__footer {
  margin: 0;
  color: #787878;
  font-family: "KyivType Sans 2";
  font-weight: normal;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  opacity: 1;
}
.modal_booking_confirm .bconf__footer-phone {
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: none;
  color: #b78f3f;
  font-family: "KyivType Sans 2";
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.modal_booking_confirm .bconf__footer-phone:hover,
.modal_booking_confirm .bconf__footer-phone:focus {
  background: none;
  color: #ad9a74;
  text-decoration: underline;
}

.modal_booking_confirm .bconf__mbr {
  display: none;
}
@media screen and (max-width: 767px) {
  .modal_booking_confirm .bconf__mbr {
    display: inline;
  }
}

/* Кнопка «Хорошо» */
.modal_booking_confirm .bconf__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 56px;
  border: none;
  border-radius: 60px;
  background: #1d1d1d;
  color: #fff;
  font-family: "KyivType Sans 2";
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.modal_booking_confirm .bconf__ok:hover,
.modal_booking_confirm .bconf__ok:focus-visible {
  background: #ddae51;
  color: #000;
  outline: none;
}

/* Мобильная версия: окно на весь экран, кнопка закреплена снизу */
@media screen and (max-width: 767px) {
  .modal_booking_confirm .modal-dialog {
    width: 100%;
    max-width: 100% !important;
    min-height: 100%;
    margin: 0 !important;
  }
  .modal_booking_confirm .modal-content {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .modal_booking_confirm .modal-body {
    flex: 1 0 auto;
    gap: 16px;
    padding: 56px 0 0 !important;
    border-radius: 0;
  }
  .modal_booking_confirm .bconf__bg {
    left: 50%;
    right: auto;
    width: 520px;
    height: 200px;
    transform: translateX(-50%);
  }
  .modal_booking_confirm .bconf__close {
    top: 8px;
    right: 16px;
  }
  .modal_booking_confirm .bconf__content {
    flex: 1 0 auto;
    gap: 16px;
    padding: 0 16px 16px;
  }
  .modal_booking_confirm .bconf__header {
    gap: 10px;
  }
  .modal_booking_confirm .bconf__check {
    width: 64px;
    height: 64px;
    border-radius: 32px;
  }
  .modal_booking_confirm .bconf__check img {
    width: 28px;
    height: 28px;
  }
  .modal_booking_confirm .bconf__title {
    font-size: 28px;
    line-height: 34px;
  }
  .modal_booking_confirm .bconf__subtitle {
    font-size: 15px;
    line-height: 20px;
  }
  .modal_booking_confirm .bconf__notice {
    gap: 12px;
    padding: 14px 16px 14px 14px;
  }
  .modal_booking_confirm .bconf__notice-icon {
    width: 36px;
    height: 36px;
    border-radius: 18px;
  }
  .modal_booking_confirm .bconf__notice-icon img {
    width: 18px;
    height: 18px;
  }
  .modal_booking_confirm .bconf__notice-title {
    font-size: 16px;
    line-height: 22px;
  }
  .modal_booking_confirm .bconf__notice-desc br {
    display: none;
  }
  .modal_booking_confirm .bconf__details {
    padding: 4px 16px;
    border-radius: 16px;
  }
  .modal_booking_confirm .bconf__row {
    gap: 16px;
    padding: 10px 0;
  }
  .modal_booking_confirm .bconf__row dt,
  .modal_booking_confirm .bconf__value {
    font-size: 14px;
    line-height: 20px;
  }
  .modal_booking_confirm .bconf__value-sub {
    font-size: 12px;
    line-height: 16px;
  }
  .modal_booking_confirm .bconf__actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding: 12px 16px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .modal_booking_confirm .bconf__ok {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    line-height: 22px;
  }
}
