.booking-payment-confirmation {
  --payment-gold: var(--gold, #d2bb90);
  --payment-muted: var(--muted, #b9c3ce);
  width: min(100%, 620px);
  margin-inline: auto;
  padding: clamp(18px, 5vw, 38px);
  border: 1px solid #d2bb9033;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, #1e3941 0, #101e2b 58%);
  color: #f3f4f2;
  text-align: center;
  scroll-margin-block-start: 108px;
}

.guest-payment-page body {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  padding: clamp(12px, 3vw, 24px);
}

.guest-payment-page main { box-sizing: border-box; }
.guest-payment-page main a { color: var(--payment-gold, #d2bb90); }
.guest-payment-page [data-guest-payment-return] { text-align: center; }
.guest-payment-page [data-guest-return-status] { margin: 0; color: var(--muted, #b9c3ce); }
.guest-payment-page [data-guest-payment-return] [hidden] { display: none !important; }

.guest-payment-page .booking-payment-receipt-frame {
  --receipt-frame-size: calc(23rem + min(212px, 30svh));
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  block-size: min(var(--receipt-frame-size), calc(100svh - 2 * clamp(12px, 3vw, 24px)));
  overflow-y: auto;
}
@media (max-width: 420px) {
  .guest-payment-page .booking-payment-receipt-frame .booking-payment-heading h2 {
    font-size: clamp(24px, 7vw, 34px);
  }
}
@media (max-width: 420px) and (max-height: 640px) {
  .guest-payment-page .booking-payment-receipt-frame {
    --receipt-frame-size: calc(25.375rem + min(154px, 24svh));
  }
}
.booking-payment-awaiting {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid #d2bb9066;
  border-radius: 50%;
  background: #d2bb9014;
  color: var(--payment-gold);
}
.booking-payment-compass-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle, #153549 0, transparent 65%);
}
.booking-payment-compass-preview img {
  width: 46%;
  height: auto;
  mix-blend-mode: screen;
}

.booking-payment-confirmation[hidden], .booking-payment-confirmation [hidden] { display: none !important; }
.booking-payment-confirmation p, .booking-payment-confirmation h2 { margin: 0; }
.booking-payment-heading { display: grid; justify-items: center; gap: 8px; }
.booking-payment-heading h2 { font-size: clamp(34px, 7vw, 56px); line-height: 1.1; }
.booking-payment-heading h2:focus { outline: none; }
.booking-payment-heading .booking-payment-lead { font-weight: 700; }
.booking-payment-heading p:not(.booking-payment-lead), .booking-payment-countdown, .booking-payment-status {
  color: var(--payment-muted);
}

.booking-payment-check {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin-block-end: 3px;
  border: 1px solid #81cb9e78;
  border-radius: 50%;
  background: #81cb9e17;
  color: #a4dfb9;
}

.booking-payment-compass {
  --dl-compass-size: min(212px, 30svh);
  width: min(100%, var(--dl-compass-size));
  margin-inline: auto;
}
.booking-payment-compass driver-footer-compass {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  mix-blend-mode: screen;
}
.booking-payment-compass driver-footer-compass > img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46%;
  height: 46%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.booking-payment-countdown, .booking-payment-status { font-size: .875rem; }
.booking-payment-countdown span { font-variant-numeric: tabular-nums; }
.booking-payment-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 14px; }
.booking-payment-actions button, .booking-payment-welcome button {
  min-block-size: 44px;
  border: 1px solid var(--payment-gold);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.booking-payment-actions button { padding: 8px 14px; }
.booking-payment-stay, .booking-payment-welcome button { background: #08131d; color: inherit; }
.booking-payment-home { background: var(--payment-gold); color: #08131d; }
.booking-payment-home:hover { background: #e8d1a7; }
.booking-payment-actions button:focus-visible, .booking-payment-welcome button:focus-visible {
  outline: 2px solid var(--payment-gold);
  outline-offset: 4px;
}

[data-booking-payment-welcome] {
  position: absolute;
  inset: 100% 0 auto;
  padding-inline: 12px;
  pointer-events: none;
}

.booking-payment-welcome {
  --payment-gold: var(--gold, #d2bb90);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  width: min(100%, 432px);
  margin: 12px auto;
  padding: clamp(10px, 2.8vw, 16px);
  border: 1px solid #d2bb9066;
  border-radius: 16px;
  background: radial-gradient(ellipse at 0 0, #203942, transparent 65%), #101e2b;
  box-shadow: 0 14px 34px #020a13a0, inset 0 1px #f3e3c31a;
  color: #f3f4f2;
  pointer-events: auto;
}
.booking-payment-welcome::before {
  content: "";
  position: absolute;
  inset: -1px 14px auto;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, #ead2a4, transparent);
}
.booking-payment-welcome-emblem {
  display: grid;
  place-items: center;
  inline-size: clamp(34px, 10vw, 46px);
  aspect-ratio: 1;
  border: 1px solid #94dbb286;
  border-radius: 50%;
  background: radial-gradient(circle, #89d5a62b, #89d5a609);
  box-shadow: 0 0 0 4px #89d5a611;
  color: #a4dfb9;
}
.booking-payment-welcome p { display: grid; gap: 3px; margin: 0; line-height: 1.28; }
.booking-payment-welcome p > span { color: #b9c3ce; font-size: .8rem; }
.booking-payment-welcome p > .booking-payment-welcome-brand {
  color: #e5cda4;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.booking-payment-welcome p > strong { font-size: clamp(.92rem, 2.7vw, 1.05rem); }
.booking-payment-welcome button {
  min-inline-size: 44px;
  border-color: #d2bb904d;
  color: #e5cda4;
  font-size: 1.25rem;
}
.booking-payment-welcome button:hover { background: #1a2b3a; }

@media (max-width: 370px) {
  .booking-payment-actions button { inline-size: 100%; }
}
@media (max-width: 420px) and (max-height: 640px) {
  .guest-payment-page .booking-payment-compass {
    --dl-compass-size: min(154px, 24svh);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .booking-payment-confirmation { animation: booking-payment-appear .2s ease-out both; }
  .booking-payment-welcome { animation: booking-payment-welcome-enter .28s ease-out both; }
  @keyframes booking-payment-appear { from { opacity: .35; } to { opacity: 1; } }
  @keyframes booking-payment-welcome-enter { from { opacity: 0; transform: translateY(-6px); } }
}
