@import url("studio-footer-palettes.css");
/* Acabamento promocional inspirado no encarte de referência. */
#poster .studio-footer-bottom[hidden], #poster .poster-footer-legal[hidden] { display:none; }
#poster[data-studio-style="festival"] .poster-footer.studio-retail-footer {
  background:none; border:0; border-radius:0; padding:0; margin-top:2px;
  min-height:0; gap:5px; font-family:Arial,sans-serif; letter-spacing:0; color:#fff;
  flex-shrink:0; text-shadow:none;
}
.studio-retail-footer .poster-footer-contacts {
  width:calc(100% + 28px); margin:0 -14px; min-height:31px; padding:8px 20px 10px;
  justify-content:center; gap:4px 18px; border:0; border-radius:0;
  background:var(--footer-ribbon,url('assets/studio-v3/footer-ribbon.svg')) center/100% 100% no-repeat;
  font:700 10.5px/1.25 Arial,sans-serif; color:#fff;
}
.studio-retail-footer .poster-footer-contacts:empty { display:none; }
.studio-retail-footer .footer-contact { white-space:normal; max-width:100%; gap:5px; }
.studio-retail-footer .footer-contact > span { overflow-wrap:anywhere; }
.studio-retail-footer .footer-contact-icon { color:var(--footer-accent,#ffdf35); width:16px; height:16px; }
.studio-retail-footer .studio-footer-bottom {
  display:grid; grid-template-columns:1.05fr 2.45fr 1.65fr; gap:12px; align-items:center; min-height:47px;
}
.studio-retail-footer .studio-footer-bottom > div { min-width:0; }
.studio-retail-footer .studio-footer-copy {
  display:flex; width:100%; min-width:0; align-items:center; justify-content:center;
  gap:inherit; transform-origin:center;
}
.studio-footer-copy > span { min-width:0; }
.studio-retail-footer .studio-footer-disclaimer {
  display:flex; align-items:center; gap:6px; padding:6px 7px; min-height:42px;
  border:1px solid var(--footer-accent,#ffedb0); border-radius:5px; background:var(--footer-ink,#07357c); color:#fff;
}
.studio-footer-disclaimer svg { width:20px; height:20px; flex-shrink:0; }
.studio-footer-disclaimer span { font:700 10.5px/1.15 Arial,sans-serif; text-transform:uppercase; overflow-wrap:normal; }
.studio-retail-footer .studio-footer-limit {
  display:flex; align-items:center; justify-content:center; gap:8px; min-height:47px; padding:10px 19px;
  background:var(--footer-limit,url('assets/studio-v3/footer-limit-brush.svg')) center/100% 100% no-repeat; color:var(--footer-ink,#07357c);
}
.studio-footer-limit svg { width:24px; height:24px; flex-shrink:0; }
.studio-footer-limit span { font:800 italic 13px/1.15 Archivo,Arial,sans-serif; text-align:center; overflow-wrap:anywhere; }
.studio-retail-footer .studio-footer-valid {
  display:flex; align-items:center; justify-content:center; gap:2px; min-height:49px; padding:14px 20px 13px;
  background:var(--footer-valid,url('assets/studio-v3/footer-valid-brush.svg')) center/100% 100% no-repeat; color:#fff;
}
.studio-footer-valid [data-footer-text="valid"] { font:800 18px/1.1 Archivo,Arial,sans-serif; color:#fff; text-align:center; overflow-wrap:anywhere; }
.studio-footer-valid.has-date [data-footer-text="valid"] { font:400 25px/1 Anton,Arial,sans-serif; color:var(--footer-accent,#ffdf35); width:100%; }
.studio-footer-valid-label { max-width:90%; font:700 italic 11px/1.15 Georgia,serif; text-align:center; }
.studio-footer-settings { padding:13px 0; }
.studio-footer-settings label { display:block; margin-bottom:7px; font-size:13px; font-weight:700; }
.studio-footer-settings input { width:100%; }
.studio-footer-settings p { font-size:12px; line-height:1.45; color:#6c7872; margin:7px 0 0; }
#poster.format-story .studio-footer-bottom { gap:8px; }
#poster.format-story .studio-footer-limit span { font-size:12px; }
#poster.format-tv .poster-footer.studio-retail-footer { gap:2px; }
#poster.format-tv .poster-footer-contacts { padding-block:6px; min-height:26px; }
#poster.format-tv .studio-footer-bottom { min-height:38px; }
#poster.format-tv .studio-footer-limit, #poster.format-tv .studio-footer-valid { min-height:38px; padding-block:8px; }

#poster { --footer-ground-start:#ff8b00; --footer-ground-end:#ff4b00; }
#poster[data-studio-campaign="ofertas"] { --footer-ground-start:#ff7200; --footer-ground-end:#ef2b08; }
#poster[data-studio-campaign="carne"], #poster[data-studio-campaign="churrasco"] { --footer-ground-start:#a12d0e; --footer-ground-end:#69150d; }
#poster[data-studio-campaign="horti"], #poster[data-studio-campaign="feira"] { --footer-ground-start:#5fac12; --footer-ground-end:#197a20; }
#poster[data-studio-campaign="padaria"], #poster[data-studio-campaign="padaria-festival"] { --footer-ground-start:#e6a137; --footer-ground-end:#ae581c; }
#poster[data-studio-campaign="limpeza"] { --footer-ground-start:#2587ff; --footer-ground-end:#074dcc; }
#poster[data-studio-campaign="black"] { --footer-ground-start:#292831; --footer-ground-end:#0d1015; }
#poster[data-studio-campaign="maes"] { --footer-ground-start:#ed3281; --footer-ground-end:#b60c54; }
#poster[data-studio-campaign="pascoa"] { --footer-ground-start:#971bdc; --footer-ground-end:#540caa; }
#poster .poster-footer.studio-retail-footer { position:relative; isolation:isolate; }
.studio-footer-ground { display:none; }
.studio-retail-footer .studio-footer-ground:not([hidden]) {
  display:block; position:absolute; inset:0 -14px -14px; z-index:-1; pointer-events:none;
  background:linear-gradient(to bottom right,var(--footer-ground-start),var(--footer-ground-end));
}
#poster.format-story .studio-footer-disclaimer { gap:4px; padding:5px 4px; }
#poster.format-story .studio-footer-disclaimer svg { width:14px; height:14px; }
#poster.format-story .studio-footer-disclaimer span { font-size:9.5px; }

.studio-footer-valid.has-date .studio-footer-copy { flex-direction:column; gap:2px; }
.studio-footer-valid.has-date-range [data-footer-text="valid"] { font-size:22px; }
.studio-footer-valid.has-long-date [data-footer-text="valid"] { font-size:17px; }

.studio-footer-valid.has-long-copy [data-footer-text="valid"] { font-size:14px; }

#poster.format-tv .studio-footer-valid { padding-block:12px 11px; }

/* Rodapé compacto aprovado: espaço recuperado para a grade, sem reduzir o aviso. */
#poster[data-studio-style="festival"] .poster-footer.studio-retail-footer { gap:1px; margin-top:0; }
#poster .studio-retail-footer .poster-footer-contacts { padding-block:2px 3px; min-height:22px; }
#poster .studio-retail-footer .studio-footer-bottom { gap:6px; min-height:29px; grid-template-columns:1.15fr 2fr 2fr; }
#poster .studio-retail-footer .studio-footer-disclaimer { min-height:29px; padding:2px 4px; gap:3px; }
#poster .studio-retail-footer .studio-footer-disclaimer svg { display:none; }
#poster .studio-retail-footer .studio-footer-limit { min-height:29px; padding:4px 12px; gap:4px; }
#poster .studio-retail-footer .studio-footer-limit svg { width:18px; height:18px; }
#poster .studio-retail-footer .studio-footer-valid { min-height:30px; padding:7px 15px; }
#poster .studio-retail-footer .studio-footer-valid.has-date .studio-footer-copy { flex-direction:row; gap:6px; }
#poster .studio-retail-footer .studio-footer-valid-label { max-width:65px; }
#poster .studio-retail-footer .studio-footer-valid.has-date [data-footer-text="valid"] { width:auto; font-size:22px; }
/* Intervalos e datas extensas preservam espaço para todas as informações. */
#poster .studio-retail-footer .studio-footer-valid.has-date-range .studio-footer-copy,
#poster .studio-retail-footer .studio-footer-valid.has-long-date .studio-footer-copy { flex-direction:column; gap:2px; }
#poster .studio-retail-footer .studio-footer-valid.has-date-range .studio-footer-valid-label,
#poster .studio-retail-footer .studio-footer-valid.has-long-date .studio-footer-valid-label { max-width:90%; }
#poster .studio-retail-footer .studio-footer-valid.has-long-date [data-footer-text="valid"] { font-size:17px; }

/* Feed e Stories: faixas com mais corpo e letras proporcionais ao formato. */
#poster:is(.format-feed-4-5,.format-story) .poster-footer.studio-retail-footer { gap:4px; margin-top:2px; }
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .poster-footer-contacts {
  min-height:28px; padding:5px 18px 7px; font-size:clamp(11px,1.8cqw,13px); gap:4px 14px;
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-bottom {
  grid-template-columns:1.2fr 2.15fr 1.65fr; gap:8px; min-height:clamp(48px,8cqw,58px);
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-disclaimer {
  min-height:40px; padding:6px; align-self:center;
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-disclaimer span {
  font-size:clamp(11.5px,1.8cqw,13px); line-height:1.18;
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-limit {
  min-height:clamp(48px,8cqw,58px); padding:9px 15px; gap:6px;
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-limit span {
  font-size:clamp(13px,2.2cqw,16px); line-height:1.15;
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-limit svg { width:22px; height:22px; }
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-valid {
  min-height:clamp(48px,8cqw,58px); padding:10px 18px;
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-valid.has-date .studio-footer-copy { flex-direction:column; gap:3px; }
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-valid-label {
  max-width:90%; font-size:clamp(11px,1.8cqw,13px); line-height:1.15;
}
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-valid.has-date [data-footer-text="valid"] { width:100%; font-size:clamp(23px,4cqw,29px); }
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-valid.has-date-range [data-footer-text="valid"] { font-size:22px; }
#poster:is(.format-feed-4-5,.format-story) .studio-retail-footer .studio-footer-valid.has-long-date [data-footer-text="valid"] { font-size:17px; }
