/* FLAITOPS Cookie Consent — fully visible, no user scroll */

.fl-cc-root{
  --cc-panel:#0c1824;
  --cc-line:rgba(120,170,210,.28);
  --cc-text:#f2f6f8;
  --cc-muted:rgba(242,246,248,.78);
  --cc-green:#48ff1f;
  --cc-green-ink:#06140a;
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background:rgba(2,8,14,.72);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  overflow:hidden;
  box-sizing:border-box;
}
.fl-cc-root[hidden]{display:none !important}
.fl-cc-root *,
.fl-cc-root *::before,
.fl-cc-root *::after{box-sizing:border-box}

.fl-cc-dialog{
  position:relative;
  width:min(520px, calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border-radius:18px;
  border:1px solid var(--cc-line);
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(70,140,200,.18), transparent 55%),
    radial-gradient(90% 60% at 10% 0%, rgba(72,255,31,.06), transparent 45%),
    linear-gradient(180deg, #0e1c2a 0%, var(--cc-panel) 42%, #09131c 100%);
  color:var(--cc-text);
  box-shadow:0 24px 64px rgba(0,0,0,.45);
  font-family:inherit;
}

.fl-cc-globe{
  position:absolute;
  right:0;
  top:0;
  width:55%;
  height:48%;
  pointer-events:none;
  opacity:.18;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(140,190,230,.35) 35%, transparent 36%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(140,190,230,.18) 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(140,190,230,.12) 18px 19px);
  border-radius:0 18px 0 50%;
  mask-image:radial-gradient(circle at 70% 20%, #000 0 42%, transparent 72%);
  -webkit-mask-image:radial-gradient(circle at 70% 20%, #000 0 42%, transparent 72%);
}

.fl-cc-head{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 4px;
  flex-shrink:0;
}

.fl-cc-brand{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.fl-cc-brand img{
  display:block;
  height:36px;
  width:auto;
  max-width:min(200px, 62vw);
  object-fit:contain;
  object-position:left center;
}

.fl-cc-close{
  appearance:none;
  border:0;
  background:transparent;
  color:rgba(242,246,248,.7);
  width:36px;
  height:36px;
  border-radius:8px;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  flex-shrink:0;
}
.fl-cc-close:hover{color:#fff;background:rgba(255,255,255,.06)}

.fl-cc-body{
  position:relative;
  padding:2px 18px 4px;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
.fl-cc-title{
  margin:0 0 10px;
  font-size:clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.01em;
}
.fl-cc-title strong{
  color:var(--cc-green);
  font-weight:700;
}
.fl-cc-copy{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.45;
  color:var(--cc-muted);
}
.fl-cc-copy:last-child{margin-bottom:0}
.fl-cc-copy em{
  font-style:normal;
  color:var(--cc-green);
  font-weight:600;
}

.fl-cc-actions{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  padding:10px 18px 12px;
  flex-shrink:0;
}
.fl-cc-btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:9px 16px;
  border-radius:999px;
  font:inherit;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.fl-cc-btn:active{transform:scale(.98)}
.fl-cc-btn--ghost{
  border:1px solid rgba(255,255,255,.55);
  background:rgba(8,16,24,.35);
  color:#fff;
  min-width:120px;
}
.fl-cc-btn--ghost:hover{border-color:#fff;background:rgba(255,255,255,.06)}
.fl-cc-btn--primary{
  border:0;
  background:var(--cc-green);
  color:var(--cc-green-ink);
  min-width:136px;
  margin-left:auto;
}
.fl-cc-btn--primary:hover{filter:brightness(1.05)}
.fl-cc-btn .material-symbols-rounded{
  font-size:18px;
  line-height:1;
}
.fl-cc-btn--primary .fl-cc-check{
  display:inline-flex;
  width:20px;
  height:20px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:var(--cc-green-ink);
  color:var(--cc-green);
  font-size:14px;
  font-weight:700;
}

.fl-cc-foot{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 12px;
  padding:8px 18px 14px;
  border-top:1px solid rgba(255,255,255,.06);
  flex-shrink:0;
}
.fl-cc-lang{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:0;
  background:transparent;
  color:rgba(242,246,248,.75);
  font:inherit;
  font-size:12.5px;
  cursor:pointer;
  padding:4px 0;
}
.fl-cc-lang:hover{color:#fff}
.fl-cc-privacy{
  color:var(--cc-green);
  font-size:12.5px;
  font-weight:600;
  text-decoration:none;
}
.fl-cc-privacy:hover{text-decoration:underline}
.fl-cc-powered{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:10.5px;
  color:rgba(242,246,248,.45);
}
.fl-cc-shield{
  width:20px;
  height:20px;
  border-radius:6px;
  background:linear-gradient(145deg, #3d8bfd, #1a5fd0);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:12px;
  font-weight:700;
  box-shadow:0 2px 8px rgba(40,100,200,.35);
}

/* Settings — só esta área pode scrollar se o ecrã for muito baixo */
.fl-cc-settings{
  display:none;
  flex-direction:column;
  gap:8px;
  max-height:min(38vh, 280px);
  overflow:auto;
  padding-right:2px;
  -webkit-overflow-scrolling:touch;
}
.fl-cc-root.is-settings .fl-cc-copy-block{display:none}
.fl-cc-root.is-settings .fl-cc-settings{display:flex}
.fl-cc-cat{
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  padding:10px 12px;
  background:rgba(0,0,0,.18);
}
.fl-cc-cat-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.fl-cc-cat strong{
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:2px;
}
.fl-cc-cat p{
  margin:0;
  font-size:11.5px;
  line-height:1.4;
  color:var(--cc-muted);
}
.fl-cc-switch{
  position:relative;
  width:42px;
  height:24px;
  flex-shrink:0;
  margin-top:2px;
}
.fl-cc-switch input{
  opacity:0;
  width:0;
  height:0;
  position:absolute;
}
.fl-cc-switch span{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  cursor:pointer;
  transition:background .15s ease;
}
.fl-cc-switch span::after{
  content:'';
  position:absolute;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  top:3px;
  left:3px;
  transition:transform .15s ease;
}
.fl-cc-switch input:checked + span{background:var(--cc-green)}
.fl-cc-switch input:checked + span::after{transform:translateX(18px);background:var(--cc-green-ink)}
.fl-cc-switch input:disabled + span{
  opacity:.55;
  cursor:not-allowed;
}

@media (max-width:520px){
  .fl-cc-actions{flex-direction:column-reverse;align-items:stretch}
  .fl-cc-btn--primary,.fl-cc-btn--ghost{width:100%;margin-left:0}
  .fl-cc-foot{gap:6px}
  .fl-cc-title{font-size:1.15rem}
  .fl-cc-copy{font-size:12.5px}
}

@media (max-height:640px){
  .fl-cc-head{padding:12px 14px 2px}
  .fl-cc-body{padding:0 14px 2px}
  .fl-cc-actions{padding:8px 14px 8px}
  .fl-cc-foot{padding:6px 14px 10px}
  .fl-cc-brand img{height:30px}
  .fl-cc-title{margin-bottom:6px;font-size:1.1rem}
  .fl-cc-copy{margin-bottom:6px;font-size:12px;line-height:1.4}
  .fl-cc-btn{min-height:38px;padding:8px 14px;font-size:13px}
}
