/* assets/css/aviso_topo.css  ·  Aviso do topo (classes/AvisoTopo.php). Loja e previa do admin (27/11/2026). */
.aviso-topo{background:#111;color:#fff;text-align:center;font-size:13px;padding:8px 0;position:relative;overflow:hidden}
.aviso-topo a{color:inherit;text-decoration:underline;font-weight:700}
/* 27/11/2026: aviso do topo personalizavel (classes/AvisoTopo.php): cores por variavel, efeito, velocidade, tamanho, cupom */
.aviso-topo{background:var(--at-bg,#111);color:var(--at-fg,#fff)}
.aviso-topo .at-box{display:flex;align-items:center;justify-content:center;gap:12px;position:relative;min-height:20px}
.aviso-topo .at-txt{display:block;flex:0 1 auto;min-width:0;font-weight:700;letter-spacing:.3px;text-decoration:none;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.aviso-topo a.at-txt:hover{text-decoration:underline}
.aviso-topo.at-t-pequeno{font-size:12px;padding:6px 0}.aviso-topo.at-t-normal{font-size:13px}.aviso-topo.at-t-grande{font-size:15px;padding:10px 0}
.aviso-topo .at-cupom{flex:none;display:inline-flex;align-items:center;gap:6px;border:1.5px dashed currentColor;background:rgba(255,255,255,.14);color:inherit;border-radius:6px;padding:2px 10px;font:inherit;font-size:.92em;cursor:pointer;white-space:nowrap}
.aviso-topo .at-cupom:hover{background:rgba(255,255,255,.26)}
.aviso-topo .at-cupom.ok{border-style:solid}
.aviso-topo.at-ef-brilho::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:30%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);animation:atBrilho var(--at-dur,4s) ease-in-out infinite;pointer-events:none}
@keyframes atBrilho{0%{left:-40%}60%,100%{left:120%}}
.aviso-topo.at-ef-pulsar .at-txt{animation:atPulsar var(--at-dur,4s) ease-in-out infinite}
@keyframes atPulsar{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.aviso-topo.at-ef-letreiro .at-txt{flex:1;text-overflow:clip}
.aviso-topo.at-ef-letreiro .at-trilho{display:inline-flex;gap:80px;padding-left:100%;animation:atLetreiro calc(var(--at-dur,4s) * 5.5) linear infinite}
.aviso-topo.at-ef-letreiro:hover .at-trilho{animation-play-state:paused}
@keyframes atLetreiro{to{transform:translateX(-50%)}}
.aviso-topo.at-ef-rotativo .at-txt{flex:1;height:1.5em}
.aviso-topo.at-ef-rotativo .at-msg{position:absolute;left:0;right:0;top:0;opacity:0;transform:translateY(8px);transition:opacity .4s,transform .4s;overflow:hidden;text-overflow:ellipsis}
.aviso-topo.at-ef-rotativo .at-msg.on{opacity:1;transform:none}
.aviso-topo.at-ef-rotativo .at-msg:only-child{position:static}
.aviso-topo.at-ef-carrossel .at-txt,.aviso-topo.at-ef-maquina .at-txt{flex:1;height:1.5em}
.aviso-topo.at-ef-carrossel .at-msg{position:absolute;left:0;right:0;top:0;opacity:0;transform:translateX(60%);transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .55s;overflow:hidden;text-overflow:ellipsis}
.aviso-topo.at-ef-carrossel .at-msg.on{opacity:1;transform:none}
.aviso-topo.at-ef-carrossel .at-msg.sai{opacity:0;transform:translateX(-60%)}
.aviso-topo.at-ef-carrossel .at-msg:only-child{position:static;opacity:1;transform:none}
.aviso-topo.at-ef-maquina .at-msg{display:none}
.aviso-topo.at-ef-maquina .at-msg.on{display:inline}
.aviso-topo.at-ef-maquina .at-msg.on::after{content:"|";margin-left:2px;animation:atCursor .8s steps(1) infinite}
@keyframes atCursor{50%{opacity:0}}
.aviso-topo.at-ef-gradiente{background:linear-gradient(110deg,var(--at-bg),color-mix(in srgb,var(--at-bg) 70%,#fff),var(--at-bg),color-mix(in srgb,var(--at-bg) 75%,#000),var(--at-bg));background-size:300% 100%;animation:atGrad calc(var(--at-dur,4s) * 2) ease-in-out infinite}
@keyframes atGrad{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.aviso-topo.at-v-lenta{--at-dur:6s}.aviso-topo.at-v-normal{--at-dur:4s}.aviso-topo.at-v-rapida{--at-dur:2.5s}
/* 27/11/2026: celular - faixa compacta. O iPhone aumentava sozinho o texto da faixa larga (ajuste automatico de fonte do Safari) */
.aviso-topo{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (max-width:600px){.aviso-topo,.aviso-topo.at-t-normal,.aviso-topo.at-t-grande{font-size:12px;padding:5px 0}.aviso-topo.at-t-pequeno{font-size:11px;padding:4px 0}.aviso-topo .at-box{gap:8px;min-height:18px}.aviso-topo .at-txt{letter-spacing:.1px}.aviso-topo .at-cupom{padding:1px 7px;gap:4px;font-size:11px;border-width:1px}.aviso-topo .at-cupom .at-cp-t{display:none}.aviso-topo.at-ef-rotativo .at-txt,.aviso-topo.at-ef-carrossel .at-txt,.aviso-topo.at-ef-maquina .at-txt{height:1.45em}}
@media (prefers-reduced-motion:reduce){.aviso-topo.at-ef-brilho::after{display:none}.aviso-topo.at-ef-pulsar .at-txt{animation:none}.aviso-topo.at-ef-letreiro .at-trilho{animation:none;padding-left:0}.aviso-topo.at-ef-letreiro .at-msg+.at-msg{display:none}.aviso-topo.at-ef-gradiente{animation:none}.aviso-topo.at-ef-carrossel .at-msg{transition:none}.aviso-topo.at-ef-maquina .at-msg.on::after{display:none}}
