/* =========================================================
   PrimePay hosted checkout
   Desktop: split layout (summary left, payment right)
   Tablet/mobile: summary becomes a compact header, sticky Pay bar
   ========================================================= */

:root {
    --pp-ink: #0E1726;
    --pp-ink-2: #3B4458;
    --pp-muted: #5B6478;
    --pp-line: #D5DBE6;
    --pp-line-soft: #E3E8F0;
    --pp-bg: #F4F6FA;
    --pp-surface: #FFFFFF;
    --pp-field: #EEF1F6;
    --pp-navy: #0E1726;
    --pp-navy-line: #253048;
    --pp-navy-text: #E8ECF4;
    --pp-navy-muted: #9AA6BD;
    --pp-navy-link: #B8C2D6;
    --pp-accent: #1D4ED8;
    --pp-accent-hover: #1E40AF;
    --pp-accent-soft: #EEF3FE;
    --pp-focus: rgba(29, 78, 216, 0.18);
    --pp-success: #0F7A45;
    --pp-success-soft: #DCF5E8;
    --pp-error: #B42318;
    --pp-error-soft: #FDE7E5;
    --pp-warn: #F59E0B;
    --pp-warn-soft: #FEF3DC;
    --pp-airtel: #E11D2E;
    --pp-tnm: #15803D;
    --pp-radius: 12px;
    --pp-radius-sm: 10px;
    --pp-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pp-display: "Space Grotesk", var(--pp-font);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--pp-bg);
    color: var(--pp-ink);
    font-family: var(--pp-font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--pp-accent);
}

    a:hover {
        color: var(--pp-accent-hover);
    }

button, input {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--pp-accent);
    outline-offset: 2px;
}

/* ---------------- Shell ---------------- */

.pp-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(360px, 44%) 1fr;
}

/* ---------------- Summary (left panel) ---------------- */

.pp-summary {
    background: var(--pp-navy);
    color: var(--pp-navy-text);
}

.pp-summary__inner {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 520px;
    margin-left: auto;
    padding: 48px clamp(24px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pp-summary__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--pp-navy-link);
    text-decoration: none;
    font-size: 14px;
    margin-left: -6px;
    padding: 0 6px;
    border-radius: 8px;
}

    .pp-back:hover {
        color: #FFFFFF;
    }

.pp-badge-test {
    background: var(--pp-warn);
    color: #1A1206;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pp-merchant {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pp-merchant__logo {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 12px;
    object-fit: cover;
    background: #FFFFFF;
}

/* Letter underneath, logo image on top of it in the same box */
.pp-merchant__mark {
    position: relative;
    width: 48px;
    height: 48px;
    flex: none;
}

    .pp-merchant__mark .pp-merchant__logo {
        position: absolute;
        inset: 0;
    }

.pp-merchant__logo--img {
    object-fit: contain;
    padding: 4px;
}

.pp-merchant__logo--initial {
    background: var(--pp-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pp-display);
    font-weight: 700;
    font-size: 20px;
}

.pp-merchant__name {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
}

.pp-merchant__ref {
    font-size: 13px;
    color: var(--pp-navy-muted);
}

.pp-amount__label {
    font-size: 14px;
    color: var(--pp-navy-muted);
}

.pp-amount__value {
    font-family: var(--pp-display);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    line-height: 1.15;
    word-break: break-word;
}

.pp-details-toggle {
    display: none;
}

.pp-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--pp-navy-line);
    padding-top: 24px;
}

.pp-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
}

.pp-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-item__name {
    color: #FFFFFF;
}

.pp-item__meta {
    font-size: 13px;
    color: var(--pp-navy-muted);
}

.pp-item__amount {
    white-space: nowrap;
}

/* Transaction fee breakdown */
.pp-amount__fee {
    margin-top: 6px;
    font-size: 13px;
    color: var(--pp-navy-muted);
}

.pp-item--subtotal {
    border-top: 1px solid var(--pp-navy-line);
    padding-top: 16px;
    color: var(--pp-navy-muted);
}

.pp-fee-note {
    margin: -8px 0 0;
    font-size: 13px;
    color: var(--pp-muted);
    text-align: center;
}

.pp-item--total {
    border-top: 1px solid var(--pp-navy-line);
    padding-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.pp-powered {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 13px;
    color: var(--pp-navy-muted);
}

    .pp-powered a {
        color: var(--pp-navy-link);
    }

        .pp-powered a:hover {
            color: #FFFFFF;
        }

.pp-wordmark {
    font-family: var(--pp-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.pp-wordmark--dark {
    color: var(--pp-ink);
}

/* ---------------- Main panel ---------------- */

.pp-main {
    min-width: 0;
    padding: 48px clamp(20px, 5vw, 72px);
    display: flex;
    justify-content: center;
}

.pp-panel {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.pp-view {
    display: flex;
    flex-direction: column;
}

.pp-view--center {
    align-items: center;
    text-align: center;
    gap: 18px;
    padding-top: 32px;
}

#pp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pp-h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pp-view--center .pp-h1 {
    font-size: 24px;
}

.pp-lead {
    margin: 0;
    font-size: 16px;
    color: var(--pp-ink-2);
    max-width: 400px;
}

.pp-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pp-ink);
    padding: 0;
}

.pp-optional {
    font-weight: 400;
    color: var(--pp-muted);
}

.pp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pp-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.pp-input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1.5px solid var(--pp-line);
    border-radius: var(--pp-radius-sm);
    background: var(--pp-surface);
    font-size: 16px; /* 16px stops iOS zooming on focus */
    transition: border-color .15s, box-shadow .15s;
}

    .pp-input::placeholder,
    .pp-cardbox input::placeholder {
        color: #7A8499;
    }

    .pp-input:focus {
        outline: none;
        border-color: var(--pp-accent);
        box-shadow: 0 0 0 4px var(--pp-focus);
    }

.pp-hint {
    font-size: 13px;
    color: var(--pp-muted);
}

    .pp-hint.is-error {
        color: var(--pp-error);
    }

    .pp-hint.is-ok {
        color: var(--pp-success);
    }

/* Method tabs (radio cards) */
.pp-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pp-method input,
.pp-provider input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.pp-method__box {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid var(--pp-line);
    border-radius: var(--pp-radius);
    background: var(--pp-surface);
    color: var(--pp-ink-2);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.pp-method:hover .pp-method__box {
    border-color: #B4BED0;
}

.pp-method input:checked + .pp-method__box {
    border: 2px solid var(--pp-accent);
    background: var(--pp-accent-soft);
    color: var(--pp-accent);
}

.pp-method input:focus-visible + .pp-method__box {
    box-shadow: 0 0 0 4px var(--pp-focus);
}

.pp-method input:disabled + .pp-method__box {
    cursor: not-allowed;
    color: #8A93A6;
    background: #F8F9FB;
}

.pp-soon {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--pp-field);
    color: var(--pp-muted);
    padding: 2px 8px;
    border-radius: 999px;
}

/* Providers */
.pp-providers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pp-provider {
    display: block;
    min-width: 0;
}

.pp-provider__box {
    position: relative;
    height: 100%;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 8px 16px;
    border: 1.5px solid var(--pp-line);
    border-radius: 14px;
    background: var(--pp-surface);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.pp-provider:hover .pp-provider__box {
    border-color: #B4BED0;
}

.pp-provider input:checked + .pp-provider__box {
    border: 2px solid var(--pp-accent);
    background: var(--pp-accent-soft);
    box-shadow: 0 6px 18px rgba(29, 78, 216, .12);
    padding: 17.5px 7.5px 15.5px;
}

.pp-provider input:focus-visible + .pp-provider__box {
    box-shadow: 0 0 0 4px var(--pp-focus);
}

.pp-provider__badge {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.pp-provider__badge--airtel {
    background: var(--pp-airtel);
}

.pp-provider__badge--tnm {
    background: var(--pp-tnm);
}

.pp-provider__badge--prime {
    background: var(--pp-navy);
    font-family: var(--pp-display);
    font-size: 22px;
    box-shadow: inset 0 -4px 0 var(--pp-accent);
}

.pp-provider__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pp-ink);
}

.pp-provider__hint {
    font-size: 12px;
    color: var(--pp-muted);
}

.pp-provider__tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--pp-navy);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
}

/* Wallet explainer, shown only when PrimePay Wallet is selected */
.pp-wallet-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--pp-accent-soft);
    border: 1px solid #C9D7FA;
    border-radius: var(--pp-radius);
    padding: 14px 16px;
    color: var(--pp-accent);
}

    .pp-wallet-note svg {
        flex: none;
        margin-top: 1px;
    }

    .pp-wallet-note div {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 14px;
        line-height: 1.45;
        color: #1E2A44;
    }

    .pp-wallet-note strong {
        font-weight: 600;
    }

/* Waiting screen for the wallet uses the PrimePay mark colours */
.pp-icon--prime {
    background: var(--pp-navy);
    color: #FFFFFF;
}

    .pp-icon--prime.pp-pulse {
        animation-name: pp-pulse-navy;
    }

@keyframes pp-pulse-navy {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(14, 23, 38, .25);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(14, 23, 38, 0);
    }
}

/* Phone */
.pp-phone {
    display: flex;
    align-items: stretch;
}

.pp-phone__cc {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1.5px solid var(--pp-line);
    border-right: 0;
    border-radius: var(--pp-radius-sm) 0 0 var(--pp-radius-sm);
    background: var(--pp-field);
    color: var(--pp-ink-2);
    font-size: 15px;
}

.pp-phone__input {
    border-radius: 0 var(--pp-radius-sm) var(--pp-radius-sm) 0;
    min-width: 0;
    letter-spacing: .02em;
}

    .pp-phone__input.is-error {
        border-color: var(--pp-error);
    }

        .pp-phone__input.is-error:focus {
            box-shadow: 0 0 0 4px rgba(180, 35, 24, .15);
        }

/* Card */
.pp-cardbox {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--pp-line);
    border-radius: var(--pp-radius-sm);
    background: var(--pp-surface);
    overflow: hidden;
}

    .pp-cardbox:focus-within {
        border-color: var(--pp-accent);
        box-shadow: 0 0 0 4px var(--pp-focus);
    }

    .pp-cardbox input {
        height: 50px;
        padding: 0 14px;
        border: 0;
        background: transparent;
        font-size: 16px;
        min-width: 0;
        outline: none;
    }

.pp-cardbox__numrow {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid var(--pp-line-soft);
}

.pp-cardbox__number {
    flex: 1;
    letter-spacing: .03em;
}

.pp-cardbox__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

    .pp-cardbox__row > input {
        border-right: 1.5px solid var(--pp-line-soft) !important;
    }

.pp-cardbox input[aria-invalid="true"] {
    color: var(--pp-error);
}

.pp-cardbox.is-error {
    border-color: var(--pp-error);
}

    .pp-cardbox.is-error:focus-within {
        box-shadow: 0 0 0 4px rgba(180, 35, 24, .15);
    }

.pp-brands {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
    flex: none;
}

.pp-brand {
    height: 22px;
    min-width: 34px;
    padding: 0 5px;
    border-radius: 4px;
    border: 1px solid var(--pp-line-soft);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s, filter .15s;
}

    .pp-brand.is-dim {
        opacity: .3;
        filter: grayscale(1);
    }

.pp-brand--visa {
    font-family: var(--pp-display);
    font-style: italic;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .02em;
    color: #1A1F71;
}

.pp-mc {
    display: flex;
}

    .pp-mc span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        display: block;
    }

        .pp-mc span:first-child {
            background: #EB001B;
        }

        .pp-mc span:last-child {
            background: #F79E1B;
            margin-left: -5px;
            mix-blend-mode: multiply;
        }

.pp-cvcwrap {
    display: flex;
    align-items: center;
    min-width: 0;
}

    .pp-cvcwrap input {
        flex: 1;
        width: 100%;
    }

.pp-cvcicon {
    flex: none;
    margin-right: 12px;
    color: #8A93A6;
}

.pp-input.is-error {
    border-color: var(--pp-error);
}

    .pp-input.is-error:focus {
        box-shadow: 0 0 0 4px rgba(180, 35, 24, .15);
    }

/* Checkbox */
.pp-check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 15px;
    color: var(--pp-ink-2);
    cursor: pointer;
}

    .pp-check input {
        width: 20px;
        height: 20px;
        accent-color: var(--pp-accent);
        margin: 0;
        flex: none;
    }

/* "Use a different number": waiting for the old prompt to end */
.pp-release {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--pp-warn-soft);
    border: 1px solid #F5D9A3;
    border-radius: var(--pp-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #5C3B06;
}

    .pp-release .pp-dot {
        margin-top: 5px;
        flex: none;
    }

    .pp-release div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .pp-release strong {
        font-weight: 600;
    }

.pp-release--done {
    background: var(--pp-success-soft);
    border-color: #B7E4CB;
    color: #0B5C34;
}

    .pp-release--done svg {
        flex: none;
        margin-top: 1px;
    }

/* Errors */
.pp-error {
    background: var(--pp-error-soft);
    color: var(--pp-error);
    border-radius: var(--pp-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
}

/* Buttons */
.pp-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--pp-radius);
    border: 0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

    .pp-btn:active {
        transform: translateY(1px);
    }

.pp-btn--primary {
    background: var(--pp-accent);
    color: #FFFFFF;
}

    .pp-btn--primary:hover {
        background: var(--pp-accent-hover);
        color: #FFFFFF;
    }

    .pp-btn--primary:disabled {
        background: #C9D3E6;
        color: #4A5468;
        cursor: not-allowed;
        transform: none;
    }

.pp-btn--secondary {
    background: var(--pp-surface);
    color: var(--pp-ink);
    border: 1.5px solid var(--pp-line);
}

    .pp-btn--secondary:hover {
        border-color: #B4BED0;
        color: var(--pp-ink);
    }

.pp-btn--pay {
    min-height: 56px;
    font-size: 17px;
}

.pp-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: pp-spin .7s linear infinite;
}

.pp-btn.is-loading .pp-spinner {
    display: inline-block;
}

.pp-btn.is-loading .pp-btn__lock {
    display: none;
}

.pp-btn.is-loading {
    cursor: progress;
}

@keyframes pp-spin {
    to {
        transform: rotate(360deg);
    }
}

.pp-note {
    margin: 0;
    font-size: 13px;
    color: var(--pp-muted);
    text-align: center;
}

.pp-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

/* Status icons */
.pp-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-icon--info {
    background: #E6EDFD;
    color: var(--pp-accent);
}

.pp-icon--success {
    background: var(--pp-success-soft);
    color: var(--pp-success);
}

.pp-icon--error {
    background: var(--pp-error-soft);
    color: var(--pp-error);
}

.pp-icon--warn {
    background: var(--pp-warn-soft);
    color: #92400E;
}

.pp-pulse {
    animation: pp-pulse 1.8s ease-in-out infinite;
}

@keyframes pp-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, .25);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(29, 78, 216, 0);
    }
}

.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-line-soft);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--pp-ink-2);
}

.pp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pp-warn);
    animation: pp-blink 1.2s ease-in-out infinite;
}

@keyframes pp-blink {
    50% {
        opacity: .35;
    }
}

/* Receipt */
.pp-receipt {
    width: 100%;
    margin: 4px 0;
    background: var(--pp-surface);
    border: 1px solid var(--pp-line-soft);
    border-radius: 14px;
    padding: 4px 20px;
    text-align: left;
}

    .pp-receipt div {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 0;
        border-bottom: 1px solid #EEF1F6;
        font-size: 14px;
    }

        .pp-receipt div:last-child {
            border-bottom: 0;
        }

    .pp-receipt dt {
        color: var(--pp-muted);
    }

    .pp-receipt dd {
        margin: 0;
        font-weight: 600;
        text-align: right;
        word-break: break-all;
    }

.pp-secure {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pp-muted);
    padding-top: 8px;
}

/* Standalone page (Unavailable) */
.pp-solo {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

    .pp-solo .pp-panel {
        gap: 18px;
        padding-top: 0;
    }

/* =========================================================
   Tablet and below: stack, summary becomes a header
   ========================================================= */
@media (max-width: 959px) {
    .pp-shell {
        grid-template-columns: 1fr;
    }

    .pp-summary__inner {
        position: static;
        min-height: 0;
        max-width: 640px;
        margin: 0 auto;
        padding: 16px 20px 24px;
        gap: 18px;
    }

    .pp-back__label {
        display: none;
    }

    .pp-back {
        width: 44px;
        justify-content: center;
        margin-left: -10px;
    }

    .pp-merchant__mark {
        width: 40px;
        height: 40px;
    }

    .pp-merchant__logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .pp-merchant__logo--initial {
        font-size: 17px;
    }

    .pp-merchant__name {
        font-size: 16px;
    }

    .pp-summary__top {
        order: 0;
    }

    .pp-merchant {
        order: 1;
    }

    .pp-amount {
        order: 2;
    }

    .pp-details-toggle {
        order: 3;
    }

    .pp-items {
        order: 4;
    }

    .pp-powered {
        display: none;
    }

    .pp-details-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        align-self: flex-start;
        min-height: 44px;
        margin: -8px 0 -8px -8px;
        padding: 0 8px;
        border: 0;
        background: none;
        color: var(--pp-navy-link);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        border-radius: 8px;
    }

        .pp-details-toggle svg {
            transition: transform .2s;
        }

        .pp-details-toggle[aria-expanded="true"] svg {
            transform: rotate(180deg);
        }

    .pp-items {
        display: none;
        padding-top: 16px;
    }

    .pp-summary.is-open .pp-items {
        display: flex;
    }

    .pp-main {
        padding: 28px 20px 32px;
    }

    .pp-panel {
        max-width: 560px;
    }
}

/* =========================================================
   Phones: sticky Pay bar, tighter grid
   ========================================================= */
@media (max-width: 639px) {
    .pp-main {
        padding: 24px 16px 0;
    }

    .pp-panel {
        gap: 20px;
    }

    #pp-form {
        gap: 20px;
    }

    .pp-providers {
        gap: 8px;
    }

    .pp-provider__box {
        min-height: 108px;
        padding: 14px 4px 12px;
        gap: 6px;
        border-radius: 12px;
    }

    .pp-provider input:checked + .pp-provider__box {
        padding: 13.5px 3.5px 11.5px;
    }

    .pp-provider__badge {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 13px;
    }

    .pp-provider__badge--prime {
        font-size: 20px;
    }

    .pp-provider__name {
        font-size: 13px;
    }

    .pp-provider__hint {
        font-size: 11px;
    }

    .pp-provider__tag {
        top: 6px;
        right: 6px;
        font-size: 9px;
        padding: 2px 6px;
    }

    .pp-wallet-note {
        padding: 12px 14px;
    }

        .pp-wallet-note div {
            font-size: 13px;
        }

    .pp-method__box {
        height: 52px;
        font-size: 14px;
        gap: 8px;
    }

    .pp-paybar {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 0 -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--pp-surface);
        border-top: 1px solid var(--pp-line-soft);
        box-shadow: 0 -6px 18px rgba(14, 23, 38, .06);
    }

    .pp-view--center {
        padding-top: 12px;
    }

    .pp-icon {
        width: 76px;
        height: 76px;
    }

    .pp-receipt {
        padding: 4px 16px;
    }

    .pp-secure {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 359px) {
    .pp-methods {
        grid-template-columns: 1fr;
    }

    .pp-providers {
        grid-template-columns: 1fr;
    }

    .pp-provider__box {
        min-height: 64px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px;
        text-align: left;
    }

    .pp-provider input:checked + .pp-provider__box {
        padding: 11.5px 13.5px;
    }

    .pp-provider__hint {
        margin-left: auto;
    }

    .pp-phone__cc {
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
.pp-link-methods{
    text-align:center;
}
    .pp-link-methods .pp-provider__badge {
        margin:5px;
    }

.pp-link-methods .top-links {
    display: flex;
    margin-bottom: 10px;
    margin-top: 10px;
    justify-content: center;
}

/* ---- Sandbox: "Test mode" banner (shown only by the sandbox checkout host, Sandbox:Enabled) ---- */
.pp-test-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 16px;
    background: #FDE68A;
    color: #422006;
    border-bottom: 1px solid #F59E0B;
    font: 500 13px/1.4 "DM Sans", system-ui, sans-serif;
    text-align: center;
}
.pp-test-banner strong { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
