/* ==========================================================================
   FabSoftQuotaPurchase-Receipt.css
   Receipt styles for the AI File Pro Quota Purchase post-payment view.
   Rendered by partial: FabSoft-QuotaPurchaseReceipt.cshtml
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
    --qp-r-success: #34C759;
    --qp-r-success-bg: rgba(52, 199, 89, 0.08);
    --qp-r-success-border: rgba(52, 199, 89, 0.25);
    --qp-r-text: #1D1D1F;
    --qp-r-text-secondary: #6E6E73;
    --qp-r-bg: #F5F5F7;
    --qp-r-white: #FFFFFF;
    --qp-r-border: #E5E5E7;
    --qp-r-blue: #0071E3;
    --qp-r-blue-hover: #0077ED;
    --qp-r-radius: 16px;
    --qp-r-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- 2. SCOPE RESET ---------- */
.qp-receipt {
    all: initial;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--qp-r-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    box-sizing: border-box;
}

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

/* ---------- 3. CARD ---------- */
.qp-receipt-card {
    background: var(--qp-r-white);
    border-radius: var(--qp-r-radius);
    box-shadow: var(--qp-r-shadow);
    padding: 40px 32px;
    border: 1px solid var(--qp-r-border);
}

/* ---------- 4. LOGO ---------- */
.qp-receipt-logo {
    text-align: center;
    margin-bottom: 32px;
}

.qp-receipt-logo a {
    display: inline-block;
    text-decoration: none;
}

.qp-receipt-logo img {
    height: 48px;
    width: auto;
}

/* ---------- 5. ANIMATIONS ---------- */
.qp-receipt-animate {
    opacity: 0;
    transform: translateY(16px);
    animation: qpReceiptFadeIn 0.5s ease forwards;
}

.qp-receipt-animate-d1 { animation-delay: 0.1s; }
.qp-receipt-animate-d2 { animation-delay: 0.2s; }
.qp-receipt-animate-d3 { animation-delay: 0.3s; }
.qp-receipt-animate-d4 { animation-delay: 0.4s; }

@keyframes qpReceiptFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 6. SUCCESS HERO ---------- */
.qp-receipt-hero {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--qp-r-border);
}

.qp-receipt-checkmark {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    display: inline-block;
}

.qp-receipt-checkmark-circle {
    fill: var(--qp-r-success-bg);
    stroke: var(--qp-r-success);
    stroke-width: 2;
}

.qp-receipt-checkmark-icon {
    stroke: var(--qp-r-success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.qp-receipt-hero-title {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--qp-r-text);
    margin: 0 0 8px;
    font-family: inherit;
}

.qp-receipt-order-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--qp-r-text-secondary);
    margin: 0 0 8px;
}

.qp-receipt-hero-subtitle {
    font-size: 16px;
    color: var(--qp-r-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ---------- 7. ORDER SUMMARY ---------- */
.qp-receipt-summary {
    margin-bottom: 28px;
}

.qp-receipt-summary-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qp-r-text-secondary);
    margin: 0 0 12px;
}

.qp-receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.qp-receipt-table thead th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--qp-r-text-secondary);
    text-align: left;
    padding: 8px 0;
    border-bottom: 2px solid var(--qp-r-border);
    font-family: inherit;
}

.qp-receipt-table tbody td {
    padding: 12px 0;
    color: var(--qp-r-text);
    border-bottom: 1px solid var(--qp-r-border);
    vertical-align: top;
    font-family: inherit;
}

.qp-receipt-table tfoot td {
    padding: 12px 0;
    font-weight: 700;
    color: var(--qp-r-text);
    border-top: 2px solid var(--qp-r-border);
    font-family: inherit;
}

.qp-receipt-qty {
    text-align: center;
    width: 50px;
}

.qp-receipt-table thead th:last-child,
.qp-receipt-table tbody td:last-child,
.qp-receipt-table tfoot td:last-child {
    text-align: right;
}

/* ---------- 8. WHAT'S NEXT ---------- */
.qp-receipt-next {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--qp-r-border);
}

.qp-receipt-next-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qp-r-text-secondary);
    margin: 0 0 14px;
}

.qp-receipt-actions {
    display: flex;
    gap: 12px;
}

.qp-receipt-action-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--qp-r-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--qp-r-text);
    transition: all 0.2s ease;
    background: var(--qp-r-white);
}

.qp-receipt-action-card:hover {
    border-color: var(--qp-r-blue);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
}

.qp-receipt-action-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.4);
    border-color: var(--qp-r-blue);
}

.qp-receipt-action-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qp-receipt-action-icon svg {
    width: 20px;
    height: 20px;
}

.qp-receipt-action-icon--video {
    background: rgba(0, 113, 227, 0.08);
    color: var(--qp-r-blue);
}

.qp-receipt-action-icon--support {
    background: rgba(52, 199, 89, 0.08);
    color: var(--qp-r-success);
}

.qp-receipt-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qp-receipt-action-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--qp-r-text);
}

.qp-receipt-action-desc {
    font-size: 12px;
    color: var(--qp-r-text-secondary);
}

/* ---------- 9. PRINT BUTTON ---------- */
.qp-receipt-print {
    margin-bottom: 24px;
    text-align: center;
}

.qp-receipt-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--qp-r-border);
    border-radius: 980px;
    background: var(--qp-r-white);
    color: var(--qp-r-text);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qp-receipt-print-btn:hover {
    background: var(--qp-r-bg);
    border-color: var(--qp-r-text-secondary);
    transform: translateY(-1px);
    box-shadow: var(--qp-r-shadow);
}

.qp-receipt-print-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.4);
    border-color: var(--qp-r-blue);
}

.qp-receipt-print-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- 10. TRUST BADGES ---------- */
.qp-receipt-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--qp-r-border);
}

.qp-receipt-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--qp-r-text-secondary);
    font-weight: 500;
}

.qp-receipt-trust-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ---------- 11. FOOTER ---------- */
.qp-receipt-footer {
    text-align: center;
}

.qp-receipt-footer-support {
    font-size: 14px;
    color: var(--qp-r-text-secondary);
    margin: 0 0 8px;
}

.qp-receipt-footer-support a {
    color: var(--qp-r-blue);
    text-decoration: none;
}

.qp-receipt-footer-support a:hover {
    text-decoration: underline;
}

.qp-receipt-copyright {
    font-size: 12px;
    color: var(--qp-r-text-secondary);
    margin: 0;
}

/* ---------- 12. RESPONSIVE ---------- */
@media (max-width: 560px) {
    .qp-receipt {
        padding: 24px 16px 48px;
    }

    .qp-receipt-card {
        padding: 28px 20px;
    }

    .qp-receipt-actions {
        flex-direction: column;
    }

    .qp-receipt-trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* ---------- 13. PRINT ---------- */
@media print {
    @page {
        size: letter;
        margin: 0.75in;
    }

    body, .salesTrial-body {
        background: white !important;
    }

    .qp-receipt {
        padding: 0;
        max-width: 100%;
    }

    .qp-receipt-card {
        box-shadow: none;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .qp-receipt-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .qp-receipt-print {
        display: none !important;
    }

    .qp-receipt-action-card {
        border-color: var(--qp-r-border, #D2D2D7);
    }

    .qp-receipt-action-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qp-receipt-animate {
        animation: none;
        opacity: 1;
        transform: none;
    }
}