/* Cartão Surpresa · interface não intrusiva; sem abertura automática */
#surpresa-root{--surpresa-accent:#285943;font:inherit;line-height:1.45;color:#162b2c;}
#surpresa-root *{box-sizing:border-box;}
#surpresa-launcher{position:fixed;top:calc(env(safe-area-inset-top,0px) + 90px);right:clamp(12px,2vw,25px);z-index:2147482000;cursor:pointer;border:1px solid rgba(255,255,255,.32);border-radius:13px;background:var(--surpresa-accent);color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.20);font:700 13px/1.25 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:11px 15px;min-height:42px;letter-spacing:.01em;transition:transform .16s ease,box-shadow .16s ease;max-width:calc(100vw - 24px)}
#surpresa-launcher:hover,#surpresa-launcher:focus-visible{transform:translateY(-1px);box-shadow:0 8px 25px rgba(0,0,0,.28)}
#surpresa-launcher:focus-visible,#surpresa-panel button:focus-visible,#surpresa-panel a:focus-visible{outline:3px solid #f2b742;outline-offset:3px}
#surpresa-panel{position:fixed;z-index:2147482001;right:clamp(12px,2vw,25px);top:calc(env(safe-area-inset-top,0px) + 142px);width:min(365px,calc(100vw - 24px));max-height:min(68vh,520px);overflow:auto;background:#fff;color:#172a2a;border:1px solid #dce5df;border-radius:17px;padding:19px;box-shadow:0 14px 40px rgba(0,0,0,.25);font:400 14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-align:left;}
#surpresa-panel[hidden]{display:none!important}
#surpresa-panel .surpresa-top{display:flex;align-items:start;gap:12px;justify-content:space-between}
#surpresa-panel h2{font:700 19px/1.25 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#142b28;margin:0;padding:0}
#surpresa-panel .surpresa-close{font:400 25px/1 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;border:0;background:transparent;color:#32484b;min-width:30px;min-height:30px;border-radius:8px;cursor:pointer;padding:0}
#surpresa-panel .surpresa-close:hover{background:#eef4f0}
#surpresa-panel .surpresa-intro{font-size:13px;color:#526064;margin:7px 0 15px}
#surpresa-panel .surpresa-category{display:inline-block;font-size:11px;font-weight:700;color:var(--surpresa-accent);border:1px solid #d9e5e0;background:#f5f8f6;padding:3px 9px;border-radius:16px;margin-bottom:6px}
#surpresa-panel .surpresa-name{font-size:17px;font-weight:700;line-height:1.36;color:#172a2a;margin:7px 0 18px;min-height:40px;overflow-wrap:anywhere}
#surpresa-panel .surpresa-actions{display:grid;grid-template-columns:1fr;gap:8px}
#surpresa-panel .surpresa-go,#surpresa-panel .surpresa-next{display:flex;justify-content:center;align-items:center;text-decoration:none;text-align:center;min-height:42px;border-radius:10px;padding:9px 13px;font:700 13px/1.35 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer}
#surpresa-panel .surpresa-go{background:var(--surpresa-accent);color:#fff;border:1px solid transparent}
#surpresa-panel .surpresa-next{background:#f4f7f5;color:#21473d;border:1px solid #dae5dd}
#surpresa-panel .surpresa-go:hover{filter:brightness(.92)}
#surpresa-panel .surpresa-next:hover{background:#e9f1eb}
@media(max-width:600px){#surpresa-launcher{top:calc(env(safe-area-inset-top,0px) + 78px);right:10px;padding:10px 12px;font-size:12px;min-height:40px}#surpresa-panel{top:calc(env(safe-area-inset-top,0px) + 125px);right:10px;width:min(350px,calc(100vw - 20px));padding:16px;max-height:65vh}}
@media(max-height:520px){#surpresa-panel{top:10px;max-height:calc(100vh - 20px)}}
@media(prefers-reduced-motion:reduce){#surpresa-launcher{transition:none}}


/* V105 | Posicionamento acessível: destaque na faixa de Natal e modo flutuante sem cobrir PT/EN */
#surpresa-root #surpresa-launcher{
  top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);
  right:clamp(12px,2vw,24px);min-height:52px;padding:13px 20px;
  font-size:16px;line-height:1.2;letter-spacing:.01em;
  border-radius:16px;border:1px solid rgba(255,255,255,.38);
  box-shadow:0 8px 24px rgba(0,0,0,.24);
  background:linear-gradient(135deg,#142d43,#214b65);color:#fff;
}
#surpresa-root #surpresa-panel{
  top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 84px);
  right:clamp(12px,2vw,24px);
  width:min(370px,calc(100vw - 24px));
  max-height:min(62dvh,520px);overflow:auto;
}
#surpresa-root.surpresa-at-banner #surpresa-launcher{
  top:var(--surpresa-banner-top);bottom:auto;
  right:var(--surpresa-banner-right);min-height:54px;
  padding:14px 23px;font-size:17px;
  background:linear-gradient(120deg,#bb8c42,#e7c579);color:#112234;
  border:1px solid #f0d79c;box-shadow:0 7px 23px rgba(0,0,0,.27),0 0 0 2px rgba(240,208,144,.12);
}
#surpresa-root.surpresa-at-banner #surpresa-panel{
  top:var(--surpresa-panel-top);bottom:auto;
  max-height:min(520px,calc(100dvh - var(--surpresa-panel-top) - 12px));
}
/* Entre desktop e tablet, e nos telemóveis, reserva-se uma linha na própria faixa. */
html.lvx-season .lvx-ribbon.surpresa-banner-space{
  min-height:157px;padding-bottom:80px!important;
}
@media(max-width:730px){
  html.lvx-season .lvx-ribbon.surpresa-banner-space{
    min-height:153px;padding-bottom:77px!important;
  }
}
@media(max-width:600px){
  #surpresa-root #surpresa-launcher{
    top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 14px);
    right:12px;min-height:48px;padding:12px 16px;font-size:14px;
  }
  #surpresa-root.surpresa-at-banner #surpresa-launcher{
    top:var(--surpresa-banner-top);bottom:auto;
    right:var(--surpresa-banner-right);min-height:51px;
    padding:12px 20px;font-size:16px;
  }
  #surpresa-root #surpresa-panel{
    top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 73px);
    right:10px;max-height:min(65dvh,510px);
  }
  #surpresa-root.surpresa-at-banner #surpresa-panel{
    top:var(--surpresa-panel-top);bottom:auto;
    max-height:max(140px,calc(100dvh - var(--surpresa-panel-top) - 12px));
  }
}
@media(prefers-reduced-motion:reduce){
  #surpresa-root #surpresa-launcher{transition:none}
}
@media print{
  #surpresa-root{display:none!important}
}

/* Identidade cromática do projeto */
#surpresa-root{--surpresa-accent:#27674d;}


/* CABECALHO NATAL UNIFICADO | Estrutura comum, identidade cromática de cada projeto.
   Corrige a linha baixa, árvore maior e espaço reservado para a Surpresa.
   Alterações apenas com html.lvx-season; não altera cabeçalho/menu fora do Natal. */
html.lvx-season .lvx-ribbon{
  min-height:165px!important;
  padding:22px 196px 24px 158px!important;
  align-items:center;justify-content:center;
  border-bottom:2px solid color-mix(in srgb,var(--lvx-accent) 63%,transparent)!important;
}
html.lvx-season .lvx-ribbon .lvx-ribbon-inner{
  max-width:100%;min-width:0;flex:0 1 auto;
}
html.lvx-season .lvx-ribbon .lvx-ribbon-copy{
  justify-content:center;text-align:center;
}
html.lvx-season .lvx-ribbon .lvx-tree{
  display:block!important;position:absolute;left:12px;top:8px;
  width:138px;height:147px;object-fit:contain;z-index:3;
  pointer-events:none;filter:drop-shadow(0 0 12px rgba(255,222,144,.55));
}
html.lvx-season .lvx-ribbon .lvx-baubles{
  display:flex;right:18px;top:30px;gap:13px;
}
html.lvx-season .lvx-ribbon .lvx-baubles i{width:15px;height:15px;opacity:.95}
/* O botão segue a geometria real da faixa via surpresa-v1.js. */
@media (min-width:731px) and (max-width:1100px){
  html.lvx-season .lvx-ribbon,
  html.lvx-season .lvx-ribbon.surpresa-banner-space{
    min-height:190px!important;
    padding:20px 100px 105px 130px!important;
  }
  html.lvx-season .lvx-ribbon .lvx-tree{
    width:120px;height:130px;left:8px;top:4px;
  }
  html.lvx-season .lvx-ribbon .lvx-baubles{right:20px;top:20px}
}
@media (max-width:730px){
  html.lvx-season .lvx-ribbon,
  html.lvx-season .lvx-ribbon.surpresa-banner-space{
    min-height:185px!important;
    padding:18px 15px 99px 97px!important;
  }
  html.lvx-season .lvx-ribbon .lvx-tree{
    width:94px;height:110px;left:1px;top:4px;
  }
  html.lvx-season .lvx-ribbon .lvx-baubles{display:none!important}
  html.lvx-season .lvx-ribbon .lvx-ribbon-inner{max-width:100%;}
  html.lvx-season .lvx-ribbon .lvx-ribbon-copy{gap:3px 6px}
}
@media (max-width:380px){
  html.lvx-season .lvx-ribbon,
  html.lvx-season .lvx-ribbon.surpresa-banner-space{
    min-height:185px!important;
    padding:18px 9px 98px 78px!important;
  }
  html.lvx-season .lvx-ribbon .lvx-tree{
    width:78px;height:94px;left:0;top:5px;
  }
}
@media (prefers-reduced-motion:reduce){
  html.lvx-season .lvx-ribbon .lvx-tree{animation:none!important;}
}
