.cookie-preferences {
    position: fixed;
    z-index: 1050;
    inset-inline-start: 20px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: min(460px, calc(100% - 40px));
    max-height: calc(100dvh - 120px);
    overflow: auto;
    padding: 18px;
    background: #fff;
    color: #263c53;
    border: 1px solid #e2e8ef;
    border-radius: 18px;
    box-shadow: 0 6px 30px #27364a28;
    font-size: 14px;
    line-height: 1.45;
}
.cookie-preferences[hidden] { display: none; }
.cookie-preferences h2 { margin: 0 0 6px; color: inherit; font-size: 17px; line-height: 1.3; }
.cookie-preferences h2::after { content: none; }
.cookie-preferences p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.cookie-preferences a { color: var(--primary-on-light, #853755); text-decoration: underline; }
.cookie-preferences-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie-preferences-actions button {
    flex: 1 1 0;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--primary, #bf5432);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-on-light, #853755);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.cookie-preference-settings { margin-top: 14px; border-top: 1px solid #e2e8ef; }
.cookie-preference-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8ef;
    cursor: pointer;
}
.cookie-preference-category p { margin: 3px 0 0; color: #64748b; font-size: 13px; }
.cookie-preference-always-on { flex: 0 0 auto; color: #64748b; font-size: 12px; }
.cookie-preference-category input { width: 20px; height: 20px; accent-color: var(--primary, #bf5432); }
.cookie-preference-save {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid var(--primary, #bf5432);
    border-radius: 10px;
    background: var(--primary-on-light, #853755);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
@media (min-width: 993px) {
    body.cookie-preferences-open .site-contact-dock { visibility: hidden; }
}
@media (max-width: 992px) {
    .cookie-preferences {
        inset-inline-start: 50%;
        transform: translateX(-50%);
        width: min(560px, calc(100% - 20px));
        bottom: calc(10px + var(--site-mobile-nav-offset, 94px));
        padding: 14px;
    }
    body.cookie-preferences-open #goTop { visibility: hidden; }
}
