/* Baner zgody na cookies — spójny z panelami strony */
#cookieConsent [hidden] { display: none !important; }
#cookieConsent { font-family: 'Jost', 'Futura', sans-serif; }
#cookieConsent a { color: var(--fg); }
.cc-title { font-weight: 400; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 8px; }
.cc-banner p, .cc-cat-desc, .cc-foot { font-weight: 300; font-size: 0.88rem; line-height: 1.6; color: var(--fg-muted); }

.cc-banner {
    position: fixed; left: 50%; bottom: clamp(16px, 2.5vw, 32px); z-index: 90;
    width: min(calc(100vw - 32px), 1040px);
    transform: translate(-50%, 16px) scale(0.98);
    display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center;
    padding: clamp(20px, 2.5vw, 28px) clamp(22px, 3vw, 32px);
    background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 16px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    opacity: 0; filter: blur(8px);
    transition: opacity 0.5s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s ease, transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cc-banner.is-open { opacity: 1; filter: blur(0); transform: translate(-50%, 0) scale(1); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn {
    font-family: inherit; cursor: pointer; border-radius: 2px;
    padding: 11px 18px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cc-primary { background: none; border: 1px solid var(--fg); color: var(--fg); }
.cc-primary:hover { background: var(--fg); color: var(--bg); }
.cc-ghost { background: none; border: 1px solid var(--tag-border); color: var(--fg-faint); }
.cc-ghost:hover { border-color: var(--fg); color: var(--fg); }
@media (max-width: 960px) { .cc-banner { grid-template-columns: 1fr; } .cc-actions { justify-content: flex-start; } .cc-btn { flex: 1 1 auto; text-align: center; } }

.cc-modal-wrap {
    position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.4s ease;
}
.cc-modal-wrap.is-open { opacity: 1; }
.cc-modal {
    position: relative; width: min(100%, 560px); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: clamp(32px, 4vw, 48px); border-radius: 16px;
    background: var(--panel-bg); border: 1px solid var(--panel-border);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    transform: scale(0.97); transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cc-modal-wrap.is-open .cc-modal { transform: scale(1); }
.cc-modal .cc-title { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 24px; }
.cc-close {
    position: absolute; top: 20px; right: 24px; background: none; border: none; cursor: pointer; color: var(--fg);
    font-family: inherit; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; transition: opacity 0.3s;
}
.cc-close:hover { opacity: 1; }
.cc-cats { display: grid; border-top: 1px solid var(--divider); margin-bottom: 24px; }
.cc-cat { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--divider); cursor: pointer; }
.cc-cat-name { font-weight: 400; color: var(--fg); margin-bottom: 4px; }
.cc-cat input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--fg-subtle); background: transparent; transition: background 0.3s, border-color 0.3s; flex: none; }
.cc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-subtle); transition: transform 0.3s, background 0.3s; }
.cc-cat input:checked + .cc-switch { background: var(--fg); border-color: var(--fg); }
.cc-cat input:checked + .cc-switch::after { background: var(--bg); transform: translateX(18px); }
.cc-cat input:disabled + .cc-switch { opacity: 0.45; cursor: default; }
.cc-cat input:focus-visible + .cc-switch { outline: 2px solid var(--fg); outline-offset: 3px; }
.cc-foot { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .cc-banner, .cc-modal, .cc-modal-wrap { transition: none; } }
@media (max-width: 760px) {
    .cc-banner { bottom: 0; left: 0; right: 0; width: 100%; transform: translate(0, 16px); border-radius: 16px 16px 0 0; padding: 18px 18px 20px; gap: 14px; box-shadow: 0 -12px 40px rgba(0,0,0,0.3); }
    .cc-banner.is-open { transform: translate(0, 0); }
    .cc-banner p { font-size: 0.8rem; line-height: 1.5; }
    .cc-title { font-size: 0.95rem; margin-bottom: 4px; }
    .cc-btn { padding: 10px 14px; font-size: 0.68rem; }
    .cc-modal { padding: 28px 20px; }
}
