/* ========================================
   Estilos dos modais de seleção de plano.
   Inclui loading animado, sucesso, erro e confirmação.
   ======================================== */

/* Modal Base */
.plan-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.plan-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Conteúdo do Modal */
.plan-modal__content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px 28px 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: #111111;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: scale(0.97) translateY(6px);
    transition: transform 220ms ease, opacity 220ms ease;
    opacity: 0;
}

#brazilAsaasCheckoutModal .plan-modal__content--asaas {
    width: min(94vw, 720px);
    max-width: 720px;
    max-height: min(92vh, 820px);
    overflow-y: auto;
    padding: 34px 32px 28px;
    text-align: left;
}

.plan-modal.is-visible .plan-modal__content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Spinner Animado */
.plan-modal__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #111827;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Títulos */
.plan-modal__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111111;
    letter-spacing: -0.02em;
}

.plan-modal__subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.55;
}

/* Ícones SVG */
.plan-modal__icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.plan-modal__icon svg {
    width: 24px;
    height: 24px;
    stroke: #111827;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Botões do Modal */
.plan-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.plan-modal__button {
    min-width: 110px;
    padding: 9px 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .plan-modal__button:hover {
        background: #f7f8fa;
        border-color: #d1d5db;
    }
}

.plan-modal__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.plan-modal__button--primary {
    border-color: #0f7a5c;
    background: linear-gradient(135deg, #0f7a5c 0%, #13956c 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 122, 92, 0.22);
}

.plan-modal__button--secondary {
    border-color: rgba(15, 23, 42, 0.10);
    background: #ffffff;
    color: #0f172a;
}

.plan-modal__button--ghost {
    min-width: auto;
    padding: 10px 14px;
    border-color: transparent;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    box-shadow: none;
}

.plan-modal__content--upgrade {
    width: min(92vw, 760px);
    max-width: 760px;
    padding: 30px;
    text-align: left;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background:
        radial-gradient(circle at top right, rgba(20, 148, 119, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.upgrade-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.upgrade-modal__header-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upgrade-modal__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.10);
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.upgrade-modal__title {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.05;
}

.upgrade-modal__subtitle {
    margin-bottom: 0;
    max-width: 56ch;
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
}

.upgrade-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.upgrade-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upgrade-modal__plan-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.upgrade-modal__plan-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.upgrade-modal__plan-card--target {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.upgrade-modal__card-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.upgrade-modal__plan-card strong {
    font-size: 1.15rem;
    line-height: 1.2;
    color: #0f172a;
}

.upgrade-modal__plan-card span:last-child {
    color: #475569;
    font-size: 1rem;
}

.upgrade-modal__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
    color: #64748b;
}

.upgrade-modal__arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upgrade-modal__charges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.upgrade-modal__charge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: #ffffff;
}

.upgrade-modal__charge span {
    color: #334155;
    font-weight: 600;
    line-height: 1.45;
}

.upgrade-modal__charge span small {
    color: #94a3b8;
    font-size: 0.85em;
}

.upgrade-modal__charge strong {
    color: #0f172a;
    font-size: 1.2rem;
    white-space: nowrap;
}

.upgrade-modal__charge--highlight {
    border-color: rgba(52, 211, 153, 0.30);
    background: linear-gradient(90deg, rgba(240, 253, 244, 0.98) 0%, rgba(236, 253, 245, 1) 100%);
}

.upgrade-modal__charge--highlight strong {
    color: #16a34a;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.upgrade-modal__payment {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.upgrade-modal__section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.upgrade-modal__payment-row,
.upgrade-modal__payment-missing {
    display: flex;
    align-items: center;
    gap: 14px;
}

.upgrade-modal__payment-missing[hidden] {
    display: none;
}

.upgrade-modal__payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    flex-shrink: 0;
}

.upgrade-modal__payment-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upgrade-modal__payment-icon--warning {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(255, 247, 237, 0.95);
    color: #d97706;
}

.upgrade-modal__payment-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.upgrade-pm-text,
.upgrade-modal__payment-copy strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.upgrade-modal__payment-note,
.upgrade-modal__payment-copy span {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.plan-modal__actions--upgrade {
    justify-content: flex-end;
    gap: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .plan-modal__button--primary:hover {
        background: linear-gradient(135deg, #0e6c52 0%, #118661 100%);
        border-color: #0e6c52;
        color: #ffffff;
        box-shadow: 0 18px 32px rgba(15, 122, 92, 0.26);
        transform: translateY(-1px);
    }

    .plan-modal__button--secondary:hover {
        background: #f8fafc;
        border-color: rgba(148, 163, 184, 0.32);
        color: #0f172a;
    }

    .plan-modal__button--ghost:hover {
        background: rgba(15, 118, 110, 0.14);
        border-color: transparent;
        color: #115e59;
    }

    .upgrade-close-btn:hover {
        background: #ffffff;
        border-color: rgba(100, 116, 139, 0.28);
        color: #0f172a;
        transform: translateY(-1px);
    }
}

#brazilAsaasCheckoutModal {
    padding: 16px;
}

#brazilAsaasCheckoutModal .plan-modal__actions {
    flex-wrap: wrap;
}

#brazilAsaasCheckoutModal .plan-modal__content--asaas {
    box-sizing: border-box;
    width: min(94vw, 780px);
    max-width: 780px;
    padding: 38px;
    border-radius: 16px;
    border-color: rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.20);
}

.asaas-checkout__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.asaas-checkout__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #087a45;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.asaas-checkout__eyebrow svg,
.asaas-checkout__coupon label svg,
.asaas-checkout__method svg,
#brazilAsaasCheckoutModal .plan-modal__secure-badges svg,
.asaas-checkout__close svg,
.asaas-checkout__continue svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asaas-checkout__title {
    margin: 0;
    color: #111827;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.asaas-checkout__subtitle {
    margin: 8px 0 0;
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.45;
}

.asaas-checkout__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.asaas-checkout__body {
    display: grid;
    gap: 22px;
}

.asaas-checkout__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
    gap: 26px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.asaas-checkout__plan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-right: 26px;
    border-right: 1px solid #e5e7eb;
}

.asaas-checkout__plan span,
.asaas-checkout__section-label {
    margin: 0;
    color: #087a45;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.asaas-checkout__plan strong {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 1.72rem;
    font-weight: 800;
    line-height: 1.15;
}

.asaas-checkout__plan p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 0.92rem;
}

.asaas-checkout__totals {
    display: grid;
    align-content: center;
    gap: 14px;
}

.asaas-checkout__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #667085;
    font-size: 0.94rem;
}

.asaas-checkout__total-row strong {
    color: #344054;
    font-weight: 600;
    white-space: nowrap;
}

.asaas-checkout__total-row--final {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.asaas-checkout__total-row--final strong {
    color: #111827;
    font-size: 1.04rem;
    font-weight: 800;
}

.asaas-checkout__coupon {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 12px;
    align-items: start;
}

.asaas-checkout__coupon label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    color: #344054;
    font-size: 0.9rem;
    font-weight: 600;
}

.asaas-checkout__coupon label svg {
    color: #111827;
}

.asaas-checkout__coupon-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.asaas-checkout__coupon input {
    min-height: 32px;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
}

.asaas-checkout__coupon input:focus {
    border-color: #0f9f6e;
    box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.12);
}

.asaas-checkout__coupon-controls button {
    min-height: 32px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #ffffff;
    color: #087a45;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.asaas-checkout__coupon-controls button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.asaas-checkout__coupon p {
    grid-column: 2;
    min-height: 18px;
    margin: 0;
    color: #667085;
    font-size: 0.76rem;
    line-height: 1.35;
}

.asaas-checkout__payment {
    display: grid;
    gap: 16px;
    padding-top: 2px;
    border-top: 1px solid #e5e7eb;
}

.asaas-checkout__methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.asaas-checkout__method,
.asaas-checkout__installment {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.asaas-checkout__method {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 18px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
}

.asaas-checkout__method svg {
    color: #111827;
}

.asaas-checkout__selected-mark {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: auto;
    border-radius: 999px;
    background: #087a45;
    color: #ffffff;
}

.asaas-checkout__selected-mark::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translateY(-1px);
}

.asaas-checkout__method.is-selected,
.asaas-checkout__installment.is-selected {
    border-color: #0a8d57;
    background: #fbfffd;
    color: #087a45;
    box-shadow: 0 0 0 1px rgba(10, 141, 87, 0.12);
}

.asaas-checkout__method.is-selected .asaas-checkout__selected-mark {
    display: inline-flex;
}

.asaas-checkout__method.is-selected svg {
    color: #087a45;
}

.asaas-checkout__installments {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.asaas-checkout__installment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 10px 8px;
    text-align: center;
}

.asaas-checkout__installment strong {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.asaas-checkout__installment span {
    margin-top: 4px;
    color: #344054;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.asaas-checkout__installment.is-selected strong,
.asaas-checkout__installment.is-selected span {
    color: #087a45;
}

.asaas-checkout__courtesy {
    margin: 0;
    color: #087a45;
    font-size: 0.82rem;
    font-weight: 700;
}

.asaas-checkout__error {
    min-height: 18px;
    margin: -4px 0 0;
    color: #b42318;
    font-size: 0.82rem;
}

.asaas-checkout__actions {
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

.asaas-checkout__back,
.asaas-checkout__continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    min-height: 52px;
    border-radius: 8px;
    padding: 0 28px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.asaas-checkout__back {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #111827;
}

.asaas-checkout__continue {
    gap: 14px;
    min-width: 168px;
    border: 1px solid #087a45;
    background: #087a45;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(8, 122, 69, 0.24);
}

.asaas-checkout__back:disabled,
.asaas-checkout__continue:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .asaas-checkout__close:hover,
    .asaas-checkout__back:hover,
    .asaas-checkout__coupon-controls button:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    .asaas-checkout__method:hover,
    .asaas-checkout__installment:hover {
        border-color: #b7c4d3;
        transform: translateY(-1px);
    }

    .asaas-checkout__continue:hover {
        background: #076d3f;
        border-color: #076d3f;
        transform: translateY(-1px);
    }
}

#brazilAsaasCheckoutModal .plan-modal__secure-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 0;
    color: #667085;
    font-size: 0.72rem;
    line-height: 1.35;
}

#brazilAsaasCheckoutModal .plan-modal__secure-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    font-weight: 600;
}

#brazilAsaasCheckoutModal .plan-modal__secure-badges span::before {
    content: none;
}

#brazilAsaasCheckoutModal .plan-modal__secure-badges svg {
    color: #087a45;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    #brazilAsaasCheckoutModal .plan-modal__content--asaas {
        width: min(96vw, 720px);
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .asaas-checkout__summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
    }

    .asaas-checkout__plan {
        padding-right: 0;
        padding-bottom: 20px;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .asaas-checkout__coupon {
        grid-template-columns: 1fr;
    }

    .asaas-checkout__coupon p {
        grid-column: 1;
    }

    #brazilAsaasCheckoutModal [data-asaas-summary-payment-methods] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #brazilAsaasCheckoutModal .asaas-checkout__installments {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #brazilAsaasCheckoutModal .plan-modal__actions {
        justify-content: stretch !important;
    }

    #brazilAsaasCheckoutModal .plan-modal__actions .plan-modal__button {
        flex: 1 1 180px;
    }

    .plan-modal__content--upgrade {
        width: min(94vw, 760px);
        padding: 22px;
        border-radius: 22px;
    }

    .upgrade-modal__header {
        gap: 14px;
    }

    .upgrade-modal__plan-compare {
        grid-template-columns: 1fr;
    }

    .upgrade-modal__arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .upgrade-modal__charge,
    .upgrade-modal__payment-row,
    .upgrade-modal__payment-missing,
    .plan-modal__actions--upgrade {
        flex-direction: column;
        align-items: stretch;
    }

    .upgrade-modal__charge strong,
    .plan-modal__button,
    .plan-modal__button--ghost {
        width: 100%;
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 520px) {
    #brazilAsaasCheckoutModal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 10px;
    }

    #brazilAsaasCheckoutModal .plan-modal__content--asaas {
        width: calc(100vw - 20px);
        max-height: none;
        margin: 10px 0;
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .asaas-checkout__header {
        gap: 14px;
        margin-bottom: 22px;
    }

    .asaas-checkout__title {
        font-size: 1.72rem;
    }

    .asaas-checkout__summary {
        padding: 18px;
    }

    .asaas-checkout__coupon-controls {
        grid-template-columns: 1fr;
    }

    #brazilAsaasCheckoutModal [data-asaas-summary-payment-methods] {
        grid-template-columns: 1fr !important;
    }

    #brazilAsaasCheckoutModal .asaas-checkout__installments {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #brazilAsaasCheckoutModal .plan-modal__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #brazilAsaasCheckoutModal .plan-modal__actions .plan-modal__button {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
    }
}

/* Card Atual */
.plan-card--current {
    border: 2px solid #111111 !important;
    position: relative;
}

.plan-card__current-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

/* Card Desabilitado */
.plan-card--disabled {
    opacity: 0.6;
    pointer-events: none;
}

.plan-card__blocked-badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 16px;
    text-align: center;
}

/* Botões de Plano */
.btn--current {
    background: #374151 !important;
    color: white !important;
    cursor: default !important;
    border: none !important;
}

.btn--disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    border: none !important;
}

/* Banner Plano Atual */
.current-plan-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f7f8fa;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 24px;
    margin-bottom: 32px;
}

.current-plan-banner__icon {
    width: 24px;
    height: 24px;
    background: #111111;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.current-plan-banner a {
    color: #111111;
    text-decoration: none;
    font-weight: 600;
}

.current-plan-banner a:hover {
    text-decoration: underline;
}

/* Aviso/Alert */
.plans-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.plans-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.plans-alert--info p {
    color: #1e40af;
}

.plans-alert--warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.plans-alert--warning p {
    color: #92400e;
}

.plans-alert--danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.plans-alert--danger p {
    color: #dc2626;
}

.plans-alert span {
    font-size: 20px;
}

.plans-alert p {
    margin: 0;
    font-size: 14px;
}

/* Notice para PF tentando ver PJ */
.plans-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.plans-notice span {
    font-size: 18px;
}

.plans-notice p {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

/* Tabs único para Dealer */
.plans-tabs-single {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.plans-tabs-single__badge {
    background: #111111;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
}
