/*
 * PageHost Checkout SaaS v6 RC9
 * Escopo: cart.php?a=checkout com body.pagehost-saas-checkout
 */

body.pagehost-saas-checkout {
    --ph-saas-primary: #3a84b5;
    --ph-saas-primary-dark: #27678f;
    --ph-saas-primary-soft: #eef7fd;
    --ph-saas-ink: #172534;
    --ph-saas-muted: #687787;
    --ph-saas-border: #dce6ee;
    --ph-saas-bg: #f4f7fa;
    --ph-saas-success: #23855b;
    --ph-saas-danger: #b44141;
    --ph-saas-shadow: 0 18px 48px rgba(27, 55, 82, .10);
}

body.pagehost-saas-checkout #order-standard_cart {
    background: transparent;
}

body.pagehost-saas-checkout #order-standard_cart > .row {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

body.pagehost-saas-checkout #order-standard_cart .cart-sidebar {
    display: none !important;
}

body.pagehost-saas-checkout #order-standard_cart .cart-body {
    float: none !important;
    width: 100% !important;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 36px;
}

body.pagehost-saas-checkout #order-standard_cart .header-lined,
body.pagehost-saas-checkout #order-standard_cart .sidebar-collapsed {
    display: none !important;
}

#pagehost-saas-shell {
    margin: 8px 0 22px;
}

.pagehost-saas-hero {
    position: relative;
    overflow: hidden;
    padding: 24px 26px;
    border: 1px solid rgba(58, 132, 181, .18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 10%, rgba(58, 132, 181, .16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fbfe 100%);
    box-shadow: 0 12px 34px rgba(32, 73, 104, .07);
}

.pagehost-saas-hero::after {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    right: -65px;
    top: -85px;
    border-radius: 50%;
    border: 30px solid rgba(58, 132, 181, .055);
}

.pagehost-saas-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--ph-saas-primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pagehost-saas-title {
    margin: 0;
    color: var(--ph-saas-ink);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
}

.pagehost-saas-subtitle {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--ph-saas-muted);
    font-size: 14px;
    line-height: 1.55;
}


.pagehost-saas-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(58, 132, 181, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 6px 18px rgba(32, 73, 104, .045);
}

.pagehost-saas-access[hidden] {
    display: none !important;
}

.pagehost-saas-access-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--ph-saas-ink);
}

.pagehost-saas-access-copy strong {
    font-size: 13px;
    line-height: 1.35;
}

.pagehost-saas-access-copy span {
    margin-top: 2px;
    color: var(--ph-saas-muted);
    font-size: 11px;
    line-height: 1.4;
}

.pagehost-saas-access-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
}

.pagehost-saas-access-button,
.pagehost-saas-access-actions .btn,
.pagehost-saas-access-actions a {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0 !important;
    padding: 8px 13px !important;
    border-radius: 9px !important;
    white-space: nowrap;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.pagehost-saas-access-registered {
    border-color: var(--ph-saas-primary) !important;
    background: var(--ph-saas-primary) !important;
    color: #fff !important;
}

.pagehost-saas-access-registered:hover,
.pagehost-saas-access-registered:focus {
    border-color: var(--ph-saas-primary-dark) !important;
    background: var(--ph-saas-primary-dark) !important;
    color: #fff !important;
}

.pagehost-saas-access-google {
    border: 1px solid #d7e0e7 !important;
    background: #fff !important;
    color: #34495a !important;
}

.pagehost-saas-progress {
    margin-top: 17px;
}

.pagehost-saas-native-intro-hidden {
    display: none !important;
}

.pagehost-saas-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    color: var(--ph-saas-muted);
    font-size: 12px;
}

.pagehost-saas-progress-track {
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #e7eef4;
}

#pagehost-saas-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ph-saas-primary), #58a8dc);
    transition: width .22s ease;
}

#pagehost-saas-stepper {
    display: flex;
    align-items: flex-start;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.pagehost-saas-step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.pagehost-saas-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 19px);
    right: calc(-50% + 19px);
    height: 2px;
    background: #dfe7ed;
    transition: background .2s ease;
}

.pagehost-saas-step.is-complete:not(:last-child)::after {
    background: #8ccab2;
}

.pagehost-saas-step-button {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--ph-saas-muted);
    cursor: default;
}

.pagehost-saas-step.is-complete .pagehost-saas-step-button,
.pagehost-saas-step.is-active .pagehost-saas-step-button,
.pagehost-saas-step.is-available .pagehost-saas-step-button {
    cursor: pointer;
}

.pagehost-saas-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #d9e3eb;
    border-radius: 50%;
    background: #fff;
    color: #8997a4;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(29, 54, 79, .06);
    transition: all .2s ease;
}

.pagehost-saas-step.is-active .pagehost-saas-step-dot {
    border-color: var(--ph-saas-primary);
    background: var(--ph-saas-primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(58, 132, 181, .12);
}

.pagehost-saas-step.is-complete .pagehost-saas-step-dot {
    border-color: var(--ph-saas-success);
    background: var(--ph-saas-success);
    color: #fff;
}

.pagehost-saas-step-label {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pagehost-saas-checkout #frmCheckout {
    margin: 0;
}

.pagehost-saas-stage-panel {
    position: relative;
    margin: 0 0 20px;
    padding: 26px;
    border: 1px solid var(--ph-saas-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ph-saas-shadow);
}

.pagehost-saas-stage-panel[hidden] {
    display: none !important;
}

.pagehost-saas-stage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f4;
}

.pagehost-saas-stage-kicker {
    margin-bottom: 4px;
    color: var(--ph-saas-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pagehost-saas-stage-title {
    margin: 0;
    color: var(--ph-saas-ink);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
}

.pagehost-saas-stage-description {
    margin: 5px 0 0;
    color: var(--ph-saas-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pagehost-saas-stage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ph-saas-primary-soft);
    color: var(--ph-saas-primary-dark);
    font-size: 18px;
}

.pagehost-saas-stage-error {
    display: none;
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #efcccc;
    border-radius: 10px;
    background: #fff6f6;
    color: var(--ph-saas-danger);
    font-size: 12px;
    line-height: 1.45;
}

.pagehost-saas-stage-error.is-visible {
    display: block;
}

.pagehost-saas-stage-body > .sub-heading,
.pagehost-saas-original-heading {
    display: none !important;
}

.pagehost-saas-stage-body .row {
    margin-left: -7px;
    margin-right: -7px;
}

.pagehost-saas-stage-body .row > [class*="col-"] {
    padding-left: 7px;
    padding-right: 7px;
}

body.pagehost-saas-checkout #frmCheckout .form-group {
    margin-bottom: 14px;
}

body.pagehost-saas-checkout #frmCheckout .form-control,
body.pagehost-saas-checkout #frmCheckout select.form-control,
body.pagehost-saas-checkout #frmCheckout .field.form-control {
    min-height: 46px;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    background-color: #fff;
    color: #263748;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

body.pagehost-saas-checkout #frmCheckout textarea.form-control {
    min-height: 108px;
    padding-top: 12px;
    resize: vertical;
}

body.pagehost-saas-checkout #frmCheckout .form-control:focus {
    border-color: var(--ph-saas-primary);
    box-shadow: 0 0 0 3px rgba(58, 132, 181, .11);
}

body.pagehost-saas-checkout #frmCheckout .prepend-icon .field-icon,
body.pagehost-saas-checkout #frmCheckout .input-group-addon {
    color: #7890a3;
}

body.pagehost-saas-checkout #frmCheckout .pagehost-field-valid,
body.pagehost-saas-checkout #frmCheckout .has-success .form-control {
    border-color: #9fd2bc;
    background-color: #fbfffd;
}

body.pagehost-saas-checkout #frmCheckout .has-error .form-control,
body.pagehost-saas-checkout #frmCheckout [aria-invalid="true"] {
    border-color: #dc8d8d;
    background-color: #fffafa;
}

.pagehost-saas-stage-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf1f4;
}

.pagehost-saas-stage-nav .btn {
    min-width: 120px;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
}

.pagehost-saas-btn-next {
    border-color: var(--ph-saas-primary) !important;
    background: var(--ph-saas-primary) !important;
    color: #fff !important;
}

.pagehost-saas-btn-next:hover,
.pagehost-saas-btn-next:focus {
    border-color: var(--ph-saas-primary-dark) !important;
    background: var(--ph-saas-primary-dark) !important;
}

.pagehost-saas-btn-next:disabled,
.pagehost-saas-btn-next.is-disabled {
    border-color: #cdd8e0 !important;
    background: #dfe7ed !important;
    color: #80909d !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.pagehost-saas-btn-next:disabled:hover,
.pagehost-saas-btn-next.is-disabled:hover {
    border-color: #cdd8e0 !important;
    background: #dfe7ed !important;
    color: #80909d !important;
}

.pagehost-saas-btn-back {
    border-color: #d6e0e8 !important;
    background: #fff !important;
    color: #526779 !important;
}

body.pagehost-saas-checkout #pagehost-registration-gate,
body.pagehost-saas-checkout .pagehost-registration-card,
body.pagehost-saas-checkout .pagehost-registration-summary {
    margin: 0;
}

body.pagehost-saas-checkout .pagehost-registration-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.pagehost-saas-checkout .pagehost-registration-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.pagehost-saas-checkout .pagehost-registration-actions .btn {
    min-height: 54px;
    margin: 0;
    border-radius: 12px;
    font-weight: 700;
}

body.pagehost-saas-checkout .pagehost-registration-summary {
    min-height: 54px;
    padding: 12px 14px;
    border-color: #cce6da;
    border-radius: 12px;
    background: #f5fbf8;
}



/* Ordem de dados pessoais homologada com CPFHub:
 * CPF/Data de nascimento -> Nome/Sobrenome -> E-mail/Telefone -> CNPJ/Origem.
 */
.pagehost-saas-personal-row {
    margin-bottom: 0;
}

.pagehost-saas-personal-column {
    min-width: 0;
}

.pagehost-saas-optional-label {
    color: #7890a3;
    font-weight: 500;
}

/* Campos dependentes do CPF permanecem visíveis para explicar a sequência,
 * porém ficam bloqueados até o CPF ser processado pela validação PageHost.
 */
body.pagehost-saas-checkout #frmCheckout .pagehost-cpf-awaiting[readonly] {
    border-color: #e0e6eb !important;
    background-color: #f3f6f8 !important;
    color: #7a8996 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Endereço brasileiro: os campos continuam visíveis, porém bloqueados até
 * o CEP ser validado. O país permanece disponível para permitir endereço
 * internacional sem quebrar a independência entre cidadania e residência.
 */
body.pagehost-saas-checkout #frmCheckout .pagehost-cep-locked,
body.pagehost-saas-checkout #frmCheckout [data-pagehost-cep-locked="1"] {
    border-color: #e0e6eb !important;
    background-color: #f3f6f8 !important;
    color: #7a8996 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

body.pagehost-saas-checkout #frmCheckout input.pagehost-cep-locked::placeholder {
    color: #9aa7b2;
}

/* Conta existente */
body.pagehost-saas-checkout #containerExistingAccountSelect .account {
    min-height: 86px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid #dce5ec !important;
    border-radius: 12px;
    background: #fff;
    transition: all .16s ease;
}

body.pagehost-saas-checkout #containerExistingAccountSelect .account.active {
    border-color: var(--ph-saas-primary) !important;
    background: #f6fbfe;
    box-shadow: 0 0 0 3px rgba(58, 132, 181, .08);
}

/* Pagamentos em cards */
body.pagehost-saas-checkout #paymentGatewaysContainer > .text-center {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    text-align: left !important;
}

/* Ícones precisam permanecer dentro do mesmo card da forma de pagamento. */
body.pagehost-saas-checkout #paymentGatewaysContainer > .text-center > .pagehost-payment-icon {
    display: none !important;
}

body.pagehost-saas-checkout #paymentGatewaysContainer label.radio-inline {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 58px;
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    background: #fff;
    color: #33485b;
    font-weight: 700;
    cursor: pointer;
    transition: all .16s ease;
}

body.pagehost-saas-checkout #paymentGatewaysContainer label.radio-inline:hover {
    border-color: #a9cadf;
    background: #fbfdff;
}

body.pagehost-saas-checkout #paymentGatewaysContainer label.radio-inline:has(input:checked) {
    border-color: var(--ph-saas-primary);
    background: #f3f9fd;
    box-shadow: 0 0 0 3px rgba(58, 132, 181, .08);
}

body.pagehost-saas-checkout #paymentGatewaysContainer input[type="radio"] {
    flex: 0 0 auto;
    margin: 0;
}

body.pagehost-saas-checkout #paymentGatewaysContainer label.radio-inline .pagehost-payment-icon {
    display: inline-block !important;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0 2px 0 0;
    object-fit: contain;
}

body.pagehost-saas-checkout #totalDueToday {
    margin: 0 0 16px;
    padding: 15px 17px;
    border: 1px solid #cfe4f1;
    border-radius: 12px;
    background: #f3f9fd;
    color: #245477;
    font-size: 15px;
}

body.pagehost-saas-checkout #creditCardInputFields,
body.pagehost-saas-checkout #paymentGatewayInput,
body.pagehost-saas-checkout .apply-credit-container {
    margin-top: 14px;
}

body.pagehost-saas-checkout #btnCompleteOrder {
    min-width: 220px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 11px;
    background: var(--ph-saas-primary);
    box-shadow: 0 8px 20px rgba(58, 132, 181, .20);
    font-size: 14px;
    font-weight: 800;
}

body.pagehost-saas-checkout #btnCompleteOrder:hover,
body.pagehost-saas-checkout #btnCompleteOrder:focus {
    background: var(--ph-saas-primary-dark);
}

body.pagehost-saas-checkout #accepttos {
    transform: translateY(1px);
}

body.pagehost-saas-checkout .marketing-email-optin {
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    background: #fafcfd;
}

body.pagehost-saas-checkout .checkout-error-feedback {
    margin: 0 0 16px;
    border-radius: 12px;
}

body.pagehost-saas-checkout .already-registered:not(.pagehost-saas-native-intro-hidden) {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #e0e8ee;
    border-radius: 12px;
    background: #fff;
}

body.pagehost-saas-login-mode #pagehost-saas-shell,
body.pagehost-saas-login-mode .pagehost-saas-stage-panel {
    display: none !important;
}

body.pagehost-saas-login-mode #containerExistingUserSignin {
    display: block !important;
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid var(--ph-saas-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ph-saas-shadow);
}

body.pagehost-saas-checkout .checkout-security-msg {
    border-radius: 12px;
}

@media (max-width: 900px) {
    .pagehost-saas-step-label {
        font-size: 10px;
    }

    .pagehost-saas-stage-panel {
        padding: 22px 20px;
    }
}

@media (max-width: 767px) {
    body.pagehost-saas-checkout #order-standard_cart .cart-body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .pagehost-saas-hero {
        padding: 19px 17px;
        border-radius: 15px;
    }

    .pagehost-saas-title {
        font-size: 23px;
    }

    .pagehost-saas-subtitle {
        font-size: 13px;
    }

    .pagehost-saas-access {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 13px;
    }

    .pagehost-saas-access-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .pagehost-saas-access-button,
    .pagehost-saas-access-actions .btn,
    .pagehost-saas-access-actions a {
        width: 100% !important;
        min-height: 42px;
    }

    #pagehost-saas-stepper {
        overflow-x: auto;
        gap: 0;
        margin-left: -4px;
        margin-right: -4px;
        padding: 2px 4px 8px;
        scrollbar-width: thin;
    }

    .pagehost-saas-step {
        flex: 0 0 84px;
    }

    .pagehost-saas-step:not(:last-child)::after {
        left: 54px;
        right: -30px;
    }

    .pagehost-saas-step-label {
        max-width: 80px;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
    }

    .pagehost-saas-stage-panel {
        padding: 18px 15px;
        border-radius: 15px;
    }

    .pagehost-saas-stage-header {
        margin-bottom: 17px;
        padding-bottom: 15px;
    }

    .pagehost-saas-stage-title {
        font-size: 19px;
    }

    .pagehost-saas-stage-icon {
        width: 38px;
        height: 38px;
    }

    body.pagehost-saas-checkout .pagehost-registration-actions,
    body.pagehost-saas-checkout #paymentGatewaysContainer > .text-center {
        grid-template-columns: 1fr;
    }

    .pagehost-saas-stage-nav {
        align-items: stretch;
    }

    .pagehost-saas-stage-nav .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    body.pagehost-saas-checkout #btnCompleteOrder {
        width: 100%;
        min-width: 0;
    }
}

/* RC8: respiro real entre Gerar Senha, barra de força e rodapé da etapa. */
body.pagehost-saas-checkout #containerNewUserSecurity button[type="button"],
body.pagehost-saas-checkout #containerNewUserSecurity .generate-password,
body.pagehost-saas-checkout #containerNewUserSecurity [data-targetfields*="inputNewPassword"] {
    display: inline-block;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

body.pagehost-saas-checkout #containerNewUserSecurity .progress {
    clear: both;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
}

body.pagehost-saas-checkout #containerNewUserSecurity #passwordStrengthTextLabel,
body.pagehost-saas-checkout #containerNewUserSecurity .password-strength-text {
    margin-top: 7px !important;
}

@media (max-width: 767px) {
    .pagehost-saas-stage-nav {
        margin-top: 26px;
        padding-top: 22px;
    }

    body.pagehost-saas-checkout #containerNewUserSecurity .progress {
        margin-top: 20px !important;
    }
}

/* RC8: Revisão final usa o mesmo rodapé das demais etapas.
 * Apenas uma linha divisória, seguida de Voltar / Completar Pedido.
 */
body.pagehost-saas-checkout .pagehost-saas-stage-nav-final {
    margin-bottom: 0 !important;
}

body.pagehost-saas-checkout .pagehost-saas-stage-nav-final #btnCompleteOrder {
    margin: 0 !important;
}

/* RC9: botão final permanece realmente inativo até a aceitação dos Termos.
 * O estado visual acompanha o atributo disabled aplicado pelo JS.
 */
body.pagehost-saas-checkout #btnCompleteOrder:disabled,
body.pagehost-saas-checkout #btnCompleteOrder.pagehost-saas-final-disabled {
    border-color: #cdd8e0 !important;
    background: #dfe7ed !important;
    color: #80909d !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

body.pagehost-saas-checkout #btnCompleteOrder:disabled:hover,
body.pagehost-saas-checkout #btnCompleteOrder.pagehost-saas-final-disabled:hover,
body.pagehost-saas-checkout #btnCompleteOrder:disabled:focus,
body.pagehost-saas-checkout #btnCompleteOrder.pagehost-saas-final-disabled:focus {
    background: #dfe7ed !important;
    color: #80909d !important;
    box-shadow: none !important;
}


/* =========================================================
 * RC10 - destaque visual de campos obrigatórios pendentes
 * Linha fina vermelha enquanto a etapa atual ainda possui
 * informação obrigatória não preenchida/validada.
 * ========================================================= */
body.pagehost-saas-checkout #frmCheckout .pagehost-required-pending:not([type="checkbox"]):not([type="radio"]) {
    border-color: #d9534f !important;
    outline: 1px solid rgba(217, 83, 79, .78) !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 0 1px rgba(217, 83, 79, .04) !important;
}

/* Alguns campos do WHMCS usam input-group/select2 e a borda do input pode
 * ficar visualmente encoberta. O outline garante a linha fina solicitada. */
body.pagehost-saas-checkout #frmCheckout .input-group .pagehost-required-pending,
body.pagehost-saas-checkout #frmCheckout select.pagehost-required-pending,
body.pagehost-saas-checkout #frmCheckout textarea.pagehost-required-pending {
    outline: 1px solid rgba(217, 83, 79, .78) !important;
    outline-offset: -1px !important;
}

body.pagehost-saas-checkout #frmCheckout input[type="checkbox"].pagehost-required-pending {
    outline: 1px solid #d9534f !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 1px rgba(217, 83, 79, .12) !important;
}

body.pagehost-saas-checkout #frmCheckout input[type="checkbox"].pagehost-required-ok {
    outline: 1px solid #67b892;
    outline-offset: 2px;
}

body.pagehost-saas-checkout #frmCheckout #paymentGatewaysContainer.pagehost-required-choice-pending > .text-center {
    padding: 7px;
    border: 1px solid #d9534f;
    border-radius: 13px;
}

body.pagehost-saas-checkout #frmCheckout #paymentGatewaysContainer.pagehost-required-ok > .text-center {
    border-color: transparent;
}

/* =========================================================
 * RC13 - destaque visual robusto de obrigatórios pendentes
 * ========================================================= */
body.pagehost-saas-checkout #frmCheckout .pagehost-required-pending-group .form-control,
body.pagehost-saas-checkout #frmCheckout .pagehost-required-pending-group select,
body.pagehost-saas-checkout #frmCheckout #pagehost-address-number-column.pagehost-required-pending-group #pagehostAddressNumber {
    border-color: #d9534f !important;
    outline: 1px solid rgba(217, 83, 79, .86) !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 0 1px rgba(217, 83, 79, .05) !important;
}

body.pagehost-saas-checkout #frmCheckout .pagehost-required-pending-label {
    color: #a94442 !important;
}

body.pagehost-saas-checkout #frmCheckout .pagehost-required-pending-label input[type="checkbox"] {
    outline: 1px solid #d9534f !important;
    outline-offset: 2px !important;
}

/* =========================================================
   RC18 - Pré-requisito PayPal antes de avançar
   ========================================================= */
.pagehost-paypal-prerequisite-notice {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 0 16px;
    padding: 11px 14px;
    border: 1px solid #efb7b7;
    border-radius: 10px;
    background: #fff7f7;
    color: #8f3a3a;
    font-size: 12px;
    line-height: 1.5;
}

.pagehost-paypal-prerequisite-notice[hidden] {
    display: none !important;
}

.pagehost-paypal-prerequisite-notice strong {
    color: #a52f2f;
    font-size: 13px;
}
