﻿/* Ofertas (encartes) */
.rolar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.rolar::-webkit-scrollbar { display: none; }
.rolar > * { flex: none; }
.galeria { display: flex; gap: 12px; padding-top: 2px; padding-bottom: 10px; }
.galeria-item { width: 136px; flex: none; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .15s; }
.galeria-item:active { transform: scale(.96); }
.galeria-item img { width: 136px; height: 170px; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 20px rgba(15,23,42,.18); display: block; }
.galeria-item span { font-weight: 800; font-size: .82rem; text-align: center; }
.galeria.paisagem .galeria-item { width: 220px; }
.galeria.paisagem .galeria-item img { width: 220px; height: 124px; }
.temas { display: flex; gap: 10px; }
.tema {
  position: relative; width: 88px; height: 110px; border-radius: 14px; border: 3px solid transparent; cursor: pointer;
  display: flex; align-items: flex-end; padding: 0; overflow: hidden; box-shadow: 0 4px 12px rgba(15,23,42,.15);
  background-size: cover; background-position: center top; transition: transform .15s;
}
.tema .tema-titulo { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: .95rem; line-height: .95; text-transform: uppercase; }
.tema span.tema-nome { width: 100%; background: rgba(255,255,255,.94); color: var(--texto); font-weight: 800; font-size: .74rem; padding: 3px 0; }
.tema.ativo { border-color: var(--tinta); transform: scale(1.04); }
.formatos { display: flex; gap: 8px; }
.formato {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 8px; min-width: 78px; border-radius: 14px;
  border: 1.5px solid var(--linha); background: var(--card); cursor: pointer; font-weight: 700; font-size: .74rem;
}
.formato i { display: block; border: 2.5px solid currentColor; border-radius: 4px; color: #94a3b8; }
.formato.ativo { border-color: var(--tinta); }
.formato.ativo i { color: var(--tinta); }
.lista-encarte { display: flex; flex-direction: column; gap: 8px; }
.item-encarte { display: flex; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 2px 4px 2px 0; }
.item-encarte .produto-info { padding: 6px 4px; }
.btn-icone.ligado { color: #f5b409; }
.btn-icone.ligado .ic { fill: #f5b409; }
.miniatura.pequena { width: 36px; height: 36px; }
.marcar .cartao-texto { line-height: 1.2; }
.alerta-texto { color: #8a4b00 !important; }
.salvo { text-align: center; min-height: 1em; }
.barra-saidas {
  position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); z-index: 3;
  display: flex; gap: 8px; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--fundo); border-top: 1px solid var(--linha);
}
.barra-saidas .btn { flex: 1; min-width: 0; padding: 6px 4px; font-size: .78rem; flex-direction: column; gap: 2px; height: auto; min-height: 56px; white-space: nowrap; }

/* Encarte em vídeo */
.barra-progresso { height: 10px; border-radius: 99px; background: var(--linha); overflow: hidden; }
.barra-progresso i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #16B6F2, #F72B60); transition: width .25s; }
.preparando { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tinta); }
.preparando b { margin-left: auto; font-family: var(--titulo); font-size: 1.2rem; }
.video-gerando { display: flex; justify-content: center; padding: 18px 0 4px; color: var(--tinta); animation: pulsar 1.2s ease-in-out infinite alternate; }
@keyframes pulsar { to { transform: scale(1.12); opacity: .7; } }
.video-pronto { width: 100%; max-height: 52vh; border-radius: 14px; background: #000; display: block; object-fit: contain; }

/* Mural */
.miniatura.grande { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; }
.btn-icone.ok { color: #16a34a; }
.item-encarte .cartao-texto small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-encarte.desligado .produto-info { opacity: .5; }
.item-encarte .no-ar { color: #16a34a !important; font-weight: 700; }
.item-encarte small.zap { color: var(--whats) !important; font-weight: 700; }
.btn.texto.pequeno { flex: none; padding: 6px 8px; font-size: .8rem; gap: 4px; min-height: 0; white-space: nowrap; }
.linha-interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.linha-interruptor > span { display: flex; flex-direction: column; }
.linha { display: flex; gap: 8px; }
.aba-ic { position: relative; }
.aba-ic .selo { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #F72B60; color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.aviso-foto img { max-height: 34vh; width: 100%; object-fit: contain; }
.fundo-mural { width: 100%; height: 120px; border-radius: 14px; object-fit: cover; display: block; background: linear-gradient(135deg, #962fbf, #d62976 50%, #fa7e1e); }
.linha > .btn { flex: 1; }
textarea { width: 100%; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #dbe1ea; background: #fff; font-size: 16px; resize: vertical; }

/* Impressão: no papel só sai o encarte (#area-impressao); na tela ele fica escondido */
#area-impressao { display: none; }
@media print {
  body { padding: 0 !important; background: #fff !important; }
  body > *:not(#area-impressao) { display: none !important; }
  #area-impressao { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100vh; }
  #area-impressao img { max-width: 100%; max-height: 100%; object-fit: contain; }
}
