.cookie-consent[hidden], .cookie-consent__settings[hidden] { display: none !important; }
.cookie-consent {
    position: fixed; z-index: 12000; inset: auto auto max(16px, env(safe-area-inset-bottom)) 16px;
    display: flex; justify-content: flex-start; pointer-events: none;
    color: var(--theme-primary-hover, #262b27); font: inherit;
}
.cookie-consent__panel {
    display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 11px;
    width: min(390px, calc(100vw - 32px)); max-height: min(72vh, 500px); overflow: auto;
    padding: 15px 16px; border: 1px solid var(--theme-soft-2, #ebe8df); border-radius: 14px;
    background: var(--theme-background, #fff); box-shadow: 0 8px 26px rgba(38, 43, 39, .14);
    pointer-events: auto;
}
.cookie-consent__mark {
    display: grid; place-items: center; width: 32px; height: 32px; margin-top: 2px;
    border-radius: 9px; background: var(--theme-soft, #f5f3ee); color: var(--theme-primary, #03ac0e);
}
.cookie-consent__mark .material-icons { font-size: 18px; }
.cookie-consent__eyebrow { margin: 0 0 2px; color: var(--theme-primary, #028a0b); font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cookie-consent h2 { margin: 0 0 4px; color: var(--theme-primary-hover, #262b27); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.cookie-consent__copy > p:last-child { max-width: 300px; margin: 0; color: var(--theme-text-secondary, #6b716d); font-size: .64rem; line-height: 1.4; }
.cookie-consent a { color: var(--theme-primary-hover, #027b0a); font-weight: 600; text-underline-offset: 3px; }
.cookie-consent__actions { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 5px 7px; margin-top: 9px; }
.cookie-consent__button {
    min-height: 32px; padding: 5px 9px; border: 1px solid var(--theme-soft-2, #dedbd3); border-radius: 7px;
    background: var(--theme-background, #fff); color: var(--theme-primary-hover, #262b27); font: inherit;
    font-size: .61rem; font-weight: 650; line-height: 1.2; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.cookie-consent__button:hover { background: var(--theme-soft, #f5f3ee); }
.cookie-consent__button:active { transform: translateY(1px); }
.cookie-consent__button--primary { border-color: var(--theme-primary-hover, #028a0b); background: var(--theme-primary-hover, #028a0b); color: #fff; }
.cookie-consent__button--primary:hover { filter: brightness(.94); }
.cookie-consent__settings { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--theme-soft-2, #ebe8df); }
.cookie-consent__settings-link { min-height: 32px; padding: 4px 5px; border: 0; border-radius: 6px; background: none; color: var(--theme-text-secondary, #6b716d); font: inherit; font-size: .61rem; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; }
.cookie-consent__settings-link:hover { background: var(--theme-soft, #f5f3ee); color: var(--theme-primary-hover, #262b27); }
.cookie-consent__always-on, .cookie-consent__toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.cookie-consent__always-on > span:first-child, .cookie-consent__toggle > span { display: grid; gap: 2px; min-width: 0; }
.cookie-consent__always-on strong, .cookie-consent__toggle strong { color: var(--theme-primary-hover, #262b27); font-size: .68rem; font-weight: 650; line-height: 1.25; }
.cookie-consent__always-on small, .cookie-consent__toggle small { color: var(--theme-text-secondary, #6b716d); font-size: .61rem; line-height: 1.3; }
.cookie-consent__status { color: var(--theme-text-secondary, #6b716d); font-size: .6rem; white-space: nowrap; }
.cookie-consent__toggle { cursor: pointer; }
.cookie-consent__toggle input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0 2px 0 8px; accent-color: var(--theme-primary, #03ac0e); }
.cookie-consent__settings > button { justify-self: end; min-height: 30px; padding: 5px 10px; font-size: .61rem; }
.cookie-consent__button:focus-visible, .cookie-consent a:focus-visible, .cookie-consent__toggle input:focus-visible, .cookie-preferences-link:focus-visible { outline: 3px solid rgba(var(--theme-primary-rgb, 3, 172, 14), .3); outline-offset: 3px; }
.cookie-preferences-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 680px) {
    .cookie-consent { inset-inline: 10px; bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px)); }
    .cookie-consent__panel { width: min(370px, calc(100vw - 20px)); max-height: min(62vh, 460px); padding: 14px; }
    .cookie-consent__button { min-height: 34px; padding-inline: 8px; font-size: .6rem; }
    .cookie-consent__settings-link { min-height: 34px; font-size: .6rem; }
    .cookie-consent__settings { gap: 8px; }
    .cookie-consent__settings > button { width: auto; min-width: 82px; }
}
@media (max-width: 450px) {
    /* Floating contact buttons are hidden at this breakpoint. */
    .cookie-consent { bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px)); }
}
@media (prefers-reduced-motion: reduce) { .cookie-consent__button { transition: none; } }
