/* aNoise Cookie Consent — assets/cookie.css */

#anoise-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111111;
    color: #ffffff;
    z-index: 99999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
    font-size: 13px;
    line-height: 1.6;
}

/* ── Main banner ─────────────────────────────── */
#anoise-cookie-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 32px;
    flex-wrap: wrap;
}

#anoise-cookie-msg {
    margin: 0;
    color: #cccccc;
    max-width: 680px;
    font-size: 12px;
}

#anoise-cookie-msg a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#anoise-cookie-msg a:hover {
    color: #cccccc;
}

#anoise-cookie-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────── */
.anoise-btn {
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #ffffff;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    white-space: nowrap;
    font-family: inherit;
}

.anoise-btn-solid {
    background: #ffffff;
    color: #111111;
}

.anoise-btn-solid:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.anoise-btn-ghost {
    background: transparent;
    color: #ffffff;
}

.anoise-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

/* ── Customize panel ─────────────────────────── */
#anoise-cookie-panel {
    border-top: 1px solid #333333;
    padding: 20px 32px 16px;
}

#anoise-cookie-panel[hidden] {
    display: none;
}

.anoise-category {
    border-bottom: 1px solid #2a2a2a;
    padding: 14px 0;
}

.anoise-category:last-of-type {
    border-bottom: none;
}

.anoise-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.anoise-cat-header strong {
    font-size: 12px;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.anoise-cat-header p {
    margin: 4px 0 0;
    font-size: 11px;
    color: #888888;
    max-width: 560px;
}

.anoise-always-on {
    font-size: 10px;
    color: #888888;
    white-space: nowrap;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* ── Toggle switch ───────────────────────────── */
.anoise-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.anoise-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.anoise-toggle-slider {
    position: absolute;
    inset: 0;
    background: #444444;
    transition: background 0.2s;
    border-radius: 0;
}

.anoise-toggle-slider:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    transition: transform 0.2s;
}

.anoise-toggle input:checked + .anoise-toggle-slider {
    background: #ffffff;
}

.anoise-toggle input:checked + .anoise-toggle-slider:before {
    background: #111111;
    transform: translateX(18px);
}

/* ── Save button row ─────────────────────────── */
#anoise-panel-btns {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

/* ── RTL adjustments ─────────────────────────── */
[dir="rtl"] #anoise-cookie-main {
    flex-direction: row-reverse;
}

[dir="rtl"] #anoise-cookie-btns {
    flex-direction: row-reverse;
}

[dir="rtl"] .anoise-cat-header {
    flex-direction: row-reverse;
}

[dir="rtl"] #anoise-panel-btns {
    justify-content: flex-start;
}

[dir="rtl"] .anoise-toggle-slider:before {
    left: auto;
    right: 3px;
}

[dir="rtl"] .anoise-toggle input:checked + .anoise-toggle-slider:before {
    transform: translateX(-18px);
}

/* ── Mobile ──────────────────────────────────── */
@media ( max-width: 600px ) {
    #anoise-cookie-main {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    #anoise-cookie-panel {
        padding: 16px;
    }

    #anoise-cookie-btns {
        width: 100%;
    }

    .anoise-btn {
        flex: 1;
        text-align: center;
    }
}
