/**
 * Queens Homestay — Post-Checkout Page Styles
 *
 * Covers: Booking Confirmed, Payment Failed, Invalid/Expired,
 * and the native Easy Hotel checkout thank-you panel.
 *
 * Design tokens are derived from the Almaris theme palette:
 *   --color-primary:   #ab8965  (warm gold)
 *   --font-secondary:  Cormorant Garamond (serif display)
 *   --font-primary:    Manrope (body sans-serif)
 *   --dark-color:      #181818
 *   --color-body:      #606060
 */

/* ── Layout wrapper ────────────────────────────────────────── */
.qh-wc-thankyou {
  max-width: 820px;
  margin: 60px auto 80px;
  padding: 0 24px;
  font-family: var(--font-primary, 'Manrope', sans-serif);
}

/* ── Status Panel (shared base) ────────────────────────────── */
.qh-status-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 64px 48px;
  border: 1px solid rgba(171, 137, 101, 0.2);
  border-radius: 2px;
  background: #faf8f5;
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.qh-status-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

/* Decorative corner marks */
.qh-status-panel::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--color-primary, #ab8965);
  opacity: 0.4;
}

/* ── State colours ─────────────────────────────────────────── */
.qh-status-panel--success::before { background: var(--color-primary, #ab8965); }
.qh-status-panel--failed::before  { background: #b94040; }
.qh-status-panel--neutral::before { background: #888; }

/* ── Panel icon ────────────────────────────────────────────── */
.qh-status-panel__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.qh-status-panel__icon svg {
  width: 48px;
  height: 48px;
}

.qh-status-panel--success .qh-status-panel__icon {
  background: rgba(171, 137, 101, 0.1);
  border: 1px solid rgba(171, 137, 101, 0.3);
  color: var(--color-primary, #ab8965);
}
.qh-status-panel--failed .qh-status-panel__icon {
  background: rgba(185, 64, 64, 0.08);
  border: 1px solid rgba(185, 64, 64, 0.25);
  color: #b94040;
}
.qh-status-panel--neutral .qh-status-panel__icon {
  background: rgba(96, 96, 96, 0.07);
  border: 1px solid rgba(96, 96, 96, 0.2);
  color: #888;
}

/* ── Panel body ────────────────────────────────────────────── */
.qh-status-panel__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Eyebrow label */
.qh-status-panel__eyebrow {
  display: block;
  font-family: var(--font-primary, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.qh-status-panel--success .qh-status-panel__eyebrow { color: var(--color-primary, #ab8965); }
.qh-status-panel--failed  .qh-status-panel__eyebrow { color: #b94040; }
.qh-status-panel--neutral .qh-status-panel__eyebrow { color: #888; }

/* Main heading */
.qh-status-panel__title {
  font-family: var(--font-secondary, 'Cormorant Garamond', serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 300;
  color: var(--dark-color, #181818);
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0 0 18px;
}

/* Sub-message */
.qh-status-panel__message {
  font-family: var(--font-primary, 'Manrope', sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-body, #606060);
  max-width: 520px;
  margin: 0 0 36px;
}
.qh-status-panel__message strong { color: var(--dark-color, #181818); font-weight: 600; }

.qh-status-panel__filter-msg {
  font-size: 13px;
  color: #888;
  margin: -20px 0 28px;
  font-style: italic;
}

/* ── Booking details grid ──────────────────────────────────── */
.qh-booking-details {
  width: 100%;
  margin-bottom: 40px;
  text-align: left;
}

.qh-booking-details__heading {
  font-family: var(--font-primary, 'Manrope', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(171, 137, 101, 0.15);
}

.qh-booking-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* Individual detail card */
.qh-detail-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(171, 137, 101, 0.15);
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qh-detail-card:hover {
  border-color: rgba(171, 137, 101, 0.35);
  box-shadow: 0 2px 12px rgba(171, 137, 101, 0.08);
}

.qh-detail-card__icon {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.qh-detail-card__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary, #ab8965);
  opacity: 0.7;
}

.qh-detail-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
}

.qh-detail-card__value {
  font-family: var(--font-secondary, 'Cormorant Garamond', serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--dark-color, #181818);
  line-height: 1.3;
}

/* Failed panel meta strip */
.qh-status-panel__meta {
  margin-bottom: 32px;
  padding: 14px 20px;
  background: rgba(185, 64, 64, 0.04);
  border: 1px solid rgba(185, 64, 64, 0.15);
  border-radius: 2px;
  width: 100%;
  max-width: 360px;
}
.qh-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.qh-meta-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 600;
}
.qh-meta-value {
  font-family: var(--font-secondary, 'Cormorant Garamond', serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color, #181818);
}

/* ── Action buttons ────────────────────────────────────────── */
.qh-status-panel__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.qh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary, 'Manrope', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

/* Primary */
.qh-btn--primary {
  background: var(--color-primary, #ab8965);
  color: #fff !important;
  border-color: var(--color-primary, #ab8965);
}
.qh-btn--primary:hover {
  background: #9a7a58;
  border-color: #9a7a58;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(171, 137, 101, 0.3);
}

/* Ghost */
.qh-btn--ghost {
  background: transparent;
  color: var(--dark-color, #181818) !important;
  border-color: rgba(24, 24, 24, 0.25);
}
.qh-btn--ghost:hover {
  border-color: var(--color-primary, #ab8965);
  color: var(--color-primary, #ab8965) !important;
}

/* Text link */
.qh-btn--text {
  background: transparent;
  color: var(--color-body, #606060) !important;
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: rgba(96,96,96,0.3);
  text-underline-offset: 3px;
}
.qh-btn--text:hover {
  color: var(--color-primary, #ab8965) !important;
  text-decoration-color: var(--color-primary, #ab8965);
}

/* ══════════════════════════════════════════════════════════════
   Native Easy Hotel checkout — thank-you panel override
══════════════════════════════════════════════════════════════ */
.eshb-native-checkout--thankyou {
  font-family: var(--font-primary, 'Manrope', sans-serif);
}

.eshb-native-checkout--thankyou .eshb-card--success {
  background: #faf8f5;
  border: 1px solid rgba(171, 137, 101, 0.2);
  border-top: 2px solid var(--color-primary, #ab8965);
  border-radius: 2px;
  padding: 56px 48px;
  text-align: center;
}

.eshb-native-checkout--thankyou .eshb-card--success h2 {
  font-family: var(--font-secondary, 'Cormorant Garamond', serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 300;
  color: var(--dark-color, #181818);
  margin-bottom: 12px;
}

.eshb-native-checkout--thankyou .eshb-card--success > p {
  font-size: 15px;
  color: var(--color-body, #606060);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Booking meta list */
.eshb-thankyou-meta {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  text-align: left;
}

.eshb-thankyou-meta li {
  background: #fff;
  border: 1px solid rgba(171, 137, 101, 0.15);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--dark-color, #181818);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eshb-thankyou-meta li strong {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #aaa;
  font-family: var(--font-primary, 'Manrope', sans-serif);
  display: block;
  margin-bottom: 2px;
}

/* Grand total row */
.eshb-thankyou-grand {
  margin: 12px 0;
  padding: 16px 20px;
  background: rgba(171, 137, 101, 0.07);
  border: 1px solid rgba(171, 137, 101, 0.2);
  border-radius: 2px;
  font-size: 16px;
  color: var(--dark-color, #181818);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eshb-thankyou-grand strong {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
}

/* Action button in native thankyou */
.eshb-thankyou-actions {
  margin-top: 28px;
  text-align: center;
}

.eshb-thankyou-actions .eshb-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary, 'Manrope', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 30px;
  background: var(--color-primary, #ab8965);
  color: #fff !important;
  border: 1px solid var(--color-primary, #ab8965);
  border-radius: 1px;
  transition: all 0.2s ease;
}

.eshb-thankyou-actions .eshb-btn-submit:hover {
  background: #9a7a58;
  border-color: #9a7a58;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(171, 137, 101, 0.3);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .qh-status-panel {
    padding: 40px 24px;
  }
  .qh-status-panel__icon {
    width: 56px;
    height: 56px;
  }
  .qh-status-panel__icon svg {
    width: 36px;
    height: 36px;
  }
  .qh-booking-details__grid {
    grid-template-columns: 1fr 1fr;
  }
  .qh-status-panel__actions {
    flex-direction: column;
    width: 100%;
  }
  .qh-btn {
    width: 100%;
    text-align: center;
  }
  .eshb-native-checkout--thankyou .eshb-card--success {
    padding: 36px 24px;
  }
  .eshb-thankyou-meta {
    grid-template-columns: 1fr;
  }
  .eshb-thankyou-grand {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .qh-booking-details__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Page-level context: remove WooCommerce default notice styling ── */
.woocommerce-order .woocommerce-notice {
  /* suppressed — our qh-status-panel replaces it */
  display: none !important;
}
.woocommerce-order .woocommerce-thankyou-order-received {
  display: none !important;
}
