/* ====================================================================================================
   ESCA - Booking confirmation page (templates/tmpl-booking-confirmation.php)
   Loaded only on that template. Designed to be screenshot- and print-friendly.
   ==================================================================================================== */

.booking-confirmation-page .white-box { padding-bottom: 10px; }

.bc-header { margin-bottom: 30px; }
.bc-lead { font-size: 1.05em; max-width: 46em; }
.bc-muted { color: #6b7280; font-size: 0.92em; }

/* Summary grid ------------------------------------------------------------------------------------ */
.bc-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    margin: 0 0 30px;
    padding: 0;
    border-top: 1px solid #e5e7eb;
}
.bc-summary .bc-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}
.bc-summary dt { font-weight: 700; color: #1c2b4a; margin: 0; }
.bc-summary dd { margin: 0; }
.bc-row-event { grid-column: 1 / -1; }
.bc-row-registrant, .bc-row-attendee { grid-column: auto; }
.bc-row-tickets { grid-column: 1 / -1; }
.bc-row-due.is-due dd strong { color: #b91c1c; font-size: 1.15em; }
.bc-reference { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.15em; letter-spacing: 0.02em; }

.typography ol.bc-attendees, .typography ul.bc-tickets { margin: 0; padding: 0; list-style: none; }
.typography ol.bc-attendees li, .typography ul.bc-tickets li { padding: 0; margin: 0 0 4px; }
.typography ol.bc-attendees li:before, .typography ul.bc-tickets li:before { display: none; }
.typography ol.bc-attendees { counter-reset: attendee; }
.typography ol.bc-attendees li:before { display: inline; content: counter(attendee) '. '; counter-increment: attendee; color: #6b7280; }
.bc-tickets li { display: flex; justify-content: space-between; gap: 20px; max-width: 520px; }
.bc-ticket-price { white-space: nowrap; }

.bc-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.9em; font-weight: 700; background: #e5e7eb; color: #1f2937; }
.bc-status-1 { background: #dcfce7; color: #166534; }            /* Approved / confirmed */
.bc-status-5, .bc-status-4, .bc-status-0 { background: #fef3c7; color: #92400e; }  /* Awaiting payment / pending */
.bc-status-2, .bc-status-3 { background: #fee2e2; color: #991b1b; }               /* Rejected / cancelled */

/* Payment method sections ------------------------------------------------------------------------ */
.bc-method { margin: 0 0 30px; }
.bc-method-title { margin: 0 0 12px; }
.bc-method-intro { max-width: 46em; }

.bc-callout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
    padding: 18px 20px;
    background: #f3f6fb;
    border-left: 4px solid #1c2b4a;
}
.bc-callout > div { display: flex; flex-direction: column; gap: 4px; }
.bc-callout span { font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.bc-callout strong { font-size: 1.15em; color: #1c2b4a; }

.bc-instructions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 20px 0; }
.bc-instruction-block { border: 1px solid #e5e7eb; padding: 18px 20px; }
.bc-instruction-block h4 { margin: 0 0 12px; }
.bc-instruction-block dl { margin: 0; }
.bc-instruction-block dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
.bc-instruction-block dt { font-weight: 700; margin: 0; }
.bc-instruction-block dd { margin: 0; word-break: break-word; }

/* Unfilled client placeholders are highlighted so they are impossible to miss. */
.bc-value.is-placeholder { background: #fff3bf; color: #7c2d12; padding: 0 4px; border-radius: 3px; font-weight: 600; }

.bc-method-note, .bc-method-contact { max-width: 46em; }

.bc-notice { padding: 18px 20px; border-left: 4px solid #6b7280; background: #f9fafb; }
.bc-notice p:last-child { margin-bottom: 0; }
.bc-notice-success { border-left-color: #16a34a; background: #f0fdf4; }
.bc-notice-info { border-left-color: #2563eb; background: #eff6ff; }

.bc-actions { margin: 10px 0 20px; }
.bc-footnote { font-size: 0.9em; color: #6b7280; }

/* Responsive -------------------------------------------------------------------------------------- */
@media screen and (max-width: 760px) {
    .bc-summary, .bc-instructions, .bc-callout { grid-template-columns: minmax(0, 1fr); }
    .bc-summary .bc-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .bc-instruction-block dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Print / save as PDF ----------------------------------------------------------------------------- */
@media print {
    header, footer, #masthead, .bc-actions, .foo-soc-media, .search-btn, .masthead-caption { display: none !important; }
    body { background: #fff !important; }
    .page-intro, .white-box { padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
    .bc-summary { gap: 0 24px; }
    .bc-value.is-placeholder { background: none; }
    a[href]:after { content: none !important; }
}
