/* ===== SHARED CHECKOUT / CONFIRMATION STYLES ===== */

/* [hidden] must win over the display rules below */
[hidden] { display: none !important; }

.checkout-body {
  background: var(--sand);
  min-height: 100vh;
}

.co-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.co-back {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 16px;
}
.co-back:hover { color: var(--teal); }

.co-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* --- Header --- */
.co-head {
  background: var(--teal);
  color: var(--white);
  padding: 24px 26px;
}
.co-step {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 4px;
}
.co-head h1 { font-size: 1.4rem; font-weight: 700; }

.co-body { padding: 22px 26px 26px; }

/* --- Summary lines --- */
.co-summary { margin-bottom: 4px; }
.co-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
}
.co-line-label { font-size: 0.88rem; color: var(--light); flex-shrink: 0; }
.co-line-val   { font-size: 0.92rem; font-weight: 600; color: var(--dark); text-align: right; }
.co-paid       { color: #2e7d32; }

.co-breakdown { margin-top: 4px; }
.co-breakdown .co-line { border-bottom: none; }

.co-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--teal-lt);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 8px 0 20px;
  font-weight: 600;
  color: var(--teal);
}
.co-total-amt { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }

/* --- Test mode banner --- */
.co-testmode {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fff8e1;
  border: 1px solid #f0d98c;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: #7a6320;
  line-height: 1.5;
}
.co-testmode strong { font-size: 0.86rem; color: #8a6d1a; }

/* --- Error --- */
.co-error {
  background: #fdecea;
  color: #c62828;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* --- Pay button --- */
.co-pay {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--coral);
  color: var(--white);
  padding: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.co-pay:hover:not(:disabled)  { background: #d9553d; }
.co-pay:active:not(:disabled) { transform: scale(0.99); }
.co-pay:disabled { background: #ccc; cursor: not-allowed; }

.co-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--light);
}

.co-secure {
  text-align: center;
  font-size: 0.76rem;
  color: var(--light);
  margin-top: 12px;
  line-height: 1.5;
}

.co-help {
  text-align: center;
  font-size: 0.85rem;
  color: var(--light);
  margin-top: 20px;
}
.co-help a { color: var(--teal); font-weight: 600; }

/* --- Processing overlay --- */
.co-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.co-overlay p { font-size: 0.95rem; font-weight: 500; color: var(--mid); }
.co-spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--teal-lt);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: co-spin 0.8s linear infinite;
}
@keyframes co-spin { to { transform: rotate(360deg); } }

/* ===== CONFIRMATION PAGE ===== */

.cf-hero {
  background: #2e7d32;
  color: var(--white);
  padding: 34px 26px 30px;
  text-align: center;
}
.cf-check { margin-bottom: 14px; }
.cf-hero h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.cf-hero p  { font-size: 0.92rem; opacity: 0.9; }

.cf-circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: cf-draw 0.5s ease-out forwards;
}
.cf-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: cf-draw 0.35s ease-out 0.45s forwards;
}
@keyframes cf-draw { to { stroke-dashoffset: 0; } }

.cf-ref {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--sand);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}
.cf-ref-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}
.cf-ref-val {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.04em;
}

.cf-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #e8f5e9;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 0.85rem;
  color: #2e7d32;
  line-height: 1.5;
}
.cf-notice strong { font-size: 0.88rem; }

.cf-next { margin: 22px 0 20px; }
.cf-next h3 { font-size: 0.95rem; margin-bottom: 12px; }
.cf-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.55;
  padding: 8px 0;
}
.cf-step-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.cf-step strong { color: var(--dark); }

.cf-wa {
  display: block;
  text-align: center;
  background: #25D366;
  color: var(--white);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.cf-wa:hover { background: #1ebe5a; }

.cf-addr {
  background: var(--sand);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.65;
}
.cf-addr a { color: var(--teal); font-weight: 600; }

.cf-mybookings {
  display: block;
  text-align: center;
  background: var(--sand);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 12px;
  padding: 13px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 18px;
}
.cf-mybookings:hover { background: var(--teal-lt); }

.cf-home {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
}
.cf-home:hover { color: var(--teal); }

/* ===== MY BOOKINGS ===== */

.mb-head { margin-bottom: 18px; }
.mb-head h1 { font-size: 1.6rem; font-weight: 700; }
.mb-head p  { font-size: 0.9rem; color: var(--light); margin-top: 2px; }

.mb-section {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
  margin: 22px 0 10px;
}
.mb-section:first-child { margin-top: 0; }

.mb-card { margin-bottom: 14px; }

.mb-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 26px 14px;
}
.mb-ref {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--dark);
}
.mb-nights { font-size: 0.82rem; color: var(--light); margin-top: 2px; }

.mb-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.mb-status-upcoming { background: var(--teal-lt); color: var(--teal); }
.mb-status-today    { background: #e8f5e9;       color: #2e7d32; }
.mb-status-past     { background: #f0f0f0;       color: var(--light); }

.mb-addr {
  background: var(--sand);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
  margin-top: 16px;
}
.mb-addr a { color: var(--teal); font-weight: 600; }

.mb-wa {
  display: block;
  text-align: center;
  background: #25D366;
  color: var(--white);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 14px;
}
.mb-wa:hover { background: #1ebe5a; }

.mb-empty-icon  { font-size: 2.6rem; margin-bottom: 10px; }
.mb-empty-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.mb-empty-text  {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .mb-card-top { padding: 16px 18px 12px; }
  .mb-ref { font-size: 0.98rem; }
}

/* --- Mobile --- */
@media (max-width: 520px) {
  .co-wrap { padding: 16px 12px 40px; }
  .co-body { padding: 20px 18px 22px; }
  .co-head { padding: 20px 18px; }
  .cf-hero { padding: 28px 18px 26px; }
  .co-head h1, .cf-hero h1 { font-size: 1.3rem; }
  .co-total-amt { font-size: 1.25rem; }
  .co-line-val  { font-size: 0.88rem; }
}

/* ===== GUEST CHECK-IN CALL-TO-ACTION ===== */

.cf-action {
  background: var(--teal-lt);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.cf-action strong { display: block; margin-bottom: 4px; color: var(--teal2); }
.cf-action p { font-size: 0.87rem; color: var(--mid); margin-bottom: 12px; }

.cf-checkin {
  display: block;
  padding: 13px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 600;
  text-align: center;
}
.cf-checkin:hover { background: var(--teal2); }

.mb-checkin {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 14px;
}
.mb-checkin:hover { background: var(--teal2); }
