.xtq-ps,
.xtq-ps * {
    box-sizing: border-box;
}

.xtq-ps__panel {
    font-family: inherit;
    color: #0f172a;
}

/* INLINE */
.xtq-ps--inline {
    margin: 24px 0;
}

.xtq-ps--inline .xtq-ps__panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    max-width: 720px;
    margin: 0 auto;
}

/* POPUP */
.xtq-ps--popup {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: xtqPsFade 0.25s ease-out;
}

.xtq-ps--popup[hidden] {
    display: none;
}

.xtq-ps__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.xtq-ps--popup .xtq-ps__panel {
    position: relative;
    width: 100%;
    max-width: 540px;
    min-width: 0;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px 30px 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    animation: xtqPsUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 92vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.xtq-ps__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.xtq-ps__close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.xtq-ps__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
    color: #0f172a;
}

.xtq-ps__subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 22px;
}

.xtq-ps__options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (min-width: 560px) {
    .xtq-ps__options {
        grid-template-columns: 1fr 1fr !important;
    }
}

.xtq-ps__option {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    text-align: left !important;
    padding: 20px 18px !important;
    border: 2px solid rgba(15, 23, 42, 0.1) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    overflow: hidden !important;
    white-space: normal !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font: inherit !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.xtq-ps__option:hover {
    border-color: #270069;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(39, 0, 105, 0.15);
}

.xtq-ps__option--primary {
    border-color: #270069;
    background: linear-gradient(180deg, #ffffff 0%, #f5f0ff 100%);
}

.xtq-ps__option-title,
.xtq-ps__option-benefit,
.xtq-ps__option-cta {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.xtq-ps__option-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.xtq-ps__option-benefit {
    font-size: 13.5px;
    line-height: 1.45;
    color: #475569;
}

.xtq-ps__option-cta {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #270069;
}

.xtq-ps__agency-line {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.xtq-ps__agency-link {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #270069;
    cursor: pointer;
    text-decoration: underline;
}

.xtq-ps__agency-link:hover {
    color: #1c004d;
}

.xtq-ps__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xtq-ps__form input,
.xtq-ps__form select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
}

.xtq-ps__form input:focus,
.xtq-ps__form select:focus {
    outline: none;
    border-color: #270069;
    box-shadow: 0 0 0 3px rgba(39, 0, 105, 0.15);
}

.xtq-ps__submit {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 15px 24px;
    background: #270069;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.xtq-ps__submit:hover {
    background: #1c004d;
    transform: translateY(-2px);
    color: #ffffff;
}

.xtq-ps__hint {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin: 4px 0 0;
}

@keyframes xtqPsFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes xtqPsUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE: bottom sheet */
@media (max-width: 559px) {
    .xtq-ps--popup {
        align-items: flex-end;
        padding: 0;
    }

    .xtq-ps--popup .xtq-ps__panel {
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 28px 20px 24px;
        animation: xtqPsSheet 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .xtq-ps__options {
        grid-template-columns: 1fr;
    }
}

@keyframes xtqPsSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Step de planos: cards lidos da vitrine, exibidos dentro do modal */
.xtq-ps__plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

@media (min-width: 720px) {
    .xtq-ps__plans {
        grid-template-columns: repeat(3, 1fr);
    }
    .xtq-ps--popup .xtq-ps__panel:has(.xtq-ps__plans) {
        max-width: 880px;
    }
}

.xtq-ps__plan {
    position: relative;
    background: #ffffff;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0f172a;
}

.xtq-ps__plan--popular {
    border-color: #270069;
    background: linear-gradient(180deg, #ffffff 0%, #f5f0ff 100%);
}

.xtq-ps__plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #270069;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.xtq-ps__plan-name {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.xtq-ps__plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #0f172a;
}

.xtq-ps__plan-currency {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: flex-end;
    margin-bottom: 6px;
}

.xtq-ps__plan-amount {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.xtq-ps__plan-period {
    font-size: 13px;
    color: #475569;
}

.xtq-ps__plan-period-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: -4px;
}

.xtq-ps__plan-ideal {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.xtq-ps__plan-includes {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.xtq-ps__plan-features {
    margin: 4px 0 8px;
    padding: 0 4px 0 0;
    list-style: none;
    display: grid;
    gap: 5px;
    max-height: min(280px, 42vh);
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.xtq-ps__plan-features li {
    position: relative;
    padding-left: 22px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.4;
}

.xtq-ps__plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: #270069;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xtq-ps__plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px 16px;
    background: #270069;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.xtq-ps__plan-cta:hover {
    background: #1c004d;
    transform: translateY(-1px);
}

.xtq-ps__back {
    margin-top: 18px;
    background: transparent;
    border: 0;
    color: #270069;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 4px;
}

.xtq-ps__back:hover {
    text-decoration: underline;
}

/* Reset agressivo contra temas/plugins que estilizam button globalmente */
.xtq-ps button.xtq-ps__option,
.xtq-ps button.xtq-ps__close,
.xtq-ps button.xtq-ps__agency-link,
.xtq-ps .xtq-ps__submit {
    box-sizing: border-box;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.xtq-ps button.xtq-ps__option {
    min-height: unset;
    height: auto;
}

/* BLINDAGEM GLOBAL — temas (WooCommerce/loja) pintam <button> de rosa e estouram o texto.
   Forçamos cores legíveis no card claro padrão. Tema escuro (trial/showcase) tem
   seletor mais específico e sobrescreve estas regras logo abaixo. */
.xtq-ps button.xtq-ps__option {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-align: left !important;
}

.xtq-ps button.xtq-ps__option:hover {
    border-color: #270069 !important;
}

.xtq-ps button.xtq-ps__option.xtq-ps__option--primary {
    background: linear-gradient(180deg, #ffffff 0%, #f5f0ff 100%) !important;
    border-color: #270069 !important;
}

.xtq-ps .xtq-ps__option-title {
    color: #0f172a !important;
}

.xtq-ps .xtq-ps__option-benefit {
    color: #475569 !important;
}

.xtq-ps .xtq-ps__option-cta {
    color: #270069 !important;
}

.xtq-ps .xtq-ps__submit {
    background: #270069 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Teste grátis + vitrine ShiFtAI (showcase /chat) — seletor inline tema escuro */
.xtq-trial-path-selector,
.xtq-showcase-path-selector {
    max-width: 720px;
    margin: 28px auto 32px;
    padding: 0 20px;
    box-sizing: border-box;
}

.xtq-trial-path-selector .xtq-ps--inline,
.xtq-showcase-path-selector .xtq-ps--inline {
    margin: 0;
}

.xtq-trial-path-selector .xtq-ps--inline .xtq-ps__panel,
.xtq-showcase-path-selector .xtq-ps--inline .xtq-ps__panel {
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(13, 18, 32, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.28);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: #f8fafc;
}

.xtq-trial-path-selector .xtq-ps__title,
.xtq-showcase-path-selector .xtq-ps__title {
    color: #ffffff;
}

.xtq-trial-path-selector .xtq-ps__subtitle,
.xtq-showcase-path-selector .xtq-ps__subtitle {
    color: #cbd5e1;
}

.xtq-trial-path-selector .xtq-ps__option,
.xtq-showcase-path-selector .xtq-ps__option {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.22);
}

.xtq-trial-path-selector .xtq-ps__option:hover,
.xtq-showcase-path-selector .xtq-ps__option:hover {
    border-color: #8b5cf6;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

.xtq-trial-path-selector .xtq-ps__option--primary,
.xtq-showcase-path-selector .xtq-ps__option--primary {
    border-color: #8b5cf6;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.18) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.xtq-trial-path-selector .xtq-ps__option-title,
.xtq-showcase-path-selector .xtq-ps__option-title {
    color: #f8fafc;
}

.xtq-trial-path-selector .xtq-ps__option-benefit,
.xtq-showcase-path-selector .xtq-ps__option-benefit {
    color: #94a3b8;
}

.xtq-trial-path-selector .xtq-ps__option-cta,
.xtq-showcase-path-selector .xtq-ps__option-cta {
    color: #c4b5fd;
}

.xtq-trial-path-selector .xtq-ps__agency-line,
.xtq-showcase-path-selector .xtq-ps__agency-line {
    color: #94a3b8;
}

.xtq-trial-path-selector .xtq-ps__agency-link,
.xtq-showcase-path-selector .xtq-ps__agency-link {
    color: #c4b5fd;
}

/* Blindagem: CSS do trial (.xtq-trial-nocard button) nao deve vazar para o seletor */
.xtq-trial-nocard .xtq-ps button.xtq-ps__option {
    min-height: unset !important;
    height: auto !important;
    border-radius: 16px !important;
    padding: 20px 18px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid rgba(15, 23, 42, 0.1) !important;
}

.xtq-trial-path-selector .xtq-ps button.xtq-ps__option,
.xtq-showcase-path-selector .xtq-ps button.xtq-ps__option {
    min-height: unset !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    padding: 20px 18px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    white-space: normal !important;
    background: rgba(15, 23, 42, 0.55) !important;
    border: 2px solid rgba(148, 163, 184, 0.22) !important;
    color: #f8fafc !important;
}

.xtq-trial-path-selector .xtq-ps button.xtq-ps__option:hover,
.xtq-showcase-path-selector .xtq-ps button.xtq-ps__option:hover {
    border-color: #8b5cf6 !important;
    background: rgba(15, 23, 42, 0.7) !important;
}

.xtq-trial-path-selector .xtq-ps button.xtq-ps__option.xtq-ps__option--primary,
.xtq-showcase-path-selector .xtq-ps button.xtq-ps__option.xtq-ps__option--primary {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.28) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
    border-color: #8b5cf6 !important;
}

.xtq-trial-path-selector .xtq-ps__option--primary,
.xtq-showcase-path-selector .xtq-ps__option--primary {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.18) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
    border-color: #8b5cf6 !important;
}

.xtq-trial-path-selector .xtq-ps__option:not(.xtq-ps__option--primary),
.xtq-showcase-path-selector .xtq-ps__option:not(.xtq-ps__option--primary) {
    background: rgba(15, 23, 42, 0.55) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

.xtq-trial-path-selector .xtq-ps__option-title,
.xtq-showcase-path-selector .xtq-ps__option-title {
    color: #f8fafc !important;
}

.xtq-trial-path-selector .xtq-ps__option-benefit,
.xtq-showcase-path-selector .xtq-ps__option-benefit {
    color: #94a3b8 !important;
}

.xtq-trial-path-selector .xtq-ps__option-cta,
.xtq-showcase-path-selector .xtq-ps__option-cta {
    color: #c4b5fd !important;
}

/* Form escuro só no seletor inline (antes de virar popup) */
.xtq-trial-path-selector .xtq-ps--inline:not(.xtq-ps--promoted) .xtq-ps__form input,
.xtq-trial-path-selector .xtq-ps--inline:not(.xtq-ps--promoted) .xtq-ps__form select,
.xtq-showcase-path-selector .xtq-ps--inline:not(.xtq-ps--promoted) .xtq-ps__form input,
.xtq-showcase-path-selector .xtq-ps--inline:not(.xtq-ps--promoted) .xtq-ps__form select {
    background: rgba(15, 23, 42, 0.72) !important;
    color: #fff !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    min-height: 48px !important;
}

.xtq-trial-path-selector .xtq-ps .xtq-ps__submit,
.xtq-showcase-path-selector .xtq-ps .xtq-ps__submit {
    min-height: unset !important;
    padding: 15px 24px !important;
    background: #270069 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
}

/* Legibilidade no card primário (gradiente roxo) — vitrine escura */
.xtq-showcase-path-selector .xtq-ps__option--primary .xtq-ps__option-benefit,
.xtq-trial-path-selector .xtq-ps__option--primary .xtq-ps__option-benefit,
.xtq-showcase-path-selector .xtq-ps button.xtq-ps__option--primary .xtq-ps__option-benefit,
.xtq-trial-path-selector .xtq-ps button.xtq-ps__option--primary .xtq-ps__option-benefit {
    color: #e2e8f0 !important;
}

.xtq-showcase-path-selector .xtq-ps__option:not(.xtq-ps__option--primary) .xtq-ps__option-benefit,
.xtq-trial-path-selector .xtq-ps__option:not(.xtq-ps__option--primary) .xtq-ps__option-benefit {
    color: #cbd5e1 !important;
}

.xtq-showcase-path-selector .xtq-ps__option--primary .xtq-ps__option-cta,
.xtq-trial-path-selector .xtq-ps__option--primary .xtq-ps__option-cta {
    color: #f5f3ff !important;
}

.xtq-ps__plans-error {
    margin: 12px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.45;
}

/* Step "planos": painel claro e largo (popup promovido da vitrine) */
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__panel,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__panel {
    max-width: 920px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__title,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__title {
    color: #0f172a !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__subtitle,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__subtitle,
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__hint,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__hint {
    color: #475569 !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan {
    background: #ffffff !important;
    border: 2px solid rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan--popular,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan--popular {
    border-color: #270069 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f0ff 100%) !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-name,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-name,
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-amount,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-amount {
    color: #0f172a !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-currency,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-currency,
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-period,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-period,
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-period-label,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-period-label,
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-ideal,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-ideal,
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-features li,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-features li {
    color: #334155 !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-features li::before,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-features li::before {
    background: #270069 !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-cta,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-cta {
    background: #270069 !important;
    color: #ffffff !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__back,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__back {
    color: #270069 !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__close,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__close {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #64748b !important;
}

/* Escolha inicial em vitrine: painel escuro consistente (nao branco) */
.xtq-showcase-path-selector .xtq-ps--inline.xtq-ps--on-choose .xtq-ps__panel,
.xtq-trial-path-selector .xtq-ps--inline.xtq-ps--on-choose .xtq-ps__panel {
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(13, 18, 32, 0.98)) !important;
    border: 1px solid rgba(167, 139, 250, 0.28) !important;
}

/* Painel mais largo na step planos (fallback sem :has) */
.xtq-ps--popup .xtq-ps__panel {
    max-width: 540px;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__panel {
    max-width: 920px !important;
}

/* Diagnóstico: painel claro + formulário legível (sobrescreve vitrine escura) */
.xtq-ps--popup .xtq-ps__panel,
.xtq-ps--promoted .xtq-ps__panel {
    max-width: 540px;
}

.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__panel,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__panel,
.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__panel,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__panel {
    max-width: 480px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__title,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__title {
    color: #0f172a !important;
}

.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__subtitle,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__subtitle,
.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__hint,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__hint {
    color: #64748b !important;
}

.xtq-ps--popup .xtq-ps__form input,
.xtq-ps--popup .xtq-ps__form select,
.xtq-ps--promoted .xtq-ps__form input,
.xtq-ps--promoted .xtq-ps__form select,
.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__form input,
.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__form select,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__form input,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__form select,
.xtq-showcase-path-selector .xtq-ps--promoted .xtq-ps__form input,
.xtq-showcase-path-selector .xtq-ps--promoted .xtq-ps__form select,
.xtq-trial-path-selector .xtq-ps--promoted .xtq-ps__form input,
.xtq-trial-path-selector .xtq-ps--promoted .xtq-ps__form select {
    width: 100% !important;
    padding: 12px 14px !important;
    min-height: unset !important;
    height: auto !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    box-shadow: none !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.xtq-ps--popup .xtq-ps__form input::placeholder,
.xtq-ps--promoted .xtq-ps__form input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.xtq-ps--popup .xtq-ps__form input:focus,
.xtq-ps--popup .xtq-ps__form select:focus,
.xtq-ps--promoted .xtq-ps__form input:focus,
.xtq-ps--promoted .xtq-ps__form select:focus {
    outline: none !important;
    border-color: #270069 !important;
    box-shadow: 0 0 0 3px rgba(39, 0, 105, 0.12) !important;
}

.xtq-ps--popup .xtq-ps__submit,
.xtq-ps--promoted .xtq-ps__submit {
    width: 100% !important;
    min-height: unset !important;
    padding: 14px 20px !important;
    background: #270069 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__close,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__close {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #64748b !important;
}

/* Cards de plano XTQ: altura alinhada + lista rolável */
.xtq-ps--on-plans .xtq-ps__plan {
    min-height: 0;
}

@media (min-width: 720px) {
    .xtq-ps--popup.xtq-ps--on-plans .xtq-ps__panel,
    .xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__panel {
        max-width: min(1040px, 96vw) !important;
    }
}
