/* Seletor de forma de pagamento (compartilhado: inscrição + financeiro) */

.hot-pagamento-seletor-raiz {
    width: 100%;
}

.hot-pagamento-abas-raiz {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hot-pagamento-abas {
    width: 100%;
}

.hot-pagamento-abas-lista {
    --active-tab-left: 4px;
    --active-tab-top: 4px;
    --active-tab-width: 0px;
    --active-tab-height: 36px;

    position: relative;
    z-index: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: #e5e6e7;
    color: rgba(108, 117, 125, 0.72);
}

.hot-pagamento-abas-indicador {
    position: absolute;
    top: var(--active-tab-top);
    left: var(--active-tab-left);
    z-index: 0;
    width: var(--active-tab-width);
    height: var(--active-tab-height);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition:
        top 200ms ease-in-out,
        left 200ms ease-in-out,
        width 200ms ease-in-out,
        height 200ms ease-in-out;
    pointer-events: none;
}

.hot-pagamento-aba {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 36px;
    padding: 7px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: rgba(108, 117, 125, 0.72);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hot-pagamento-aba-icone {
    flex-shrink: 0;
    width: 16px;
    font-size: 1rem;
    text-align: center;
    color: inherit;
    pointer-events: none;
}

.hot-pagamento-aba-texto {
    pointer-events: none;
}

.hot-pagamento-aba-texto-curto {
    display: none;
}

.hot-pagamento-aba-texto-longo {
    display: inline;
}

.hot-pagamento-aba:hover {
    color: #6c757d;
}

.hot-pagamento-aba.selected,
.hot-pagamento-aba[aria-selected='true'] {
    color: #212529;
}

.hot-pagamento-aba:focus-visible {
    box-shadow: 0 0 0 2px rgba(245, 20, 10, 0.22);
}

.hot-pagamento-abas-paineis {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 120px;
}

.hot-pagamento-aba-painel {
    grid-row: 1;
    grid-column: 1;
    display: none;
    outline: none;
    align-self: start;
}

.hot-pagamento-aba-painel.fade {
    transition: opacity 0.15s linear;
}

.hot-pagamento-aba-painel.fade:not(.is-visible) {
    opacity: 0;
}

.hot-pagamento-aba-painel.is-active {
    display: block;
}

.hot-pagamento-campos-cartao.is-active,
.hot-pagamento-campos-pix.is-active,
.hot-pagamento-campos-boleto.is-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hot-pagamento-aba-painel.hot-pagamento-placeholder.is-active {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.hot-pagamento-aba-painel.is-visible {
    opacity: 1;
}

.hot-pagamento-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hot-pagamento-seletor-raiz .hot-pagamento-placeholder-conteudo {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.hot-pagamento-placeholder-card {
    width: 100%;
    padding: 28px 24px;
    border: none;
    border-radius: 12px;
    background: #f1f1f1;
    text-align: center;
}

.hot-pagamento-placeholder-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e5e6e7;
    color: #6c757d;
    font-size: 1.35rem;
}

.hot-pagamento-placeholder-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.hot-pagamento-placeholder-texto {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.45;
}

.hot-pagamento-placeholder-beneficios {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.hot-pagamento-placeholder-beneficios li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.4;
}

.hot-pagamento-placeholder-beneficios li:last-child {
    margin-bottom: 0;
}

.hot-pagamento-placeholder-beneficios li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #6c757d;
    font-size: 0.75rem;
}

.hot-pagamento-pix-intro {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 0;
}

.hot-pagamento-pix-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
}

.hot-pagamento-pix-qrcode img {
    display: block;
    width: 200px;
    height: 200px;
}

.hot-pagamento-pix-codigo {
    min-height: 42px;
    font-size: 0.78rem;
    color: #212529;
    background: #f8f9fa;
    border: 1px solid #d0d1d2;
    overflow-x: auto;
    white-space: nowrap;
}

.hot-pagamento-pix-codigo:focus {
    box-shadow: none;
    border-color: #d0d1d2;
}

.hot-pagamento-pix-copiar {
    width: auto;
    margin-top: 0;
}

.hot-pagamento-pix-status {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    color: #444;
}

.hot-pagamento-pix-status-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hot-pagamento-pix-status-linha i {
    color: #6c757d;
    flex-shrink: 0;
}

.hot-pagamento-pix-status p {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6c757d;
}

.hot-pagamento-pix-status--confirmado {
    background: #edf7ed;
    border-color: #cfe8d1;
    color: #1f6f38;
}

.hot-pagamento-pix-status--confirmado .hot-pagamento-pix-status-linha i,
.hot-pagamento-pix-status--confirmado p {
    color: #1f6f38;
}

.hot-pagamento-gerado {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.hot-pagamento-gerado-conteudo {
    padding: 8px 4px 4px;
}

.hot-pagamento-boleto-aviso {
    font-size: 0.875rem;
    color: #555;
}

.hot-boleto-mock-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.hot-boleto-mock-cabecalho {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 2px dashed #dee2e6;
}

.hot-boleto-mock-rotulo {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 2px;
}

.hot-boleto-mock-valor strong {
    font-size: 1.15rem;
    color: #212529;
}

.hot-boleto-linha-digitavel {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.hot-assinatura-campo-copia {
    width: 100%;
}

.hot-assinatura-campo-copia-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hot-assinatura-campo-copia-codigo {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #d9dee6;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.hot-assinatura-campo-copia-input {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.86rem;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: #334155;
    padding: 0.92rem 1rem;
}

.hot-assinatura-campo-copia-input:focus {
    border: 0;
    box-shadow: none !important;
}

.hot-assinatura-campo-copia-botao {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d9dee6;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.hot-assinatura-campo-copia-botao:hover,
.hot-assinatura-campo-copia-botao:focus {
    color: #2563eb;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.hot-assinatura-campo-copia-botao:focus-visible {
    outline: 0;
}

.hot-assinatura-campo-copia-botao-icone {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.hot-assinatura-campo-copia-botao-icone--copiar {
    opacity: 1;
    transform: scale(1);
}

.hot-assinatura-campo-copia-botao-icone--copiado {
    opacity: 0;
    transform: scale(0.45);
    color: #2563eb;
}

.hot-assinatura-campo-copia-botao.is-copiado .hot-assinatura-campo-copia-botao-icone--copiar {
    opacity: 0;
    transform: scale(0.45);
}

.hot-assinatura-campo-copia-botao.is-copiado .hot-assinatura-campo-copia-botao-icone--copiado {
    opacity: 1;
    transform: scale(1);
}

.hot-boleto-codigo-barras {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    min-height: 92px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hot-boleto-codigo-barras-acionar {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.hot-boleto-codigo-barras-acionar:hover,
.hot-boleto-codigo-barras-acionar:focus-visible {
    box-shadow: 0 0 0 2px rgba(245, 20, 10, 0.2);
    outline: none;
}

.hot-boleto-codigo-barras-acionar img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px;
    object-fit: fill;
    pointer-events: none;
}

.hot-boleto-codigo-barras-expandido-imagem {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 140px;
    max-height: 220px;
    object-fit: contain;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #212529;
}

.hot-cartoes-salvos-item {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.hot-cartoes-salvos-item:last-of-type {
    margin-bottom: 0;
}

.hot-cartoes-salvos-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hot-cartoes-salvos-item-corpo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hot-cartoes-salvos-item:hover .hot-cartoes-salvos-item-corpo {
    border-color: rgba(130, 49, 211, 0.35);
}

.hot-cartoes-salvos-item--selecionado .hot-cartoes-salvos-item-corpo,
.hot-cartoes-salvos-radio:checked + .hot-cartoes-salvos-item-corpo {
    border-color: #8231d3;
    background: rgba(130, 49, 211, 0.06);
}

.hot-cartoes-salvos-bandeira {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-cartoes-salvos-dados strong {
    display: block;
    font-size: 0.9rem;
}

.hot-pagamento-subpainel-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 120px;
}

.hot-pagamento-subpainel {
    grid-row: 1;
    grid-column: 1;
    display: none;
    outline: none;
    align-self: start;
    width: 100%;
}

.hot-pagamento-subpainel.fade {
    transition: opacity 0.15s linear;
}

.hot-pagamento-subpainel.fade:not(.is-visible) {
    opacity: 0;
}

.hot-pagamento-subpainel.is-active {
    display: block;
}

.hot-pagamento-subpainel.is-visible {
    opacity: 1;
}

.hot-fin-assinatura-pagamento-rodape {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.hot-fin-assinatura-pagamento-rodape--pix-boleto,
.hot-fin-assinatura-pagamento-rodape--cartao {
    justify-content: flex-end;
}

.hot-fin-assinatura-pagamento-rodape--pix-boleto .hot-fin-assinatura-pagamento-botao-principal,
.hot-fin-assinatura-pagamento-rodape--cartao .hot-fin-assinatura-pagamento-botao-principal {
    width: auto;
}

.hot-pagamento-seletor-raiz .hot-pagamento-gerado-conteudo {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .hot-pagamento-aba-texto-curto {
        display: inline;
    }

    .hot-pagamento-aba-texto-longo {
        display: none;
    }

    .hot-pagamento-placeholder-card {
        padding: 20px 16px;
    }
}

/* ==========================================
   TEMA ESCURO — seletor forma pagamento
   Light intacto; só html[data-theme="dark"]
   ========================================== */

html[data-theme="dark"] .hot-pagamento-abas-lista {
    background: var(--hot-nivel-1);
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-abas-indicador {
    background: var(--hot-nivel-3);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--hot-nivel-0) 45%, transparent);
}

html[data-theme="dark"] .hot-pagamento-aba {
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-aba:hover {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-pagamento-aba.selected,
html[data-theme="dark"] .hot-pagamento-aba[aria-selected='true'] {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-pagamento-aba:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hot-cta) 28%, transparent);
}

html[data-theme="dark"] .hot-pagamento-placeholder-card {
    background: var(--hot-nivel-2);
}

html[data-theme="dark"] .hot-pagamento-placeholder-icone {
    background: var(--hot-nivel-1);
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-placeholder-titulo {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-pagamento-placeholder-texto,
html[data-theme="dark"] .hot-pagamento-placeholder-beneficios li {
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-placeholder-beneficios li::before {
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-pix-intro,
html[data-theme="dark"] .hot-pagamento-boleto-aviso {
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-pix-qrcode {
    border-color: var(--hot-borda);
    background: var(--hot-nivel-3);
}

html[data-theme="dark"] .hot-pagamento-pix-codigo {
    color: var(--hot-texto);
    background: var(--hot-nivel-2);
    border-color: var(--hot-borda);
}

html[data-theme="dark"] .hot-pagamento-pix-codigo:focus {
    border-color: var(--hot-cta);
}

html[data-theme="dark"] .hot-pagamento-pix-status {
    background: var(--hot-nivel-2);
    border-color: var(--hot-borda);
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-pix-status-linha i,
html[data-theme="dark"] .hot-pagamento-pix-status p {
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-pagamento-pix-status--confirmado {
    background: color-mix(in srgb, #22c55e 14%, var(--hot-nivel-3));
    border-color: color-mix(in srgb, #22c55e 35%, var(--hot-borda));
    color: #86efac;
}

html[data-theme="dark"] .hot-pagamento-pix-status--confirmado .hot-pagamento-pix-status-linha i,
html[data-theme="dark"] .hot-pagamento-pix-status--confirmado p {
    color: #86efac;
}

html[data-theme="dark"] .hot-boleto-mock-card {
    border-color: var(--hot-borda);
    background: var(--hot-nivel-3);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--hot-nivel-0) 35%, transparent);
}

html[data-theme="dark"] .hot-boleto-mock-cabecalho {
    border-bottom-color: var(--hot-borda);
}

html[data-theme="dark"] .hot-boleto-mock-rotulo {
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-boleto-mock-valor strong {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-assinatura-campo-copia-codigo {
    border-color: var(--hot-borda);
    background: linear-gradient(180deg, var(--hot-nivel-3) 0%, var(--hot-nivel-2) 100%);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hot-texto) 6%, transparent),
        0 4px 16px color-mix(in srgb, var(--hot-nivel-0) 35%, transparent);
}

html[data-theme="dark"] .hot-assinatura-campo-copia .hot-login-label,
html[data-theme="dark"] .hot-boleto-linha-digitavel + .hot-login-label,
html[data-theme="dark"] .hot-assinatura-campo-copia.hot-boleto-linha-digitavel .hot-login-label {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-assinatura-campo-copia-input {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-assinatura-campo-copia-botao {
    border-color: var(--hot-borda);
    background: var(--hot-nivel-3);
    color: var(--hot-texto-muted);
}

html[data-theme="dark"] .hot-assinatura-campo-copia-botao:hover,
html[data-theme="dark"] .hot-assinatura-campo-copia-botao:focus {
    color: var(--hot-cta-hover);
    border-color: var(--hot-borda);
    background: var(--hot-hover);
}

html[data-theme="dark"] .hot-assinatura-campo-copia-botao-icone--copiado {
    color: var(--hot-cta-hover);
}

html[data-theme="dark"] .hot-boleto-codigo-barras {
    background: var(--hot-nivel-2);
    border-color: var(--hot-borda);
}

html[data-theme="dark"] .hot-boleto-codigo-barras-acionar:hover,
html[data-theme="dark"] .hot-boleto-codigo-barras-acionar:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hot-cta) 28%, transparent);
}

html[data-theme="dark"] .hot-boleto-codigo-barras-expandido-imagem {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-cartoes-salvos-item-corpo {
    border-color: var(--hot-borda);
    background: var(--hot-nivel-3);
}

html[data-theme="dark"] .hot-cartoes-salvos-item:hover .hot-cartoes-salvos-item-corpo {
    border-color: color-mix(in srgb, var(--hot-cta) 35%, var(--hot-borda));
}

html[data-theme="dark"] .hot-cartoes-salvos-item--selecionado .hot-cartoes-salvos-item-corpo,
html[data-theme="dark"] .hot-cartoes-salvos-radio:checked + .hot-cartoes-salvos-item-corpo {
    border-color: var(--hot-cta);
    background: color-mix(in srgb, var(--hot-cta) 12%, var(--hot-nivel-3));
}

html[data-theme="dark"] .hot-cartoes-salvos-dados strong {
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-pagamento-seletor-raiz .form-control,
html[data-theme="dark"] .hot-pagamento-seletor-raiz .form-select {
    background-color: var(--hot-nivel-3);
    border-color: var(--hot-borda);
    color: var(--hot-texto);
}

html[data-theme="dark"] .hot-pagamento-seletor-raiz .form-control::placeholder {
    color: var(--hot-placeholder);
}

html[data-theme="dark"] .hot-pagamento-seletor-raiz .form-control:focus,
html[data-theme="dark"] .hot-pagamento-seletor-raiz .form-select:focus {
    border-color: var(--hot-cta);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--hot-cta) 22%, transparent);
}
