/* ============================================================
   Payment status pages (checkout / success / failed)
   Extracted from the design's inline <style> blocks in
   payment-success.html, payment-failed.html and checkout.html.
   Failed-variant color overrides are scoped to the
   .ws-page-payment-failed body class added by the theme.
   ============================================================ */

  /* ====== Status page ====== */
  .status-section { padding: 56px 0 80px; }
  .status-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
  }
  @media (max-width: 991px) { .status-grid { grid-template-columns: 1fr; } }

  .status-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }
  .status-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--brand-gradient);
  }
  @media (max-width: 575px) { .status-card { padding: 40px 24px; } }

  /* Confetti backdrop */
  .confetti {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .confetti::before, .confetti::after {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
  }
  .confetti::before { background: var(--brand-purple); top: -120px; right: -80px; }
  .confetti::after  { background: var(--brand-pink);   bottom: -140px; left: -80px; }

  .status-icon {
    width: 92px; height: 92px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 1;
    animation: status-pop .5s cubic-bezier(.34,1.56,.64,1);
  }
  .status-icon.success {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 16px 40px rgba(101, 46, 186, 0.4);
  }
  .status-icon svg { width: 48px; height: 48px; stroke-width: 3; }
  @keyframes status-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

  .status-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative; z-index: 1;
  }
  .status-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 1.6s ease-in-out infinite;
  }
  @keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  }
  .status-card h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--ink-1);
    letter-spacing: -0.025em;
    margin: 0 0 12px;
    position: relative; z-index: 1;
  }
  .status-card .lede {
    font-size: 17px;
    color: var(--ink-3);
    max-width: 540px;
    margin: 0 auto 0;
    line-height: 1.55;
    position: relative; z-index: 1;
  }
  .status-card .lede strong { color: var(--ink-1); }

  /* Inline order strip */
  .order-strip {
    margin: 30px auto 6px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    position: relative; z-index: 1;
  }
  .order-strip .ico {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
  }
  .order-strip .body { text-align: left; }
  .order-strip h4 { font-size: 14px; font-weight: 600; color: var(--ink-1); margin: 0; font-family: var(--font-display); }
  .order-strip .meta { font-size: 12px; color: var(--ink-4); }
  .order-strip .amount {
    border-left: 1px solid var(--line);
    padding-left: 16px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-1);
  }

  /* Email inbox CTA */
  .inbox-card {
    margin: 32px auto 0;
    max-width: 520px;
    background: linear-gradient(135deg, rgba(101, 46, 186, 0.06), rgba(255, 75, 147, 0.04));
    border: 1px solid rgba(101, 46, 186, 0.18);
    border-radius: 16px;
    padding: 22px 22px 20px;
    display: flex; align-items: flex-start; gap: 16px;
    text-align: left;
    position: relative; z-index: 1;
  }
  .inbox-card .ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
  }
  .inbox-card .ico svg { width: 22px; height: 22px; }
  .inbox-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-1);
    margin: 0 0 4px;
  }
  .inbox-card p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.55; }
  .inbox-card .email-chip {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 10px;
    font: 600 13px ui-monospace, monospace;
    color: var(--brand-purple);
    margin-top: 6px;
  }
  .inbox-card .spam {
    font-size: 12px;
    color: var(--warn);
    margin-top: 8px;
    display: flex; align-items: center; gap: 6px;
  }
  .inbox-card .spam svg { width: 13px; height: 13px; }

  /* CTA buttons */
  .status-actions {
    margin: 32px auto 0;
    display: flex; flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: relative; z-index: 1;
  }
  .status-actions .btn { padding: 13px 22px; font-size: 14px; }
  .status-actions .btn-primary {
    background: var(--brand-gradient);
    border: 0;
  }

  /* Next steps strip */
  .next-steps {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    text-align: left;
    position: relative; z-index: 1;
  }
  .next-steps h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-3);
    margin: 0 0 18px;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .step-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 767px) { .step-list { grid-template-columns: 1fr; } }
  .step-mini {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex; gap: 12px;
    align-items: flex-start;
    transition: border-color .15s ease, transform .15s ease;
  }
  .step-mini:hover { border-color: var(--brand-purple); transform: translateY(-1px); }
  .step-mini .n {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--brand-purple);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
  }
  .step-mini h4 { font-size: 13.5px; font-weight: 600; color: var(--ink-1); margin: 0 0 3px; }
  .step-mini p { font-size: 12px; color: var(--ink-4); margin: 0; line-height: 1.5; }
  .step-mini a { color: var(--brand-purple); font-weight: 600; text-decoration: underline; }

  /* Right rail (sidebar) */
  .sidebar { display: flex; flex-direction: column; gap: 14px; }
  .side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex; align-items: flex-start; gap: 14px;
  }
  .side-card .ico {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--brand-purple);
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
  }
  .side-card .ico svg { width: 18px; height: 18px; }
  .side-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-1); margin: 0 0 2px; }
  .side-card p { font-size: 12.5px; color: var(--ink-4); margin: 0 0 6px; line-height: 1.5; }
  .side-card a { font-size: 12.5px; color: var(--brand-purple); font-weight: 600; text-decoration: underline; }

  .review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
  }
  .review-card .stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; }
  .review-card .rate {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink-1);
    margin: 4px 0 6px;
  }
  .review-card p { font-size: 12.5px; color: var(--ink-4); margin: 0; line-height: 1.5; }
  .review-card .links {
    margin-top: 10px;
    display: flex; justify-content: center; gap: 10px;
    font-size: 11.5px;
  }
  .review-card .links a { color: var(--ink-3); text-decoration: underline; font-weight: 600; }

  /* === Failed-state colors === */
  body.failed .status-icon.success { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 16px 40px rgba(239,68,68,0.35); }
  body.failed .status-card::before { background: linear-gradient(90deg, #ef4444, #b91c1c); }
  body.failed .status-eyebrow { background: rgba(239,68,68,0.1); color: #b91c1c; }
  body.failed .status-eyebrow .dot { background: #b91c1c; box-shadow: 0 0 0 0 rgba(185,28,28,0.5); }

/* ---- payment-failed.html: unique components ---- */
  /* Reassurance banner */
  .reassure {
    margin: 28px auto 0;
    max-width: 560px;
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-left: 3px solid var(--success);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
    text-align: left;
  }
  .reassure .ico {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
  }
  .reassure .ico svg { width: 16px; height: 16px; }
  .reassure p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
  .reassure strong { color: var(--ink-1); font-weight: 700; }

  /* Reason card */
  .reason-card {
    margin: 28px auto 0;
    max-width: 560px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
    text-align: left;
  }
  .reason-card h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-1);
    margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
  }
  .reason-card h3 .ico {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: rgba(239,68,68,0.1);
    color: #b91c1c;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .reason-card h3 .ico svg { width: 14px; height: 14px; }
  .reason-card .reason-msg {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    font: 500 13px ui-monospace, monospace;
    color: #b91c1c;
    margin-bottom: 14px;
    word-break: break-word;
  }
  .reason-card ul {
    margin: 0;
    padding-left: 18px;
    list-style: none;
  }
  .reason-card li {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
  }
  .reason-card li::before {
    content: "→";
    position: absolute; left: 0;
    color: var(--brand-purple);
    font-weight: 700;
  }
  .reason-card li:last-child { margin-bottom: 0; }
  .reason-card li strong { color: var(--ink-1); }
  /* Alt payment methods */
  .alt-pay {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
  }
  .alt-pay h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-3);
    margin: 0 0 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .alt-pay-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }
  .alt-pay-row .c {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 44px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
    color: var(--ink-3);
    letter-spacing: -0.5px;
  }
  .alt-pay-row .c[data-c=visa] { background: #1a1f71; color: #fff; }
  .alt-pay-row .c[data-c=mc] { background: linear-gradient(90deg, #eb001b 50%, #f79e1b 50%); color: #fff; }
  .alt-pay-row .c[data-c=amex] { background: #2671b9; color: #fff; }
  .alt-pay-row .c[data-c=paypal] { background: #003087; color: #fff; }
  .alt-pay-row .c[data-c=apple] { background: #000; color: #fff; font-size: 14px; }
  .alt-pay-row .c[data-c=gpay] { background: #fff; color: #5f6368; border-color: var(--line); font-size: 9px; }

  /* FAQ */
  .faq-mini {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 18px;
  }
  .faq-mini details {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-2);
  }
  .faq-mini details:last-child { border-bottom: 0; }
  .faq-mini summary {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-1);
    cursor: pointer;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
  }
  .faq-mini summary::-webkit-details-marker { display: none; }
  .faq-mini summary::after { content: "+"; color: var(--brand-purple); font-size: 18px; font-weight: 400; }
  .faq-mini details[open] summary::after { content: "−"; }
  .faq-mini .a {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.55;
    margin: 8px 0 0;
  }

/* ---- payment-failed.html: red variant overrides ---- */
  .ws-page-payment-failed .status-card::before { background: linear-gradient(90deg, #ef4444, #b91c1c); }
  .ws-page-payment-failed .status-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 16px 40px rgba(239, 68, 68, 0.35); }
  .ws-page-payment-failed .status-icon svg { width: 44px; height: 44px; }
  .ws-page-payment-failed .status-eyebrow { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
  .ws-page-payment-failed .status-eyebrow .dot { background: #b91c1c; animation: none; }

/* ---- checkout.html extras ---- */
  @keyframes spin { to { transform: rotate(360deg); } }
