/* yeux.app cookie consent banner */
#yeux-cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 9999;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#yeux-cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#yeux-cookie-consent .yeux-cookie-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #262626;
    background: rgba(18, 18, 20, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.yeux-cookie-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

#yeux-cookie-consent .yeux-cookie-text {
    flex: 1 1 280px;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #d4d4d4;
    margin: 0;
}

#yeux-cookie-consent .yeux-cookie-text a {
    color: #60a5fa;
    text-decoration: underline;
}

#yeux-cookie-consent .yeux-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#yeux-cookie-consent .yeux-cookie-btn {
    appearance: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

#yeux-cookie-consent .yeux-cookie-btn-primary {
    background: #fafafa;
    color: #0f0f0f;
    border-color: #fafafa;
}

#yeux-cookie-consent .yeux-cookie-btn-primary:hover {
    background: #e5e5e5;
}

#yeux-cookie-consent .yeux-cookie-btn-secondary {
    background: transparent;
    color: #fafafa;
    border-color: #404040;
}

#yeux-cookie-consent .yeux-cookie-btn-secondary:hover {
    background: #262626;
}

#yeux-cookie-consent .yeux-cookie-btn-link {
    background: transparent;
    color: #a3a3a3;
    border-color: transparent;
    text-decoration: underline;
    padding-left: 8px;
    padding-right: 8px;
}

#yeux-cookie-consent .yeux-cookie-btn-link:hover {
    color: #fafafa;
}

/* Preferences panel */
.yeux-cookie-prefs {
    margin-top: 14px;
    border-top: 1px solid #2a2a2a;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yeux-cookie-prefs[hidden] {
    display: none;
}

.yeux-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.yeux-pref-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.yeux-pref-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f5f5f5;
}

.yeux-pref-desc {
    font-size: 0.75rem;
    color: #737373;
    line-height: 1.4;
}

.yeux-pref-always-on {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4ade80;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Toggle switch */
.yeux-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.yeux-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.yeux-toggle-slider {
    position: absolute;
    inset: 0;
    background: #3f3f46;
    border-radius: 24px;
    transition: background 0.2s;
}

.yeux-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.yeux-toggle input:checked + .yeux-toggle-slider {
    background: #6366f1;
}

.yeux-toggle input:checked + .yeux-toggle-slider::before {
    transform: translateX(18px);
}

.yeux-toggle input:focus-visible + .yeux-toggle-slider {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.yeux-prefs-actions {
    justify-content: flex-end;
    margin-top: 4px;
}

@media (max-width: 640px) {
    #yeux-cookie-consent {
        padding: 10px;
    }
    #yeux-cookie-consent .yeux-cookie-inner {
        border-radius: 12px;
    }
    .yeux-cookie-top {
        flex-direction: column;
        align-items: stretch;
    }
    #yeux-cookie-consent .yeux-cookie-actions {
        width: 100%;
    }
    #yeux-cookie-consent .yeux-cookie-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    .yeux-pref-row {
        flex-wrap: wrap;
    }
    .yeux-prefs-actions {
        justify-content: stretch;
    }
}
