.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    max-height: 100dvh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
    color: #0f172a;
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .consent-banner {
        background: rgba(255, 255, 255, 0.97);
    }
}

.consent-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 40px;
}
.consent-row {
    display: flex;
    align-items: center;
    gap: 40px;
}
.consent-copy { flex: 1; min-width: 0; }
.consent-title {
    font-family: 'Cormorant Garamond', 'DM Serif Display', Georgia, serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    color: inherit;
    margin: 0 0 6px;
}
.consent-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(15, 23, 42, 0.72);
    margin: 0;
}
.consent-text a {
    color: #651fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.consent-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #0f172a;
    border: 1px solid #0f172a;
    border-radius: 999px;
    padding: 14px 30px;
    min-width: 148px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.consent-btn:hover {
    transform: translateY(-1px);
    background: #1e293b;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
}
.consent-btn:focus-visible,
.consent-link:focus-visible {
    outline: 3px solid #7c4dff;
    outline-offset: 2px;
}
.consent-link {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.68);
    background: none;
    border: none;
    padding: 14px 8px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    border-radius: 4px;
}
.consent-link:hover { color: #0f172a; }
.consent-prefs { display: none; }
.consent-banner.is-prefs .consent-prefs { display: block; }
.consent-banner.is-prefs .consent-row { display: none; }
.consent-prefs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.consent-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.consent-category {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #f8fafc;
}
.consent-category-body { flex: 1; }
.consent-category-name {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.consent-category-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.66);
    margin: 0;
}
.consent-toggle {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
}
.consent-toggle input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.consent-track {
    display: block;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.22);
    transition: background 0.2s ease;
    pointer-events: none;
}
.consent-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transition: transform 0.2s ease;
}
.consent-toggle input:checked + .consent-track { background: #7c4dff; }
.consent-toggle input:checked + .consent-track::after { transform: translateX(20px); }
.consent-toggle input:disabled { cursor: not-allowed; }
.consent-toggle input:disabled + .consent-track { background: rgba(15, 23, 42, 0.32); }
.consent-toggle input:focus-visible + .consent-track {
    outline: 3px solid #7c4dff;
    outline-offset: 2px;
}
.consent-prefs-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .consent-inner { padding: 20px 24px; }
    .consent-row { flex-direction: column; align-items: stretch; gap: 18px; }
    .consent-actions { flex-direction: column-reverse; align-items: stretch; }
    .consent-btn { width: 100%; }
    .consent-categories { grid-template-columns: 1fr; }
    .consent-prefs-actions { flex-direction: column-reverse; align-items: stretch; }
    .consent-prefs-actions .consent-btn { width: 100%; }
}
