.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: 20px;
    font-weight: 600;
    line-height: 1.3;
    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: 14px 14px !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: 15px;
    font-weight: 600;
    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: 12.5px;
    font-weight: 500;
    color: #270069;
}

.xtq-ps__agency-line {
    display: block;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.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: 17px;
    font-weight: 600;
    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: 26px;
    font-weight: 700;
    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: 600;
    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: 10px 12px;
    background: #270069;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    border-radius: 10px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.xtq-ps__plan-cta:hover {
    background: #1c004d;
    transform: translateY(-1px);
}

.xtq-ps__back {
    margin-top: 14px;
    background: transparent;
    border: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
}

.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: 14px 14px !important;
    font-weight: 600 !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: 12px 14px !important;
    font-weight: 600 !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: #64748b !important;
    background: transparent !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;
}

/* Popup promovido / nativo: painel claro só nas etapas de conteúdo (nao na escolha) */
.xtq-ps--popup:not(.xtq-ps--on-choose) .xtq-ps__panel,
.xtq-ps--promoted:not(.xtq-ps--on-choose) .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;
    }
}

/* Agência/gestor - vitrine escura */
.xtq-showcase-path-selector .xtq-ps__agency-line,
.xtq-trial-path-selector .xtq-ps__agency-line {
    border-top-color: rgba(148, 163, 184, 0.22);
    color: #94a3b8;
}

.xtq-showcase-path-selector .xtq-ps__agency-link,
.xtq-trial-path-selector .xtq-ps__agency-link {
    color: #c4b5fd !important;
}

/* Etapa agendamento (embed Google Agenda / Calendly) */
.xtq-ps--popup.xtq-ps--on-schedule .xtq-ps__panel,
.xtq-ps--promoted.xtq-ps--on-schedule .xtq-ps__panel {
    max-width: min(720px, 96vw) !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.xtq-ps--on-schedule .xtq-ps__title {
    color: #0f172a !important;
}

.xtq-ps--on-schedule .xtq-ps__subtitle,
.xtq-ps--on-schedule .xtq-ps__hint {
    color: #475569 !important;
}

.xtq-ps__schedule-embed {
    margin: 16px 0 8px;
    min-height: 520px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
}

.xtq-ps__schedule-frame {
    display: block;
    width: 100%;
    min-height: 520px;
    height: 72vh;
    max-height: 640px;
    border: 0;
    background: #fff;
}

.xtq-ps__schedule-open {
    color: #270069;
    font-weight: 700;
    text-decoration: underline;
}

.xtq-ps__schedule-open:hover {
    color: #1c004d;
}

.xtq-ps__schedule-embed--external {
    min-height: auto;
    padding: 8px 0 4px;
    background: transparent;
    border: 0;
}

.xtq-ps__schedule-external {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
}

.xtq-ps__schedule-external-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
}

.xtq-ps__schedule-primary {
    display: inline-flex !important;
    justify-content: center;
    width: 100%;
    text-decoration: none !important;
}

/* Etapa sucesso: painel claro e texto legivel (evita cinza claro da vitrine escura) */
.xtq-ps--on-success .xtq-ps__panel,
.xtq-ps--popup.xtq-ps--on-success .xtq-ps__panel,
.xtq-ps--promoted.xtq-ps--on-success .xtq-ps__panel,
.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-success .xtq-ps__panel,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-success .xtq-ps__panel {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.xtq-ps--on-success .xtq-ps__title,
.xtq-ps--promoted.xtq-ps--on-success .xtq-ps__title {
    color: #0f172a !important;
}

.xtq-ps--on-success .xtq-ps__subtitle,
.xtq-ps--on-success [data-ps-success-msg],
.xtq-ps--promoted.xtq-ps--on-success .xtq-ps__subtitle,
.xtq-ps--promoted.xtq-ps--on-success [data-ps-success-msg] {
    color: #475569 !important;
}

.xtq-ps--on-success .xtq-ps__back,
.xtq-ps--on-success button.xtq-ps__back {
    color: #64748b !important;
    background: transparent !important;
}

@media (max-width: 559px) {
    .xtq-ps__schedule-embed,
    .xtq-ps__schedule-frame {
        min-height: 420px;
    }
}

/* Bloqueia scroll da pagina enquanto modal promovido esta aberto */
html.xtq-ps-scroll-lock {
    overflow: hidden;
}

.xtq-ps__inline-placeholder,
.xtq-ps__inline-slot {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

/* Espelho do seletor na pagina enquanto o modal esta aberto (vitrine /chat) */
.xtq-ps-host--overlay-open {
    position: relative;
}

.xtq-ps__inline-mirror-wrap {
    width: 100%;
    pointer-events: none;
    user-select: none;
}

.xtq-ps__panel--mirror {
    margin: 0 auto;
    max-width: 720px;
    opacity: 0.98;
}

.xtq-showcase-path-selector .xtq-ps__panel--mirror,
.xtq-trial-path-selector .xtq-ps__panel--mirror {
    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;
    border-radius: 18px !important;
    padding: 24px 22px !important;
    color: #f8fafc !important;
}

.xtq-ps__inline-mirror .xtq-ps__title {
    color: #ffffff !important;
}

.xtq-ps__inline-mirror .xtq-ps__subtitle {
    color: #cbd5e1 !important;
}

/* Barra de navegacao no popup (seta voltar) */
.xtq-ps__topbar {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 0 44px 0 0;
    min-height: 36px;
}

.xtq-ps__topbar[hidden] {
    display: none !important;
}

.xtq-ps__nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px 6px 4px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    width: auto !important;
}

.xtq-ps__nav-back-icon {
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}

.xtq-ps--promoted .xtq-ps__nav-back,
.xtq-ps--popup .xtq-ps__nav-back {
    color: #475569 !important;
}

.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__nav-back {
    color: #e2e8f0 !important;
}

.xtq-ps__nav-back:hover {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #270069 !important;
}

.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__topbar,
.xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__topbar,
.xtq-ps--promoted.xtq-ps--on-schedule .xtq-ps__topbar,
.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__topbar,
.xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__topbar,
.xtq-ps--popup.xtq-ps--on-schedule .xtq-ps__topbar {
    display: flex !important;
}

.xtq-ps--promoted .xtq-ps__panel {
    padding-top: 28px;
}

/* Botao fechar: nao herdar estilos globais da vitrine/WP */
.xtq-ps .xtq-ps__close {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.xtq-ps .xtq-ps__close:hover,
.xtq-ps .xtq-ps__close:focus {
    border: none !important;
    box-shadow: none !important;
}

/* Modal promovido da vitrine: texto legivel (nao herdar #cbd5e1 no fundo branco) */
.xtq-showcase-path-selector .xtq-ps--promoted .xtq-ps__title,
.xtq-trial-path-selector .xtq-ps--promoted .xtq-ps__title {
    color: #0f172a !important;
}

.xtq-showcase-path-selector .xtq-ps--promoted .xtq-ps__subtitle,
.xtq-trial-path-selector .xtq-ps--promoted .xtq-ps__subtitle,
.xtq-showcase-path-selector .xtq-ps--promoted .xtq-ps__hint,
.xtq-trial-path-selector .xtq-ps--promoted .xtq-ps__hint {
    color: #475569 !important;
}

.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__title,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__title,
.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__title,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__title,
.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-schedule .xtq-ps__title,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-schedule .xtq-ps__title {
    color: #0f172a !important;
}

/* Fallback: escolha no overlay ainda com tema escuro da vitrine */
.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__panel,
.xtq-trial-path-selector .xtq-ps--promoted.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;
    color: #f8fafc !important;
}

.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__title,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__title {
    color: #ffffff !important;
}

.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__subtitle,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__subtitle {
    color: #cbd5e1 !important;
}

.xtq-showcase-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__close,
.xtq-trial-path-selector .xtq-ps--promoted.xtq-ps--on-choose .xtq-ps__close {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

/* v1.0.11: ajustes de UX da vitrine /chat */
.xtq-showcase-path-selector,
.xtq-trial-path-selector {
    max-width: 660px !important;
}

.xtq-showcase-path-selector .xtq-ps--inline .xtq-ps__panel,
.xtq-trial-path-selector .xtq-ps--inline .xtq-ps__panel {
    padding: 24px 22px !important;
    border-radius: 18px !important;
}

.xtq-showcase-path-selector .xtq-ps button.xtq-ps__option,
.xtq-trial-path-selector .xtq-ps button.xtq-ps__option {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
}

.xtq-ps .xtq-ps__agency-link,
.xtq-ps button.xtq-ps__agency-link,
.xtq-showcase-path-selector .xtq-ps .xtq-ps__agency-link,
.xtq-trial-path-selector .xtq-ps .xtq-ps__agency-link {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 0 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #c4b5fd !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    line-height: inherit !important;
    outline: 0 !important;
    text-align: inherit !important;
    text-decoration: underline !important;
    text-transform: none !important;
}

.xtq-ps .xtq-ps__agency-link:hover,
.xtq-ps .xtq-ps__agency-link:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ddd6fe !important;
    outline: 0 !important;
}

.xtq-ps__plan-badge {
    display: none !important;
}

.xtq-ps--popup.xtq-ps--on-plans .xtq-ps__panel,
.xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__panel {
    max-width: min(920px, 94vw) !important;
    padding: 30px 28px 24px !important;
}

.xtq-ps__plan {
    padding: 19px 16px !important;
    border-radius: 15px !important;
}

.xtq-ps__plan-features {
    max-height: min(230px, 36vh) !important;
}

.xtq-ps__plan--theme-light {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

.xtq-ps__plan--theme-purple {
    background: linear-gradient(180deg, #ffffff 0%, #f4efff 100%) !important;
    border-color: #270069 !important;
    box-shadow: 0 18px 50px rgba(39, 0, 105, 0.12) !important;
}

.xtq-ps__plan--theme-gold {
    background: linear-gradient(180deg, #ffffff 0%, #fff7df 100%) !important;
    border-color: #d4af37 !important;
    box-shadow: 0 18px 50px rgba(212, 175, 55, 0.16) !important;
}

.xtq-ps__plan--theme-purple .xtq-ps__plan-cta,
.xtq-ps__plan--theme-purple .xtq-ps__plan-features li::before {
    background: #270069 !important;
}

.xtq-ps__plan--theme-gold .xtq-ps__plan-cta,
.xtq-ps__plan--theme-gold .xtq-ps__plan-features li::before {
    background: linear-gradient(135deg, #f59e0b, #b45309) !important;
}

.xtq-ps__plan--theme-gold .xtq-ps__plan-cta:hover {
    background: linear-gradient(135deg, #d97706, #92400e) !important;
}

/* v1.0.12: overlay mantém inline; botões compactos; tipografia mais leve */
.xtq-ps--inline.xtq-ps--promoted,
.xtq-ps--inline.xtq-ps--popup.xtq-ps--promoted {
    margin: 0 !important;
}

.xtq-showcase-path-selector .xtq-ps--inline .xtq-ps__title,
.xtq-trial-path-selector .xtq-ps--inline .xtq-ps__title {
    font-weight: 600 !important;
}

.xtq-showcase-path-selector .xtq-ps--inline .xtq-ps__option-title,
.xtq-trial-path-selector .xtq-ps--inline .xtq-ps__option-title {
    font-weight: 600 !important;
}

.xtq-ps button.xtq-ps__back,
.xtq-ps .xtq-ps__back,
.xtq-showcase-path-selector .xtq-ps button.xtq-ps__back,
.xtq-trial-path-selector .xtq-ps button.xtq-ps__back {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 12px 0 0 !important;
    padding: 4px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.xtq-ps button.xtq-ps__back:hover,
.xtq-ps .xtq-ps__back:hover {
    background: transparent !important;
    color: #270069 !important;
    text-decoration: underline !important;
    transform: none !important;
}

.xtq-ps a.xtq-ps__plan-cta,
.xtq-ps .xtq-ps__plan-cta,
.xtq-showcase-path-selector .xtq-ps a.xtq-ps__plan-cta,
.xtq-trial-path-selector .xtq-ps a.xtq-ps__plan-cta,
.woocommerce .xtq-ps a.xtq-ps__plan-cta,
body.woocommerce .xtq-ps a.xtq-ps__plan-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.xtq-ps--on-plans .xtq-ps__plan {
    padding: 16px 14px !important;
    gap: 8px !important;
}

.xtq-ps--on-plans .xtq-ps__plan-features li {
    font-weight: 400 !important;
}

/* Onboarding: popup acima do overlay do tour (z-index 999999) */
.xtq-ps--onboarding-elevated.xtq-ps--popup {
    z-index: 10000050 !important;
}

.xtq-ps--onboarding-elevated.xtq-ps--popup .xtq-ps__panel {
    max-height: min(92dvh, calc(100dvh - 20px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.xtq-ps--onboarding-elevated .xtq-ps__plan-features {
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 719px) {
    .xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plans,
    .xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plans {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan,
    .xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan {
        min-height: 0 !important;
    }

    .xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__plan-features,
    .xtq-ps--popup.xtq-ps--on-plans .xtq-ps__plan-features {
        max-height: none !important;
        overflow: visible !important;
    }

    .xtq-ps--promoted.xtq-ps--on-plans .xtq-ps__panel,
    .xtq-ps--popup.xtq-ps--on-plans .xtq-ps__panel,
    .xtq-ps--promoted.xtq-ps--on-diagnostic .xtq-ps__panel,
    .xtq-ps--popup.xtq-ps--on-diagnostic .xtq-ps__panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 16px max(20px, env(safe-area-inset-bottom)) !important;
        border-radius: 18px !important;
    }

    .xtq-ps--onboarding-elevated.xtq-ps--popup {
        align-items: flex-end !important;
        padding: 10px 10px max(10px, env(safe-area-inset-bottom)) !important;
    }

    .xtq-ps--onboarding-elevated.xtq-ps--popup .xtq-ps__panel {
        max-height: min(94dvh, calc(100dvh - 12px)) !important;
        border-radius: 20px 20px 16px 16px !important;
    }
}
