/* Plugin Diveramkt.Campanhas — estilos independentes do tema (prefixo .cmp-) */
.cmp-campanha {
    --cmp-cor: #d71920;
    --cmp-cor2: #1d1d1b;
    --cmp-fundo: #f6f6f6;
    --cmp-borda: #e3e3e3;
    --cmp-raio: 14px;
    --cmp-texto: #333333;
    color: var(--cmp-texto);
    font-family: var(--cmp-fonte, inherit);
    line-height: 1.55;
}
.cmp-campanha *, .cmp-campanha *::before, .cmp-campanha *::after { box-sizing: border-box; }
.cmp-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.cmp-banner img { display: block; width: 100%; height: auto; }

.cmp-hero { padding: 48px 0 40px; text-align: center; }
.cmp-hero-vazio { padding: 72px 0 56px; background: var(--cmp-fundo); }
.cmp-selo {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--cmp-cor); color: #fff; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.cmp-selo-breve { background: var(--cmp-cor2); }
.cmp-titulo { margin: 16px 0 8px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--cmp-cor2); line-height: 1.15; }
.cmp-periodo { font-size: 17px; margin: 0 0 24px; }
.cmp-texto-grande { font-size: 18px; max-width: 680px; margin: 0 auto 32px; }
.cmp-icone { font-size: 56px; line-height: 1; }

.cmp-destaque {
    max-width: 720px; margin: 0 auto 28px; padding: 18px 22px;
    border: 2px dashed var(--cmp-cor); border-radius: var(--cmp-raio);
    font-size: 18px; background: #fff;
}
.cmp-destaque strong { color: var(--cmp-cor); }
.cmp-destaque small { display: block; margin-top: 6px; font-size: 14px; color: #666; }

.cmp-contador { margin: 0 auto 28px; }
.cmp-contador-label { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #666; margin-bottom: 10px; }
.cmp-contador-itens { display: inline-flex; gap: 10px; }
.cmp-contador-itens div {
    min-width: 76px; padding: 12px 8px; border-radius: 10px;
    background: var(--cmp-cor2); color: #fff;
}
.cmp-contador-itens strong { display: block; font-size: 28px; line-height: 1; }
.cmp-contador-itens small { font-size: 12px; opacity: .8; }

.cmp-acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cmp-btn {
    display: inline-block; padding: 14px 28px; border-radius: 999px;
    font-weight: 700; text-decoration: none !important; transition: transform .15s, opacity .15s;
    border: 2px solid transparent;
}
.cmp-btn:hover { transform: translateY(-1px); opacity: .92; }
.cmp-btn-primario { background: var(--cmp-cor); color: #fff !important; }
.cmp-btn-secundario { background: #fff; color: var(--cmp-cor) !important; border-color: var(--cmp-cor); }
.cmp-btn-link { color: var(--cmp-cor2) !important; text-decoration: underline !important; padding-left: 8px; padding-right: 8px; }
.cmp-aviso { margin-top: 14px; font-size: 14px; color: #777; }

.cmp-secao { padding: 48px 0; border-top: 1px solid var(--cmp-borda); }
.cmp-subtitulo { font-size: 26px; font-weight: 800; color: var(--cmp-cor2); margin: 0 0 24px; text-align: center; }
.cmp-texto { max-width: 860px; margin: 0 auto; }
.cmp-texto img { max-width: 100%; height: auto; }

.cmp-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.cmp-passos li { background: var(--cmp-fundo); border-radius: var(--cmp-raio); padding: 24px 18px; text-align: center; }
.cmp-hero-vazio .cmp-passos li { background: #fff; }
.cmp-passos span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--cmp-cor); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 10px;
}
.cmp-passos strong { display: block; font-size: 17px; color: var(--cmp-cor2); }
.cmp-passos p { margin: 6px 0 0; font-size: 14px; color: #555; }
.cmp-passos-compacto { max-width: 900px; margin: 0 auto; }

.cmp-busca {
    display: block; width: 100%; max-width: 420px; margin: 0 auto 20px;
    padding: 12px 16px; border: 1px solid var(--cmp-borda); border-radius: 999px; font-size: 15px;
}
.cmp-lista-lojas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cmp-lista-lojas li { padding: 12px 14px; border: 1px solid var(--cmp-borda); border-radius: 10px; background: #fff; font-weight: 600; }
.cmp-lista-lojas li[hidden] { display: none; }

.cmp-card { max-width: 560px; margin: 0 auto; padding: 22px; border: 1px solid var(--cmp-borda); border-radius: var(--cmp-raio); text-align: center; background: #fff; }
.cmp-card strong { font-size: 19px; color: var(--cmp-cor2); }

@media (max-width: 991px) {
    .cmp-passos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .cmp-hero { padding: 32px 0; }
    .cmp-passos { grid-template-columns: 1fr; }
    .cmp-contador-itens div { min-width: 64px; }
    .cmp-contador-itens strong { font-size: 22px; }
    .cmp-btn { width: 100%; text-align: center; }
}

/* ---------- cadastro / login / painel ---------- */
.cmp-flash { max-width: 860px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 10px; background: #d8f2dc; color: #1e6b2c; text-align: center; font-weight: 600; }
.cmp-flash-error { background: #fbe0dd; color: #a12b1f; }
.cmp-conta { padding: 56px 0; background: var(--cmp-fundo); }
.cmp-acesso, .cmp-painel { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--cmp-raio); box-shadow: 0 6px 24px rgba(0,0,0,.06); padding: 28px; }
.cmp-painel { max-width: 860px; }
.cmp-abas { display: flex; gap: 6px; margin: -8px -8px 22px; padding: 4px; background: var(--cmp-fundo); border-radius: 999px; }
.cmp-aba { flex: 1; padding: 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: #555; cursor: pointer; }
.cmp-aba.is-ativa { background: var(--cmp-cor); color: #fff; }
.cmp-painel-aba { display: none; }
.cmp-painel-aba.is-ativa { display: block; }

.cmp-form .cmp-subtitulo { font-size: 22px; margin-bottom: 8px; }
.cmp-form-intro { text-align: center; color: #666; margin: 0 0 18px; }
.cmp-campo { margin-bottom: 14px; }
.cmp-campo label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--cmp-cor2); }
.cmp-campo input {
    display: block; width: 100%; padding: 12px 14px; font-size: 16px;
    border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; color: #222;
}
.cmp-campo input:focus { outline: none; border-color: var(--cmp-cor); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.cmp-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-erro { display: block; color: #c0392b; font-size: 13px; margin-top: 4px; }
.cmp-erro:empty { display: none; }
.cmp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0 2px; cursor: pointer; }
.cmp-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--cmp-cor); }
.cmp-btn-bloco { display: block; width: 100%; margin-top: 18px; border: 0; cursor: pointer; font-size: 16px; }
.cmp-form-rodape { text-align: center; margin-top: 16px; font-size: 14px; }
.cmp-form-rodape a, .cmp-check a { color: var(--cmp-cor); font-weight: 600; }
.cmp-muted { color: #777; }

.cmp-painel-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cmp-painel-topo .cmp-subtitulo { text-align: left; margin-bottom: 4px; }
.cmp-painel-topo p { margin: 0; }
.cmp-painel-topo .cmp-btn { padding: 10px 22px; cursor: pointer; }
.cmp-painel-etapa { font-size: 18px; margin: 8px 0 14px; color: var(--cmp-cor2); }
.cmp-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #fdecc8; color: #8a5a00; }
.cmp-badge-ok { background: #d8f2dc; color: #1e6b2c; }
.cmp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.cmp-card-num { background: var(--cmp-fundo); border-radius: 12px; padding: 16px; text-align: center; }
.cmp-card-num strong { display: block; font-size: 22px; color: var(--cmp-cor); }
.cmp-card-num span { font-size: 13px; color: #666; }
.cmp-aviso-box { padding: 16px; border-radius: 12px; border: 1px dashed var(--cmp-borda); text-align: center; color: #555; }

@media (max-width: 767px) {
    .cmp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .cmp-linha { grid-template-columns: 1fr; gap: 0; }
    .cmp-acesso, .cmp-painel { padding: 20px; }
}

/* ---------- área do cliente ---------- */
.cmp-area { padding: 32px 0 64px; }
.cmp-titulo-area { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 4px; }
.cmp-area-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cmp-area-topo p { margin: 0; }
.cmp-area-campanha { font-size: 17px; color: #666; }
.cmp-area-campanha strong { color: var(--cmp-cor2); }
.cmp-area-campanha span { color: #888; white-space: nowrap; }
.cmp-area-topo-acoes { display: flex; gap: 6px; align-items: center; }
.cmp-area-topo-acoes form { margin: 0; }
.cmp-area-link { display: inline-block; padding: 8px 14px; border: 1px solid var(--cmp-borda); border-radius: 999px; background: #fff; color: var(--cmp-cor2) !important; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; line-height: 1.3; }
.cmp-area-link:hover { border-color: var(--cmp-cor); color: var(--cmp-cor) !important; }

/* card de destaque: quanto falta para o próximo número */
.cmp-destaque-area { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin: 0 0 22px; padding: 22px 26px; border: 1px solid #f3dc9c; border-radius: 20px; background: linear-gradient(135deg, #fffaf0 0%, #fff1cf 100%); box-shadow: 0 8px 28px rgba(214,160,30,.18); }
.cmp-destaque-presente { position: relative; width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #fff 0%, #fff4d6 70%); border: 4px solid #f5c542; box-shadow: 0 0 0 6px rgba(245,197,66,.18); }
.cmp-destaque-presente svg { width: 62px; height: 62px; }
.cmp-destaque-presente .d-caixa { fill: var(--cmp-cor); }
.cmp-destaque-presente .d-tampa { fill: var(--cmp-cor); filter: brightness(1.12); }
.cmp-destaque-presente .d-fita { fill: #fff; opacity: .9; }
.cmp-destaque-presente .d-laco { fill: none; stroke: #e9e9e9; stroke-width: 2.6; stroke-linejoin: round; }
.cmp-destaque-meio { min-width: 0; }
.cmp-destaque-rotulo { display: block; font-size: 20px; font-weight: 800; color: #5a4300; line-height: 1.2; }
.cmp-destaque-valor { display: block; font-size: clamp(34px, 5vw, 48px); font-weight: 900; color: var(--cmp-cor); line-height: 1.1; letter-spacing: -.01em; }
.cmp-destaque-texto { display: block; font-size: 15px; font-weight: 700; color: var(--cmp-cor2); margin-top: 2px; }
.cmp-progresso { height: 14px; margin-top: 10px; border-radius: 999px; background: #e4e1da; overflow: hidden; }
.cmp-progresso span { display: block; height: 100%; min-width: 14px; border-radius: inherit; background: var(--cmp-cor); transition: width .6s ease; }
.cmp-destaque-resumo { display: block; margin-top: 8px; font-size: 13px; color: #6b5a2a; }
.cmp-destaque-lado { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 130px; padding-left: 22px; border-left: 2px solid rgba(215,25,32,.25); }
.cmp-destaque-ticket svg { width: 52px; height: 52px; }
.cmp-destaque-ticket path { fill: var(--cmp-cor); }
.cmp-destaque-ticket .d-estrela { fill: #fff; }
.cmp-destaque-num { font-size: 32px; font-weight: 900; color: var(--cmp-cor); line-height: 1.1; }
.cmp-destaque-num-texto { font-size: 14px; color: var(--cmp-cor2); line-height: 1.3; max-width: 120px; }

/* navegação da área (abas) */
.cmp-area-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.cmp-area-nav-item { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 10px 18px; border: 2px solid transparent; border-radius: 999px; background: var(--cmp-fundo); color: var(--cmp-cor2); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.cmp-area-nav-item svg { width: 28px; height: 28px; flex: 0 0 28px; fill: none; stroke: var(--cmp-cor); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-area-nav-item:hover { background: #ececec; }
.cmp-area-nav-item.is-ativa { background: #fff; border-color: var(--cmp-cor); color: var(--cmp-cor); }
/* botão principal (Enviar foto): maior; quando outra aba está ativa fica "apagado" para não parecer selecionado */
.cmp-area-nav-item:not(.cmp-area-nav-principal) { min-height: 56px; font-size: 15px; }
.cmp-area-nav-principal { flex: 1.7; min-height: 72px; background: var(--cmp-cor); color: #fff; font-size: 18px; box-shadow: 0 8px 22px rgba(215,25,32,.3); }
.cmp-area-nav-principal svg { stroke: #fff; width: 34px; height: 34px; flex-basis: 34px; padding-right: 10px; box-sizing: content-box; border-right: 1px solid rgba(255,255,255,.45); }
.cmp-area-nav-principal:hover { background: var(--cmp-cor); transform: translateY(-1px); }
.cmp-area-nav-principal.is-ativa { background: var(--cmp-cor); color: #fff; border-color: #fff; box-shadow: 0 0 0 3px var(--cmp-cor), 0 8px 22px rgba(215,25,32,.3); }
.cmp-area-nav-principal:not(.is-ativa) { background: #fbe4e5; background: color-mix(in srgb, var(--cmp-cor) 12%, #fff); color: var(--cmp-cor); box-shadow: none; opacity: .85; }
.cmp-area-nav-principal:not(.is-ativa) svg { stroke: var(--cmp-cor); border-right-color: rgba(0,0,0,.12); }
.cmp-area-nav-principal:not(.is-ativa):hover { opacity: 1; background: color-mix(in srgb, var(--cmp-cor) 18%, #fff); }

/* "ver mais" da lista de compras */
.cmp-compras.is-recolhida .is-extra { display: none; }
.cmp-ver-mais { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 14px; border: 1px solid var(--cmp-borda); border-radius: var(--cmp-raio); background: #fff; color: var(--cmp-cor); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.cmp-ver-mais[hidden] { display: none; }
.cmp-ver-mais svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cmp-ver-mais.is-aberto svg { transform: rotate(180deg); }

@media (max-width: 767px) {
    /* barra fixa no rodapé do celular */
    .cmp-area { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
    .cmp-area-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; margin: 0; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -6px 24px rgba(0,0,0,.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
    .cmp-area-nav-item { min-height: 60px; padding: 8px 10px; gap: 8px; font-size: 14px; text-align: left; }
    .cmp-area-nav-item svg { width: 24px; height: 24px; flex-basis: 24px; }
    .cmp-area-nav-item:not(.cmp-area-nav-principal) { min-height: 54px; font-size: 13px; }
    .cmp-area-nav-principal { flex: 1.8; min-height: 66px; font-size: 16px; }
    .cmp-area-nav-principal svg { width: 28px; height: 28px; flex-basis: 28px; padding-right: 8px; }
    .cmp-destaque-area { grid-template-columns: auto 1fr; gap: 14px 16px; padding: 18px; }
    .cmp-destaque-presente { width: 84px; height: 84px; }
    .cmp-destaque-presente svg { width: 50px; height: 50px; }
    .cmp-destaque-lado { grid-column: 1 / -1; flex-direction: row; gap: 10px; justify-content: center; min-width: 0; padding: 12px 0 0; border-left: 0; border-top: 2px solid rgba(215,25,32,.18); }
    .cmp-destaque-ticket svg { width: 36px; height: 36px; }
    .cmp-destaque-num { font-size: 26px; }
    .cmp-destaque-num-texto { max-width: none; }
}
@media (max-width: 400px) {
    .cmp-area-nav { gap: 6px; padding-left: 8px; padding-right: 8px; }
    .cmp-area-nav-item { flex-direction: column; text-align: center; gap: 2px; }
    .cmp-area-nav-item:not(.cmp-area-nav-principal) { font-size: 12px; min-height: 54px; }
    .cmp-area-nav-principal { font-size: 14px; min-height: 64px; }
    .cmp-area-nav-principal svg { padding-right: 0; border-right: 0; }
    .cmp-destaque-presente { width: 64px; height: 64px; border-width: 3px; }
    .cmp-destaque-presente svg { width: 40px; height: 40px; }
    .cmp-destaque-rotulo { font-size: 17px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .cmp-destaque-presente { width: 84px; height: 84px; }
}
.cmp-alerta { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; }
.cmp-alerta > div { margin-top: 10px; }
.cmp-alerta-aviso { background: #fff5dc; border: 1px solid #f3d68b; color: #6b4b00; }
.cmp-alerta-ok { background: #e6f6e9; border: 1px solid #b8e2c0; color: #1e6b2c; }
.cmp-btn-pequeno { padding: 8px 18px; font-size: 14px; }
.cmp-h3 { font-size: 18px; font-weight: 800; color: var(--cmp-cor2); margin: 26px 0 12px; }
.cmp-dica { background: var(--cmp-fundo); padding: 12px 16px; border-radius: 10px; }
.cmp-grupo { border: 1px solid var(--cmp-borda); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fff; }
.cmp-grupo-titulo { font-weight: 700; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cmp-grupo-titulo small { color: #777; font-weight: 400; }
.cmp-numeros { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-numeros li { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 16px; padding: 8px 12px; border-radius: 8px; background: var(--cmp-cor); color: #fff; letter-spacing: .05em; }
.cmp-numeros li.is-brinde { background: var(--cmp-cor2); }
.cmp-legenda { font-size: 13px; color: #777; }
.cmp-numeros-legenda { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; background: var(--cmp-cor2); }
.cmp-vazio { color: #777; padding: 12px 0; }
/* Compras enviadas (área do cliente): cards — 1 coluna no celular, 2 no computador */
.cmp-compras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.cmp-compra { display: flex; flex-direction: column; margin: 0; padding: 18px; background: #fff; border: 1px solid var(--cmp-borda); border-radius: var(--cmp-raio); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.cmp-compra-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--cmp-borda); }
.cmp-compra-status { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--cmp-cor2); line-height: 1.2; }
.cmp-compra-icone { display: inline-flex; width: 26px; height: 26px; flex: 0 0 26px; }
.cmp-compra-icone svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-compra-0 .cmp-compra-icone { color: #b07800; }
.cmp-compra-1 .cmp-compra-icone { color: #1e6b2c; }
.cmp-compra-2 .cmp-compra-icone { color: #a12b1f; }
.cmp-compra-id { font-size: 14px; color: #999; white-space: nowrap; }
.cmp-compra-corpo { padding: 14px 0; border-bottom: 1px solid var(--cmp-borda); flex: 1; }
.cmp-compra-rotulo { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.cmp-compra-loja { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; color: var(--cmp-cor2); }
.cmp-compra-dados { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cmp-compra-legenda { display: block; font-size: 13px; color: #777; }
.cmp-compra-valor { display: block; margin-top: 2px; font-size: 24px; font-weight: 800; color: var(--cmp-cor2); line-height: 1.2; }
.cmp-compra-data { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; color: var(--cmp-cor2); }
.cmp-compra-nota { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7e0; color: #7a5600; font-size: 14px; }
.cmp-compra-motivo { background: #fdecea; color: #8a2419; }
.cmp-compra-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 0; }
.cmp-compra-enviada { display: block; margin-top: 2px; font-size: 15px; color: var(--cmp-texto); }
.cmp-compra-numeros { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; color: var(--cmp-cor2); white-space: nowrap; }
.cmp-compra-numeros svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-compra-foto { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 13px 14px; border-radius: 12px; background: var(--cmp-fundo); color: var(--cmp-cor2) !important; font-size: 15px; font-weight: 600; text-decoration: none !important; transition: background .15s; }
.cmp-compra-foto:hover, .cmp-compra-foto:focus-visible { background: #ececec; }
.cmp-compra-foto svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-compra-foto .cmp-compra-seta { width: 16px; height: 16px; flex-basis: 16px; opacity: .6; }
@media (max-width: 575px) {
    .cmp-compra { padding: 16px; }
    .cmp-compra-status { font-size: 17px; }
    .cmp-compra-valor { font-size: 22px; }
    .cmp-compra-data { font-size: 16px; }
}
.cmp-form-largo { max-width: none; background: #fff; border: 1px solid var(--cmp-borda); border-radius: var(--cmp-raio); padding: 22px; margin-bottom: 20px; }
.cmp-form-largo .cmp-h3 { margin-top: 6px; }
.cmp-form-largo .cmp-btn { border: 2px solid transparent; cursor: pointer; margin-top: 8px; }
.cmp-form-largo .cmp-btn-secundario { border-color: var(--cmp-cor); }
.cmp-campo select { display: block; width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; }
.cmp-campo input:disabled { background: #f1f1f1; color: #777; }
.cmp-linha-3 { grid-template-columns: 1fr 1.4fr .8fr; }
.cmp-painel-curto { text-align: center; }
.cmp-painel-curto .cmp-btn { cursor: pointer; }
@media (max-width: 575px) {
    .cmp-linha-3 { grid-template-columns: 1fr; }
    .cmp-area-topo-acoes { width: 100%; }
}

/* ---------- modal de login/cadastro ---------- */
.cmp-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.cmp-modal[hidden] { display: none; }
.cmp-modal-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.6); }
.cmp-modal-caixa { position: relative; width: 100%; max-width: 640px; margin: auto; animation: cmp-surgir .2s ease-out; }
.cmp-modal-caixa .cmp-acesso { box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.cmp-modal-fechar { position: absolute; top: -14px; right: -10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #333; font-size: 26px; line-height: 38px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
body.cmp-modal-aberto { overflow: hidden; }
.cmp-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10060; width: calc(100% - 32px); max-width: 520px; transition: opacity .4s; }
.cmp-toast .cmp-flash { margin: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cmp-toast.is-saindo { opacity: 0; }
@keyframes cmp-surgir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) { .cmp-modal { padding: 24px 10px; } .cmp-modal-fechar { right: 4px; top: -10px; } }

/* ---------- envio da foto da compra ---------- */
.cmp-envio [hidden] { display: none !important; }
.cmp-envio-caixa > .cmp-muted { margin: 0 0 16px; }
.cmp-envio-instrucoes { background: var(--cmp-fundo); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.cmp-envio-zona { border: 2px dashed #cfcfcf; border-radius: var(--cmp-raio); padding: 22px 16px; text-align: center; background: #fff; transition: border-color .15s, background .15s; }
.cmp-envio-zona.is-arrastando { border-color: var(--cmp-cor); background: var(--cmp-fundo); }
.cmp-envio-icone { color: var(--cmp-cor); margin-bottom: 6px; }
.cmp-envio-texto { margin: 0 0 14px; color: #555; }
.cmp-envio-texto small { color: #888; }
.cmp-envio-botoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cmp-envio-botoes .cmp-btn { padding: 12px 22px; cursor: pointer; font-size: 15px; }
.cmp-envio-botoes .cmp-btn-secundario { border-color: var(--cmp-cor); }
.cmp-envio-botoes [hidden] { display: none !important; }
.cmp-envio-arraste { margin: 12px 0 0; font-size: 13px; color: #999; }
@media (hover: none), (pointer: coarse) { .cmp-envio-arraste { display: none; } }
.cmp-envio-preview img { display: block; max-width: 100%; max-height: 360px; margin: 0 auto 10px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.12); object-fit: contain; }
.cmp-envio-pdf { display: inline-flex; align-items: center; justify-content: center; width: 90px; height: 110px; margin-bottom: 10px; border-radius: 10px; background: var(--cmp-fundo); color: var(--cmp-cor); font-weight: 800; font-size: 20px; }
.cmp-envio-nome { margin: 0 0 4px; font-size: 13px; color: #777; word-break: break-all; }
.cmp-envio-preview .cmp-btn-link { border: 0; background: none; cursor: pointer; color: var(--cmp-cor); padding: 6px 10px; }
.cmp-camera video { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 10px; margin-bottom: 12px; object-fit: contain; }
.cmp-input-oculto { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.cmp-progresso { height: 8px; border-radius: 999px; background: var(--cmp-fundo); overflow: hidden; margin: 14px 0 0; }
.cmp-progresso span { display: block; height: 100%; width: 0; background: var(--cmp-cor); transition: width .2s; }
.cmp-erro-geral { text-align: center; margin: 10px 0 0; }
.cmp-envio .cmp-btn-bloco[disabled] { opacity: .65; cursor: wait; }
.cmp-envio-ok { text-align: center; padding: 10px 0; }
.cmp-envio-ok-icone { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #d8f2dc; color: #1e6b2c; font-size: 32px; line-height: 64px; }
.cmp-envio-ok p { margin: 0 0 18px; }
.cmp-envio-ok .cmp-btn-secundario { border: 2px solid var(--cmp-cor); }
@media (max-width: 575px) {
    .cmp-envio-zona { padding: 18px 10px; }
    .cmp-envio-botoes .cmp-btn { width: 100%; }
}

/* ---------- carregando nos botões (independe do framework.js) ---------- */
.cmp-btn.cmp-carregando { position: relative; color: transparent !important; pointer-events: none; opacity: .9; }
.cmp-btn.cmp-carregando::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: cmp-girar .7s linear infinite;
}
.cmp-btn-secundario.cmp-carregando::after, .cmp-btn-link.cmp-carregando::after { border-color: rgba(0,0,0,.12); border-top-color: var(--cmp-cor); }
@keyframes cmp-girar { to { transform: rotate(360deg); } }

/* Termos de participação do ano (aceite na área / modal / cadastro e exibição na página) */
.cmp-termos-aceite .cmp-h3 { margin-top: 0; }
.cmp-termos-texto {
    max-height: 320px; overflow: auto; margin: 12px 0; padding: 16px 18px;
    background: #fff; border: 1px solid var(--cmp-borda); border-radius: 10px;
    font-size: 14px; line-height: 1.6; color: #444; text-align: left;
}
.cmp-termos-texto > :first-child { margin-top: 0; }
.cmp-termos-texto > :last-child { margin-bottom: 0; }
.cmp-termos-texto h1, .cmp-termos-texto h2, .cmp-termos-texto h3 { font-size: 16px; margin: 16px 0 8px; color: var(--cmp-cor2); }
.cmp-form-termos { max-width: none; margin: 0; padding: 0; }
.cmp-form-termos .cmp-btn { margin-top: 12px; border: 0; cursor: pointer; }
.cmp-termos-detalhe { margin: 6px 0 4px 28px; font-size: 14px; }
.cmp-termos-detalhe summary { cursor: pointer; color: var(--cmp-cor); font-weight: 600; }
.cmp-secao.cmp-termos .cmp-termos-detalhe { max-width: 860px; margin: 0 auto; font-size: 15px; }
.cmp-secao.cmp-termos summary { font-size: 18px; font-weight: 800; color: var(--cmp-cor2); text-align: center; }
.cmp-termos-historico ul { margin: 0; padding-left: 18px; font-size: 14px; color: #555; }
.cmp-link { color: var(--cmp-cor); font-weight: 600; }
/* espaço entre o "Li e aceito" e o botão */
.cmp-campanha .cmp-termos-aceite .cmp-form-termos .cmp-check { margin-bottom: 4px; }
.cmp-campanha .cmp-termos-aceite .cmp-form-termos .cmp-btn { margin-top: 22px; }

/* Modal da foto da compra (link "ver foto" na área do cliente) */
.cmp-foto-modal { position: fixed; inset: 0; z-index: 10060; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.cmp-foto-modal[hidden] { display: none; }
.cmp-foto-modal-fundo { position: absolute; inset: 0; background: rgba(0,0,0,.8); cursor: zoom-out; }
.cmp-foto-modal-caixa { position: relative; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; animation: cmp-surgir .2s ease-out; }
.cmp-foto-modal-caixa img { display: block; max-width: min(92vw, 1000px); max-height: 86vh; width: auto; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cmp-foto-modal-caixa img[hidden] { display: none; }
.cmp-foto-modal-carregando { color: #fff; font-size: 15px; padding: 40px; }
.cmp-foto-modal-carregando[hidden] { display: none; }
.cmp-foto-modal-fechar { position: absolute; top: -14px; right: -10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #333; font-size: 26px; line-height: 38px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
@media (max-width: 575px) { .cmp-foto-modal-fechar { right: 0; top: -16px; } }

/* ---------- card "Complete seu cadastro" (área do cliente) ---------- */
.cmp-completar { --cmp-completar-fundo: #0f2a4f; position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; margin: 0 0 22px; padding: 26px 26px 26px 22px; border-radius: 20px; background: var(--cmp-completar-fundo); color: #fff; box-shadow: 0 10px 28px rgba(15,42,79,.22); }
.cmp-completar::before { content: ''; position: absolute; left: -90px; bottom: -150px; width: 280px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.cmp-completar-icone { position: relative; flex: 0 0 auto; width: 120px; display: flex; align-items: center; justify-content: center; align-self: stretch; padding-right: 22px; border-right: 1px solid rgba(255,255,255,.22); }
.cmp-completar-icone svg { width: 82px; height: 82px; }
.cmp-completar-icone .ic-traco { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cmp-completar-exclamacao { position: absolute; right: 16px; top: 50%; margin-top: 6px; width: 32px; height: 32px; border-radius: 50%; background: #f5b82e; color: #fff; font-weight: 900; font-size: 20px; line-height: 32px; text-align: center; box-shadow: 0 0 0 3px var(--cmp-completar-fundo); }
.cmp-completar-conteudo { position: relative; flex: 1; min-width: 0; }
.cmp-completar-titulo { display: block; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.2; color: #fff; }
.cmp-completar-texto { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.88); }
.cmp-completar-texto strong { color: #f5c542; }
.cmp-completar-falta { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.7); }
.cmp-completar-btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; margin-top: 16px; padding: 12px 26px; border-radius: 999px; background: #fff; color: var(--cmp-completar-fundo) !important; font-size: 16px; font-weight: 800; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.cmp-completar-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.cmp-completar-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 575px) {
    .cmp-completar { gap: 16px; padding: 22px 18px 22px 14px; }
    .cmp-completar-icone { width: 92px; padding-right: 14px; }
    .cmp-completar-icone svg { width: 64px; height: 64px; }
    .cmp-completar-exclamacao { right: 8px; width: 28px; height: 28px; line-height: 28px; font-size: 17px; }
    .cmp-completar-texto { font-size: 15px; }
    .cmp-completar-btn { padding: 11px 20px; font-size: 15px; }
}
@media (max-width: 360px) {
    .cmp-completar { flex-direction: column; align-items: flex-start; }
    .cmp-completar-icone { width: auto; padding: 0 30px 0 0; border-right: 0; }
}

/* ---------- envio da foto: novo layout ---------- */
.cmp-envio .cmp-campo { margin-bottom: 22px; }
.cmp-envio-rotulo, .cmp-campo label.cmp-envio-rotulo { font-size: 18px; font-weight: 800; color: var(--cmp-cor2); margin-bottom: 10px; }
.cmp-envio .cmp-campo select { padding: 15px 44px 15px 18px; font-size: 17px; border-radius: 12px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 20px; }
.cmp-envio-zona { text-align: left; padding: 24px; border: 2px dashed #e2cfcf; border-radius: 18px; background: #fdf6f6; background: color-mix(in srgb, var(--cmp-cor) 4%, #fff); }
.cmp-envio-zona.is-arrastando { border-color: var(--cmp-cor); background: color-mix(in srgb, var(--cmp-cor) 9%, #fff); }
.cmp-envio-cabeca { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.cmp-envio-icone { flex: 0 0 auto; width: 86px; height: 86px; margin: 0; }
.cmp-envio-icone .ic-canto { fill: none; stroke: var(--cmp-cor); stroke-width: 3.2; stroke-linecap: round; }
.cmp-envio-icone .ic-nota { fill: #fff; stroke: #444; stroke-width: 2.4; stroke-linejoin: round; }
.cmp-envio-icone .ic-linha { fill: none; stroke: #777; stroke-width: 2.2; stroke-linecap: round; }
.cmp-envio-titulo { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--cmp-cor2); }
.cmp-envio-texto { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: #666; }
.cmp-so-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .cmp-so-toque { display: none; } .cmp-so-mouse { display: inline; } }
.cmp-envio-zona .cmp-envio-botoes { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cmp-envio-zona .cmp-envio-btn { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin: 0; padding: 15px 20px; font-size: 18px; font-weight: 800; }
.cmp-envio-btn, .cmp-envio-enviar { font-family: inherit; }
.cmp-envio-btn svg { width: 28px; height: 28px; flex: 0 0 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-btn-contorno { background: #fff; color: var(--cmp-cor2) !important; border: 2px solid var(--cmp-cor2) !important; }
.cmp-envio-formatos { margin: 12px 0 0; font-size: 12px; color: #999; text-align: center; }
@media (min-width: 768px) { .cmp-envio-zona .cmp-envio-botoes { grid-template-columns: 1fr 1fr; } }

.cmp-envio-enviar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 20px; font-size: 18px; font-weight: 800; }
.cmp-envio-enviar svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* sem foto escolhida: botão cinza (continua clicável para mostrar o aviso) */
.cmp-envio:not(.is-com-foto) .cmp-envio-enviar { background: #ececec; color: #9a9a9a !important; box-shadow: none; }
.cmp-envio:not(.is-com-foto) .cmp-envio-enviar:hover { transform: none; opacity: 1; }
.cmp-envio-guarde { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 16px auto 0; max-width: 460px; font-size: 15px; line-height: 1.5; color: #777; }
.cmp-envio-guarde svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 575px) {
    .cmp-envio-zona { padding: 18px 14px; }
    .cmp-envio-cabeca { gap: 14px; }
    .cmp-envio-icone { width: 68px; height: 68px; }
    .cmp-envio-titulo { font-size: 18px; }
    .cmp-envio-zona .cmp-envio-btn, .cmp-envio-enviar { font-size: 17px; }
}
