/* ===========================
   Bjutip Cookie Consent (light)
   – světlé panely, využití globálních .button tříd
   =========================== */
:root{
    --cc-z: 1080;
    --cc-surface: #eee;         /* banner/panel pozadí */
    --cc-panel:   #eee;         /* modal panel */
    --cc-text:    #333;         /* primární text */
    --cc-muted:   #666;         /* sekundární text */
    --cc-border:  rgba(0,0,0,.08);
    --cc-radius:  12px;
    --cc-shadow:  0 12px 32px rgba(0,0,0,.10);
    --cc-font: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* --- Banner (spodní lišta) --- */
.cc-banner{
    position: fixed; inset: auto 0 0 0; z-index: var(--cc-z);
    display: none; font-family: var(--cc-font);
    background: linear-gradient(180deg, #f7f7f7, var(--cc-surface));
    color: var(--cc-text); border-top: 1px solid var(--cc-border);
    box-shadow: 0 -8px 30px rgba(0,0,0,.08);
}
.cc-banner__inner{
    max-width: 1280px; margin: 0 auto; padding: 14px 16px;
    display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.cc-banner__title{ font-weight: 700; font-size: 18px; margin-bottom: 2px; color: var(--cc-text); }
.cc-banner__intro{ color: var(--cc-muted); font-size: .95rem; }
.cc-banner__actions{ display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cc-link{ color: #5324CD; text-decoration: underline; text-underline-offset: 2px; }
.cc-link:hover{ text-decoration-thickness: 2px; }

/* --- Buttons: používáme tvoje globální .button classy --- */
/* TIP: v HTML přidej:
   Přijmout: class="cc-btn button primary gradient-background"
   Odmítnout / Nastavení: class="cc-btn button secondary"
*/
.cc-btns{
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 10px 16px; border-radius: var(--cc-radius);
    font-weight: 700; font-size: .95rem; line-height: 1.1;
    border: 0; background: none; color: inherit; cursor: pointer;
}
/* Fallback, kdyby náhodou globální .button classy nebyly přidané */
.cc-btns:not(.button){
    background: #fff; border: 1px solid var(--cc-border); color: var(--cc-text);
}
.cc-btns--primary:not(.button){
    background: #111; color: #fff;
}
.cc-btns--flat:not(.button), .cc-btn--ghost:not(.button){
    background: #fff; color: var(--cc-text); border: 1px solid var(--cc-border);
}
.cc-btns--flat:hover:not(.button), .cc-btn--ghost:hover:not(.button){
    background: #f2f2f2;
}

/* --- Modal (nastavení cookies) --- */
.cc-modal__backdrop{
    position: fixed; inset: 0; z-index: calc(var(--cc-z) + 1);
    background: rgba(0,0,0,.35); display: none; align-items: center; justify-content: center;
}
.cc-modal__backdrop.is-open{ display: flex; }
.cc-modal{
    width: min(720px, 92vw);
    background: #fff;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    color: var(--cc-text); box-shadow: var(--cc-shadow); overflow: hidden;
    font-family: var(--cc-font);
}
.cc-modal__head{
    display:flex; align-items:center; justify-content: space-between; padding: 14px 16px 0;
}
.cc-modal__title{ font-weight: 500; font-size: 24px; color: var(--cc-text); }
.cc-modal__close{
    background: transparent; border: 0; color: var(--cc-muted);
    font-size: 22px; cursor: pointer; padding: 8px; border-radius: 8px;
}
.cc-modal__close:hover{ background: #e9e9e9; }
.cc-modal__body{ padding: 10px 16px; }
.cc-modal__actions{
    display:flex; gap:10px; justify-content:flex-end;
    padding: 14px 16px 16px; border-top: 1px solid var(--cc-border);
    background: #f7f7f7;
}

/* --- Řádky s přepínači --- */
.cc-row{
    display:grid; grid-template-columns: 1fr auto; gap: 10px;
    padding: 12px 0; border-bottom: 1px dashed var(--cc-border);
}
.cc-row:last-child{ border-bottom: 0; }
.cc-row__label{ font-weight: 700; color: var(--cc-text); }
.cc-row__desc{ color: var(--cc-muted); font-size: .95rem; margin-top: 2px; }
.cc-pill{
    background: #f2f2f2; color: #555; font-weight: 600; font-size: .75rem;
    padding: 2px 8px; border-radius: 999px; margin-left: 6px; border: 1px solid var(--cc-border);
}

/* --- Switch --- */
.cc-switch{ position: relative; display: inline-block; width: 52px; height: 30px; }
.cc-switch input{ display:none; }
.cc-switch__ui{
    position:absolute; inset:0; border-radius: 999px;
    background:#ddd; border:1px solid #ccc; transition: all .2s ease;
}
.cc-switch__ui:after{
    content:""; position:absolute; top:3px; left:3px; width:24px; height:24px;
    border-radius:50%; background:#fff; box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: transform .2s ease;
}
/* Aktivní stav – neutrální tmavá (tlačítka řeší globální gradient) */
.cc-switch input:checked + .cc-switch__ui{
    background: #5324CD; border-color: #5324CD;
}
.cc-switch input:checked + .cc-switch__ui:after{ transform: translateX(22px); }
.cc-switch[data-lock="1"] .cc-switch__ui{ opacity:.6; }

/* --- Responsive --- */
@media (max-width: 600px){
    .cc-banner__inner{ grid-template-columns: 1fr; align-items: stretch; }
    .cc-banner__actions{ justify-content: stretch; }
}
