/* Reset just enough to be predictable without a theme. */
.cpp-portal *, .cpp-portal *::before, .cpp-portal *::after { box-sizing: border-box; }
body.cpp-portal {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.cpp-portal-shell { max-width: 1080px; margin: 0 auto; padding: 24px 18px 60px; min-height: 100vh; display: flex; flex-direction: column; }
.cpp-portal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; margin-bottom: 24px;
}
.cpp-portal-logo {
    font-size: 18px; font-weight: 700; color: #0f172a; text-decoration: none; letter-spacing: -0.01em;
}
.cpp-portal-secure { color: #16a34a; font-size: 13px; font-weight: 600; }
.cpp-portal-main { flex: 1; }
.cpp-portal-footer { text-align: center; color: #64748b; font-size: 12px; margin-top: 32px; }

/* Payment card -- two-column on desktop, stacked on mobile */
.cpp-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px -10px rgba(15,23,42,.15);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
}
@media (max-width: 760px) { .cpp-card { grid-template-columns: 1fr; } }

.cpp-card-left {
    background: linear-gradient(140deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cpp-card-title { font-size: 22px; margin: 0 0 4px; color: #fff; }
.cpp-card-ref   { font-size: 12px; color: #94a3b8; margin: 0 0 14px; letter-spacing: .04em; text-transform: uppercase; }
.cpp-card-desc  { color: #cbd5e1; line-height: 1.5; margin: 0 0 20px; font-size: 14px; }

.cpp-amount-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 18px;
    margin-top: 12px;
}
.cpp-amount-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.cpp-amount       { font-size: 32px; font-weight: 700; color: #fff; margin-top: 4px; }

.cpp-card-right { padding: 36px 32px; }
.cpp-form-title { margin: 0 0 18px; font-size: 18px; color: #0f172a; }

.cpp-field { margin-bottom: 14px; }
.cpp-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.cpp-req { color: #dc2626; }
.cpp-field input, .cpp-field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1;
    border-radius: 8px; font-size: 15px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.cpp-field input:focus, .cpp-field textarea:focus {
    outline: none; border-color: #E2231A;
    box-shadow: 0 0 0 3px rgba(226,35,26,.15);
}
.cpp-field.has-error input { border-color: #dc2626; }
.cpp-error { display: block; font-size: 12px; color: #dc2626; margin-top: 4px; }

.cpp-method-options { display: grid; gap: 8px; }
.cpp-method {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1; border-radius: 8px;
    cursor: pointer; font-size: 14px;
    transition: background .15s, border-color .15s;
}
.cpp-method:hover { background: #f8fafc; }
.cpp-method input { accent-color: #E2231A; }

.cpp-pay-btn {
    width: 100%; padding: 14px; margin-top: 18px;
    background: #E2231A; color: #fff; border: 0; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background .15s, transform .05s;
}
.cpp-pay-btn:hover { background: #b81d15; }
.cpp-pay-btn:active { transform: translateY(1px); }
.cpp-pay-btn-secondary { background: #0f172a; display: inline-block; text-decoration: none; text-align: center; max-width: 280px; margin: 16px auto 0; }
.cpp-secure-note { font-size: 12px; color: #64748b; text-align: center; margin-top: 10px; }

/* Redirect screen */
.cpp-redirect {
    background: #fff; border-radius: 14px;
    box-shadow: 0 10px 30px -10px rgba(15,23,42,.15);
    padding: 60px 30px; text-align: center; max-width: 460px; margin: 40px auto;
}
.cpp-redirect h1 { font-size: 20px; margin: 16px 0 8px; }
.cpp-redirect p  { color: #64748b; }
.cpp-spinner {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid #e2e8f0; border-top-color: #E2231A;
    animation: cpp-spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes cpp-spin { to { transform: rotate(360deg); } }

/* Receipt */
.cpp-receipt {
    background: #fff; border-radius: 14px;
    box-shadow: 0 10px 30px -10px rgba(15,23,42,.15);
    padding: 48px 36px; max-width: 520px; margin: 40px auto;
    text-align: center;
}
.cpp-receipt-icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700;
}
.cpp-receipt-success .cpp-receipt-icon   { background: #dcfce7; color: #166534; }
.cpp-receipt-failed .cpp-receipt-icon    { background: #fee2e2; color: #991b1b; }
.cpp-receipt-cancelled .cpp-receipt-icon { background: #f1f5f9; color: #475569; }
.cpp-receipt-pending .cpp-receipt-icon   { background: #fef3c7; color: #92400e; }

.cpp-receipt h1 { margin: 0 0 8px; font-size: 22px; }
.cpp-receipt-message { color: #475569; margin: 0 0 20px; }
.cpp-receipt-details {
    border-top: 1px solid #e2e8f0; margin-top: 24px; padding-top: 18px; text-align: left;
}
.cpp-detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #475569; }
.cpp-detail-row strong { color: #0f172a; font-weight: 600; }

/* Header tweaks (sign-in link). */
.cpp-portal-header-right { display: flex; gap: 16px; align-items: center; }
.cpp-portal-link { color: #475569; text-decoration: none; font-size: 14px; font-weight: 500; }
.cpp-portal-link:hover { color: #E2231A; }

/* Auth card (login). */
.cpp-auth-card { background: #fff; border-radius: 14px; padding: 36px 32px; max-width: 440px; margin: 32px auto; box-shadow: 0 10px 30px -10px rgba(15,23,42,.15); }
.cpp-auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.cpp-auth-sub { color: #64748b; margin: 0 0 22px; font-size: 14px; }

.cpp-alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 0 0 18px; }
.cpp-alert-success { background: #dcfce7; color: #166534; }
.cpp-alert-error   { background: #fee2e2; color: #991b1b; }
.cpp-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; display: block; }

/* Client portal dashboard. */
.cpp-client-wrap { max-width: 960px; margin: 24px auto; }
.cpp-client-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.cpp-client-header h1 { margin: 0 0 4px; font-size: 24px; }
.cpp-client-sub { color: #64748b; font-size: 14px; margin: 0; }
.cpp-client-sub a { color: #E2231A; text-decoration: none; }
.cpp-client-nav { display: flex; gap: 14px; }
.cpp-client-nav a { color: #475569; text-decoration: none; font-size: 14px; font-weight: 500; }
.cpp-client-nav a:hover { color: #E2231A; }

.cpp-client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 640px) { .cpp-client-stats { grid-template-columns: 1fr; } }
.cpp-client-stat { background: #fff; border-radius: 10px; padding: 16px 20px; box-shadow: 0 4px 12px -8px rgba(15,23,42,.15); border-top: 3px solid #cbd5e1; }
.cpp-client-stat .label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cpp-client-stat .value { font-size: 22px; font-weight: 700; }
.cpp-client-stat-paid    { border-top-color: #16a34a; }
.cpp-client-stat-pending { border-top-color: #f59e0b; }
.cpp-client-stat-failed  { border-top-color: #dc2626; }

.cpp-panel.cpp-panel,
.cpp-client-wrap .cpp-panel { background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: 0 4px 12px -8px rgba(15,23,42,.12); }
.cpp-client-wrap .cpp-panel h2 { margin: 0 0 14px; font-size: 18px; }
.cpp-empty { color: #94a3b8; font-style: italic; }

.cpp-client-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cpp-client-table th, .cpp-client-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.cpp-client-table th { color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.cpp-client-table td.num, .cpp-client-table th.num { text-align: right; }

.cpp-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #e2e8f0; color: #334155; text-transform: capitalize; }
.cpp-pill-paid       { background: #dcfce7; color: #166534; }
.cpp-pill-pending    { background: #fef3c7; color: #92400e; }
.cpp-pill-processing { background: #FDF1D6; color: #C6912A; }
.cpp-pill-failed     { background: #fee2e2; color: #991b1b; }
.cpp-pill-cancelled, .cpp-pill-expired { background: #f1f5f9; color: #475569; }

.cpp-row-btn { display: inline-block; padding: 5px 12px; border-radius: 6px; border: 1px solid #cbd5e1; color: #334155; text-decoration: none; font-size: 13px; }
.cpp-row-btn:hover { background: #f8fafc; }
.cpp-row-btn-primary { background: #E2231A; border-color: #E2231A; color: #fff; }
.cpp-row-btn-primary:hover { background: #b81d15; color: #fff; }

.cpp-coupon-row { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.cpp-coupon-row input[type=text] { flex: 1; min-width: 140px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.cpp-coupon-btn { padding: 9px 16px; border-radius: 8px; border: 1px solid #E2231A; background: #fff; color: #E2231A; font-weight: 600; cursor: pointer; font-size: 14px; }
.cpp-coupon-btn:hover { background: #FBF0DA; }
.cpp-coupon-msg { font-size: 13px; width: 100%; }
.cpp-coupon-ok  { color: #166534; }
.cpp-coupon-err { color: #991b1b; }
.cpp-partial-toggle { margin: 12px 0; }
.cpp-partial-toggle input[type=number] { width: 160px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }

/* =========================================================
 * Stripe-style single-column checkout (used by pay.php)
 * ========================================================= */
.cpp-checkout {
    max-width: 460px;
    margin: 24px auto;
    padding: 0 16px;
    font-feature-settings: "tnum" on, "lnum" on;
}
.cpp-checkout-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 8px 32px -8px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

/* ----- Order summary (top section) ----- */
.cpp-checkout-summary {
    padding: 28px 32px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.cpp-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    line-height: 1.4;
    padding: 3px 0;
    color: #475569;
}
.cpp-summary-label { color: #64748b; }
.cpp-summary-value { color: #0f172a; font-weight: 500; text-align: right; max-width: 70%; }
.cpp-summary-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: #475569; font-weight: 500; }

.cpp-summary-amount {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}
.cpp-summary-amount-usd {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.cpp-summary-amount-pkr {
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

.cpp-summary-meta { margin-top: 14px; }
.cpp-summary-meta-line { font-size: 12px; color: #64748b; line-height: 1.55; }
.cpp-summary-meta-line + .cpp-summary-meta-line { margin-top: 3px; }
.cpp-summary-meta-desc { color: #475569; font-size: 13px; }
.cpp-summary-meta-discount { color: #16a34a; font-weight: 500; }

/* ----- Form body ----- */
.cpp-checkout-form {
    padding: 24px 32px 28px;
}

/* Payment method tabs (Card / PayPal / Crypto) */
.cpp-method-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;
    margin-bottom: 16px;
}
.cpp-method-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    color: #4f566b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .12s, background .12s, box-shadow .12s;
    position: relative;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cpp-method-tab:hover { border-color: #c4c4c4; }
.cpp-method-tab.is-active {
    border-color: #E2231A;
    color: #1a1f36;
    font-weight: 600;
    box-shadow: 0 0 0 1px #E2231A, 0 1px 2px rgba(0,0,0,0.04);
}
.cpp-method-tab-icon-wrap {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cpp-method-tab-icon-wrap img,
.cpp-method-tab-icon-wrap svg { height: 22px; width: auto; display: block; }

/* Section label like "Billing address" */
.cpp-section-label {
    font-size: 13px;
    font-weight: 500;
    color: #4f566b;
    margin: 18px 0 8px;
    letter-spacing: 0.01em;
}

/* Reserved — the row class is now display:grid (see overrides below). */

/* Accepted-cards badge bar */
.cpp-method-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 18px;
}
.cpp-method-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.cpp-method-cards {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cpp-card-logo {
    height: 22px;
    width: auto;
    display: block;
    border-radius: 3px;
}

/* Field group */
/* ─── Stripe-style field group ─── */
.cpp-fields-group {
    display: block;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow .15s, border-color .15s;
}
.cpp-fields-group:focus-within {
    border-color: #E2231A;
    box-shadow: 0 0 0 1px #E2231A, 0 1px 2px rgba(0,0,0,0.04);
}

/* Each input cell stacks label-above-value, divided by hairlines */
.cpp-fld {
    position: relative;
    border-bottom: 1px solid #e6e6e6;
    padding: 8px 14px 0;
    background: #fff;
}
.cpp-fld:last-child { border-bottom: 0; }

.cpp-fld label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    margin: 0 0 2px;
    pointer-events: none;
    text-transform: none;
    letter-spacing: 0;
}

.cpp-fld input,
.cpp-fld select,
.cpp-fld textarea {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: #1a1f36;
    padding: 0 0 9px;
    margin: 0;
    font-family: inherit;
    outline: none;
    line-height: 1.4;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.cpp-fld input::placeholder { color: #9ca3af; }

/* Select: native caret hidden, custom chevron */
.cpp-fld select {
    cursor: pointer;
    padding-right: 22px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 10px 6px;
}

/* Error state */
.cpp-fld.has-error label { color: #df1b41; }
.cpp-fld.has-error input,
.cpp-fld.has-error select { color: #df1b41; }
.cpp-fld-err {
    display: block;
    padding: 0 14px 8px;
    font-size: 12px;
    color: #df1b41;
    line-height: 1.4;
}

/* ─── Side-by-side row inside the group (City / State / Postal) ─── */
.cpp-fld-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #e6e6e6;
}
.cpp-fld-row:last-child { border-bottom: 0; }
.cpp-fld-row .cpp-fld {
    border-bottom: 0;
    border-right: 1px solid #e6e6e6;
    padding: 8px 14px 0;
}
.cpp-fld-row .cpp-fld:last-child { border-right: 0; }

@media (max-width: 480px) {
    .cpp-fld-row { grid-template-columns: 1fr; }
    .cpp-fld-row .cpp-fld {
        border-right: 0;
        border-bottom: 1px solid #e6e6e6;
    }
    .cpp-fld-row .cpp-fld:last-child { border-bottom: 0; }
}

/* Coupon */
.cpp-coupon {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}
.cpp-coupon input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.cpp-coupon input:focus { border-color: #E2231A; box-shadow: 0 0 0 3px rgba(226,35,26,.12); }
.cpp-coupon-apply {
    padding: 11px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.cpp-coupon-apply:hover { background: #f8fafc; border-color: #cbd5e1; }
.cpp-coupon-msg { font-size: 12px; min-height: 18px; margin: 4px 2px 12px; }
.cpp-coupon-ok  { color: #16a34a; }
.cpp-coupon-err { color: #b91c1c; }

/* Partial */
.cpp-partial { margin: 8px 0 16px; font-size: 13px; }
.cpp-partial-check { color: #475569; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cpp-partial-input input {
    margin-top: 8px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

/* Primary pay button */
.cpp-pay-button {
    width: 100%;
    margin-top: 4px;
    padding: 14px 18px;
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, transform .05s, box-shadow .12s;
    letter-spacing: -0.005em;
    position: relative;
}
.cpp-pay-button:hover { background: #1e293b; box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.4); }
.cpp-pay-button:active { transform: translateY(1px); }
.cpp-pay-button:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; }
.cpp-pay-button.is-loading .cpp-pay-button-label { visibility: hidden; }
.cpp-pay-button.is-loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin-top: -9px; margin-left: -9px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cpp-pay-spin 0.7s linear infinite;
}
@keyframes cpp-pay-spin { to { transform: rotate(360deg); } }

/* Footer secure line */
.cpp-footer-line {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}
.cpp-lock-icon {
    width: 11px;
    height: 12px;
    display: inline-block;
    color: #94a3b8;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .cpp-checkout { padding: 0 12px; margin: 12px auto; }
    .cpp-checkout-summary { padding: 22px 22px 18px; }
    .cpp-checkout-form { padding: 18px 22px 24px; }
    .cpp-summary-amount-usd { font-size: 30px; }
}

/* ─── Crypto checkout page ─── */
.cpp-crypto-intro { margin-bottom: 14px; }
.cpp-crypto-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 4px;
}
.cpp-crypto-sub {
    font-size: 13px;
    color: #4f566b;
    line-height: 1.5;
    margin: 0;
}

.cpp-crypto-chains {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}
.cpp-crypto-chain {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color .12s, box-shadow .12s;
}
.cpp-crypto-chain[open] {
    border-color: #E2231A;
    box-shadow: 0 0 0 1px #E2231A;
}
.cpp-crypto-chain-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1f36;
    user-select: none;
    list-style: none;
}
.cpp-crypto-chain-head::-webkit-details-marker { display: none; }
.cpp-crypto-coin {
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 0.02em;
}
.cpp-crypto-coin-usdt { background: #d1f4eb; color: #008060; }
.cpp-crypto-coin-usdc { background: #dceeff; color: #E2231A; }
.cpp-crypto-network {
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #4f566b;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}
.cpp-crypto-chain-name {
    color: #6b7280;
    font-size: 13px;
    flex: 1;
}
.cpp-crypto-chevron {
    color: #9ca3af;
    font-size: 14px;
    transition: transform .15s;
}
.cpp-crypto-chain[open] .cpp-crypto-chevron { transform: rotate(180deg); }

.cpp-crypto-chain-body {
    border-top: 1px solid #f1f5f9;
    padding: 14px;
    background: #fafbfc;
}
.cpp-crypto-amount-row,
.cpp-crypto-addr-row {
    margin-bottom: 12px;
}
.cpp-crypto-amount-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 600;
}
.cpp-crypto-network-tag {
    background: #e6e6e6;
    color: #4f566b;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 4px;
    letter-spacing: 0.02em;
}
.cpp-crypto-amount-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 18px;
    color: #1a1f36;
}
.cpp-crypto-amount-value strong { font-weight: 700; font-size: 22px; }
.cpp-crypto-amount-value span { color: #6b7280; font-size: 14px; font-weight: 500; }

.cpp-crypto-addr {
    display: flex;
    gap: 6px;
}
.cpp-crypto-addr input {
    flex: 1;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 9px 11px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: #1a1f36;
    background: #fff;
    outline: none;
}
.cpp-crypto-addr input:focus { border-color: #E2231A; box-shadow: 0 0 0 3px rgba(226,35,26,0.12); }

.cpp-crypto-copy {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    cursor: pointer;
    padding: 0 12px;
    font-size: 14px;
    color: #4f566b;
    transition: background .12s, border-color .12s;
    min-width: 36px;
}
.cpp-crypto-copy:hover { background: #f8fafc; border-color: #c4c4c4; }

.cpp-crypto-qr {
    margin: 14px 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
}
.cpp-crypto-qr img {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 4px;
}
.cpp-crypto-qr-cap {
    font-size: 11px;
    color: #6b7280;
}

.cpp-crypto-warn {
    margin-top: 10px;
    padding: 9px 11px;
    background: #fef7e6;
    border: 1px solid #f7d894;
    border-radius: 6px;
    color: #7c5b00;
    font-size: 12px;
    line-height: 1.4;
}

.cpp-crypto-instructions {
    margin: 14px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #4f566b;
    line-height: 1.5;
}

.cpp-crypto-status {
    margin: 18px 0 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}
.cpp-crypto-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #4f566b;
    margin-bottom: 8px;
}
.cpp-crypto-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    animation: cpp-pulse 1.6s ease-in-out infinite;
}
@keyframes cpp-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.cpp-crypto-status-sub {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0;
    line-height: 1.5;
}
.cpp-crypto-status-sub code {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.cpp-pay-button-secondary {
    background: #fff !important;
    border: 1px solid #e6e6e6 !important;
    color: #1a1f36 !important;
    display: block;
    text-decoration: none;
}
.cpp-pay-button-secondary:hover {
    background: #f8fafc !important;
    border-color: #c4c4c4 !important;
}

/* =========================================================
 * Iframe modal overlay (used by redirect.php — customer
 * stays on our domain while entering card details on the
 * bank's hosted page inside this iframe).
 * ========================================================= */
.cpp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: cpp-modal-fade-in 0.18s ease-out;
}
@keyframes cpp-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.cpp-modal-shell {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}
.cpp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}
.cpp-modal-secure {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}
.cpp-modal-close {
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background .12s, color .12s;
}
.cpp-modal-close:hover { background: #f1f5f9; color: #475569; }

.cpp-modal-body {
    position: relative;
    flex: 1;
    background: #fff;
    min-height: 520px;
}
.cpp-modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    display: block;
    background: #fff;
}

.cpp-modal-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 2;
}
.cpp-spinner-inline {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #E2231A;
    animation: cpp-spin 0.9s linear infinite;
}
.cpp-modal-loader-text {
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
}

.cpp-modal-footer {
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    background: #f8fafc;
}

@media (max-width: 540px) {
    .cpp-modal-backdrop { padding: 0; align-items: flex-start; }
    .cpp-modal-shell { max-width: 100%; max-height: 100vh; border-radius: 0; height: 100vh; }
    .cpp-modal-body, .cpp-modal-body iframe { min-height: 0; height: 100%; }
}

/* Full-page redirect loading screen (used when iframe isn't allowed) */
.cpp-redirect-full {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}
.cpp-redirect-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 8px 32px -8px rgba(15, 23, 42, 0.12);
    padding: 48px 36px;
    max-width: 380px;
    text-align: center;
}
.cpp-redirect-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #E2231A;
    margin: 0 auto 22px;
    animation: cpp-spin 0.9s linear infinite;
}
.cpp-redirect-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}
.cpp-redirect-sub {
    margin: 0 0 22px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
.cpp-redirect-secure {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

/* The bank's auto-submitting form embeds its own block UI (jQuery .block()).
   Hide that — we have our own loading screen. */
.cpp-redirect-full ~ form { display: none !important; }
.cpp-redirect-full ~ form #run { display: none !important; }

/* =========================================================
 *  Stripe-styled checkout (rewrite).
 *  Selector prefix: .cpp-stripe-*
 *  Layout reference: Stripe Checkout (Card + email + ZIP).
 * ========================================================= */

body.cpp-portal { background: #f4f6f8; }

.cpp-stripe {
    max-width: 480px;
    margin: 32px auto;
    padding: 0 16px;
    color: #1a1f36;
    font-feature-settings: "tnum" on, "lnum" on;
    -webkit-font-smoothing: antialiased;
}
.cpp-stripe * { box-sizing: border-box; }

.cpp-stripe-inner {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px 30px;
    box-shadow:
        0 0 0 1px rgba(50, 50, 93, 0.08),
        0 4px 16px -4px rgba(50, 50, 93, 0.08);
}

/* ── Header ── */
.cpp-stripe-head { margin-bottom: 20px; }
.cpp-stripe-title {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.cpp-stripe-order {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.cpp-stripe-order-name { color: #4f566b; font-weight: 500; }
.cpp-stripe-order-ref  { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; color: #9ca3af; }
.cpp-stripe-amount {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f3f5;
}
.cpp-stripe-amount-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -0.018em;
    line-height: 1.1;
}
.cpp-stripe-amount-pkr {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.3;
    font-feature-settings: "tnum" on, "lnum" on;
    letter-spacing: 0;
}
.cpp-stripe-amount-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

/* ── Sections ── */
.cpp-stripe-form { margin: 0; }
.cpp-stripe-section { margin-bottom: 20px; }
.cpp-stripe-section-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1f36;
    letter-spacing: -0.005em;
}
.cpp-stripe-sublabel {
    margin: 16px 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4f566b;
}
.cpp-stripe-sublabel:first-child { margin-top: 4px; }
.cpp-stripe-sublabel:first-child { margin-top: 0; }

/* ── Boxed input (Stripe single-line cell) ── */
.cpp-stripe-box {
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    background: #fff;
    padding: 11px 14px;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: 0 1px 2px rgba(50, 50, 93, 0.04);
}
.cpp-stripe-box:hover { border-color: #c4c8cf; }
.cpp-stripe-box:focus-within {
    border-color: #E2231A;
    box-shadow: 0 0 0 3px rgba(226,35,26,0.15);
}
.cpp-stripe-box.has-error {
    border-color: #df1b41;
    box-shadow: 0 0 0 3px rgba(223,27,65,0.10);
}
.cpp-stripe-box input,
.cpp-stripe-box select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: #1a1f36;
    line-height: 1.4;
    padding: 0;
    margin: 0;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.cpp-stripe-box input::placeholder { color: #9ca3af; }
.cpp-stripe-box select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 10px 6px;
    padding-right: 18px;
}

/* Grouped box — Country + ZIP stacked with internal divider */
.cpp-stripe-box-grouped { padding: 0; }
.cpp-stripe-box-row {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e3e7;
}
.cpp-stripe-box-row:last-child { border-bottom: 0; }
.cpp-stripe-box-row input,
.cpp-stripe-box-row select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: #1a1f36;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.cpp-stripe-box-row select {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 10px 6px;
    padding-right: 18px;
    cursor: pointer;
}
.cpp-stripe-box-row input::placeholder { color: #9ca3af; }
.cpp-stripe-box-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}
.cpp-stripe-box-row-split input {
    padding: 10px 12px;
}
.cpp-stripe-box-row-split input:first-child { border-right: 1px solid #e0e3e7; }

/* ── Method tabs ────────────────────────────────────────────
 *
 * Layout rules:
 *  - 3-column grid on desktop, equal columns
 *  - At ≤520px we tighten paddings; at ≤380px we stack vertically
 *  - Inside each tab: ONE flex container, ONE gap value — no
 *    nested margins so icon↔label spacing stays consistent
 *  - All tabs render at the SAME min-height regardless of content
 *    (Card has 3 brand icons, PayPal/Crypto have icon+label)
 * ──────────────────────────────────────────────────────────── */

.cpp-stripe-method-tabs {
    display: grid;
    grid-template-columns: repeat(var(--cpp-tab-cols, 3), 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.cpp-stripe-method-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;                /* THE SINGLE icon↔text spacing source */
    padding: 0 10px;
    height: 52px;            /* fixed height = perfect baseline alignment */
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    position: relative;
    color: #4f566b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.cpp-stripe-method-tab img {
    height: 22px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.cpp-stripe-method-tab:hover {
    border-color: #c4c8cf;
    background: #fafbfc;
}
.cpp-stripe-method-tab.is-active {
    border-color: #E2231A;
    background: #fff;
    color: #1a1f36;
    font-weight: 600;
    box-shadow:
        inset 0 0 0 1px #E2231A,
        0 1px 3px rgba(226, 35, 26, 0.10);
}

/* Card tab: VISA/Mastercard/AMEX in a tight row. Same height as the others. */
.cpp-stripe-method-tab-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cpp-stripe-method-tab-icons img {
    height: 20px;
    width: auto;
    border-radius: 3px;
    display: block;
    flex-shrink: 0;
}

/* Label sits next to the icon — NO margin because the flex gap on the tab
 * already provides spacing. */
.cpp-stripe-method-tab-label {
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

/* ── Responsive: tighten at narrow widths, stack on phones ── */
@media (max-width: 520px) {
    .cpp-stripe-method-tab {
        padding: 0 6px;
        height: 48px;
        font-size: 13px;
    }
    .cpp-stripe-method-tab img { height: 20px; }
    .cpp-stripe-method-tab-icons { gap: 4px; }
    .cpp-stripe-method-tab-icons img { height: 18px; }
}

@media (max-width: 380px) {
    .cpp-stripe-method-tabs {
        grid-template-columns: 1fr;   /* stack vertically */
        gap: 6px;
    }
    .cpp-stripe-method-tab {
        justify-content: flex-start;
        padding: 0 14px;
        height: 52px;
    }
}

/* Panel show/hide driven by the .is-active class — more reliable than [hidden] */
.cpp-stripe-method-panel { display: none; }
.cpp-stripe-method-panel.is-active { display: block; }

/* Single method tile (when only one gateway) — horizontal brand icons only */
.cpp-stripe-method-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    border: 1px solid #1a1f36;
    box-shadow: inset 0 0 0 1px #1a1f36;
    border-radius: 8px;
    margin-bottom: 14px;
    min-height: 52px;
}
.cpp-stripe-method-tile-brands {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cpp-stripe-method-tile-brands img {
    height: 22px;
    width: auto;
    border-radius: 3px;
    display: block;
}

/* ── Card preview box (visual only — actual entry on bank page) ── */
.cpp-stripe-card-preview {
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 6px;
}
.cpp-stripe-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #e0e3e7;
    color: #9ca3af;
    font-size: 15px;
}
.cpp-stripe-card-row:last-child { border-bottom: 0; }
.cpp-stripe-card-row-split { padding: 0; }
.cpp-stripe-card-row-split .cpp-stripe-card-placeholder {
    flex: 1;
    padding: 12px;
}
.cpp-stripe-card-row-split .cpp-stripe-card-placeholder:first-child {
    border-right: 1px solid #e0e3e7;
}
.cpp-stripe-card-placeholder { font-family: inherit; }
.cpp-stripe-card-brands {
    display: flex;
    gap: 4px;
    align-items: center;
}
.cpp-stripe-card-brands img {
    height: 18px;
    width: auto;
    display: block;
    border-radius: 2px;
}
.cpp-stripe-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 6px 0 14px;
    line-height: 1.4;
}

/* ── PayPal / Crypto info panel ── */
.cpp-stripe-method-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #f7f9fc;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    font-size: 13px;
    color: #4f566b;
    line-height: 1.55;
}
.cpp-stripe-method-info::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background: no-repeat center/16px url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23635bff'%3E%3Cpath d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM7.5 4.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0zM7 7.5a.5.5 0 0 1 .5-.5h.5a.5.5 0 0 1 .5.5v3.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H7.5V8H7a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

/* ── Collapsible (phone, full address, coupon, partial) ── */
.cpp-stripe-collapsible { margin: 10px 0 0; }
.cpp-stripe-collapsible summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    color: #E2231A;
    font-weight: 500;
    user-select: none;
    padding: 4px 0;
}
.cpp-stripe-collapsible summary::-webkit-details-marker { display: none; }
.cpp-stripe-collapsible summary::before {
    content: "+ ";
    font-weight: 600;
}
.cpp-stripe-collapsible[open] summary::before { content: "− "; }
.cpp-stripe-collapsible summary:hover { text-decoration: underline; }

/* ── Coupon row ── */
.cpp-stripe-coupon {
    display: flex;
    gap: 6px;
}
.cpp-stripe-coupon input {
    flex: 1;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    color: #1a1f36;
    outline: 0;
    font-family: inherit;
}
.cpp-stripe-coupon input:focus { border-color: #E2231A; box-shadow: 0 0 0 3px rgba(226,35,26,0.12); }
.cpp-stripe-coupon button {
    padding: 10px 18px;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    background: #fff;
    color: #4f566b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.cpp-stripe-coupon button:hover { background: #f7f9fc; }
.cpp-stripe-coupon-msg { font-size: 12px; min-height: 16px; margin-top: 6px; }
.cpp-stripe-coupon-msg.ok  { color: #008060; }
.cpp-stripe-coupon-msg.err { color: #df1b41; }

/* ── Field error message ── */
.cpp-stripe-err {
    margin-top: 6px;
    font-size: 12px;
    color: #df1b41;
    line-height: 1.4;
}

/* ── Pay button (Bank Alfalah red, matches the bank's checkout) ── */
.cpp-stripe-pay {
    width: 100%;
    margin-top: 14px;
    padding: 13px 18px;
    background: #E2231A;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .05s;
    letter-spacing: 0.005em;
    position: relative;
    box-shadow: 0 1px 2px rgba(226, 35, 26, 0.30);
}
.cpp-stripe-pay:hover {
    background: #b81d15;
    box-shadow: 0 2px 6px rgba(226, 35, 26, 0.40);
}
.cpp-stripe-pay:active { transform: translateY(1px); }
.cpp-stripe-pay:disabled { background: #f3a39f; cursor: not-allowed; box-shadow: none; }
.cpp-stripe-pay.is-loading .cpp-stripe-pay-label { visibility: hidden; }
.cpp-stripe-pay.is-loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin-top: -8px; margin-left: -8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cpp-spin 0.7s linear infinite;
}

/* ── Footer (Stripe "Powered by") ── */
.cpp-stripe-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cpp-stripe-foot-powered strong { color: #4f566b; font-weight: 600; }
.cpp-stripe-foot-sep   { color: #d1d5db; }
.cpp-stripe-foot-link  {
    color: #6b7280;
    text-decoration: none;
}
.cpp-stripe-foot-link:hover { color: #4f566b; text-decoration: underline; }

/* ── Responsive: tablet ── */
@media (max-width: 600px) {
    .cpp-stripe { padding: 0 14px; margin: 20px auto; }
    .cpp-stripe-inner { padding: 28px 24px 24px; border-radius: 12px; }
    .cpp-stripe-title { font-size: 24px; }
    .cpp-stripe-amount-value { font-size: 26px; }
}

/* ── Responsive: phone ── */
@media (max-width: 480px) {
    .cpp-stripe { padding: 0 10px; margin: 12px auto; }
    .cpp-stripe-inner { padding: 22px 18px 20px; border-radius: 10px; }
    .cpp-stripe-title { font-size: 22px; margin-bottom: 14px; }
    .cpp-stripe-amount-value { font-size: 24px; }
    .cpp-stripe-amount-pkr { font-size: 10.5px; }
    .cpp-stripe-section { margin-bottom: 16px; }
    .cpp-stripe-section-label { font-size: 13px; }
    .cpp-stripe-sublabel { font-size: 12px; margin-top: 12px; }
    .cpp-stripe-box { padding: 10px 12px; }
    .cpp-stripe-box input,
    .cpp-stripe-box select { font-size: 16px; /* Stop iOS Safari from zooming on focus */ }
    .cpp-stripe-pay { padding: 12px 16px; font-size: 15px; }
}

/* ── Very narrow (<340px, e.g. iPhone SE 1st gen in landscape browsers) ── */
@media (max-width: 340px) {
    .cpp-stripe-inner { padding: 18px 14px 18px; }
    .cpp-stripe-title { font-size: 20px; }
}

/* ── Legal pages (Terms / Privacy) ── */
.cpp-legal {
    max-width: 760px;
    margin: 32px auto;
    padding: 0 18px;
    color: #1a1f36;
    font-feature-settings: "tnum" on, "lnum" on;
}
.cpp-legal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 40px 44px;
    box-shadow:
        0 0 0 1px rgba(50, 50, 93, 0.06),
        0 4px 12px -2px rgba(50, 50, 93, 0.06);
}
.cpp-legal-head {
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.cpp-legal-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1a1f36;
}
.cpp-legal-company {
    margin: 0;
    font-size: 14px;
    color: #4f566b;
    font-weight: 500;
}
.cpp-legal-updated {
    margin: 0 0 4px;
    font-size: 12px;
    color: #9ca3af;
}
.cpp-legal-body {
    font-size: 15px;
    line-height: 1.65;
    color: #2c3148;
}
.cpp-legal-body h2 {
    margin: 24px 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1a1f36;
}
.cpp-legal-body h2:first-child { margin-top: 0; }
.cpp-legal-body p { margin: 0 0 14px; }
.cpp-legal-body ul {
    margin: 0 0 14px;
    padding-left: 22px;
}
.cpp-legal-body li { margin: 4px 0; }
.cpp-legal-body strong { color: #1a1f36; font-weight: 600; }

.cpp-legal-foot {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #f1f3f5;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}
.cpp-legal-foot a {
    color: #6b7280;
    text-decoration: none;
    padding: 0 6px;
}
.cpp-legal-foot a:hover {
    color: #1a1f36;
    text-decoration: underline;
}

@media (max-width: 540px) {
    .cpp-legal-inner { padding: 26px 22px; border-radius: 10px; }
    .cpp-legal-title { font-size: 22px; }
}
