/* ===================== Barmajax — order page (order.php) ===================== */
/* The fixed header is the top bar (~40px) plus a navbar of max(88px, 15vh) on desktop. */
.op-page { background: var(--bg-body); padding: calc(max(88px, 15vh) + 90px) 0 70px; min-height: 70vh; }
.op-container { max-width: 1040px; }

.op-head { text-align: center; margin-bottom: 26px; }
.op-eyebrow { margin: 0 0 4px; color: var(--text-secondary); font-weight: 600; }
.op-number { font-family: var(--font-mono); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }
.op-pill { display: inline-block; padding: 6px 16px; border-radius: 30px; font-size: 0.88rem; font-weight: 700; background: var(--nav-hover-bg, rgba(0, 0, 0, 0.05)); color: var(--text-primary); }
.op-pill-unpaid, .op-pill-failed { background: rgba(230, 150, 0, 0.14); color: #9a6200; }
.op-pill-pending_review { background: rgba(0, 120, 200, 0.12); color: #0a5f9e; }
.op-pill-paid, .op-pill-active { background: rgba(20, 160, 90, 0.14); color: #137347; }
.op-pill-cancelled, .op-pill-refunded { background: rgba(200, 40, 40, 0.12); color: #a42626; }
:root[data-theme="dark"] .op-pill-unpaid, :root[data-theme="dark"] .op-pill-failed { color: #ffc861; }
:root[data-theme="dark"] .op-pill-pending_review { color: #7cc4ff; }
:root[data-theme="dark"] .op-pill-paid, :root[data-theme="dark"] .op-pill-active { color: #6fe0a8; }
:root[data-theme="dark"] .op-pill-cancelled, :root[data-theme="dark"] .op-pill-refunded { color: #ff8c8c; }

.op-steps { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 0 auto 28px; max-width: 560px; }
.op-step { flex: 1; position: relative; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); padding-top: 38px; }
.op-step::before { content: ""; position: absolute; top: 13px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--border-color); }
.op-step:first-child::before { display: none; }
.op-step.is-done::before, .op-step.is-current::before { background: var(--svc-highlight); }
.op-step-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-color); background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; z-index: 1; }
.op-step.is-done .op-step-dot { background: var(--svc-highlight); border-color: var(--svc-highlight); color: #fff; }
.op-step.is-current .op-step-dot { border-color: var(--svc-highlight); box-shadow: 0 0 0 4px rgba(0, 184, 204, 0.18); }
.op-step.is-done, .op-step.is-current { color: var(--text-primary); }

.op-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.op-main, .op-summary { padding: 26px; }
.op-main p { color: var(--text-secondary); line-height: 1.8; }
.op-failed { color: #a42626 !important; font-weight: 600; }

.op-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; padding: 16px 18px; border-radius: 12px; background: var(--nav-hover-bg, rgba(0, 0, 0, 0.04)); margin: 6px 0 20px; }
.op-amount span { color: var(--text-secondary); font-weight: 600; }
.op-amount strong { font-family: var(--font-heading); font-size: 1.9rem; color: var(--text-primary); }
.sv-link-btn.is-copied::after { content: " ✓"; }

.op-method h3, .op-proof h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }
.op-instructions { padding: 14px 16px; border: 1px dashed var(--border-color); border-radius: 10px; color: var(--text-primary); line-height: 1.9; margin-bottom: 14px; overflow-wrap: anywhere; }
.op-qr { display: block; width: 180px; height: 180px; object-fit: contain; border-radius: 10px; background: #fff; padding: 8px; margin: 0 0 14px; }

.op-proof { display: grid; gap: 8px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border-color); }
.op-proof .btn-brand { margin-top: 8px; }
.op-gateway { margin-top: 6px; }

/* Paid: thank-you message and the client portal invitation */
.op-thanks { text-align: center; padding: 8px 0 4px; }
.op-thanks-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #1a9e55; color: #fff; font-size: 2rem; box-shadow: 0 10px 22px rgba(26, 158, 85, 0.28);
}
.op-thanks h2 { font-family: var(--font-heading); font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 800; color: var(--text-primary); margin: 0 0 10px; }
.op-thanks p { max-width: 520px; margin: 0 auto; }
.op-portal { margin-top: 24px; padding: 20px 22px; border-radius: 14px; border: 1.5px dashed var(--svc-highlight); background: rgba(0, 184, 204, 0.06); }
.op-portal h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); margin: 0 0 8px; }
.op-portal h3 i { color: var(--svc-highlight); margin-inline-end: 6px; }
.op-portal .btn-brand { display: inline-block; margin: 4px 0 12px; }
.op-portal .sv-hint a { font-weight: 700; color: var(--svc-highlight); }

.op-more { margin-top: 22px; border-top: 1px solid var(--border-color); padding-top: 16px; }
.op-more summary { cursor: pointer; font-weight: 700; color: var(--svc-highlight); }
.op-more[open] summary { margin-bottom: 14px; }
.op-methods .sv-options { margin-bottom: 14px; }

.op-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 0.93rem; }
.op-dl dt { color: var(--text-secondary); font-weight: 600; }
.op-dl dd { margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.op-total { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; }

/* Items of a cart order */
.op-items { list-style: none; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--border-color); display: grid; gap: 12px; }
.op-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.93rem; color: var(--text-primary); }
.op-item-text { min-width: 0; overflow-wrap: anywhere; }
.op-item-text small { display: block; color: var(--text-secondary); font-size: 0.8rem; }
.op-items strong { white-space: nowrap; }
.op-item-state { font-weight: 700; }
.op-item-state.is-active { color: #137347; }
.op-item-state.is-pending { color: #9a6200; }
:root[data-theme="dark"] .op-item-state.is-active { color: #6fe0a8; }
:root[data-theme="dark"] .op-item-state.is-pending { color: #ffc861; }
.op-print { margin-top: 16px; }
.op-help { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: #1a9e55; text-decoration: none; }
.op-help:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .op-page { padding-top: 120px; }
  .op-grid { grid-template-columns: 1fr; }
}

@media print {
  .header-wrapper, footer, .op-steps, .op-main, .op-help, .op-print, .op-portal, .alert, .whatsapp-float-btn, .floating-contact-wrapper { display: none !important; }
  .op-page { padding: 0; }
  .op-grid { display: block; }
  .op-summary { border: none; box-shadow: none; }
}

/* Custom quote page (offer.php) */
.op-offer-title { font-family: var(--font-heading); font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.op-form-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 22px 0 10px; }
