/* Cnq.Dev cookie consent - Antler palette. "Accept all" and "Reject all" share the same style on purpose (GDPR: equal prominence). */
.cnqc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    padding: 16px;
    pointer-events: none;
    font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
.cnqc-box {
    pointer-events: auto;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    background: #15212a;
    color: #d8d8d8;
    border-radius: 14px;
    padding: 22px 24px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    border-top: 4px solid #ee5586;
}
.cnqc-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.cnqc-text { margin: 0 0 14px; color: #d8d8d8; }
.cnqc-link { color: #fdd700; text-decoration: underline; }
.cnqc-link:hover { color: #ffe34d; }

.cnqc-settings { margin: 4px 0 14px; display: grid; gap: 10px; }
.cnqc-settings[hidden] { display: none; }
.cnqc-cat { background: #121e25; border-radius: 10px; padding: 12px 14px; }
.cnqc-cat p { margin: 6px 0 0; font-size: 13px; color: #b9bec4; }
.cnqc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; }
.cnqc-cat-head label { font-weight: 700; cursor: pointer; margin: 0; }
.cnqc-always { font-size: 12px; font-weight: 600; color: #fdd700; }

.cnqc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.cnqc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cnqc-slider { position: absolute; inset: 0; background: #414142; border-radius: 24px; transition: background .2s; }
.cnqc-slider::before {
    content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s;
}
.cnqc-switch input:checked + .cnqc-slider { background: #ee5586; }
.cnqc-switch input:checked + .cnqc-slider::before { transform: translateX(20px); }
.cnqc-switch input:focus-visible + .cnqc-slider { outline: 2px solid #fdd700; outline-offset: 2px; }

.cnqc-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cnqc-btn {
    appearance: none;
    border: 2px solid #fdd700;
    background: #fdd700;
    color: #000;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 22px;
    border-radius: 50px;
    cursor: pointer;
    min-width: 150px;
    transition: background .15s, border-color .15s;
}
.cnqc-btn:hover { background: #ffe34d; border-color: #ffe34d; }
.cnqc-btn:focus-visible, .cnqc-close:focus-visible, .cnqc-link:focus-visible { outline: 2px solid #ee5586; outline-offset: 2px; }
.cnqc-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); min-width: 0; }
.cnqc-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.cnqc-btn[hidden] { display: none; }
.cnqc-close {
    position: absolute; top: 8px; right: 12px;
    background: none; border: 0; color: #b9bec4; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.cnqc-close:hover { color: #fff; }

@media (max-width: 575.98px) {
    .cnqc { padding: 8px; }
    .cnqc-box { padding: 18px 16px 14px; }
    .cnqc-actions { justify-content: stretch; }
    .cnqc-btn { flex: 1 1 100%; min-width: 0; }
    /* Reject and Accept stay side by side and equal on phones */
    .cnqc-btn[data-action="reject"], .cnqc-btn[data-action="accept"] { flex: 1 1 calc(50% - 5px); }
}
@media (prefers-reduced-motion: reduce) {
    .cnqc-slider, .cnqc-slider::before, .cnqc-btn { transition: none; }
}
