/* =====================================================================
   Carrinho Claro Empresas
   Baseado nos tokens do design system Mondrian (claro-tokens 3.2.0):
   cores, raios, sombras e fontes seguem o carrinho oficial da Claro.
   ===================================================================== */

/* ---------- reset ---------- */
html,
button,
input,
textarea,
select,
figure,
article,
section,
aside,
header,
footer,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* o atributo hidden vence qualquer display definido por classe */
[hidden] {
    display: none !important;
}

/* ---------- fonte de destaque ----------
   AMX Bold é o único peso que usamos (títulos e preços). Declarada aqui, e não
   pelo mondrian-fonts-latest.css, porque lá todas as faces vêm com
   font-display: swap — o título pintava em Roboto e trocava de fonte depois.
   Com block + o preload no <head> o texto já aparece na fonte certa. */
@font-face {
    font-family: 'AMX';
    src: url('https://mondrian.claro.com.br/fonts/assets/claro/amx/AMX-Bold.woff2') format('woff2'),
        url('https://mondrian.claro.com.br/fonts/assets/claro/amx/AMX-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/* ---------- tokens ---------- */
:root {
    /* marca */
    --primary-red: #DA291C;
    --red-dark: #B41E13;
    --red-darkest: #83170F;
    --red-header: #880000;
    /* mdn-Menu--enterprise */
    --red-lightest: #FFE3E3;
    --teal: #005c66;
    /* link padrão Claro */
    /* neutros */
    --ink: #1F1D1D;
    --ink-2: #525252;
    --ink-soft: rgba(31, 29, 29, .5);
    --line: #DBDBDB;
    --surface: #F8F8F8;
    --white: #FFFFFF;
    /* suporte */
    --yellow: #FFC722;
    --yellow-hover: #FB9C2D;
    --success-green: #006B4F;
    --success-light: #DDF9ED;
    --attention: #B84D01;
    --attention-light: #FFFAAD;
    /* forma */
    --radius-xs: 4px;
    --radius-input: 8px;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-pill: 500px;
    --shadow-1: 0 4px 8px -2px rgba(31, 29, 29, .16);
    --shadow-2: 0 8px 16px -2px rgba(31, 29, 29, .16);
    --focus-ring: 0 0 0 3px rgba(31, 29, 29, .16);
    /* tipografia */
    --font-base: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-highlight: "AMX", var(--font-base);
    --step-ease: cubic-bezier(.4, 0, .2, 1);
    /* durações das animações de aparecer/sumir (hovers seguem rápidos, em .2s) */
    --t-fade: .35s;
    /* opacidade de conteúdo */
    --t-soft: .45s;
    /* deslocamentos curtos, chevron, sombras */
    --t-pop: .4s;
    /* dia selecionado, troca de mês */
    --t-collapse: .55s;
    /* blocos .collapsible (calendário, dados bancários) */
    --t-step: .7s;
    /* sanfona das etapas */
    --t-drawer: .5s;
    /* drawer lateral / painel inferior */
    --t-overlay: .45s;
    /* fundo escuro dos modais */

    /* aliases legados (usados em trechos antigos deste arquivo) */
    --text-gray: var(--ink-2);
    --text-white: var(--white);
    --text-dark: var(--ink);
    --text-muted: var(--ink-soft);
    --border-color: var(--line);
    --background-gray: var(--surface);
    --error-red: var(--attention);
    --color-neutral-darkest: var(--ink);
    --cinza1: #ebebeb;
    --cinza2: var(--line);
    --cinza3: silver;
    --cinza4: gray;
    --cinza5: var(--ink-2);
    --cinza6: #424242;
    --cor1: var(--primary-red);
    --cor2: var(--yellow);

    /* cadeado (Phosphor, o mesmo i-lock do sprite) usado como máscara no selo
       das etapas ainda não liberadas */
    --icone-cadeado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
html {
    -webkit-text-size-adjust: 100%;
    /* O celular pinta um retângulo azulado sobre o que é tocado. Os estados de
       toque já são os :active/:hover daqui, e o foco de teclado segue nas
       regras :focus-visible, que isto não afeta. */
    -webkit-tap-highlight-color: transparent;
}

/* Coluna para o rodapé ficar colado embaixo: enquanto o #loading monta o
   carrinho as etapas estão fechadas e o conteúdo não enche a tela — sem isto o
   rodapé subia e deixava um vão embaixo dele. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.3;
    color: var(--ink);
    background-color: var(--surface);
}

/* O conteúdo absorve a sobra; cabeçalho e rodapé mantêm a altura natural
   (flex-shrink: 0, senão eles encolheriam para caber) */
body>.checkout {
    flex: 1 0 auto;
}

body>.site-header,
body>.page-head,
body>.footer {
    flex: 0 0 auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.wrap,
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- utilitários de animação ---------- */
/* Bloco que abre/fecha suavemente (altura + fade). Use com um único filho direto. */
.collapsible {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--t-collapse) var(--step-ease), visibility 0s linear var(--t-collapse);
}

.collapsible>* {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--t-fade) ease, transform var(--t-soft) var(--step-ease);
}

.collapsible.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows var(--t-collapse) var(--step-ease), visibility 0s;
}

.collapsible.is-open>* {
    opacity: 1;
    transform: none;
    transition: opacity var(--t-fade) ease .12s, transform var(--t-soft) var(--step-ease);
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- loading ---------- */
#loading {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    /* transparência só no fundo: o spinner fica com cor sólida por cima */
    background-color: rgba(255, 255, 255, .9);
    z-index: 1200;
    text-align: center;
}

#loading .claro-spinner {
    position: relative;
    z-index: 1;
}

/* Frases do loading inicial: todas na mesma célula do grid; a que entra sobe de
   baixo desfocando para nítida, a que sai continua subindo e some */
.loading-frases {
    display: grid;
    width: min(90vw, 380px);
    min-height: 3em;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.loading-frases__item {
    grid-area: 1 / 1;
    align-self: start;
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.loading-frases__item.is-ativa {
    opacity: 1;
    transform: none;
    filter: none;
}

.loading-frases__item.is-saindo {
    transform: translateY(-14px);
}

.loading-frases__item--fim::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: loading-reticencias 1.2s steps(1) infinite;
}

@keyframes loading-reticencias {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

@media (min-width: 768px) {
    .loading-frases {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-frases__item {
        transform: none !important;
        filter: none;
        transition: opacity .3s ease;
    }

    .loading-frases__item--fim::after {
        animation: none;
        content: '...';
    }
}

.claro-spinner {
    width: 44px;
    height: 44px;
    overflow: visible;
}

.claro-spinner svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Tamanhos auxiliares pra contextos diferentes */
.claro-spinner--lg {
    width: 88px;
    height: 88px;
}

.claro-spinner--xl {
    width: 72px;
    height: 72px;
}

@media (min-width: 768px) {
    .claro-spinner--xl {
        width: 112px;
        height: 112px;
    }
}

/* Aura vermelha sutil em volta do O */
.claro-spinner__static {
    filter: drop-shadow(0 0 3px rgba(227, 38, 46, .35)) drop-shadow(0 0 8px rgba(227, 38, 46, .18));
}

.claro-spinner__rotating {
    /* Pivot exato no centro do C (em coords do viewBox) */
    transform-box: view-box;
    transform-origin: 333.333px 666.667px;
    animation: claro-loadingRotation .8s cubic-bezier(.21, .72, .63, .93) infinite;
}

@keyframes claro-loadingRotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1turn);
    }
}

/* =====================================================================
   Header (faixa de localização + barra da marca)
   ===================================================================== */
.site-header {
    color: var(--white);
}

.location-bar {
    background: var(--ink);
    height: 40px;
    font-size: .875rem;
}

.location-bar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-bar .icon {
    font-size: 18px;
}

.top-bar {
    background-color: var(--red-header);
    height: 72px;
    --logo-h: 40px;
}

.top-bar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-bar__brand {
    display: flex;
    align-items: flex-end;
    /* gap: 10px; */
    flex-shrink: 0;
}

.top-bar .logo {
    display: block;
    height: var(--logo-h);
    width: auto;
    flex-shrink: 0;
}

/* Assinatura ao lado da marca, na mesma linha de "empresas". Alinha pela linha
   de base, não pelo centro: no SVG a base de "empresas" fica a 16,7% da altura
   da logo, contando de baixo, e .16em desce a caixa do texto até essa linha */
.top-bar__afiliados {
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--white);
    padding-bottom: calc(var(--logo-h) * .167 - .16em);
    white-space: nowrap;
}

.top-bar__afiliados::before {
    content: "- ";
}

.top-bar__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    padding: 5px 16px 5px 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .28);
    transition: background-color .2s, transform .2s;
    white-space: nowrap;
}

.top-bar__phone:hover {
    background: rgba(255, 255, 255, .2);
}

.top-bar__phone:active {
    transform: scale(.98);
}

.top-bar__phone:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.top-bar__phone-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    color: var(--red-header);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.top-bar__phone-icon .icon {
    font-size: 18px;
}

.top-bar__phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.top-bar__phone-label {
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .9;
}

.top-bar__phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .01em;
}

/* =====================================================================
   Cabeçalho da página ("Estamos quase lá!")
   ===================================================================== */
.page-head {
    padding-top: 24px;
    padding-bottom: 20px;
}

.page-head__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: .9375rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
}

.back-link .icon {
    font-size: 18px;
}

.back-link:hover {
    text-decoration: underline;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
}

.secure-badge .icon {
    font-size: 22px;
}

.page-title {
    font-family: var(--font-highlight);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.45;
    max-width: 680px;
}

/* =====================================================================
   Layout do checkout
   ===================================================================== */
.checkout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 64px;
}

.form-section {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
}

.order-section {
    flex: 0 0 360px;
    order: 2;
    position: sticky;
    top: 16px;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =====================================================================
   Etapas (sanfona)
   ===================================================================== */
.form-step {
    position: relative;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-1);
    scroll-margin-top: 16px;
    transition: box-shadow var(--t-soft) var(--step-ease), border-color var(--t-soft) var(--step-ease);
}

/* Carregamento restrito ao card da etapa (CNPJ, complementos, agenda, banco) */
.step-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, .9);
    border-radius: inherit;
    z-index: 5;
}

/* menor que o de tela cheia, mas ainda visível dentro do card */
.step-loading .claro-spinner {
    width: 64px;
    height: 64px;
}

.form-step.active {
    box-shadow: var(--shadow-2);
}

.form-step.locked {
    box-shadow: none;
    border-color: var(--line);
}

.step-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: inherit;
    -webkit-tap-highlight-color: transparent;
}

.form-step.active .step-header {
    padding-bottom: 0;
}

/* linha divisória abaixo do título quando a etapa está aberta */
.form-step.active .step-header::after {
    content: '';
    grid-column: 1 / -1;
    height: 1px;
    background: var(--line);
    margin-top: 2px;
}

.form-step.completed:not(.active) .step-header {
    cursor: pointer;
}

.form-step.completed:not(.active) .step-header:hover {
    background: var(--surface);
}

.step-header:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

.step-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    /* vinho da marca, o mesmo do header; etapa bloqueada segue apagada */
    color: var(--red-header);
    transition: color var(--t-soft);
}

.step-icon>.icon {
    font-size: 30px;
}

/* Badge no canto do ícone. Nasce como bolinha laranja ("falta preencher") e,
   quando a etapa é concluída e fechada, vira o check verde: mesmo elemento,
   então a cor transiciona e o check desenha dentro, em vez de trocar seco. */
.step-done {
    position: absolute;
    right: -7px;
    bottom: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--attention);
    color: var(--white);
    border: 2px solid var(--white);
    display: grid;
    place-items: center;
    opacity: 1;
    transform: scale(1);
    transition: background-color var(--t-pop), opacity var(--t-pop), transform var(--t-pop) var(--step-ease),
        width var(--t-pop) var(--step-ease), right var(--t-pop) var(--step-ease), border-radius var(--t-pop);
}

.step-editing {
    grid-area: 1 / 1;
    font-size: 10px;
    opacity: 0;
    transform: scale(.4) rotate(-20deg);
    transition: opacity var(--t-pop), transform var(--t-pop) var(--step-ease);
}

.form-step.active .step-editing,
.form-step.concluindo .step-editing {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Cadeado das etapas ainda não liberadas. Desenhado por máscara para não
   precisar de outro <svg> em cada etapa; divide a célula com o lápis e o check.
   Só aparece em `.locked` (regra abaixo), então nunca pisca entre um e outro. */
.step-done::before {
    content: '';
    grid-area: 1 / 1;
    width: 11px;
    height: 11px;
    background: currentColor;
    -webkit-mask: var(--icone-cadeado) center / contain no-repeat;
    mask: var(--icone-cadeado) center / contain no-repeat;
    opacity: 0;
    transition: opacity var(--t-pop), transform var(--t-pop) var(--step-ease);
}

/* o check (o lápis tem regra própria acima) */
.step-done .icon:not(.step-editing) {
    grid-area: 1 / 1;
    font-size: 10px;
    opacity: 0;
    transform: scale(0) rotate(-30deg);
    transition: opacity var(--t-pop), transform var(--t-pop) var(--step-ease);
}

/* bloqueada: cinza e apagada como o resto do cabeçalho, com o cadeado */
.form-step.locked .step-done {
    opacity: .6;
    background: var(--ink-2);
}

.form-step.locked .step-done::before {
    opacity: 1;
}

/* concluída e reaberta pelo "Alterar": o check verde cede o lugar ao selo de
   editando, e ao fechar volta ao check */
.form-step.completed.active .step-done {
    background: var(--attention);
}

/* concluída e fechada: verde, com um pop, e o check entra logo depois da cor */
.form-step.completed:not(.active) .step-done {
    background: var(--success-green);
    animation: badge-pop .55s var(--step-ease);
}

.form-step.completed:not(.active) .step-done .icon:not(.step-editing) {
    opacity: 1;
    transform: scale(1) rotate(0);
    transition-delay: .12s;
}

/* etapa que vai de bloqueada direto a concluída (retomada): o cadeado encolhe */
.form-step.completed:not(.active) .step-done::before {
    opacity: 0;
    transform: scale(.3);
}

@keyframes badge-pop {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 107, 79, .45);
    }

    45% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 107, 79, 0);
    }
}

.form-step.locked .step-icon {
    color: var(--ink-soft);
}

.step-heading {
    min-width: 0;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
}

.form-step.locked .section-title {
    color: var(--ink-soft);
    font-weight: 400;
}

.step-summary {
    margin-top: 4px;
    font-size: .875rem;
    line-height: 1.4;
    color: var(--ink-2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.form-step.completed:not(.active) .step-summary {
    animation: fade-in var(--t-soft) ease both;
}

.step-summary:empty,
.form-step:not(.completed) .step-summary,
.form-step.active .step-summary {
    display: none;
}

.btn-alterar {
    display: none;
    align-items: center;
    color: var(--teal);
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: .9375rem;
    font-weight: 500;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color .2s;
}

.btn-alterar:hover {
    background: rgba(0, 92, 102, .08);
}

.form-step.completed:not(.active) .btn-alterar {
    display: inline-flex;
    animation: fade-in var(--t-soft) ease both;
}

.step-chevron {
    display: none;
    font-size: 20px;
    color: var(--ink);
    transition: transform var(--t-soft) var(--step-ease);
}

.form-step.completed .step-chevron {
    display: block;
}

.form-step.active .step-chevron {
    transform: rotate(180deg);
}

/* conteúdo com animação de abrir/fechar */
.step-content {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--t-step) var(--step-ease), visibility 0s linear var(--t-step);
}

.step-content__inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 24px;
    opacity: 0;
    transition: opacity var(--t-fade) ease, padding var(--t-step) var(--step-ease);
}

.form-step.active .step-content {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows var(--t-step) var(--step-ease), visibility 0s;
}

.form-step.active .step-content__inner {
    opacity: 1;
    padding: 20px 24px 24px;
    transition: opacity var(--t-fade) ease .18s, padding var(--t-step) var(--step-ease);
}

.subtitle {
    color: var(--ink-2);
    margin-bottom: 20px;
    font-size: .9375rem;
    line-height: 1.45;
}

/* =====================================================================
   Campos de formulário (padrão mdn-Input: borda escura, raio 8px)
   ===================================================================== */
.form-group {
    flex: 1;
    position: relative;
    margin-bottom: 16px;
}

/* =====================================================================
   Canais de marketing (etapa 1): consentimento, não campo obrigatório.
   Bloco de apoio — fundo levemente rebaixado e sem o peso dos inputs,
   para não disputar atenção com os dados da empresa.
   ===================================================================== */
/* min-inline-size: o navegador dá min-content ao fieldset, e isso esticava a
   caixa para fora do card quando o título era largo */
.canais {
    min-width: 0;
    min-inline-size: 0;
    margin: 2px 0 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

/* Sempre numa linha só. A frase é longa, então a fonte acompanha a largura da
   tela: ~21px de texto por px de fonte, mais 25px do ícone. Chega aos 14px
   cheios a partir de ~416px. O ícone é inline (não item flex) para não cair
   sozinho numa linha acima do texto */
.canais__titulo {
    margin: 0 0 10px;
    font-size: clamp(.5625rem, calc((100vw - 122px) / 21), .875rem);
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    color: var(--ink);
}

.canais__icone {
    display: inline-grid;
    place-items: center;
    vertical-align: -6px;
    width: 26px;
    height: 26px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--red-lightest);
    color: var(--primary-red);
}

/* Espelhado: o megafone do Phosphor abre para a esquerda e a boca tem que
   apontar para o texto */
.canais__icone .icon {
    font-size: 16px;
    transform: scaleX(-1);
}

/* Uma coluna no celular. No desktop sempre 2x2 — com auto-fit dava três numa
   linha e uma sobrando sozinha na outra */
.canais__opcoes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

@media (min-width: 768px) {
    .canais__opcoes {
        grid-template-columns: 1fr 1fr;
    }
}

/* position: o checkbox é escondido com position:absolute; sem um pai posicionado
   ele se ancora num ancestral distante e escapa do overflow:hidden da etapa
   fechada, esticando a página (é o padrão que .radio-card e .invoice-option já
   seguem) */
.canal {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: border-color .2s;
}

.canal:hover {
    border-color: var(--ink);
}

.canal input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Quadrado (e não círculo) para distinguir do radio: aqui são várias escolhas */
.canal__marca {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    border: 2px solid var(--ink-2);
    border-radius: var(--radius-xs);
    background: var(--white);
    color: transparent;
    transition: border-color .2s, background-color .2s, color .2s;
}

.canal__marca .icon {
    font-size: 12px;
}

.canal input[type="checkbox"]:checked+.canal__marca {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: var(--white);
}

.canal input[type="checkbox"]:focus-visible+.canal__marca {
    box-shadow: var(--focus-ring);
}

/* Ícone do canal: identifica de relance e acende junto com a seleção */
.canal__tipo {
    flex: 0 0 auto;
    font-size: 17px;
    color: var(--ink-soft);
    transition: color .2s;
}

.canal input[type="checkbox"]:checked~.canal__tipo {
    color: var(--primary-red);
}

.canal__nome {
    font-size: .9375rem;
    color: var(--ink);
    line-height: 1.2;
}

.canais__nota {
    margin: 10px 0 0;
    font-size: .75rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

/* Linha só com uma ação em texto (ex.: "+ Adicionar telefone adicional"):
   mesmo tom do "Trocar" do calendário, encostado à esquerda e mais baixo */
.form-group--acao {
    margin: -6px 0 12px;
}

.link-acao {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    margin-left: -10px;
    color: var(--teal);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s;
}

.link-acao:hover {
    background: rgba(0, 92, 102, .08);
}

.link-acao:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group input,
.form-group select,
.bank-form input,
.bank-form select,
.due-date select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-input);
    background: var(--white);
    font-size: 1rem;
    color: var(--ink);
    transition: box-shadow .2s, border-color .2s;
}

.form-group input::placeholder,
.bank-form input::placeholder {
    color: var(--ink-2);
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.bank-form input:focus,
.bank-form select:focus,
.due-date select:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.form-group input:disabled {
    background: var(--surface);
    color: var(--ink-2);
    border-color: var(--line);
}

.form-group select,
.bank-form select,
.due-date select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231F1D1D'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

/* =====================================================================
   Rótulo flutuante. Em repouso ele faz o papel do placeholder, dentro do
   campo; com foco ou valor, desliza para a borda de cima e encolhe — um
   elemento só nas duas posições, por isso a troca é uma animação e não um
   texto sumindo e outro aparecendo. O placeholder nativo fica transparente
   para não dobrar o texto.
   ===================================================================== */
.form-group:has(>.campo-rotulo) input::placeholder {
    color: transparent;
}

/* Select vazio: a opção "Estado *" some pelo mesmo motivo (o required faz o
   vazio ser :invalid). A cor volta nas opções para a lista aberta ficar legível */
.form-group:has(>.campo-rotulo) select:invalid {
    color: transparent;
}

.form-group:has(>.campo-rotulo) select option {
    color: var(--ink);
}

/* Repouso: mesmo lugar, tamanho e cor do placeholder do input (52px de altura,
   padding 16px, 1rem, --ink-2). O padding de 4px é compensado no left para o
   texto começar exatamente onde o digitado começa */
.campo-rotulo {
    position: absolute;
    top: 26px;
    left: 12px;
    z-index: 1;
    max-width: calc(100% - 56px);
    padding: 0 4px;
    transform: translateY(-50%);
    transform-origin: left center;
    background: transparent;
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: transform var(--t-fade) var(--step-ease), max-width var(--t-fade) var(--step-ease), background-color .12s ease .18s;
}

/* Flutuando: sobe 26px (do centro do campo para a borda) e encolhe para 11px
   via scale, que anima liso — font-size animando refaz o layout a cada quadro.
   Quem decide é o CSS, não o JS, porque tudo depende só do valor atual: o
   ViaCEP preenche o endereço com `.value =` sem disparar evento nenhum. Input
   pelo :placeholder-shown ou foco... */
.form-group:has(input:focus)>.campo-rotulo,
.form-group:has(input:not(:placeholder-shown))>.campo-rotulo {
    transform: translateY(calc(-50% - 26px)) scale(.6875);
    /* o max-width é medido antes do scale: dividir por ele devolve ao texto a
       largura real do campo (menos as bordas), senão corta cedo demais */
    max-width: calc((100% - 24px) / .6875);
    background: var(--white);
}

/* ...e o select pelo :valid (com required só passa fora da opção vazia) ou
   foco. Em regra separada de propósito: um seletor inválido derruba a lista
   inteira, e :has() não aceita outro :has() dentro */
.form-group:has(select:focus)>.campo-rotulo,
.form-group:has(select:valid)>.campo-rotulo {
    transform: translateY(calc(-50% - 26px)) scale(.6875);
    max-width: calc((100% - 24px) / .6875);
    background: var(--white);
}

/* Campo desabilitado com valor fica sobre .surface, não sobre o branco do card */
.form-group:has(input:disabled:not(:placeholder-shown))>.campo-rotulo {
    background: linear-gradient(var(--white) 50%, var(--surface) 50%);
}

.form-group input.error,
.form-group select.error,
.bank-form input.error,
.bank-form select.error {
    border-color: var(--attention);
    box-shadow: 0 0 0 1px var(--attention);
}

.error-message {
    display: none;
    color: var(--attention);
    font-size: .8125rem;
    margin-top: 6px;
}

.form-group .error+.error-message,
.bank-form .error+.error-message {
    display: block;
    animation: fade-in var(--t-fade) ease both;
}

/* Telefone dentro do aviso de falha: saída para quem não consegue seguir sozinho */
.dialog-modal__fone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.dialog-modal__fone .icon {
    width: 22px;
    height: 22px;
    fill: var(--primary-red);
}

.dialog-modal__fone span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.dialog-modal__fone small {
    font-size: .75rem;
    color: var(--ink-2);
}

.dialog-modal__fone strong {
    font-size: 1.125rem;
    color: var(--primary-red);
}

.alert {
    background-color: var(--attention-light);
    color: var(--attention);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .875rem;
    line-height: 1.45;
}

/* =====================================================================
   "?" de ajuda dentro do campo (complemento livre, com OUTRO). Abre um
   balão ancorado no botão — não um modal: a dúvida é pequena e o cliente
   continua digitando. Hover e foco mostram pelo CSS; o clique fixa, porque
   celular não tem hover.
   ===================================================================== */
.form-group--com-ajuda input {
    padding-right: 52px;
}

.ajuda {
    position: absolute;
    top: 26px;
    right: 14px;
    z-index: 2;
    transform: translateY(-50%);
}

.ajuda[hidden] {
    display: none;
}

.ajuda__botao {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1.5px solid var(--ink-2);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink-2);
    font: 700 .8125rem/1 inherit;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.ajuda__botao:hover,
.ajuda__botao:focus-visible,
.ajuda.is-open .ajuda__botao {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.ajuda__botao:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Acima do campo, alinhado à direita pelo botão: no celular ele cresce para a
   esquerda e fica dentro da largura do próprio input */
.ajuda__balao {
    position: absolute;
    right: -6px;
    bottom: calc(100% + 12px);
    width: min(300px, calc(100vw - 48px));
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink-2);
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity var(--t-fade) ease, transform var(--t-fade) var(--step-ease), visibility 0s linear var(--t-fade);
    pointer-events: none;
}

/* Setinha: quadrado girado, com borda só nos dois lados que ficam de fora */
.ajuda__balao::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    transform: rotate(45deg);
}

.ajuda:hover .ajuda__balao,
.ajuda.is-open .ajuda__balao,
.ajuda__botao:focus-visible+.ajuda__balao {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t-fade) ease, transform var(--t-fade) var(--step-ease), visibility 0s;
    pointer-events: auto;
}

.ajuda__balao strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: .9375rem;
}

.ajuda__exemplo,
.ajuda__nota {
    display: block;
    margin-top: 8px;
}

.ajuda__exemplo b {
    color: var(--ink);
}

.ajuda__nota {
    color: var(--ink-soft);
}

/* =====================================================================
   Popup de decisão (retomar carrinho): diálogo central, curto e com ícone.
   Segue a mecânica do .confirmation-modal — overlay + .active
   ===================================================================== */
.dialog-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(92vw, 440px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 32px 28px 28px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(31, 29, 29, .24);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    /* entra subindo e crescendo; só abre depois que o #loading sai */
    transform: translate(-50%, calc(-50% + 16px)) scale(.92);
    transition: opacity var(--t-fade) ease, transform var(--t-drawer) var(--step-ease), visibility 0s linear var(--t-drawer);
}

.dialog-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity var(--t-fade) ease, transform var(--t-drawer) var(--step-ease), visibility 0s;
}

@media (prefers-reduced-motion: reduce) {

    .dialog-modal,
    .dialog-modal.active {
        transform: translate(-50%, -50%);
        transition: opacity var(--t-fade) ease, visibility 0s;
    }
}

.dialog-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.dialog-modal__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--red-lightest);
    color: var(--primary-red);
}

.dialog-modal__icon .icon {
    font-size: 36px;
}

.dialog-modal__icon--ok {
    background: var(--success-light);
    color: var(--success-green);
}

.dialog-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.dialog-modal__text {
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.dialog-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.dialog-modal__confirm,
.dialog-modal__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    font-size: .9375rem;
    font-weight: 500;
    /* rótulo sempre numa linha (o do CEP chega a 29 caracteres) */
    white-space: nowrap;
    /* uma das ações é link (novo pedido): sem sublinhado, para parear com o botão */
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.dialog-modal__confirm {
    border: 1px solid var(--primary-red);
    background: var(--primary-red);
    color: var(--white);
}

.dialog-modal__confirm:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.dialog-modal__ghost {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-2);
}

.dialog-modal__ghost:hover {
    background: var(--surface);
}

/* Sem viabilidade (#bloqueio-modal): fica por cima da revisão (1001) e do
   #loading (1200); só o aviso de falha (1300) passa na frente. Não fecha: a
   saída é o botão de ligar. Faixa vinho do header em cima, corpo branco embaixo. */
.dialog-modal.dialog-modal--bloqueio {
    z-index: 1251;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.modal-overlay.modal-overlay--bloqueio {
    z-index: 1250;
}

.bloqueio-topo,
.bloqueio-corpo {
    align-self: stretch;
}

.bloqueio-topo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 24px 24px;
    background: var(--red-header);
}

.bloqueio-topo__icone {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    color: var(--red-header);
}

/* O telefone "chamando": treme em rajadas a cada 1,6 s, no mesmo ritmo do botão
   de ligar. Começa junto quando a análise termina e o 0800 aparece */
.bloqueio-topo__icone .icon {
    font-size: 30px;
    transform-origin: 50% 50%;
    animation: bloqueio-tocando 1.6s ease-in-out infinite;
}

@keyframes bloqueio-tocando {

    0%,
    32%,
    100% {
        transform: rotate(0);
    }

    4% {
        transform: rotate(-18deg);
    }

    8% {
        transform: rotate(16deg);
    }

    12% {
        transform: rotate(-16deg);
    }

    16% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    24% {
        transform: rotate(8deg);
    }

    28% {
        transform: rotate(-4deg);
    }
}

.bloqueio-topo__titulo {
    font-family: var(--font-highlight);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.bloqueio-corpo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 24px;
}

/* Mini-sanfona: mesmos ícones vinho e selos da etapa (check verde = salvo,
   laranja = falta), para o cliente ver que o cadastro não se perdeu */
.bloqueio-etapas {
    width: 100%;
    margin: 0;
    padding: 4px 16px;
    list-style: none;
    background: var(--surface);
    border-radius: var(--radius-sm);
    text-align: left;
}

.bloqueio-etapa {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    padding: 12px 0;
}

.bloqueio-etapa + .bloqueio-etapa {
    border-top: 1px solid var(--line);
}

.bloqueio-etapa__icone {
    grid-row: 1 / span 2;
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--red-header);
}

.bloqueio-etapa__icone > .icon {
    font-size: 28px;
}

.bloqueio-etapa__selo {
    position: absolute;
    right: -7px;
    bottom: -5px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    color: var(--white);
}

.bloqueio-etapa__selo .icon {
    font-size: 10px;
}

.bloqueio-etapa__selo--ok {
    background: var(--success-green);
}

.bloqueio-etapa__selo--telefone {
    background: var(--attention);
}

.bloqueio-etapa__nome {
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.bloqueio-etapa__status {
    font-size: .8125rem;
    line-height: 1.35;
}

.bloqueio-etapa__status--ok {
    color: var(--success-green);
}

.bloqueio-etapa__status--telefone {
    color: var(--attention);
}

/* Abre "analisando" (Bloqueio.abrir, como no PF): enquanto isso, só a análise aparece */
.bloqueio-analise {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 28px;
}

.dialog-modal--bloqueio.is-analisando > :not(.bloqueio-analise) {
    display: none;
}

.dialog-modal--bloqueio.is-analisando .bloqueio-analise {
    display: flex;
}

.bloqueio-analise__texto {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.bloqueio-analise__dica {
    font-size: .8125rem;
    color: var(--ink-2);
}

/* Terminada a análise, o 0800 entra subindo */
.dialog-modal--bloqueio:not(.is-analisando) > * {
    animation: bloqueio-entra .3s ease-out;
}

@keyframes bloqueio-entra {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dialog-modal--bloqueio > *,
    .bloqueio-topo__icone .icon,
    .dialog-modal__ligar {
        animation: none;
    }
}

/* Destaques do texto; o <strong> do botão (o número) segue branco */
.dialog-modal--bloqueio p strong {
    font-weight: 700;
    color: var(--ink);
}

.dialog-modal__chamada {
    margin-bottom: -6px;
    font-weight: 500;
    color: var(--ink);
}

/* O botão do 0800 é o destaque do modal: um brilho vermelho pulsa em volta no
   mesmo ritmo do telefone da faixa (1,6 s) */
.dialog-modal__ligar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    /* Vermelho de ação, como os outros botões do carrinho; o vinho fica na faixa */
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    line-height: 1.15;
    animation: ligar-pulso 1.6s ease-out infinite;
    transition: background-color .2s ease, transform .2s ease;
}

.dialog-modal__ligar:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.dialog-modal__ligar:active {
    transform: translateY(1px);
}

@keyframes ligar-pulso {
    0% {
        box-shadow: 0 0 0 0 rgba(218, 41, 28, .55), 0 8px 18px -8px rgba(218, 41, 28, .7);
    }

    70%,
    100% {
        box-shadow: 0 0 0 14px rgba(218, 41, 28, 0), 0 8px 18px -8px rgba(218, 41, 28, .7);
    }
}

.dialog-modal__ligar:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.dialog-modal__ligar small {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .9;
}

.dialog-modal__ligar strong {
    font-family: var(--font-highlight);
    font-size: 1.75rem;
    font-weight: 700;
}

.dialog-modal__rodape {
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--ink-2);
}

/* =====================================================================
   Avisos (js/aviso.js): mesmo diálogo acima, mais o toast rápido.
   Tom de erro é o --attention do .alert e dos campos inválidos, não o
   vermelho da marca (que aqui é a cor do botão de ação).
   ===================================================================== */
.dialog-modal__icon--alert {
    background: var(--attention-light);
    color: var(--attention);
}

/* Uma camada acima do #loading (1200) e do modal de revisão (1001): o erro
   aparece por cima de qualquer coisa que estiver aberta. Duas classes no
   seletor porque .modal-overlay/.dialog-modal vêm depois no arquivo e, com a
   mesma especificidade, ganhariam por ordem. */
.dialog-modal.dialog-modal--aviso {
    z-index: 1301;
}

.modal-overlay.modal-overlay--aviso {
    z-index: 1300;
}

/* Ancorado embaixo: em cima brigaria com o card "Seu pedido", que é sticky */
.toast-stack {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1302;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* o vão entre os toasts não bloqueia clique na página */
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(88vw, 360px);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    /* card branco de borda fina, como os do checkout; o tom fica no ícone */
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-2);
    color: var(--ink);
    font-size: .875rem;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    animation: toast-in var(--t-pop) var(--step-ease) both;
}

.toast__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--attention);
}

.toast--ok .toast__icon {
    color: var(--success-green);
}

.toast--saindo {
    animation: toast-out var(--t-fade) ease both;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .toast,
    .toast--saindo {
        animation: none;
    }
}

@media (max-width: 768px) {

    /* Acima da barra fixa do total (.footer-mobile) */
    .toast-stack {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        left: 12px;
    }

    .toast {
        width: auto;
    }
}

.name-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.name-section h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}

.name-section p {
    color: var(--ink-2);
    font-size: .875rem;
    margin-bottom: 8px;
}

/* =====================================================================
   Botões
   ===================================================================== */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

/* =====================================================================
   "Finalizar pedido" fixo abaixo do último card
   Entra quando tudo está concluído; o anel pulsando é o convite ao clique.
   ===================================================================== */
.finalizar {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    animation: finalizar-entrada var(--t-soft) var(--step-ease) both;
}

/* Especificidade acima de .submit-btn (declarado mais abaixo no arquivo),
   senão altura e fonte da base vencem */
.finalizar .finalizar__btn {
    position: relative;
    overflow: hidden;
    min-width: 240px;
    height: 52px;
    font-size: 1.0625rem;
    box-shadow: 0 8px 20px -10px rgba(218, 41, 28, .6);
    transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s;
}

/* Brilho que atravessa o botão de vez em quando: convida ao clique sem
   sair dos limites dele (o anel pulsando vazava para o card de cima) */
.finalizar .finalizar__btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 35%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .32) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    animation: finalizar-brilho 3.2s ease-in-out 1s infinite;
    pointer-events: none;
}

.finalizar .finalizar__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -10px rgba(218, 41, 28, .65);
}

.finalizar .finalizar__btn:hover::after {
    animation-play-state: paused;
}

.finalizar .finalizar__btn:active {
    transform: translateY(1px);
}

@keyframes finalizar-entrada {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes finalizar-brilho {
    0% {
        left: -45%;
    }

    40%,
    100% {
        left: 125%;
    }
}

.submit-btn,
.advance-button,
.confirm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 48px;
    padding: 0 32px;
    border: 1px solid var(--primary-red);
    border-radius: var(--radius-pill);
    background: var(--primary-red);
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, transform .15s;
}

.submit-btn:hover,
.advance-button:hover,
.confirm-button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.submit-btn:active,
.advance-button:active,
.confirm-button:active {
    transform: translateY(1px);
}

.submit-btn:focus-visible,
.advance-button:focus-visible,
.confirm-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* =====================================================================
   Opções em card (radio): autorização, forma de pagamento, fatura
   ===================================================================== */
.authorization-section {
    margin: 8px 0 24px;
}

.authorization-section p:first-child {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.authorization-section .subtitle {
    margin-bottom: 16px;
}

.radio-group,
.invoice-options,
.payment-options {
    display: flex;
    gap: 16px;
}

.radio-card,
.invoice-option {
    flex: 1;
    position: relative;
    display: block;
    cursor: pointer;
    min-width: 0;
}

.radio-card input[type="radio"],
.invoice-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.radio-content,
.invoice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
    transition: border-color .2s, box-shadow .2s;
}

/* A bolinha do rádio é o ::before do próprio cartão */
.radio-content::before,
.invoice-content::before {
    content: '';
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 2px solid var(--ink-2);
    border-radius: 50%;
    background: var(--white);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.radio-card:hover .radio-content,
.invoice-option:hover .invoice-content {
    border-color: var(--ink);
}

.radio-card input[type="radio"]:checked+.radio-content,
.invoice-option input[type="radio"]:checked+.invoice-content {
    border-color: var(--primary-red);
    box-shadow: inset 0 0 0 1px var(--primary-red);
}

.radio-card input[type="radio"]:checked+.radio-content::before,
.invoice-option input[type="radio"]:checked+.invoice-content::before {
    border-color: var(--primary-red);
    background: var(--primary-red);
    box-shadow: inset 0 0 0 4px var(--white);
}

.radio-card input[type="radio"]:focus-visible+.radio-content,
.invoice-option input[type="radio"]:focus-visible+.invoice-content {
    box-shadow: var(--focus-ring);
}

.invoice-content span {
    font-size: 1rem;
    color: var(--ink);
}

/* pagamento */
.payment-title,
.invoice-section h3,
.schedule-option h3,
.due-date label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 14px;
}

.payment-options {
    margin-bottom: 20px;
}

/* Trilho da chave: as duas posições dividem o espaço por igual */
.payment-switch {
    position: relative;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
}

/* A marca vermelha desliza entre as duas posições em vez de acender numa e
   apagar na outra. Como as metades são iguais (flex: 1), a medida é fixa:
   largura útil = 100% - 8px de padding - 4px de gap, dividida por dois */
.payment-switch::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 6px);
    height: calc(100% - 8px);
    border-radius: var(--radius-pill);
    background: var(--primary-red);
    transition: transform var(--t-soft) var(--step-ease);
}

/* Anda a própria largura mais o gap (boleto é a 1ª posição, débito a 2ª) */
.payment-switch:has(.payment-card[data-payment="debito"].selected)::before {
    transform: translateX(calc(100% + 4px));
}

/* z-index: o rótulo fica por cima da marca que desliza atrás dele */
.payment-card {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: none;
    color: var(--ink-2);
    cursor: pointer;
    transition: color var(--t-soft) var(--step-ease);
}

.payment-card:hover {
    color: var(--ink);
}

/* Sem fundo próprio: quem pinta é a marca deslizante */
.payment-card.selected,
.payment-card.selected:hover {
    color: var(--white);
}

.payment-card:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.payment-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: inherit;
}

.payment-icon .icon {
    font-size: 20px;
}

/* color: inherit para o rótulo virar branco junto com a posição escolhida */
.payment-card h3 {
    font-size: .8375rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

/* Chamada do desconto, acima da chave */
.payment-desconto {
    margin: 0 0 10px;
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.6;
}

/* :not — sem ele esta regra ganharia do selo por especificidade e passaria a
   cor por cima do estado apagado dele */
.payment-desconto strong:not(.payment-desconto__selo) {
    color: var(--ink);
}

/* Só o valor vira selo: apagado enquanto o desconto não vale, o :has abaixo acende */
.payment-desconto__selo {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 500;
    transition: background-color .2s, color .2s;
}

/* Em destaque só com o desconto valendo: débito em conta E fatura por e-mail */
.payment-form:has(.payment-card[data-payment="debito"].selected):has(input[name="invoice-type"][value="email"]:checked) .payment-desconto__selo {
    background: var(--success-light);
    color: var(--success-green);
    font-weight: 700;
}

/* Aviso do boleto, embaixo da chave; só aparece com o boleto escolhido */
.payment-nota {
    display: none;
    margin: 10px 0 0;
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.45;
}

.payment-form:has(.payment-card[data-payment="boleto"].selected) .payment-nota {
    display: block;
}

/* .bank-details é um .collapsible: abre/fecha animado conforme a forma de pagamento */
.bank-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    transition: padding var(--t-collapse) var(--step-ease), opacity var(--t-fade) ease, transform var(--t-soft) var(--step-ease);
}

.bank-details.is-open .bank-form {
    padding: 4px 0 8px;
}

.bank-form .form-row .form-group:first-child {
    flex: 2;
}

.due-date {
    margin: 8px 0 24px;
}

.due-date label {
    display: block;
    margin-bottom: 10px;
}

.due-date select {
    max-width: 220px;
}

/* Destino da fatura: e-mail ou endereço de cobrança, pré-preenchidos e
   editáveis — podem ser diferentes dos do cadastro e da instalação */
.fatura-destino {
    margin-top: 16px;
}

.fatura-destino[hidden] {
    display: none;
}

.fatura-destino__nota {
    margin: -6px 0 0;
    font-size: .8125rem;
    color: var(--ink-2);
}

.cobranca-card {
    padding: 14px 16px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-input);
    background: var(--white);
}

.cobranca-card__topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.cobranca-card__topo strong {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}

.cobranca-card__editar {
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--primary-red);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
}

.cobranca-card__editar:hover {
    text-decoration: underline;
}

.cobranca-card__editar:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 4px;
}

/* pre-line: o resumo vem com uma quebra por linha do endereço */
.cobranca-card__texto {
    margin: 0;
    color: var(--ink-2);
    font-size: .9375rem;
    line-height: 1.5;
    white-space: pre-line;
}

/* Só guarda o JSON do endereço; existe para o erro de validação cair aqui */
.form-group--oculto {
    margin: 0;
}

/* Empilhadas para o destino (e-mail ou endereço) caber logo abaixo da opção a
   que pertence, em vez de ficar depois das duas */
.invoice-options--empilhada {
    flex-direction: column;
    gap: 12px;
}

.invoice-options--empilhada .invoice-option {
    flex: none;
}

/* Recuado e preso à opção acima, para ler como parte dela */
.invoice-options--empilhada .fatura-destino {
    margin: -2px 0 4px 12px;
}

/* Diálogo com formulário: os campos pedem alinhamento à esquerda e largura
   inteira, ao contrário do diálogo de aviso (centralizado) */
.dialog-modal--form {
    align-items: stretch;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.dialog-modal--form .dialog-modal__title,
.dialog-modal--form .dialog-modal__text {
    padding-right: 32px;
}

.cobranca-campos {
    margin-top: 4px;
}

/* O rótulo flutuante do primeiro campo sobe até a borda: sem este respiro ele
   encostaria no texto acima */
.cobranca-campos .form-row:first-child {
    margin-top: 8px;
}

.cobranca-campos__estado {
    margin: -8px 0 12px;
    font-size: .8125rem;
    color: var(--ink-2);
}

.cobranca-campos__estado[hidden] {
    display: none;
}

.cobranca-campos__estado--erro {
    color: var(--attention);
}

.cobranca-campos__resto[hidden] {
    display: none;
}

/* Entra junto com a resposta do CEP, para a mudança não ser um salto seco */
.cobranca-campos__resto {
    animation: fade-in var(--t-fade) ease both;
}

.invoice-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.invoice-options {
    margin-bottom: 16px;
}

.email-input-container,
.correios-input-container {
    display: none;
}

/* =====================================================================
   Agendamento
   ===================================================================== */
.schedule-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.schedule-option {
    min-width: 0;
}

.schedule-hint {
    margin-top: 12px;
    font-size: .8125rem;
    color: var(--ink-2);
}

/* período (manhã / tarde) */
.time-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.time-slot {
    position: relative;
    display: block;
    cursor: pointer;
    min-width: 0;
}

.time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.time-slot__box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.time-slot__box::before {
    content: '';
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ink-2);
    border-radius: 50%;
    background: var(--white);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.time-slot__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.time-slot__text strong {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
}

.time-slot__text small {
    font-size: .75rem;
    color: var(--ink-2);
    white-space: nowrap;
}

.time-slot:hover .time-slot__box {
    border-color: var(--ink);
}

.time-slot input:checked+.time-slot__box {
    border-color: var(--primary-red);
    box-shadow: inset 0 0 0 1px var(--primary-red);
}

.time-slot input:checked+.time-slot__box::before {
    border-color: var(--primary-red);
    background: var(--primary-red);
    box-shadow: inset 0 0 0 4px var(--white);
}

.time-slot input:focus-visible+.time-slot__box {
    box-shadow: var(--focus-ring);
}

.time-slot input:disabled+.time-slot__box {
    opacity: .5;
    cursor: not-allowed;
}

/* calendário mensal */
.calendar {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 12px;
}

.calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.calendar__month {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    text-transform: capitalize;
}

.calendar__nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color .2s, opacity .2s;
}

.calendar__nav .icon {
    font-size: 16px;
}

.calendar__nav.next .icon {
    transform: rotate(180deg);
}

.calendar__nav:hover:not(:disabled) {
    border-color: var(--ink);
}

.calendar__nav:disabled {
    opacity: .35;
    cursor: default;
}

.calendar__weekdays,
.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar__weekdays span {
    text-align: center;
    font-size: .75rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 4px 0 6px;
}

.calendar__day,
.calendar .date-btn {
    aspect-ratio: 1;
    min-width: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .9375rem;
    line-height: 1;
}

.calendar__day {
    color: var(--ink-soft);
}

.calendar__day.is-empty {
    visibility: hidden;
}

.calendar .date-btn {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
    transition: border-color .25s, background-color .25s, color .25s;
}

.calendar .date-btn:hover:not(.disabled) {
    border-color: var(--ink);
}

.calendar .date-btn.selected {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    animation: day-pop var(--t-pop) var(--step-ease);
}

@keyframes day-pop {
    from {
        transform: scale(.85);
    }

    to {
        transform: none;
    }
}

/* troca de mês: a grade desliza na direção da navegação */
.calendar__grid.slide-left {
    animation: cal-slide-left var(--t-pop) var(--step-ease);
}

.calendar__grid.slide-right {
    animation: cal-slide-right var(--t-pop) var(--step-ease);
}

@keyframes cal-slide-left {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cal-slide-right {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.calendar .date-btn.disabled {
    border-color: transparent;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 400;
    cursor: not-allowed;
}

.calendar .date-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

.calendar__empty {
    grid-column: 1 / -1;
    padding: 24px 8px;
    text-align: center;
    color: var(--ink-2);
    font-size: .9375rem;
    line-height: 1.4;
}

/* card compacto da data escolhida (calendário fechado) */
.schedule-summary__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.schedule-summary__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red-lightest);
    color: var(--primary-red);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.schedule-summary__icon .icon {
    font-size: 22px;
}

.schedule-summary__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.schedule-summary__text strong {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}

.schedule-summary__text span {
    font-size: .8125rem;
    color: var(--ink-2);
}

.schedule-summary__change {
    flex-shrink: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    color: var(--teal);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s;
}

.schedule-summary__change:hover {
    background: rgba(0, 92, 102, .08);
}

.schedule-summary__change:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* =====================================================================
   Coluna "Seu pedido"
   ===================================================================== */
.order-header,
.product-details {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    box-shadow: var(--shadow-1);
}

.order-header {
    margin-bottom: 16px;
}

.order-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--ink);
}

.order-header h2 .icon {
    font-size: 26px;
}

/* No checkout o cabeçalho do pedido é ícone | título | ação em grid */
.checkout .order-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.checkout .order-header h2 {
    display: block;
    margin-bottom: 0;
}

/* Ícone em círculo, como nos itens do pedido e na revisão: é um card de
   resumo, não uma etapa (as etapas usam o ícone solto) */
.order-header__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: var(--red-lightest); */
    color: var(--red-header);
    display: grid;
    place-items: center;
}

.order-header__icon .icon {
    font-size: 22px;
}

.details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 500;
    transition: background-color .2s, opacity .15s;
}

/* Antes dos modificadores: com a mesma especificidade, quem vem depois ganha —
   e o fundo da pílula vazava para a linha do drawer */
.details-button:hover {
    background-color: var(--red-lightest);
}

.details-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* linha própria: no desktop o botão ocupa a largura do card */
.checkout .details-button {
    grid-column: 1 / -1;
}

/* a seta só faz sentido quando o botão vira link de linha (drawer) */
.details-button__seta {
    display: none;
    font-size: 18px;
}

/* Dentro do drawer "Ver pedido" é a única porta para os detalhes. Separado só
   pelo traço das abas: quem destaca é o ícone e o peso do texto, não uma caixa
   competindo com o "Continuar" do rodapé */
.details-button--drawer {
    position: relative;
    justify-content: center;
    gap: 4px;
    height: auto;
    /* margin-top: 14px; */
    padding: 14px 0 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: .875rem;
}

/* Traço curto e centrado: marca a separação sem virar uma régua atravessando
   o drawer */
.details-button--drawer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 250px;
    height: 1px;
    transform: translateX(-50%);
    background: var(--line);
    opacity: .6;
}

.details-button__icone {
    margin-right: 4px;
    font-size: 17px;
}

.details-button__texto {
    text-decoration: underline;
    font-weight: 600;
}

.details-button--drawer .details-button__seta {
    display: inline-block;
    font-size: 16px;
}

.details-button--drawer:hover {
    background: none;
    opacity: .75;
}

.details-button--drawer:active {
    opacity: .65;
}

/* itens do pedido (gerados por index.js; usados na coluna e no drawer) */
.product-main {
    display: flex;
    flex-direction: column;
}

.product-info {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.product-info:first-child {
    padding-top: 0;
}

.product-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red-lightest);
    color: var(--primary-red);
    display: grid;
    place-items: center;
}

.product-icon .icon {
    font-size: 22px;
}

.product-body {
    min-width: 0;
}

.product-category {
    font-size: .8125rem;
    color: var(--ink-2);
    margin-bottom: 2px;
}

.product-info-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.product-info-header+.product-info-header {
    margin-top: 6px;
}

.product-info-header h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}

.product-info-benefits {
    margin-top: 10px;
}

.product-info-benefits p {
    font-weight: 500;
    font-size: .75rem;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.benefits span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* background: var(--surface); */
    border: 1px solid var(--line);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    color: var(--ink-2);
    white-space: nowrap;
}

/* Desenho que o catálogo dá para o benefício, do lado do nome */
.benefits span img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    text-align: right;
}


/* Condições do pedido (instalação, fidelidade, adesão): informação de apoio,
   não deve competir com o preço nem com o total */
.installation-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    margin-bottom: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-soft);
    font-size: .8125rem;
}

.info-row span:last-child {
    color: var(--ink-2);
    white-space: nowrap;
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.total span:first-child {
    font-size: 1rem;
    color: var(--ink);
}

.total-price {
    font-family: var(--font-highlight);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.total-price small {
    font-family: var(--font-base);
    color: var(--ink-2);
    font-weight: 400;
    font-size: .875rem;
}

/* Total com "De:" cortado em cima e "Por:" embaixo, como na Claro. Só entra
   quando o catálogo traz preço cheio maior que o cobrado; sem desconto o total
   segue em uma linha só. Vale para a coluna e para o rodapé do "Ver pedido". */
.total-price--comparado {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
}

.total-price__de {
    font-family: var(--font-base);
    font-size: .8125rem;
    font-weight: 400;
    color: var(--ink-2);
    text-decoration: line-through;
}

.total-price__de small {
    font-size: inherit;
}

/* =====================================================================
   Barra fixa mobile (Valor total / Ver pedido)
   ===================================================================== */
/* Vinho da marca em vez do preto genérico: o rodapé fecha a tela com o mesmo
   par do header (fundo vinho + chip branco). O vinho é escuro o bastante para
   não disputar com o vermelho do "Continuar" logo acima. */
.footer-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--red-header);
    color: var(--white);
    z-index: 900;
    box-shadow: 0 -6px 16px -4px rgba(31, 29, 29, .32);
}

.total-price-mobile {
    font-family: var(--font-highlight);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.01em;
}

.total-price-mobile small {
    font-family: var(--font-base);
    font-size: .8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .74);
}

/* Total cheio cortado: pequeno, mas ainda legível sobre o vinho */
.total-price-mobile__de {
    display: block;
    font-family: var(--font-base);
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .78);
    text-decoration: line-through;
}

.info-button-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--red-header);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s, transform .15s;
}

.info-button-modal:hover {
    background: var(--red-lightest);
}

.info-button-modal:active {
    transform: scale(.98);
}

.info-button-modal:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.info-button-modal .icon {
    font-size: 18px;
    transform: rotate(180deg);
}

/* =====================================================================
   Rodapé
   ===================================================================== */
.footer {
    background: var(--line);
}

.footer__content {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    margin-right: 4rem;
}

.footer__inner1 a {
    margin-right: 1rem;
    text-decoration: underline;
    color: var(--ink-2);
    font-size: 0.875em;
}

.footer-duvidas h1 {
    font-size: 1em;
    font-weight: normal;
}

.footer-duvidas h2 {
    font-size: 1.5em;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.footer-duvidas a {
    color: var(--primary-red);
    text-decoration: underline;
}

/* =====================================================================
   Modais laterais (Seu pedido / Detalhes do pedido)
   ===================================================================== */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: var(--white);
    box-shadow: -8px 0 24px rgba(31, 29, 29, .16);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-drawer) var(--step-ease), visibility 0s linear var(--t-drawer);
}

.modal.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--t-drawer) var(--step-ease), visibility 0s;
}

.modal .modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.arrow-left {
    width: 32px;
    height: 32px;
    margin-left: -8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--ink);
    transition: background-color .2s;
}

.back-button:hover .arrow-left {
    background: var(--surface);
}

.modal-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modal-title .icon {
    font-size: 24px;
}

.close-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .2s;
}

.close-button:hover {
    background: var(--line);
}

.close-button:focus-visible,
.back-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.modal-content {
    --modal-pad: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--modal-pad);
    -webkit-overflow-scrolling: touch;
}

/* As abas ficam presas no topo enquanto o conteúdo rola. As margens negativas
   levam a faixa até as bordas do modal, para nada aparecer por baixo dela. */
.modal-tabs {
    position: sticky;
    /* o encaixe da sticky é o content box: o recuo negativo leva a faixa até a
       borda do modal, cobrindo também a área do padding */
    top: calc(var(--modal-pad) * -1);
    z-index: 2;
    display: flex;
    margin: calc(var(--modal-pad) * -1) calc(var(--modal-pad) * -1) 20px;
    padding: 0 var(--modal-pad);
    background: var(--white);
    border-bottom: 2px solid var(--line);
    /* Só rola quando nem assim os rótulos cabem (pedido com quatro produtos) */
    overflow-x: auto;
    scrollbar-width: none;
}

.modal-tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    /* dividem o espaço que sobra, mas nunca encolhem a ponto de cortar o rótulo */
    flex: 1 0 auto;
    padding: 15px 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-2);
    font-size: 1rem;
    white-space: nowrap;
    text-transform: capitalize;
    transition: color .2s;
}

.tab-button.active {
    color: var(--primary-red);
}

/* Barrinha da aba ativa: é uma só, no container, para poder deslizar até a
   próxima em vez de apagar e acender. Posição e largura vêm do JS. */
.modal-tabs__indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary-red);
    pointer-events: none;
    transition: transform .3s var(--step-ease), width .3s var(--step-ease);
}

.tab-content {
    display: none;
}

/* a aba que entra aparece com fade: o display puro trocava de conteúdo seco */
.tab-content.active {
    display: block;
    animation: tab-in var(--t-fade) var(--step-ease) both;
}

@keyframes tab-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tab-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--ink);
}

.description,
.ideal-for {
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 20px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* Lista das multas na aba "Fidelização" (o reset zera padding e marcador) */
.loyalty-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--ink-2);
    line-height: 1.6;
}

.loyalty-list li+li {
    margin-top: 6px;
}

.loyalty-list b {
    color: var(--ink);
    font-weight: 500;
}

/* Aba "Regulamento": um cartão por produto com o código da oferta e os links
   dos documentos da Claro */
.offer-code {
    padding: 16px;
    border-radius: 12px;
    background: var(--surface);
}

.offer-code+.offer-code {
    margin-top: 12px;
}

.offer-code__product {
    color: var(--ink);
    margin-bottom: 2px;
}

.offer-code__value {
    color: var(--ink-2);
    font-size: .9375rem;
    letter-spacing: .02em;
    margin-bottom: 12px;
}

.offer-code__link {
    display: block;
    color: #0000EE;
    font-weight: 500;
    text-decoration: underline;
}

.offer-code__link+.offer-code__link {
    margin-top: 8px;
}

.offer-code__link:hover,
.offer-code__link:focus-visible {
    text-decoration: underline;
}


.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: var(--ink);
}

.benefit-icon {
    width: 36px;
    height: 36px;
    background: var(--success-light);
    color: var(--success-green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Ícone do próprio benefício (SKEELO, Proteção Digital...): vem com desenho e
   cor próprios, então entra sem a bolinha verde do check */
.benefit-icon--imagem {
    background: none;
    border-radius: 0;
}

.benefit-icon--imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal .modal-footer {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(31, 29, 29, .06);
}

.modal-footer .total-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
}

.modal-footer .price {
    font-family: var(--font-highlight);
    font-size: 1.625rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.modal-footer .price small {
    font-family: var(--font-base);
    font-size: .875rem;
    font-weight: 400;
    color: var(--ink-2);
}

.advance-button {
    width: 100%;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 29, 29, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-overlay) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile: o drawer vira um painel que sobe da base (combina com o "Ver Pedido ^") */
@media (max-width: 768px) {
    .modal {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 24px rgba(31, 29, 29, .16);
        transform: translateY(100%);
    }

    .modal.active {
        transform: translateY(0);
    }

    /* Altura fixa só aqui: as abas têm tamanhos bem diferentes e o painel
       redimensionava a cada troca. O drawer "Ver Pedido" segue pelo conteúdo. */
    .order-details-modal {
        height: 88vh;
        height: 88dvh;
    }

    .modal .modal-header {
        padding: 22px 16px 14px;
    }

    /* alça de arrastar */
    .modal .modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--line);
        transform: translateX(-50%);
    }

    .modal .arrow-left {
        display: none;
    }

    /* Exceção: nos detalhes a seta volta para o "Ver pedido", então não é
       um "fechar" repetido do X — é o caminho de volta */
    .modal.order-details-modal .arrow-left {
        display: grid;
    }

    .modal-content {
        --modal-pad: 16px;
        padding: var(--modal-pad);
    }

    .modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =====================================================================
   Modal de confirmação do pedido
   ===================================================================== */
.confirmation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(92vw, 640px);
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px rgba(31, 29, 29, .24);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(.96);
    transition: opacity var(--t-fade) ease, transform var(--t-drawer) var(--step-ease), visibility 0s linear var(--t-drawer);
}

.confirmation-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity var(--t-fade) ease, transform var(--t-drawer) var(--step-ease), visibility 0s;
}

.confirmation-modal .modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.confirmation-modal .modal-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
}

.confirmation-modal .modal-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.confirmation-modal .subtitle {
    color: var(--ink-2);
    font-size: .9375rem;
    margin-bottom: 16px;
}

.confirmation-modal .section {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.confirmation-modal .section:last-child {
    margin-bottom: 0;
}

.confirmation-modal .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.confirmation-modal .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}

.section-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red-lightest);
    color: var(--primary-red);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.section-icon .icon {
    font-size: 18px;
}

.confirmation-modal .alterar-btn {
    flex-shrink: 0;
    color: var(--teal);
    background: none;
    border: 1px solid transparent;
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: background-color .2s;
}

.confirmation-modal .alterar-btn:hover {
    background-color: rgba(0, 92, 102, .08);
}

.confirmation-modal .data-list {
    display: grid;
    gap: 10px;
}

.confirmation-modal .data-item {
    display: grid;
    grid-template-columns: minmax(120px, 32%) 1fr;
    gap: 2px 12px;
    font-size: .9375rem;
    line-height: 1.4;
}

.confirmation-modal .data-item .label {
    color: var(--ink-2);
}

.confirmation-modal .data-item .value {
    color: var(--ink);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.confirmation-modal .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--white);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 -4px 12px rgba(31, 29, 29, .06);
}

.confirmation-modal .info-text {
    font-size: .875rem;
    line-height: 1.4;
    color: var(--ink-2);
}

.confirmation-modal .confirm-button {
    min-width: 0;
    padding: 0 24px;
    flex-shrink: 0;
}

.modal-overlay.confirmation {
    background: rgba(31, 29, 29, 0.7);
}

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 1024px) {
    .checkout {
        gap: 24px;
    }

    .order-section {
        flex-basis: 320px;
    }
}

@media (max-width: 768px) {

    .wrap,
    .container {
        padding: 0 14px;
    }

    .location-bar {
        height: 36px;
        font-size: .8125rem;
    }

    .top-bar {
        height: 60px;
        --logo-h: 32px;
    }
/* 
    .top-bar__brand {
        gap: 7px;
    } */

    .top-bar__afiliados {
        font-size: .4375rem;
        letter-spacing: .08em;
    }

    .top-bar__phone {
        gap: 8px;
        padding: 4px 12px 4px 4px;
    }

    .top-bar__phone-icon {
        width: 28px;
        height: 28px;
    }

    .top-bar__phone-icon .icon {
        font-size: 15px;
    }

    .top-bar__phone-label {
        display: none;
    }

    .top-bar__phone-number {
        font-size: 1rem;
    }

    .page-head {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .page-head__row {
        font-size: .875rem;
        margin-bottom: 16px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: .9375rem;
    }

    /* o rodapé logo abaixo já reserva espaço para a barra fixa; aqui só um
       respiro, senão sobra um vão em branco antes dele */
    .checkout {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
        padding-bottom: 24px;
    }

    .form-section,
    .order-section {
        width: 100%;
        flex: none;
        order: 0;
        position: static;
    }

    /* O resumo é a coluna fixa do desktop. No celular ele vive no drawer
       "Ver pedido", aberto pela barra do total — o card aqui era só uma porta
       repetida no meio do caminho */
    .checkout .order-section {
        display: none;
    }

    .order-header {
        margin-bottom: 0;
        padding: 16px;
    }

    .order-header h2 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }

    .form-content {
        gap: 12px;
    }

    .step-header {
        gap: 12px;
        padding: 16px;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .form-step.completed .step-chevron {
        display: none;
    }

    .step-icon {
        width: 28px;
        height: 28px;
    }

    .step-icon>.icon {
        font-size: 26px;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .btn-alterar {
        padding: 6px 10px;
        font-size: .875rem;
    }

    .step-content__inner {
        padding: 0 16px;
    }

    .form-step.active .step-content__inner {
        padding: 16px 16px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* A chave de pagamento fica lado a lado em qualquer largura: são duas
       posições de uma escolha só, não dois cards */
    .radio-group,
    .payment-options:not(.payment-switch),
    .invoice-options {
        flex-direction: column;
        gap: 12px;
    }

    .due-date select {
        max-width: 100%;
    }

    .form-actions .submit-btn {
        width: 100%;
    }

    .finalizar {
        margin-top: 20px;
    }

    .finalizar__btn {
        width: 100%;
    }

    .schedule-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar__weekdays,
    .calendar__grid {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-mobile {
        display: flex;
    }

    .footer__content {
        flex-direction: column;
        height: auto;
        padding: 2rem 0;
    }

    .footer__logo {
        display: none;
    }

    .footer__inner1 {
        margin-bottom: 2rem;
    }

    .footer__inner1 a {
        margin: 0 1rem;
    }

    .footer-duvidas {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-duvidas h2 {
        font-size: 2em;
    }

    .footer {
        padding-bottom: 80px;
    }

    /* revisão do pedido vira painel que sobe da base, como os drawers */
    .confirmation-modal {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .confirmation-modal.active {
        transform: translateY(0);
    }

    .confirmation-modal .modal-header {
        padding: 22px 16px 14px;
        border-radius: 16px 16px 0 0;
    }

    .confirmation-modal .modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--line);
        transform: translateX(-50%);
    }

    .confirmation-modal .modal-content {
        padding: 16px;
    }

    .confirmation-modal .section {
        padding: 14px;
    }

    .confirmation-modal .data-item {
        grid-template-columns: 1fr;
    }

    .confirmation-modal .modal-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 0;
    }

    .confirmation-modal .confirm-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .step-content,
    .step-content__inner,
    .step-icon,
    .step-done,
    .step-chevron,
    .form-step,
    .collapsible,
    .collapsible>*,
    .bank-form,
    .modal,
    .modal-overlay,
    .confirmation-modal,
    .modal-tabs__indicator,
    .campo-rotulo,
    .payment-switch::before,
    .payment-card {
        transition: none !important;
    }

    .tab-content.active {
        animation: none !important;
    }

    .step-editing {
        transition: none !important;
    }

    .step-summary,
    .btn-alterar,
    .error-message,
    .calendar__grid,
    .calendar .date-btn,
    .tab-content.active,
    .finalizar,
    .finalizar__btn,
    .finalizar__btn::after,
    .step-done {
        animation: none !important;
    }
}
