/* higgy – cookie lišta + nastavenia (návrh: HiggyStavy.dc.html, stavy cookies="lista" / "nastavenia").
   Modul je samostatný: nepoužíva premenné z higgy.css (vkladá sa do <body>, mimo .hg). */
.hgc-root { font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: #1D1B26; }
.hgc-root *, .hgc-root *::before, .hgc-root *::after { box-sizing: border-box; }
.hgc-root button { font-family: inherit; }
.hgc-root :focus-visible { outline: 3px solid #F7892F; outline-offset: 2px; }

.hgc-layer { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 70; display: flex; flex-direction: column; }

/* ---------- Lišta ---------- */
.hgc-layer--bar { justify-content: flex-end; align-items: flex-start; padding: 24px; pointer-events: none; }
.hgc-bar {
  width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2vw, 26px); border-radius: 24px;
  background: #1D1B26; color: #FAF7F2; box-shadow: 0 -6px 40px rgba(29, 27, 38, .28); pointer-events: auto; animation: hgcIn .35s cubic-bezier(.2, .8, .2, 1);
}
.hgc-bar:focus { outline: none; }
.hgc-title { margin: 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-stretch: 85%; font-weight: 800; font-size: 24px; line-height: 1.1; }
.hgc-text { margin: 0; font-size: 15px; line-height: 1.5; color: #E4E0EA; text-wrap: pretty; }
.hgc-text a { color: #FAF7F2; text-underline-offset: 3px; transition: color .2s; }
.hgc-text a:hover { color: #F7892F; }
.hgc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hgc-btn { height: 48px; padding: 0 16px; border: 0; border-radius: 999px; font: 700 16px 'Figtree', sans-serif; cursor: pointer; transition: background .2s, box-shadow .2s; }
.hgc-btn--accept { background: #F7892F; color: #1D1B26; }
.hgc-btn--accept:hover { background: #FFA052; }
.hgc-btn--reject { background: none; box-shadow: inset 0 0 0 1.5px rgba(250, 247, 242, .5); color: #FAF7F2; }
.hgc-btn--reject:hover { box-shadow: inset 0 0 0 1.5px #FAF7F2; }
.hgc-link { align-self: center; min-height: 44px; margin: -6px 0 -10px; padding: 0 8px; border: 0; background: none; color: #FAF7F2; font: 600 15px 'Figtree', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s; }
.hgc-link:hover { color: #F7892F; }

/* ---------- Nastavenia (modál) ---------- */
.hgc-layer--modal { justify-content: center; align-items: center; padding: 24px; background: rgba(29, 27, 38, .5); animation: hgcFade .25s ease; }
.hgc-dialog {
  width: 100%; max-width: 560px; max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px;
  background: #FAF7F2; color: #1D1B26; box-shadow: 0 20px 60px rgba(29, 27, 38, .3); animation: hgcIn .35s cubic-bezier(.2, .8, .2, 1);
}
.hgc-dialog:focus { outline: none; }
.hgc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hgc-dialog .hgc-title { font-size: clamp(24px, 2.2vw, 30px); }
.hgc-x { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: #1D1B26; cursor: pointer; transition: background .2s; }
.hgc-x:hover { background: rgba(29, 27, 38, .07); }
.hgc-intro { margin: 0; font-size: 15px; color: #3E3A47; text-wrap: pretty; }
.hgc-rows { display: flex; flex-direction: column; border-radius: 20px; background: #FFFFFF; }
.hgc-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; }
.hgc-row + .hgc-row { border-top: 1px solid rgba(29, 27, 38, .10); }
.hgc-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hgc-row-t b { font-size: 16px; font-weight: 700; }
.hgc-row-t span { font-size: 14px; line-height: 1.45; color: #57535F; text-wrap: pretty; }
.hgc-lock { flex: none; padding: 4px 10px; border-radius: 999px; background: #EFEAE2; font-size: 13px; font-weight: 700; color: #3E3A47; white-space: nowrap; }
/* prepínač: 52 × 30 vizuálne, dotyková plocha ≥ 44 px na výšku */
.hgc-sw { flex: none; position: relative; width: 52px; height: 30px; margin-top: 2px; padding: 0; border: 0; border-radius: 999px; background: rgba(29, 27, 38, .22); cursor: pointer; transition: background .2s; }
.hgc-sw::after { content: ""; position: absolute; left: -4px; right: -4px; top: -7px; bottom: -7px; } /* zväčšená klikacia plocha */
.hgc-sw[aria-checked="true"] { background: #1D1B26; }
.hgc-sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(29, 27, 38, .25); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.hgc-sw[aria-checked="true"] i { transform: translateX(22px); }
.hgc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.hgc-actions .hgc-btn { height: 52px; padding: 0 18px; }
.hgc-btn--save { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #1D1B26; color: #1D1B26; }
.hgc-btn--save:hover { background: #EFEAE2; }
.hgc-btn--all { background: #1D1B26; color: #FAF7F2; }
.hgc-btn--all:hover { background: #3A3645; }

/* mobil: lišta na celú šírku, modál vyjazdí zospodu */
@media (max-width: 899.98px) {
  .hgc-layer--bar { padding: 0; }
  .hgc-bar { width: 100%; border-radius: 24px 24px 0 0; }
  .hgc-layer--modal { justify-content: flex-end; padding: 48px 0 0; }
  .hgc-dialog { border-radius: 24px 24px 0 0; }
}

@keyframes hgcIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hgcFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hgc-root * { animation: none !important; transition: none !important; } }
