/**
 * POMT Checkout Premium — layout estilo mockup (form branco + prova social lateral)
 */

html:has(body.checkout-premium) {
    overflow-x: hidden;
    width: 100%;
}

body.checkout-premium {
    margin: 0;
    background: #ffffff !important;
    min-height: 100vh;
    color: #111827;
    overflow-x: hidden;
    width: 100%;
}

body.checkout-premium .checkout-top {
    background: transparent;
}

body.checkout-premium .hero-wrap,
body.checkout-premium .hero-caption {
    max-width: 100%;
}

body.checkout-premium .shell {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.checkout-premium .checkout-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    min-height: 100vh;
    align-items: stretch;
    max-width: 100%;
    min-width: 0;
}

body.checkout-premium .checkout-form-col {
    background: #ffffff;
    padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 56px);
    overflow-y: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.checkout-premium .checkout-form-inner {
    max-width: 560px;
    margin: 0 auto;
    min-width: 0;
    width: 100%;
}

body.checkout-premium .checkout-proof-col {
    background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, #000) 100%);
    color: var(--page-text);
    padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
}

body.checkout-premium .checkout-header {
    margin-bottom: 28px;
}

body.checkout-premium .checkout-header h1 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

body.checkout-premium .checkout-header .secure-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

body.checkout-premium .checkout-header .secure-line svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

body.checkout-premium .pay-box {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: #111827;
    overflow: visible !important;
}

body.checkout-premium .product-summary {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

body.checkout-premium .product-summary-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.checkout-premium .product-summary-thumb-ph {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

body.checkout-premium .product-summary-body {
    flex: 1;
    min-width: 0;
}

body.checkout-premium .product-summary-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 6px;
}

body.checkout-premium .product-summary-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
}

body.checkout-premium .product-summary-access {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.checkout-premium .product-summary-price {
    text-align: right;
    flex-shrink: 1;
    min-width: 0;
    position: relative;
}

body.checkout-premium .discount-tag--summary {
    position: static;
    display: inline-flex;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.checkout-premium .discount-tag--summary .discount-tag-off {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 10px 10px;
    font-size: 10px;
    letter-spacing: 1px;
}

body.checkout-premium .product-summary-price .price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

body.checkout-premium .product-summary-price .price-now {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    margin-top: 4px;
}

body.checkout-premium .price-installments {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px 6px;
}

body.checkout-premium .price-installments-count {
    font-size: 22px;
    font-weight: 800;
    color: #374151;
}

body.checkout-premium .price-installments-of {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

body.checkout-premium .price-installments-amount {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

body.checkout-premium .price-pix-hint {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
}

body.checkout-premium .checkout-total-value .price-installments {
    justify-content: flex-end;
}

body.checkout-premium .checkout-total-value .price-installments-count {
    font-size: 24px;
}

body.checkout-premium .checkout-total-value .price-installments-amount {
    font-size: 32px;
}

body.checkout-premium .testi-stars::before {
    content: '★★★★★';
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 2px;
}

body.checkout-premium .testi-avatar-ph::before {
    content: '👤';
    font-size: 18px;
}

body.checkout-premium .checkout-security-badge .shield::before {
    content: '🛡';
    font-size: 28px;
}

body.checkout-premium .section-label {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

body.checkout-premium .coupon-block {
    margin-bottom: 24px;
}

body.checkout-premium .coupon-block .coupon-row {
    display: flex;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

body.checkout-premium .coupon-block .coupon-row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

body.checkout-premium .coupon-block .btn-coupon {
    padding: 12px 20px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

body.checkout-premium .coupon-block .btn-coupon:hover {
    background: color-mix(in srgb, var(--primary) 8%, #fff);
}

body.checkout-premium .pay-head {
    display: none;
}

body.checkout-premium .product-chip {
    display: none;
}

body.checkout-premium .checkout-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 8px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

body.checkout-premium .checkout-total--pay {
    margin-top: 4px;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

body.checkout-premium .checkout-total--pay.checkout-total--instant {
    border-color: color-mix(in srgb, var(--primary) 45%, #fff);
    background: color-mix(in srgb, var(--primary) 6%, #fff);
}

body.checkout-premium .checkout-total--pay.checkout-total--instant .checkout-total-value strong {
    color: #059669;
}

body.checkout-premium .checkout-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

body.checkout-premium .checkout-total-value {
    text-align: right;
}

body.checkout-premium .checkout-total-value strong {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

body.checkout-premium .checkout-total-value small {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

body.checkout-premium .payer-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

body.checkout-premium .payer-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 14px;
}

body.checkout-premium .field label {
    color: #374151;
    font-size: 13px;
}

body.checkout-premium .field input {
    border-color: #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
}

body.checkout-premium .field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
    outline: none;
}

body.checkout-premium .checkout-extra-payer {
    margin: 0 0 14px;
    padding: 14px 14px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fafafa;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.checkout-premium .checkout-extra-payer.is-placed-in-method {
    margin: 14px 0 10px;
    padding: 14px 0 4px;
    border-top: 1px solid #e5e7eb;
}

body.checkout-premium #paymentBrick_container .checkout-extra-payer.is-placed-in-method {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

body.checkout-premium .checkout-extra-payer .field {
    margin-bottom: 10px;
}

body.checkout-premium .field-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}

body.checkout-premium .checkout-extra-payer .field:last-child {
    margin-bottom: 0;
}

body.checkout-premium #paymentBrick_container {
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.checkout-premium #paymentBrick_container .andes-card,
body.checkout-premium #paymentBrick_container .mp-checkout-bricks-container {
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.checkout-premium #paymentBrick_container input,
body.checkout-premium #paymentBrick_container select,
body.checkout-premium #paymentBrick_container .andes-form-control__field,
body.checkout-premium .field input {
    max-width: 100%;
    box-sizing: border-box;
}
body.checkout-premium #paymentBrick_container button[type="submit"],
body.checkout-premium #paymentBrick_container .andes-button--loud {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 75%, #000)) !important;
    border: none !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent) !important;
    min-height: 54px !important;
}

body.checkout-premium .order-bump {
    border-radius: 14px !important;
    border: 2px solid #86efac !important;
    box-shadow: none !important;
    overflow: hidden;
}

body.checkout-premium .order-bump-head {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-bottom: 1px solid #bbf7d0;
}

body.checkout-premium .order-bump-head input {
    accent-color: #059669;
}

body.checkout-premium .order-bump-body {
    background: #f0fdf4 !important;
}

body.checkout-premium .trust-row {
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
    padding-top: 16px;
    color: #9ca3af;
}

body.checkout-premium .checkout-legal {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
    margin-top: 16px;
}

body.checkout-premium .checkout-legal a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

body.checkout-premium .checkout-proof-col .value-head {
    margin-bottom: 24px;
}

body.checkout-premium .checkout-proof-col .value-head h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

body.checkout-premium .checkout-proof-col .value-head h2 em {
    font-style: normal;
    color: var(--primary);
}

body.checkout-premium .checkout-proof-col .value-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 16px;
}

body.checkout-premium .checkout-proof-col .benefit-list li {
    font-size: 14px;
    color: var(--page-soft);
    margin-bottom: 14px;
}

body.checkout-premium .checkout-proof-col .benefit-list li::before {
    background-color: color-mix(in srgb, var(--primary) 18%, transparent);
    border-color: var(--primary);
}

body.checkout-premium .checkout-proof-col .testi-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
}

body.checkout-premium .checkout-proof-col .testi-stars {
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

body.checkout-premium .checkout-proof-col .testi-text {
    color: var(--page-soft);
    font-style: normal;
    font-size: 14px;
    line-height: 1.55;
}

body.checkout-premium .checkout-proof-col .testi-name {
    color: var(--primary);
    font-size: 13px;
    margin-top: 10px;
}

body.checkout-premium .checkout-proof-col .testi-role {
    display: block;
    font-size: 12px;
    color: var(--page-muted);
    font-weight: 400;
    margin-top: 2px;
}

body.checkout-premium .checkout-security-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.checkout-premium .checkout-security-badge .shield {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

body.checkout-premium .checkout-security-badge strong {
    display: block;
    font-size: 14px;
    color: var(--page-text);
    margin-bottom: 2px;
}

body.checkout-premium .checkout-security-badge span {
    font-size: 12px;
    color: var(--page-muted);
    line-height: 1.45;
}

body.checkout-premium .checkout-proof-col .seals {
    display: none;
}

body.checkout-premium .btn-free {
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}

@media (max-width: 900px) {
    body.checkout-premium .checkout-split {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    body.checkout-premium .checkout-form-col,
    body.checkout-premium .checkout-proof-col {
        width: 100%;
        max-width: 100%;
        flex: none;
        box-sizing: border-box;
    }

    body.checkout-premium .checkout-proof-col {
        order: 2;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.checkout-premium .checkout-form-col {
        order: 1;
        padding: 20px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    body.checkout-premium .checkout-form-inner,
    body.checkout-premium .layout,
    body.checkout-premium .pay-box,
    body.checkout-premium .coupon-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.checkout-premium .layout {
        display: block;
    }

    body.checkout-premium .product-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    body.checkout-premium .product-summary-price {
        width: 100%;
        text-align: left;
        padding-top: 12px;
        border-top: 1px dashed #e5e7eb;
        margin-top: 0;
    }

    body.checkout-premium .price-installments {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body.checkout-premium .price-pix-hint {
        text-align: left;
    }

    body.checkout-premium .coupon-block .coupon-row {
        width: 100%;
        min-width: 0;
    }

    body.checkout-premium .coupon-block .coupon-row input {
        min-width: 0;
        flex: 1 1 auto;
    }

    body.checkout-premium .coupon-block .btn-coupon {
        flex: 0 0 auto;
        padding: 12px 14px;
        font-size: 12px;
        max-width: 46%;
    }

    body.checkout-premium .checkout-extra-payer,
    body.checkout-premium .checkout-header,
    body.checkout-premium .section-label {
        width: 100%;
        max-width: 100%;
    }

    body.checkout-premium .scarcity {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

@media (min-width: 901px) {
    body.checkout-premium .layout {
        display: contents;
    }
}
