/**
 * Cookie consent — lišta, modal nastavení, placeholder pre mapu.
 * Farby zámerne mimo bežnej oranžovej značky webu: čierna, biela, bronzová
 * — nech je súhlas vizuálne jasne "systémový" prvok, nie marketingový CTA.
 */
:root{
  --cc-bronze:#A9793D;
  --cc-bronze-dark:#8A6230;
  --cc-ink:#141210;
  --cc-paper:#FFFFFF;
  --cc-line:rgba(255,255,255,.14);
}

/* ============ LIŠTA ============ */
.cc-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:400;
  background:var(--cc-ink); color:#fff;
  border-top:1px solid var(--cc-bronze);
  padding:18px 20px calc(18px + env(safe-area-inset-bottom));
  box-shadow:0 -12px 34px rgba(0,0,0,.28);
  transform:translateY(110%); transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.cc-bar.cc-show{transform:translateY(0);}
.cc-bar-inner{
  max-width:1180px; margin:0 auto;
  display:flex; align-items:center; gap:24px; flex-wrap:wrap;
}
.cc-bar-text{flex:1 1 380px; min-width:260px;}
.cc-bar-text h2{margin:0 0 6px; font-family:'Poppins',sans-serif; font-size:16px; font-weight:700; color:#fff;}
.cc-bar-text p{margin:0; font-size:13.5px; line-height:1.55; color:rgba(255,255,255,.72);}
.cc-bar-text a{color:var(--cc-bronze); text-decoration:underline; text-underline-offset:2px;}
.cc-bar-actions{display:flex; gap:10px; flex-wrap:wrap; flex:0 0 auto;}
.cc-btn{
  font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600;
  padding:11px 20px; border-radius:999px; cursor:pointer; white-space:nowrap;
  border:1.5px solid rgba(255,255,255,.28); background:transparent; color:#fff;
  transition:.2s;
}
.cc-btn:hover{border-color:#fff; background:rgba(255,255,255,.08);}
.cc-btn.cc-primary{background:var(--cc-bronze); border-color:var(--cc-bronze); color:#fff;}
.cc-btn.cc-primary:hover{background:var(--cc-bronze-dark); border-color:var(--cc-bronze-dark);}

/* ============ MODAL NASTAVENÍ ============ */
.cc-modal-overlay{
  position:fixed; inset:0; z-index:410; background:rgba(20,18,16,.6);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.cc-modal-overlay.cc-show{opacity:1; pointer-events:auto;}
.cc-modal{
  background:var(--cc-paper); color:var(--cc-ink); border-radius:18px;
  max-width:560px; width:100%; max-height:86vh; overflow-y:auto;
  box-shadow:0 30px 70px rgba(0,0,0,.35);
}
.cc-modal-head{
  padding:22px 24px; border-bottom:1px solid rgba(20,18,16,.1);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  position:sticky; top:0; background:var(--cc-paper); z-index:1;
}
.cc-modal-head h2{margin:0; font-family:'Poppins',sans-serif; font-size:18px; font-weight:700;}
.cc-modal-close{
  width:34px; height:34px; border-radius:50%; border:none; background:rgba(20,18,16,.06);
  color:var(--cc-ink); cursor:pointer; display:flex; align-items:center; justify-content:center; flex:none;
}
.cc-modal-close:hover{background:rgba(20,18,16,.12);}
.cc-modal-body{padding:8px 24px 4px;}
.cc-modal-body>p{font-size:13.5px; line-height:1.6; color:rgba(20,18,16,.7); margin:14px 0 20px;}

.cc-cat{border-bottom:1px solid rgba(20,18,16,.09); padding:16px 0;}
.cc-cat:last-child{border-bottom:none;}
.cc-cat-head{display:flex; align-items:center; justify-content:space-between; gap:16px;}
.cc-cat-head h3{margin:0; font-family:'Poppins',sans-serif; font-size:14.5px; font-weight:600;}
.cc-cat-desc{margin:8px 0 0; font-size:13px; line-height:1.55; color:rgba(20,18,16,.62);}
.cc-cat-badge{
  font-size:11px; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
  color:var(--cc-bronze-dark); background:rgba(169,121,61,.12); padding:3px 9px; border-radius:999px;
}

/* prepínač */
.cc-switch{position:relative; width:44px; height:25px; flex:none;}
.cc-switch input{position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer;}
.cc-switch-track{
  position:absolute; inset:0; background:rgba(20,18,16,.18); border-radius:999px; transition:.2s;
  pointer-events:none;
}
.cc-switch-track::after{
  content:""; position:absolute; top:2.5px; left:2.5px; width:20px; height:20px;
  background:#fff; border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:.2s;
}
.cc-switch input:checked ~ .cc-switch-track{background:var(--cc-bronze);}
.cc-switch input:checked ~ .cc-switch-track::after{transform:translateX(19px);}
.cc-switch input:disabled ~ .cc-switch-track{background:rgba(20,18,16,.28); opacity:.7;}
.cc-switch input:disabled{cursor:not-allowed;}

.cc-modal-foot{
  padding:18px 24px calc(18px + env(safe-area-inset-bottom));
  display:flex; gap:10px; flex-wrap:wrap; border-top:1px solid rgba(20,18,16,.1);
  position:sticky; bottom:0; background:var(--cc-paper);
}
.cc-modal-foot .cc-btn{border-color:rgba(20,18,16,.2); color:var(--cc-ink);}
.cc-modal-foot .cc-btn:hover{background:rgba(20,18,16,.06);}
.cc-modal-foot .cc-btn.cc-primary{color:#fff;}

@media(max-width:640px){
  .cc-bar-inner{flex-direction:column; align-items:stretch;}
  .cc-bar-actions{flex-direction:column;}
  .cc-btn{width:100%; text-align:center;}
}

/* ============ PLACEHOLDER MAPY (kým nie je súhlas s Funkčné) ============ */
.cc-map-placeholder{
  background:var(--cc-ink); color:#fff; border-radius:inherit;
  padding:28px 20px; text-align:center; display:flex; flex-direction:column;
  align-items:center; gap:12px; min-height:180px; justify-content:center;
}
.cc-map-placeholder p{margin:0; font-size:13px; line-height:1.55; color:rgba(255,255,255,.7); max-width:340px;}
.cc-map-placeholder svg{width:26px; height:26px; color:var(--cc-bronze);}
