.cookie-overlay {
    position: fixed;
    inset: auto 30px 30px auto;
    z-index: 9999;
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    max-width: calc(100vw - 60px);
    max-height: calc(100dvh - 60px);
    width: 450px;
    color: #1a202c;
    background: transparent;
    animation: none;
    transition: none;
    overflow: auto;
    font-family: inherit;
}
.cookie-overlay[open] { display: block; }
.cookie-overlay::backdrop { background: rgba(0, 0, 0, .25); }
.cookie-overlay .cookie-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}
.cookie-header {
    background: #f5d5e7;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0c0c0c;
}
.cookie-header h4 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.cookie-symbol { font-size: 28px; }
.cookie-close {
    margin-inline-start: auto;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.cookie-body { padding: 24px; }
.cookie-body p { color: #4a5568; line-height: 1.6; margin: 0 0 16px; font-size: .9rem; }
.cookie-link { color: #4759c9; text-decoration: underline; font-size: .85rem; }
.cookie-preferences { margin: 20px 0 0; padding: 0; border: 0; }
.cookie-preferences[hidden] { display: none; }
.cookie-preferences legend { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.cookie-option { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; }
.cookie-option input { width: 18px; height: 18px; accent-color: #89516f; flex-shrink: 0; }
.cookie-preferences p { font-size: .85rem; margin: 6px 0 16px; }
.cookie-footer { padding: 16px 24px 24px; display: flex; gap: 12px; flex-wrap: wrap; background: #f8f9fa; border-top: 1px solid #e9ecef; }
.cookie-btn { padding: 10px 20px; border: 2px solid transparent; border-radius: 10px; cursor: pointer; font-size: .85rem; font-weight: 600; font-family: inherit; }
.cookie-btn.btn-primary-style { background: #f5d5e7; color: #111; }
.cookie-btn.btn-outline-style { background: transparent; border-color: #cbd5e0; color: #394455; }
.cookie-btn.btn-link-style { background: transparent; color: #475569; text-decoration: underline; }
.cookie-settings-trigger { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.cookie-settings-trigger:focus-visible, .cookie-overlay button:focus-visible, .cookie-overlay a:focus-visible, .cookie-overlay input:focus-visible { outline: 3px solid #667eea; outline-offset: 3px; }
.cookie-settings-trigger--guest { margin-top: 16px; }
@media (max-width: 768px) {
    .cookie-overlay { inset: auto 20px 20px 20px; width: auto; max-width: calc(100vw - 40px); max-height: calc(100dvh - 40px); }
    .cookie-overlay .cookie-card { max-width: 100%; }
    .cookie-footer { flex-direction: column; }
    .cookie-btn { width: 100%; text-align: center; }
    .cookie-header { padding: 16px 20px; }
    .cookie-header h4 { font-size: 1.1rem; }
    .cookie-body { padding: 20px; }
}
@media (prefers-color-scheme: dark) {
    .cookie-overlay { color: #f1f5f9; }
    .cookie-overlay .cookie-card { background: linear-gradient(135deg, #1a202c, #2d3748); }
    .cookie-body p { color: #cbd5e0; }
    .cookie-footer { background: #1a202c; border-top-color: #2d3748; }
    .cookie-btn.btn-outline-style { border-color: #64748b; color: #e2e8f0; }
    .cookie-btn.btn-link-style { color: #cbd5e0; }
    .cookie-link { color: #b6bcff; }
}
