/* Checkout (payment step), booking status and the messages shared by the
   booking pages. Self-contained: also loaded by the admin panel. */

.pay_checkout {
  --pay-line: #e1dfdc;
  --pay-blue: #4094fa;
  --pay-blue-dark: #287fec;
  --pay-text: #1f2a37;
  --pay-muted: #6f6f6f;
  --pay-danger: #c62828;
  --pay-success: #238153;
  color: var(--pay-text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-align: start;
}

.pay_checkout [hidden] {
  display: none !important;
}

.pay_checkout *,
.pay_checkout *::before,
.pay_checkout *::after {
  box-sizing: border-box;
}

:where(.pay_checkout) :is(p, ul, dl, dd, h2) {
  margin: 0;
  padding: 0;
}

:where(.pay_checkout) ul {
  list-style: none;
}

.pay_loading {
  margin-top: 20px;
  color: #6f6f6f;
  font-size: 15px;
}

.pay_checkout .pay_heading {
  padding: 0;
  margin: 0 0 12px;
  color: #000;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
}

.pay_card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  background: #fff;
}

.pay_group {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.pay_group.is_muted .pay_option {
  opacity: 0.55;
  cursor: default;
}

.pay_note {
  margin-top: 8px;
  color: var(--pay-muted);
  font-size: 13px;
  font-weight: 300;
}

.pay_note_lead {
  margin: -6px 0 12px;
}

.pay_note_secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.pay_note_center {
  justify-content: center;
  text-align: center;
}

.pay_lock {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* ---- alerts */

.pay_alert {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #c4dfff;
  border-radius: 5px;
  background: #f6fafe;
  font-size: 14px;
  outline: none;
}

.pay_alert strong {
  display: block;
  font-weight: 600;
}

.pay_alert p {
  margin-top: 4px;
}

.pay_alert:focus-visible {
  box-shadow: 0 0 0 3px rgba(64, 148, 250, 0.25);
}

.pay_alert_warning {
  border-color: #f0cf8a;
  background: #fff8e8;
  color: #5f4300;
}

.pay_alert_danger {
  border-color: #f0b4b4;
  background: #fff3f3;
  color: #8a1c1c;
}

.pay_alert_demo {
  border-style: dashed;
  border-color: #b9c6d6;
  background: #f7f9fb;
  color: #3b4a5c;
}

.pay_demo_cards {
  margin-top: 8px !important;
  display: grid;
  gap: 4px;
}

.pay_demo_cards code {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  direction: ltr;
  unicode-bidi: isolate;
}

.pay_link {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pay-blue-dark);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- order summary */

.pay_stay {
  display: flex;
  gap: 14px;
  align-items: center;
}

.pay_stay_photo {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 5px;
  object-fit: cover;
  background: #eef1f4;
}

.pay_stay_text {
  min-width: 0;
}

.pay_stay_hotel {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.pay_stay_location,
.pay_stay_dates {
  margin-top: 2px !important;
  color: var(--pay-muted);
  font-size: 14px;
  font-weight: 300;
}

.pay_stay_dates {
  color: #363636;
}

.pay_rooms {
  margin-top: 16px !important;
  border-top: 1px solid var(--pay-line);
}

.pay_room_line {
  padding: 14px 0;
  border-bottom: 1px solid var(--pay-line);
}

.pay_room_head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pay_room_name {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.pay_room_price {
  flex: 0 0 auto;
  font-family: Montserrat, Arial, sans-serif;
  white-space: nowrap;
}

.pay_room_meta {
  margin-top: 2px !important;
  color: var(--pay-muted);
  font-size: 14px;
  font-weight: 300;
}

.pay_cancel {
  margin-top: 8px !important;
  display: grid;
  gap: 3px;
  font-size: 14px;
}

.pay_cancel li {
  position: relative;
  padding-inline-start: 18px;
}

.pay_cancel li::before {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b5bcc6;
}

.pay_cancel_good {
  color: var(--pay-success);
  font-weight: 500;
}

.pay_cancel_good::before {
  background: var(--pay-success) !important;
}

.pay_cancel_bad {
  color: var(--pay-danger);
  font-weight: 500;
}

.pay_cancel_bad::before {
  background: var(--pay-danger) !important;
}

.pay_rows {
  margin-top: 12px !important;
  display: grid;
  gap: 8px;
}

.pay_due .pay_rows {
  margin-top: 0 !important;
}

.pay_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.pay_row dt {
  min-width: 0;
  color: #363636;
  font-weight: 300;
}

.pay_row dt small {
  color: var(--pay-muted);
  font-size: 12px;
  white-space: nowrap;
}

.pay_row dd {
  flex: 0 0 auto;
  font-family: Montserrat, Arial, sans-serif;
  white-space: nowrap;
}

.pay_row_total dt,
.pay_row_total dd {
  color: #000;
  font-size: 17px;
  font-weight: 600;
}

.pay_rows .pay_row_total:not(:first-child) {
  padding-top: 10px;
  border-top: 1px solid var(--pay-line);
}

/* ---- radio cards */

.pay_options {
  display: grid;
  gap: 10px;
}

/* Bank card / cryptocurrency side by side when there is room. */
.pay_options_methods {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.pay_option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--pay-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* The real radio covers the whole card: any click selects, focus stays native. */
.pay_option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.pay_option_mark {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #c4cad2;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pay_option:hover {
  border-color: #a9cdfb;
}

.pay_option:has(input:checked) {
  border-color: var(--pay-blue);
  background: #f6faff;
  box-shadow: inset 0 0 0 1px var(--pay-blue), 0 4px 14px rgba(64, 148, 250, 0.1);
}

.pay_option input:checked + .pay_option_mark {
  border-color: var(--pay-blue);
  box-shadow: inset 0 0 0 4px var(--pay-blue);
}

.pay_option:has(input:focus-visible) {
  outline: 2px solid var(--pay-blue-dark);
  outline-offset: 2px;
}

.pay_option_icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -6px;
  margin-bottom: -6px;
  border-radius: 8px;
  background: #f1f4f8;
  color: #5b6878;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pay_option:has(input:checked) .pay_option_icon {
  background: #e3efff;
  color: var(--pay-blue-dark);
}

.pay_option_body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pay_option_title {
  color: #000;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.pay_option_text {
  color: var(--pay-muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .pay_option,
  .pay_option_mark,
  .pay_option_icon {
    transition: none;
  }
}

.pay_tag {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 8px;
  border-radius: 50px;
  background: #fff1d6;
  color: #7a5200;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---- fields */

.pay_panel {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  background: #fafcfe;
}

/* A newly chosen method's panel eases in instead of popping. */
.pay_panel:not([hidden]) {
  animation: pay_panel_in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pay_panel_in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay_panel:not([hidden]) {
    animation: none;
  }
}

.pay_panel > :first-child {
  margin-top: 0;
}

.pay_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.pay_field {
  min-width: 0;
}

.pay_field_wide {
  grid-column: 1 / -1;
}

.pay_field label {
  display: block;
  color: #4a5665;
  font-size: 13px;
  font-weight: 500;
}

.pay_field input,
.pay_field select {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  color: #1f2a37;
  font: 400 15px Manrope, Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pay_field input:hover:not(:focus),
.pay_field select:hover:not(:focus) {
  border-color: #c9d3de;
}

.pay_field input[name="cardNumber"],
.pay_field input[name="expiry"],
.pay_field input[name="cvc"] {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
}

html[dir="rtl"] .pay_field input[dir="ltr"] {
  text-align: right;
}

.pay_field input::placeholder {
  color: #a3a8ae;
}

.pay_field input:focus,
.pay_field select:focus {
  border-color: #0a65f0;
  box-shadow: 0 0 0 3px rgba(64, 148, 250, 0.12);
}

.pay_field [aria-invalid="true"] {
  border-color: var(--pay-danger);
}

.pay_field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.pay_field_hint {
  margin-top: 4px !important;
  color: var(--pay-muted);
  font-size: 12px;
  font-weight: 300;
}

.pay_field_error {
  margin-top: 4px !important;
  color: var(--pay-danger);
  font-size: 13px;
}

.pay_input_wrap {
  position: relative;
}

.pay_input_wrap input {
  padding-inline-end: 120px;
}

.pay_card_brand {
  position: absolute;
  inset-inline-end: 10px;
  top: calc(50% + 3px);
  transform: translateY(-50%);
  padding: 3px 8px;
  border-radius: 5px;
  background: #eef4ff;
  color: #1d50a5;
  font: 600 11px Montserrat, Arial, sans-serif;
  letter-spacing: 0.2px;
  pointer-events: none;
}

.pay_card_brand:empty {
  display: none;
}

.pay_select {
  position: relative;
}

.pay_select select {
  padding-inline-end: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.pay_select::after {
  content: "";
  position: absolute;
  inset-inline-end: 20px;
  top: calc(50% + 2.5px);
  width: 8px;
  height: 8px;
  border-right: 1px solid #535353;
  border-bottom: 1px solid #535353;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.pay_room + .pay_room {
  margin-top: 18px;
}

.pay_room_title {
  margin-bottom: 8px !important;
  font-weight: 500;
}

.pay_list {
  margin-top: 12px !important;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.pay_list li {
  position: relative;
  padding-inline-start: 18px;
}

.pay_list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a94a1;
}

/* ---- consent and submit */

.pay_check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.pay_check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  background: #fff center / 0 no-repeat;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pay_check input:hover {
  border-color: var(--pay-blue);
}

.pay_check input:checked {
  border-color: var(--pay-blue);
  background-color: var(--pay-blue);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.2L5.6 9.7L11 4.3' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
}

.pay_check input:focus-visible {
  outline: 2px solid var(--pay-blue-dark);
  outline-offset: 2px;
}

.pay_check input[aria-invalid="true"] {
  border-color: var(--pay-danger);
}

.pay_check label {
  color: #363636;
  font-size: 14px;
  cursor: pointer;
}

.pay_check a {
  color: var(--pay-blue-dark);
}

.pay_submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--pay-blue);
  color: #fff;
  font: 500 17px Montserrat, Arial, sans-serif;
  box-shadow: 0 6px 16px rgba(64, 148, 250, 0.22);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.pay_submit:hover:not(:disabled) {
  background: var(--pay-blue-dark);
}

.pay_submit:focus-visible {
  outline: 2px solid var(--pay-blue-dark);
  outline-offset: 3px;
}

.pay_submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pay_spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pay_spin 0.8s linear infinite;
}

.pay_submit.is_busy .pay_spinner {
  display: block;
}

@keyframes pay_spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay_spinner {
    animation-duration: 2.4s;
  }
}

.pay_status {
  min-height: 22px;
  margin-top: 10px !important;
  color: var(--pay-muted);
  font-size: 14px;
  text-align: center;
}

.pay_status_danger {
  color: var(--pay-danger);
}

.pay_status_success {
  color: var(--pay-success);
  font-weight: 500;
}

/* ---- final states */

.pay_outcome {
  margin-top: 20px;
  padding: 24px;
  border: 2px solid #f0cf8a;
  border-radius: 8px;
  background: #fffaf0;
  outline: none;
}

.pay_outcome_success {
  border-color: #b7dfc9;
  background: #f3fbf6;
}

.pay_outcome h2 {
  color: #000;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.pay_outcome p {
  margin-top: 10px;
}

.pay_outcome_lead {
  color: #8a1c1c;
  font-size: 17px;
  font-weight: 600;
}

.pay_reference {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 12px 14px;
  border: 1px dashed #c9b88f;
  border-radius: 5px;
  background: #fff;
}

.pay_reference span {
  color: var(--pay-muted);
  font-size: 13px;
}

.pay_reference strong {
  font: 600 18px Montserrat, Arial, sans-serif;
  user-select: all;
  direction: ltr;
  unicode-bidi: isolate;
}

.pay_reference .pay_link {
  margin-top: 0;
}

.pay_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pay_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--pay-blue, #4094fa);
  border-radius: 5px;
  background: var(--pay-blue, #4094fa);
  color: #fff;
  font: 500 15px Manrope, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pay_button:hover:not(:disabled) {
  border-color: #287fec;
  background: #287fec;
}

.pay_button:focus-visible {
  outline: 2px solid #287fec;
  outline-offset: 3px;
}

.pay_button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pay_button_secondary {
  border-color: #d5e4f6;
  background: #fff;
  color: #287bdc;
}

.pay_button_secondary:hover:not(:disabled) {
  border-color: #4094fa;
  background: #f4f9ff;
}

@media (max-width: 600px) {
  .pay_checkout {
    font-size: 14px;
  }

  .pay_heading {
    font-size: 18px;
  }

  .pay_card,
  .pay_panel {
    padding: 16px 14px;
  }

  .pay_grid {
    grid-template-columns: 1fr;
  }

  .pay_stay_photo {
    width: 64px;
    height: 64px;
  }

  .pay_row {
    gap: 10px;
  }

  .pay_row dt small {
    display: block;
    white-space: normal;
  }

  .pay_input_wrap input {
    padding-inline-end: 96px;
  }

  .pay_actions .pay_button {
    flex: 1 1 100%;
  }
}


/* ---- status badge (confirmation, history, my bookings, manage booking) */

.pay_badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 12px;
  border: 1px solid #c9d2dc;
  border-radius: 50px;
  background: #fff;
  color: #4a5665;
  font: 500 13px/1.35 Manrope, Arial, sans-serif;
}

.pay_badge::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pay_badge_success {
  border-color: #a8d5b9;
  background: #f1faf4;
  color: #1f7a48;
}

.pay_badge_pending {
  border-color: #b9d6fb;
  background: #f3f8ff;
  color: #1f66c4;
}

.pay_badge_warning {
  border-color: #efcf8f;
  background: #fff8e8;
  color: #7a5200;
}

.pay_badge_danger {
  border-color: #efb5b5;
  background: #fff3f3;
  color: #b3261e;
}

/* ---- inline messages on the booking management pages */

.pay_message {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid #c4dfff;
  border-radius: 5px;
  background: #f6fafe;
  color: #1f2a37;
  font: 400 14px/1.6 Manrope, Arial, sans-serif;
  text-align: start;
  outline: none;
}

.pay_message[hidden] {
  display: none;
}

.pay_message_success {
  border-color: #b7dfc9;
  background: #f3fbf6;
  color: #17603a;
}

.pay_message_warning {
  border-color: #f0cf8a;
  background: #fff8e8;
  color: #5f4300;
}

.pay_message_danger {
  border-color: #f0b4b4;
  background: #fff3f3;
  color: #8a1c1c;
}

.pay_message a {
  color: inherit;
  font-weight: 600;
}

/* ---- confirmation page */

html[data-booking] .booking_confirmation_flex[aria-busy="true"] > :not(.booking_confirmation_icon, .booking_confirmation_eyebrow, .booking_confirmation_title, .booking_confirmation_subtitle) {
  display: none;
}

html[data-booking] .booking_confirmation_icon circle {
  transition: fill 0.2s ease;
}

html[data-booking] .booking_confirmation[data-tone="pending"] .booking_confirmation_icon circle {
  fill: #6aa9f5;
}

html[data-booking] .booking_confirmation[data-tone="warning"] .booking_confirmation_icon circle {
  fill: #e0a021;
}

html[data-booking] .booking_confirmation[data-tone="danger"] .booking_confirmation_icon circle {
  fill: #d9534f;
}

html[data-booking] .booking_confirmation[data-tone="neutral"] .booking_confirmation_icon circle {
  fill: #8a94a1;
}

html[data-booking] .booking_confirmation_title {
  outline: none;
}

html[data-booking] .booking_confirmation_subtitle {
  max-width: 520px;
}

html[data-booking] .booking_confirmation_photo[hidden],
html[data-booking] .booking_confirmation [hidden] {
  display: none !important;
}

.pay_facts {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 4px 16px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #fff;
  text-align: start;
}

.pay_facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
}

.pay_facts > div + div {
  border-top: 1px solid #edf0f4;
}

.pay_facts dt {
  color: #7e8b9c;
  font-size: 12px;
}

.pay_facts dd {
  margin: 0;
  color: #24364b;
  font-size: 14px;
  font-weight: 500;
  text-align: end;
  overflow-wrap: anywhere;
}

.pay_facts dd.pay_code {
  font-family: Montserrat, Arial, sans-serif;
  letter-spacing: 0.5px;
  user-select: all;
  direction: ltr;
  unicode-bidi: isolate;
}

.pay_facts small {
  display: block;
  color: #7e8b9c;
  font-size: 12px;
  font-weight: 400;
}

.pay_crypto {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #f0cf8a;
  border-radius: 12px;
  background: #fffaf0;
  text-align: start;
}

.pay_crypto[data-tone="success"],
.pay_crypto[data-tone="pending"][data-paid="true"] {
  border-color: #b7dfc9;
  background: #f3fbf6;
}

.pay_crypto[data-tone="danger"] {
  border-color: #f0b4b4;
  background: #fff3f3;
}

.pay_crypto h2 {
  margin: 0;
  color: #24364b;
  font-size: 16px;
  font-weight: 600;
}

.pay_crypto p {
  margin: 6px 0 0;
  color: #4a5665;
  font-size: 13px;
  line-height: 1.6;
}

.pay_crypto .pay_facts {
  padding: 0;
  border: 0;
  background: none;
}

.pay_crypto .pay_actions {
  margin-top: 14px;
}

.pay_crypto .pay_button {
  flex: 1 1 200px;
}

.pay_crypto_message {
  min-height: 0;
  color: #8a1c1c !important;
}

@media (max-width: 600px) {
  .pay_facts > div {
    flex-direction: column;
    gap: 2px;
  }

  .pay_facts dd {
    text-align: start;
  }
}

/* ---- booking history */

html[data-booking] .booking_list_card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pay_history_photo {
  flex: 0 0 auto;
  width: 120px;
  height: 104px;
  border-radius: 5px;
  object-fit: cover;
  background: #eef1f4;
}

.pay_history_body {
  flex: 1;
  min-width: 0;
}

.pay_history_head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.pay_history_body .pay_code {
  font-family: Montserrat, Arial, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
}

.pay_history_total {
  color: #000 !important;
  font-size: 16px !important;
  font-weight: 600;
}

.pay_history_total small {
  display: block;
  color: #6f6f6f;
  font-size: 12px;
  font-weight: 400;
}

.pay_history_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pay_history_actions .pay_button {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

@media (max-width: 600px) {
  html[data-booking] .booking_list_card {
    flex-direction: column;
  }

  .pay_history_photo {
    width: 100%;
    height: 150px;
  }
}

/* ---- my bookings and manage booking */

.my_bookings_card_top .pay_badge {
  align-self: flex-start;
  font-size: 14px;
  padding: 6px 14px;
}

.my_bookings_price small,
.find_booking_total small {
  display: block;
  color: #6f6f6f;
  font: 400 12px/1.4 Manrope, Arial, sans-serif;
}

.my_bookings_card_image.is_empty,
.find_booking_image.is_empty,
.change_date_hotel_image.is_empty {
  visibility: hidden;
}

.find_booking_summary .pay_badge {
  margin-top: 10px;
}

.find_booking_facts {
  margin-top: 12px;
}

.find_booking > .pay_message {
  margin: 16px 0 20px;
}

.booking_cancel_dialog .pay_message {
  margin-top: 14px;
}

.change_date_review .pay_message {
  margin: 12px 0;
}

.find_booking_detail_reference strong {
  font-size: 15px;
  overflow-wrap: anywhere;
  direction: ltr;
  unicode-bidi: isolate;
}

.pay_checkout :is(input, select, .pay_alert, .pay_outcome),
.pay_message {
  scroll-margin-top: 120px;
}

.change_date_review a.change_date_continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.change_date_review a.change_date_continue[hidden] {
  display: none;
}

/* ==== booking steps 1-3: one layout for all steps ==== */

/* Both columns start on the same line: the stepper carries no top margin of
   its own, so "Your selection" is level with the left column. */
html[data-booking] .booking_flow_page .booking_content {
  align-items: flex-start;
  gap: 24px;
}

html[data-booking] .booking_flow_page .booking_content .booking_left {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 1000px;
}

html[data-booking] .booking_flow_page .booking_content .stepper {
  margin-top: 0;
}

html[data-booking] .booking_flow_page .booking_content .hotel_room_summary_slot {
  flex: 0 0 305px;
  width: 305px;
  min-width: 0;
}

html[data-booking] .booking_flow_page .booking_content .hotel_room_summary {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-booking] .booking_flow_page .booking_content .hotel_room_summary_slot[hidden] {
  display: none;
}

html[data-booking] .booking_flow_page .booking_summary_hotel {
  margin: 5px 0 0;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 900px) {
  html[data-booking] .booking_flow_page .booking_content .booking_left,
  html[data-booking] .booking_flow_page .booking_content .hotel_room_summary_slot {
    flex: auto;
    width: 100%;
    max-width: none;
  }
}

/* The phone country control keeps one width before and after it is enhanced. */
html[data-booking] .booking_input_number .booking_country {
  flex: 0 0 145px;
  width: 145px;
  min-width: 145px;
}

html[data-booking] .booking_input_number .booking_phone_flag:not([src]) {
  visibility: hidden;
}

@media (max-width: 600px) {
  html[data-booking] .booking_input_number .booking_country {
    flex-basis: 135px;
    width: 135px;
    min-width: 135px;
  }
}

/* ---- skeletons until the checkout is restored (no sample data in the HTML) */

html[data-booking] .hotel_room_summary[data-loading] :is(.booking_summary_hotel, .hotel_room_summary_details, .hotel_room_summary_date_value, .hotel_room_summary_guests_value, .hotel_room_summary_total_price):empty::before,
html[data-booking] .review_card[data-loading] :is(.review_card_text, .review_card_link, .review_card_number, .review_card_ins):empty::before,
html[data-booking] .breadcrumbs a[data-booking-crumb]:empty::before,
html[data-booking] .hotel_room_summary[data-loading] .hotel_room_summary_selections:empty::before {
  content: "";
  display: inline-block;
  width: var(--booking-skeleton-width, 9em);
  max-width: 100%;
  height: 0.9em;
  border-radius: 6px;
  vertical-align: middle;
  background: linear-gradient(100deg, #edf1f5 22%, #f7f9fb 40%, #edf1f5 58%);
  background-size: 260% 100%;
  animation: booking_skeleton_wave 1.35s ease-in-out infinite;
}

html[data-booking] .hotel_room_summary[data-loading] .booking_summary_hotel {
  --booking-skeleton-width: 70%;
}

html[data-booking] .hotel_room_summary[data-loading] .hotel_room_summary_details {
  --booking-skeleton-width: 55%;
}

html[data-booking] .hotel_room_summary[data-loading] .hotel_room_summary_date_value {
  --booking-skeleton-width: 6.5em;
}

html[data-booking] .hotel_room_summary[data-loading] .hotel_room_summary_guests_value {
  --booking-skeleton-width: 5em;
}

html[data-booking] .hotel_room_summary[data-loading] .hotel_room_summary_total_price {
  --booking-skeleton-width: 4.5em;
}

html[data-booking] .breadcrumbs a[data-booking-crumb] {
  --booking-skeleton-width: 8em;
}

html[data-booking] .review_card[data-loading] .review_card_link {
  --booking-skeleton-width: 13em;
}

html[data-booking] .review_card[data-loading] .review_card_number {
  --booking-skeleton-width: 8em;
}

html[data-booking] .review_card[data-loading] .review_card_ins {
  --booking-skeleton-width: 6em;
}

/* One room line: photo and two lines of text. */
html[data-booking] .hotel_room_summary[data-loading] .hotel_room_summary_selections:empty::before {
  display: block;
  width: 100%;
  height: 112px;
  margin: 14px 0;
  border-radius: 0;
  background:
    linear-gradient(#edf1f5, #edf1f5) 0 0 / 100px 50px no-repeat,
    linear-gradient(#edf1f5, #edf1f5) 108px 4px / calc(100% - 108px) 16px no-repeat,
    linear-gradient(#edf1f5, #edf1f5) 108px 30px / 45% 12px no-repeat,
    linear-gradient(#edf1f5, #edf1f5) 108px 54px / 52px 18px no-repeat;
  animation: none;
}

html[data-booking] .review_card[data-loading] .review_card_text:empty,
html[data-booking] .review_card[data-loading] .review_card_ins:empty {
  min-height: 1.4em;
}

html[data-booking] .review_card[data-loading] .review_card_link:empty {
  display: block;
  min-height: 27px;
}

@media (prefers-reduced-motion: reduce) {
  html[data-booking] :is(.hotel_room_summary, .review_card, .breadcrumbs) :empty::before {
    animation: none !important;
  }
}

/* ---- review step: details are edited in place */

html[data-booking] .review_card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-booking] .review_card.is_editing {
  border-color: #4094fa;
  box-shadow: 0 0 0 3px rgba(64, 148, 250, 0.08);
}

html[data-booking] .review_card_edit[hidden],
html[data-booking] .review_card_content[hidden],
html[data-booking] .review_editor [hidden] {
  display: none !important;
}

html[data-booking] .review_card_flex {
  width: auto;
  max-width: 100%;
  justify-content: flex-start;
  gap: 16px;
}

html[data-booking] .review_card_flex > :first-child {
  flex: 0 0 auto;
  min-width: 130px;
}

html[data-booking] .review_card_ins {
  overflow-wrap: anywhere;
}

html[data-booking] .review_editor {
  margin-top: 4px;
  animation: booking_reveal 0.2s ease-out both;
}

html[data-booking] .review_editor_label {
  display: block;
  color: #363636;
  font-size: 14px;
  font-weight: 300;
}

html[data-booking] .review_editor .booking_field textarea {
  height: 110px;
}

html[data-booking] .review_editor_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

html[data-booking] :is(.review_editor_save, .review_editor_cancel) {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 5px;
  font: 500 15px Manrope, Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

html[data-booking] .review_editor_save {
  border: 1px solid #4094fa;
  background: #4094fa;
  color: #fff;
}

html[data-booking] .review_editor_save:hover:not(:disabled) {
  border-color: #287fec;
  background: #287fec;
}

html[data-booking] .review_editor_save:disabled {
  opacity: 0.6;
  cursor: progress;
}

html[data-booking] .review_editor_cancel {
  border: 1px solid #d5e4f6;
  background: #fff;
  color: #287bdc;
}

html[data-booking] .review_editor_cancel:hover {
  border-color: #4094fa;
  background: #f4f9ff;
}

html[data-booking] :is(.review_editor_save, .review_editor_cancel):focus-visible {
  outline: 2px solid #287fec;
  outline-offset: 2px;
}

html[data-booking] .booking_unavailable_note {
  margin-top: 8px;
  color: #535353;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html[data-booking] .review_editor,
  html[data-booking] .review_card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 600px) {
  /* Expiry and security code stay side by side on phones. */
  .pay_checkout .pay_grid_card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pay_options_methods {
    grid-template-columns: 1fr;
  }

  html[data-booking] .review_editor_actions > * {
    flex: 1 1 100%;
  }

  html[data-booking] .review_card_flex {
    min-width: 0;
    width: 100%;
  }
}
