/**
 * Cookie consent banner styling. Self-contained — doesn't depend on any
 * site's existing CSS variables, so it looks right dropped into any project.
 *
 * To match your brand accent color, set --consent-accent on :root in your
 * site's own stylesheet, e.g.:
 *   :root { --consent-accent: #F5A623; }   (GryZaDarmo gold)
 *   :root { --consent-accent: #00D9FF; }   (VikiGames cyan)
 *   :root { --consent-accent: #F5A623; }   (DiscountedHive honey)
 * If you don't set it, it defaults to a neutral blue below.
 */

.cc-banner, .cc-modal-overlay {
    --cc-accent: var(--consent-accent, #4DA6FF);
    --cc-bg: #10151f;
    --cc-panel: #161d2b;
    --cc-text: #eef3fb;
    --cc-text-mid: #9fb0c7;
    --cc-border: rgba(255,255,255,0.1);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cc-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
    background: var(--cc-bg);
    border-top: 1px solid var(--cc-border);
    padding: 16px 20px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.cc-banner-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.cc-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--cc-text-mid); max-width: 640px; }
.cc-text a { color: var(--cc-accent); text-decoration: underline; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cc-btn {
    font-family: inherit;
    font-size: 13px; font-weight: 600;
    padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
    white-space: nowrap;
}
.cc-btn-primary { background: var(--cc-accent); color: #06141f; }
.cc-btn-primary:hover { filter: brightness(0.92); }
.cc-btn-outline { background: transparent; color: var(--cc-text); border-color: var(--cc-border); }
.cc-btn-outline:hover { border-color: var(--cc-accent); color: var(--cc-accent); }
.cc-btn-ghost { background: transparent; color: var(--cc-text-mid); border: none; text-decoration: underline; padding: 9px 4px; }

.cc-modal-overlay {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.cc-modal {
    background: var(--cc-panel);
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    max-width: 460px; width: 100%;
    padding: 26px;
    color: var(--cc-text);
    max-height: 90vh; overflow-y: auto;
}
.cc-modal-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.cc-modal-desc { margin: 0 0 16px; font-size: 13px; color: var(--cc-text-mid); line-height: 1.5; }

.cc-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 14px 0; border-top: 1px solid var(--cc-border);
}
.cc-row:first-of-type { border-top: none; }
.cc-row strong { font-size: 14px; }
.cc-row p { margin: 4px 0 0; font-size: 12px; color: var(--cc-text-mid); line-height: 1.4; }

.cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.15); border-radius: 999px; transition: 0.2s; }
.cc-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.cc-switch input:checked + .cc-slider { background: var(--cc-accent); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch-disabled { opacity: 0.5; }
.cc-switch-disabled .cc-slider { cursor: not-allowed; }

.cc-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 560px) {
    .cc-banner-inner { flex-direction: column; align-items: stretch; }
    .cc-actions { justify-content: stretch; }
    .cc-actions .cc-btn { flex: 1; }
    .cc-actions .cc-btn-ghost { flex: 0 0 auto; text-align: center; }
    .cc-modal-actions { flex-direction: column-reverse; }
    .cc-modal-actions .cc-btn { width: 100%; text-align: center; }
}
