/* Royal Routes — payment receipt (print + screen) */

:root {
    --rr-rcpt-navy: #123a73;
    --rr-rcpt-gold: #f4b400;
    --rr-rcpt-slate: #64748b;
}

* {
    box-sizing: border-box;
}

body.rr-receipt-body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: #f0f4fa;
    color: #0f172a;
    min-height: 100vh;
}

.rr-receipt-page {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.rr-receipt-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.rr-receipt-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
}

.rr-receipt-bg__orb--1 {
    width: 360px;
    height: 360px;
    top: -80px;
    right: -60px;
    background: rgba(18, 58, 115, 0.2);
}

.rr-receipt-bg__orb--2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -40px;
    background: rgba(244, 180, 0, 0.15);
}

.rr-receipt-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.rr-receipt-toolbar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--rr-rcpt-navy);
    text-decoration: none;
}

.rr-receipt-toolbar__back:hover {
    text-decoration: underline;
}

.rr-receipt-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rr-receipt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rr-receipt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 58, 115, 0.12);
}

.rr-receipt-btn--gold {
    background: linear-gradient(135deg, var(--rr-rcpt-gold), #e5a800);
    color: var(--rr-rcpt-navy);
    border-color: rgba(18, 58, 115, 0.08);
}

.rr-receipt-btn--outline {
    background: #fff;
    color: var(--rr-rcpt-navy);
    border-color: var(--rr-rcpt-navy);
}

.rr-receipt-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(18, 58, 115, 0.04),
        0 24px 56px rgba(18, 58, 115, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.rr-receipt-card__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--rr-rcpt-navy) 0%, #1a4d8f 55%, #0f2744 100%);
    color: #fff;
    padding: 32px 28px 28px;
    text-align: center;
}

.rr-receipt-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 14px 22px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.rr-receipt-card__logo {
    display: block;
    width: 132px;
    max-width: min(132px, 78vw);
    height: auto;
    margin: 0 auto;
}

.rr-receipt-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(244, 180, 0, 0.2);
    color: var(--rr-rcpt-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rr-receipt-card__head h1,
.rr-receipt-card__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.rr-receipt-card__date {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.rr-receipt-card__amount {
    margin: -20px 24px 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--rr-rcpt-gold), #e5a800);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(244, 180, 0, 0.35);
    position: relative;
    z-index: 2;
}

.rr-receipt-card__amount small {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(18, 58, 115, 0.75);
    margin-bottom: 4px;
}

.rr-receipt-card__amount strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rr-rcpt-navy);
    letter-spacing: -0.02em;
}

.rr-receipt-card__body {
    padding: 36px 28px 20px;
}

.rr-receipt-details {
    margin: 0;
    display: grid;
    gap: 10px;
}

.rr-receipt-details__row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rr-receipt-details__row dt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rr-rcpt-slate);
}

.rr-receipt-details__row dt i {
    color: var(--rr-rcpt-navy);
}

.rr-receipt-details__row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    word-break: break-word;
}

.rr-receipt-card__foot {
    padding: 20px 28px 28px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}

.rr-receipt-card__foot p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--rr-rcpt-slate);
}

.rr-receipt-card__foot p:last-child {
    margin-bottom: 0;
}

.rr-receipt-card__foot i {
    color: var(--rr-rcpt-navy);
}

.rr-receipt-note {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--rr-rcpt-slate);
}

@media (max-width: 520px) {
    .rr-receipt-details__row {
        grid-template-columns: 1fr;
    }

    .rr-receipt-details__row dd {
        text-align: left;
    }

    .rr-receipt-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .rr-receipt-toolbar__actions {
        flex-direction: column;
    }

    .rr-receipt-btn {
        justify-content: center;
        width: 100%;
    }
}

@media print {
    body.rr-receipt-body {
        background: #fff;
    }

    .no-print {
        display: none !important;
    }

    .rr-receipt-page {
        max-width: none;
        padding: 0;
    }

    .rr-receipt-bg {
        display: none;
    }

    .rr-receipt-card {
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .rr-receipt-card__amount {
        box-shadow: none;
    }

    .rr-receipt-card__logo-wrap {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .rr-receipt-card__logo {
        width: 132px;
        max-width: 132px;
    }
}

/* Off-screen capture for thank-you page PNG download */
.rr-receipt-download-capture {
    position: fixed;
    left: -10000px;
    top: 0;
    z-index: 1;
    width: 400px;
    pointer-events: none;
}

.rr-receipt-download-capture--active {
    left: 0;
    top: 0;
    opacity: 0.01;
}

.rr-receipt-page--capture {
    max-width: 400px;
    padding: 0;
    margin: 0;
}

.rr-receipt-page--capture .rr-receipt-card {
    margin: 0;
}
