/* Titanic Experience booking modal */

.tb-booking-open {
  overflow: hidden;
}

.tb-booking {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tb-booking.is-open {
  display: flex;
}

.tb-booking__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 26, 0.45);
}

.tb-booking__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: min(900px, calc(100vh - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.tb-booking__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 18px 24px;
  border-bottom: 1px solid #e6e2df;
}

.tb-booking__title {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 1.25rem;
  color: #12141a;
}

.tb-booking__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #12141a;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.tb-booking__close:hover {
  color: #e83d26;
}

.tb-booking__body {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

@media (min-width: 900px) {
  .tb-booking__body {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }
}

.tb-booking__col {
  min-height: 0;
  padding: 20px 20px 12px;
}

@media (min-width: 900px) {
  .tb-booking__col {
    padding: 24px 28px 16px;
    overflow: auto;
  }

  .tb-booking__col--left {
    border-right: 1px solid #e6e2df;
  }
}

/* Gallery */
.tb-booking__gallery {
  position: relative;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #12141a;
}

.tb-booking__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-booking__product-title {
  margin: 0 0 8px;
  font-family: var(--font-medium);
  font-size: 1.35rem;
  color: #12141a;
}

.tb-booking__product-text {
  margin: 0 0 18px;
  color: #8c8181;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Ticket rows */
.tb-booking__tickets {
  display: flex;
  flex-direction: column;
}

.tb-booking__ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ece8e5;
}

.tb-booking__ticket-meta {
  min-width: 0;
}

.tb-booking__ticket-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font-medium);
  font-size: 1rem;
  color: #12141a;
}

.tb-booking__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e83d26;
  color: #fff;
  font-size: 0.7rem;
  font-family: var(--font-medium);
  line-height: 1;
  cursor: help;
}

.tb-booking__ticket-price {
  display: block;
  margin-top: 2px;
  color: #8c8181;
  font-size: 0.85rem;
}

.tb-booking__stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tb-booking__stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #e83d26;
  border-radius: 50%;
  background: #fff;
  color: #e83d26;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tb-booking__stepper-btn:disabled {
  border-color: #d5d0cc;
  color: #d5d0cc;
  cursor: default;
}

.tb-booking__stepper-val {
  min-width: 1.25rem;
  text-align: center;
  font-family: var(--font-medium);
  color: #12141a;
}

.tb-booking__gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e83d26;
  font-family: var(--font-medium);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.tb-booking__gift:hover {
  text-decoration: underline;
}

.tb-booking__gift-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 7h-2.18A3 3 0 0 0 13 3.18L12 2l-1 1.18A3 3 0 0 0 6.18 7H4a1 1 0 0 0-1 1v3h18V8a1 1 0 0 0-1-1ZM9 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm6 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM3 13v7a1 1 0 0 0 1 1h7v-8H3Zm10 0v8h7a1 1 0 0 0 1-1v-7h-8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 7h-2.18A3 3 0 0 0 13 3.18L12 2l-1 1.18A3 3 0 0 0 6.18 7H4a1 1 0 0 0-1 1v3h18V8a1 1 0 0 0-1-1ZM9 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm6 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM3 13v7a1 1 0 0 0 1 1h7v-8H3Zm10 0v8h7a1 1 0 0 0 1-1v-7h-8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Right column */
.tb-booking__col--right {
  position: relative;
  transition: opacity 0.25s ease;
}

.tb-booking__col--right.is-muted {
  opacity: 0.28;
  pointer-events: none;
}

.tb-booking__col--right.is-muted .tb-booking__time-wrap,
.tb-booking__col--right.is-muted .tb-booking__section-label:last-of-type {
  visibility: hidden;
}

.tb-booking__time-wrap[hidden],
[data-booking-time-label][hidden] {
  display: none !important;
}

.tb-booking__section-label {
  display: block;
  margin: 0 0 10px;
  color: #8c8181;
  font-size: 0.9rem;
}

.tb-booking__dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.tb-booking__date-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 78px;
  padding: 12px;
  border: 1.5px solid #d9d1cc;
  border-radius: 4px;
  background: #fff;
  color: #12141a;
  cursor: pointer;
  text-align: left;
}

.tb-booking__date-card.is-selected,
.tb-booking__date-card.is-calendar-open {
  border-color: #e83d26;
}

.tb-booking__date-day {
  font-family: var(--font-medium);
  font-size: 1.15rem;
  line-height: 1.1;
}

.tb-booking__date-label {
  font-size: 0.85rem;
  color: #12141a;
}

.tb-booking__date-price {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #8c8181;
}

.tb-booking__date-card--other {
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tb-booking__date-card--other svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.tb-booking__time-wrap {
  position: relative;
  z-index: 4;
}

.tb-booking__time-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid #d9d1cc;
  border-radius: 6px;
  background: #fff;
  color: #4a4542;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.tb-booking__time-trigger.is-open {
  border-color: #bdb5b0;
}

.tb-booking__time-trigger::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid #8c8181;
  border-bottom: 1.6px solid #8c8181;
  transform: rotate(45deg);
  pointer-events: none;
}

.tb-booking__time-trigger.is-open::after {
  top: 26px;
  transform: rotate(225deg);
}

.tb-booking__time-trigger.has-value {
  color: #12141a;
  font-family: var(--font-medium);
}

.tb-booking__time-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 6;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 2px solid #d8d2cd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 20, 26, 0.1);
  scrollbar-width: thin;
  scrollbar-color: #e83d26 #ece8e5;
}

.tb-booking__time-panel::-webkit-scrollbar {
  width: 8px;
}

.tb-booking__time-panel::-webkit-scrollbar-track {
  background: #ece8e5;
  border-radius: 8px;
}

.tb-booking__time-panel::-webkit-scrollbar-thumb {
  background: #e83d26;
  border-radius: 8px;
}

.tb-booking__time-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  color: #3a3532;
  font: inherit;
  font-family: var(--font-medium);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.tb-booking__time-option:nth-child(even) {
  background: #f7f5f4;
}

.tb-booking__time-option:hover:not(:disabled),
.tb-booking__time-option.is-active {
  background: #d8d4d0;
}

.tb-booking__time-option-price {
  color: #e83d26;
  font-size: 0.92rem;
  white-space: nowrap;
}

.tb-booking__time-empty {
  margin: 0;
  padding: 16px 14px;
  color: #8c8181;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Calendar popover */
.tb-booking__calendar {
  position: absolute;
  top: 150px;
  left: 20px;
  right: 20px;
  z-index: 5;
  display: none;
  padding: 16px 14px 18px;
  border: 1px solid #e6e2df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

@media (min-width: 900px) {
  .tb-booking__calendar {
    left: 28px;
    right: 28px;
    top: 168px;
  }
}

.tb-booking__calendar.is-open {
  display: block;
}

.tb-booking__col--right.is-calendar-only .tb-booking__dates {
  display: none;
}

.tb-booking__calendar.is-inline {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  display: block;
  margin-top: 4px;
  box-shadow: none;
}

.tb-booking__calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tb-booking__calendar-month {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 1rem;
  color: #12141a;
}

.tb-booking__calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #12141a;
  cursor: pointer;
  font-size: 1.2rem;
}

.tb-booking__calendar-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.tb-booking__calendar-weekdays,
.tb-booking__calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.tb-booking__calendar-weekdays span {
  padding: 6px 0;
  text-align: center;
  font-size: 0.72rem;
  color: #8c8181;
  text-transform: uppercase;
}

.tb-booking__calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 4px 2px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #12141a;
  cursor: pointer;
}

.tb-booking__calendar-day span {
  font-family: var(--font-medium);
  font-size: 0.95rem;
  line-height: 1.1;
}

.tb-booking__calendar-day small {
  margin-top: 2px;
  font-size: 0.65rem;
  color: #8c8181;
}

.tb-booking__calendar-day.is-muted,
.tb-booking__calendar-day:disabled {
  color: #c8c2bd;
  cursor: default;
}

.tb-booking__calendar-day.is-muted small,
.tb-booking__calendar-day:disabled small {
  color: #d9d1cc;
}

.tb-booking__calendar-day.is-selected {
  border-color: #e83d26;
}

.tb-booking__calendar-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

/* Footer */
.tb-booking__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-height: 64px;
  padding: 0 24px;
  background: #e83d26;
}

.tb-booking__continue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-medium);
  font-size: 1.05rem;
  cursor: pointer;
}

.tb-booking__continue::after {
  content: "→";
  font-size: 1.2rem;
}

.tb-booking__continue:disabled {
  opacity: 0.45;
  cursor: default;
}

.tb-booking__step {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.tb-booking__step[hidden] {
  display: none !important;
}

/* Payment step */
.tb-booking--payment .tb-booking__dialog {
  width: min(520px, 100%);
  max-height: min(920px, calc(100vh - 32px));
}

.tb-pay {
  background: #fff;
  min-height: 0;
}

.tb-pay__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 56px;
  padding: 10px 14px 10px 8px;
  border-bottom: 1px solid #e8e4e1;
}

.tb-pay__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 8px;
}

.tb-pay__back:hover {
  background: #f4f2f0;
}

.tb-pay__back svg {
  width: 22px;
  height: 22px;
}

.tb-pay__title {
  margin: 0;
  flex: 1;
  font-family: var(--font-medium);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}

.tb-pay__header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-pay__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0eeec;
  color: #1a1a1a;
  font-family: var(--font-medium);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.tb-pay__timer-icon {
  width: 18px;
  height: 18px;
  color: #e83d26;
}

.tb-pay__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.tb-pay__methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-pay__method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d8d4d0;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tb-pay__method--cards {
  display: block;
  padding: 0;
  cursor: default;
  background: #f7f8fa;
}

.tb-pay__method--cards.is-open {
  border-color: #cfd6e0;
}

.tb-pay__form {
  padding: 16px;
}

.tb-pay__field {
  display: block;
  margin: 0 0 14px;
}

.tb-pay__label {
  display: block;
  margin-bottom: 6px;
  color: #3a3532;
  font-size: 0.9rem;
}

.tb-pay__input-wrap {
  position: relative;
  display: block;
}

.tb-pay__input,
.tb-pay__select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 12px;
  border: 1px solid #c8c2bc;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  appearance: none;
}

.tb-pay__select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.tb-pay__input:focus,
.tb-pay__select:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.tb-pay__input-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: #9a948e;
  pointer-events: none;
}

.tb-pay__input-icon svg {
  width: 100%;
  height: 100%;
}

.tb-pay__check {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #1a3a6b;
  font-size: 1.05rem;
  font-weight: 700;
  pointer-events: none;
}

.tb-pay__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tb-pay__row--street {
  grid-template-columns: 2fr 1fr;
}

.tb-pay__help {
  display: block;
  margin-top: 6px;
  color: #7a746e;
  font-size: 0.78rem;
  line-height: 1.35;
}

.tb-pay__section {
  margin: 18px 0 12px;
  color: #3a3532;
  font-family: var(--font-medium);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tb-pay__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: #eb4d3d;
  color: #fff;
  font-family: var(--font-medium);
  font-size: 1.05rem;
  cursor: pointer;
}

.tb-pay__submit:hover {
  background: #d94233;
}

.tb-pay__submit:disabled,
.tb-pay__submit.is-pay-incomplete,
#pay_btn:disabled,
#pay_btn.is-pay-incomplete {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f0a99f;
  pointer-events: none;
}

.tb-pay__submit:disabled:hover,
.tb-pay__submit.is-pay-incomplete:hover {
  background: #f0a99f;
}

.checkout-pay-hint {
  margin: 0 0 8px;
  color: #c0392b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tb-pay__submit svg {
  width: 18px;
  height: 18px;
}

.tb-pay__success {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef8f0;
  color: #1f4d2d;
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (max-width: 899px) {
  .tb-booking {
    padding: 8px;
    align-items: stretch;
  }

  .tb-booking__dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .tb-booking__header {
    padding: 14px 16px;
  }

  .tb-booking__body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .tb-booking__col {
    min-height: min-content;
    flex: 0 0 auto;
    overflow: visible;
    padding: 16px 16px 12px;
  }

  .tb-booking__col--right {
    position: static;
  }

  .tb-booking__col--right.is-muted {
    display: none;
  }

  .tb-booking__col--right:not(.is-muted) {
    border-top: 1px solid #e6e2df;
    background: #fff;
  }

  .tb-booking__col--right [data-booking-date-label],
  .tb-booking__calendar,
  .tb-booking__col--right [data-booking-time-label],
  .tb-booking__time-wrap {
    scroll-margin-top: 12px;
    scroll-margin-bottom: 88px;
  }

  .tb-booking__ticket {
    align-items: flex-start;
    gap: 12px;
  }

  .tb-booking__ticket-meta {
    flex: 1 1 auto;
  }

  .tb-booking__dates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tb-booking__date-card {
    min-height: 70px;
    padding: 10px 8px;
  }

  .tb-booking__date-day {
    font-size: 1rem;
  }

  .tb-booking__date-label,
  .tb-booking__date-price {
    font-size: 0.75rem;
  }

  .tb-booking__calendar {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-height: min(280px, 42vh);
    margin-top: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: #e83d26 #ece8e5;
  }

  .tb-booking__calendar::-webkit-scrollbar,
  .tb-booking__time-panel::-webkit-scrollbar {
    width: 8px;
  }

  .tb-booking__calendar::-webkit-scrollbar-track,
  .tb-booking__time-panel::-webkit-scrollbar-track {
    background: #ece8e5;
    border-radius: 8px;
  }

  .tb-booking__calendar::-webkit-scrollbar-thumb,
  .tb-booking__time-panel::-webkit-scrollbar-thumb {
    background: #e83d26;
    border-radius: 8px;
  }

  .tb-booking__calendar.is-inline {
    max-height: min(320px, 48vh);
  }

  .tb-booking__time-panel {
    position: static;
    margin-top: 8px;
    max-height: min(200px, 36vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: #e83d26 #ece8e5;
  }

  .tb-booking__footer {
    padding: 12px 16px;
  }

  .tb-pay__row,
  .tb-pay__row--street {
    grid-template-columns: 1fr;
  }
}

/* Gift card modal */
.tb-gift {
  position: fixed;
  inset: 0;
  z-index: 1110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tb-gift.is-open {
  display: flex;
}

.tb-gift__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 26, 0.45);
}

.tb-gift__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.tb-gift--payment .tb-gift__dialog {
  width: min(520px, 100%);
  max-height: min(920px, calc(100vh - 32px));
}

.tb-gift__step {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.tb-gift__step[hidden] {
  display: none !important;
}

.tb-gift__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 56px;
  padding: 14px 18px;
  border-bottom: 1px solid #ece8e5;
}

.tb-gift__title {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 1.2rem;
  font-weight: 700;
  color: #12141a;
}

.tb-gift__notice {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 18px;
  background: #fdf1a0;
  color: #12141a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.tb-gift__body {
  flex: 1;
  min-height: 220px;
  padding: 28px 28px 40px;
  overflow: auto;
}

.tb-gift__heading {
  margin: 0 0 10px;
  font-family: var(--font-medium);
  font-size: 1.15rem;
  font-weight: 700;
  color: #12141a;
}

.tb-gift__lead {
  margin: 0 0 28px;
  color: #757575;
  font-size: 0.95rem;
  line-height: 1.45;
}

.tb-gift__field {
  display: block;
  max-width: 100%;
}

.tb-gift__label {
  display: block;
  margin-bottom: 8px;
  color: #757575;
  font-size: 0.9rem;
}

.tb-gift__input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.tb-gift__currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  border-right: 1px solid #ccc;
  background: #f5f5f5;
  color: #9a9a9a;
  font-size: 1rem;
}

.tb-gift__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #12141a;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.tb-gift__hint {
  display: block;
  margin-top: 10px;
  color: #757575;
  font-size: 0.85rem;
}

.tb-gift__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-height: 64px;
  padding: 0 24px;
  background: #e83d26;
}

.tb-gift__continue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-medium);
  font-size: 1.05rem;
  cursor: pointer;
}

.tb-gift__continue::after {
  content: "→";
  font-size: 1.2rem;
}

.tb-gift__continue:disabled {
  opacity: 0.45;
  cursor: default;
}

