/* Raio-X Checkout Personalizado — somente body.raiox-checkout-active */

body.raiox-checkout-active {
    background: #f4f7fb !important;
}

/* Remove distrações comuns do tema no checkout. */
body.raiox-checkout-active header.wp-block-template-part,
body.raiox-checkout-active footer.wp-block-template-part,
body.raiox-checkout-active .wp-site-blocks > header,
body.raiox-checkout-active .wp-site-blocks > footer,
body.raiox-checkout-active .site-header,
body.raiox-checkout-active .site-footer,
body.raiox-checkout-active #masthead,
body.raiox-checkout-active #colophon {
    display: none !important;
}

body.raiox-checkout-active main,
body.raiox-checkout-active .wp-block-post-content,
body.raiox-checkout-active .entry-content,
body.raiox-checkout-active .site-main,
body.raiox-checkout-active .wp-site-blocks {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.raiox-checkout-active .wp-block-post-title,
body.raiox-checkout-active .entry-title,
body.raiox-checkout-active h1.wp-block-post-title {
    display: none !important;
}

body.raiox-checkout-active .pmpro {
    --rx-blue: #2563eb;
    --rx-blue-dark: #1d4ed8;
    --rx-ink: #101828;
    --rx-muted: #667085;
    --rx-line: #e4e7ec;
    --rx-bg-soft: #f8fafc;
    --rx-success: #067647;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto !important;
    padding: 42px 24px 56px !important;
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--rx-ink);
}

.raiox-checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    gap: 46px;
    align-items: start;
}

.raiox-checkout-pitch {
    position: sticky;
    top: 28px;
    padding: 16px 8px 20px 0;
}

.raiox-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 54px;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
}

.raiox-brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--rx-blue);
    color: #fff;
    transform: rotate(-4deg);
}

.raiox-badge,
.raiox-step {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--rx-blue-dark);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
}

.raiox-checkout-pitch h1 {
    margin: 18px 0 16px !important;
    max-width: 590px;
    font-size: clamp(35px, 4.2vw, 56px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.04em;
    text-transform: none !important;
    color: var(--rx-ink) !important;
}

.raiox-lead {
    margin: 0 0 30px !important;
    max-width: 565px;
    color: var(--rx-muted);
    font-size: 17px;
    line-height: 1.65;
}

.raiox-benefits {
    display: grid;
    gap: 16px;
}

.raiox-benefits > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
}

.raiox-benefits > div > span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ecfdf3;
    color: var(--rx-success);
    font-weight: 900;
    font-size: 13px;
}

.raiox-benefits p {
    margin: 0 !important;
    line-height: 1.3;
}

.raiox-benefits strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--rx-ink);
}

.raiox-benefits small {
    display: block;
    color: var(--rx-muted);
    font-size: 13px;
    line-height: 1.45;
}

.raiox-price-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 16px;
    align-items: center;
    max-width: 420px;
    margin-top: 30px;
    padding: 18px 20px;
    border: 1px solid #dbe5f5;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
}

.raiox-price-box span,
.raiox-price-box small {
    color: var(--rx-muted);
    font-size: 12px;
}

.raiox-price-box strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: 27px;
    line-height: 1;
    color: var(--rx-ink);
}

.raiox-checkout-card {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(16, 24, 40, .08);
}

.raiox-order-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 30px 32px 26px;
    border-bottom: 1px solid var(--rx-line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.raiox-order-head h2 {
    margin: 10px 0 6px !important;
    color: var(--rx-ink) !important;
    font-size: 27px !important;
    line-height: 1.12 !important;
    text-transform: none !important;
    letter-spacing: -.02em;
}

.raiox-order-head p {
    margin: 0 !important;
    max-width: 420px;
    color: var(--rx-muted);
    font-size: 13px;
    line-height: 1.5;
}

.raiox-order-price {
    min-width: 150px;
    text-align: right;
}

.raiox-order-price small,
.raiox-order-price span {
    display: block;
    color: var(--rx-muted);
    font-size: 11px;
}

.raiox-order-price strong {
    display: block;
    margin: 4px 0;
    color: var(--rx-ink);
    font-size: 25px;
    line-height: 1;
}

/* O resumo comercial acima substitui visualmente o resumo nativo de preço. */
body.raiox-checkout-active #pmpro_pricing_fields {
    display: none !important;
}

body.raiox-checkout-active .pmpro_form {
    margin: 0 !important;
    padding: 28px 32px 8px !important;
}

body.raiox-checkout-active .pmpro_form_fieldset,
body.raiox-checkout-active .pmpro_card {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.raiox-checkout-active .pmpro_card_content {
    padding: 0 !important;
}

body.raiox-checkout-active .pmpro_card_actions {
    margin-top: 12px !important;
    padding: 12px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--rx-muted);
    font-size: 12px;
}

body.raiox-checkout-active .pmpro_form_fieldset legend,
body.raiox-checkout-active .pmpro_card_title,
body.raiox-checkout-active .pmpro_card_title h2,
body.raiox-checkout-active .pmpro_form_fieldset h2 {
    margin: 0 0 15px !important;
    padding: 0 !important;
    color: var(--rx-ink) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.raiox-checkout-active .pmpro_form_fields,
body.raiox-checkout-active .pmpro_cols-2 {
    gap: 12px !important;
}

body.raiox-checkout-active .pmpro_form_field {
    margin-bottom: 14px !important;
}

body.raiox-checkout-active .pmpro_form_label,
body.raiox-checkout-active label {
    display: block;
    margin: 0 0 7px !important;
    color: #344054 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body.raiox-checkout-active .pmpro_form_input,
body.raiox-checkout-active input[type="text"],
body.raiox-checkout-active input[type="email"],
body.raiox-checkout-active input[type="password"],
body.raiox-checkout-active input[type="tel"],
body.raiox-checkout-active select,
body.raiox-checkout-active textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding: 11px 13px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 10px !important;
    outline: none !important;
    background: #fff !important;
    color: #101828 !important;
    font-size: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

body.raiox-checkout-active .pmpro_form_input:focus,
body.raiox-checkout-active input:focus,
body.raiox-checkout-active select:focus,
body.raiox-checkout-active textarea:focus {
    border-color: #84adff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
}

body.raiox-checkout-active .pmpro_message {
    margin: 0 0 18px !important;
    padding: 12px 14px !important;
    border: 1px solid #f1c0c0 !important;
    border-radius: 10px !important;
    background: #fff5f5 !important;
    font-size: 13px !important;
}

body.raiox-checkout-active a {
    color: var(--rx-blue);
}

body.raiox-checkout-active .pmpro_payment-discount-code {
    display: none !important;
}

.raiox-checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 6px 0 15px;
    padding: 13px 14px;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    background: var(--rx-bg-soft);
    color: #475467;
    font-size: 11px;
    font-weight: 700;
}

body.raiox-checkout-active .pmpro_form_submit {
    margin: 0 !important;
    padding: 2px 0 22px !important;
}

.raiox-submit-wrap {
    display: block !important;
    width: 100% !important;
}

body.raiox-checkout-active #pmpro_btn-submit.raiox-submit,
body.raiox-checkout-active #pmpro_btn-submit,
body.raiox-checkout-active .pmpro_btn-submit-checkout {
    display: block !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--rx-blue) !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .23) !important;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

body.raiox-checkout-active #pmpro_btn-submit:hover,
body.raiox-checkout-active .pmpro_btn-submit-checkout:hover {
    background: var(--rx-blue-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .28) !important;
}

body.raiox-checkout-active #pmpro_processing_message {
    display: block !important;
    margin-top: 10px !important;
    color: var(--rx-muted);
    font-size: 12px;
    text-align: center;
}

.raiox-after-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: -8px;
    padding: 0 32px 26px;
    color: var(--rx-muted);
    font-size: 11px;
}

/* Stripe/iframe e elementos de gateways */
body.raiox-checkout-active .StripeElement,
body.raiox-checkout-active #pmpro_payment_information_fields iframe,
body.raiox-checkout-active .pmpro_checkout_gateway-stripe .pmpro_form_input {
    border-radius: 10px !important;
}

@media (max-width: 920px) {
    body.raiox-checkout-active .pmpro {
        padding: 24px 16px 40px !important;
    }

    .raiox-checkout-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .raiox-checkout-pitch {
        position: static;
        padding: 0;
    }

    .raiox-brand {
        margin-bottom: 30px;
    }

    .raiox-checkout-pitch h1 {
        max-width: 700px;
        font-size: clamp(34px, 9vw, 48px) !important;
    }

    .raiox-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .raiox-price-box {
        max-width: none;
    }
}

@media (max-width: 620px) {
    body.raiox-checkout-active .pmpro {
        padding: 18px 12px 32px !important;
    }

    .raiox-brand {
        margin-bottom: 24px;
    }

    .raiox-checkout-pitch h1 {
        margin-top: 14px !important;
        font-size: 35px !important;
        line-height: 1.04 !important;
    }

    .raiox-lead {
        font-size: 15px;
    }

    .raiox-benefits {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .raiox-checkout-card {
        border-radius: 17px;
    }

    .raiox-order-head {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 20px 20px;
    }

    .raiox-order-price {
        display: grid;
        grid-template-columns: 1fr auto;
        text-align: left;
        align-items: end;
        padding-top: 14px;
        border-top: 1px solid var(--rx-line);
    }

    .raiox-order-price small,
    .raiox-order-price span {
        grid-column: 1;
    }

    .raiox-order-price strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    body.raiox-checkout-active .pmpro_form {
        padding: 22px 20px 8px !important;
    }

    body.raiox-checkout-active .pmpro_cols-2 {
        display: block !important;
    }

    .raiox-checkout-trust {
        display: grid;
        grid-template-columns: 1fr;
    }

    .raiox-after-form {
        display: grid;
        padding: 0 20px 22px;
        text-align: center;
    }
}
