.cookie-panel[hidden], .cookie-settings-bar [hidden], [data-consent-placeholder][hidden], iframe[data-consent-service][hidden], [data-open-cookie-settings][hidden] {
    display: none !important;
}

.cookie-settings-bar {
    text-align: center;
    background: #f3f7fa;
}

.cookie-settings-bar button {
    margin: .6rem;
    color: #214565;
    text-decoration: underline;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.cookie-panel {
    box-sizing: border-box;
    position: fixed;
    z-index: 1100;
    bottom: max(1rem, env(safe-area-inset-bottom));
    inset-inline: 1rem;
    width: auto;
    max-width: 39rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin-inline: auto;
    overflow: auto;
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid #cedde9;
    border-top: 4px solid #1d70b7;
    border-radius: .75rem;
    background: #fff;
    color: #182d41;
    box-shadow: 0 12px 48px #152c4550;
    font: 1rem/1.5 system-ui, sans-serif;
}

.cookie-panel h2 { margin: 0 0 .55rem; font-size: 1.25rem; color: inherit; }
.cookie-panel p { margin: .5rem 0 .85rem; }
.cookie-panel fieldset { border: 0; padding: 0; margin: 0; }
.cookie-panel legend { font-weight: 700; margin-bottom: .25rem; }
.cookie-panel label { display: flex; align-items: baseline; gap: .55rem; padding: .25rem 0; }
.cookie-panel input { accent-color: #1d70b7; }
.cookie-panel .cookie-help { font-size: .875rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions button, [data-open-cookie-settings] {
    flex: 1 1 auto;
    min-height: 44px;
    padding: .5rem .7rem;
    color: #173e61;
    background: #f0f6fb;
    border: 1px solid #8eaec8;
    border-radius: .4rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.cookie-actions button:hover, [data-open-cookie-settings]:hover { background: #dfedf8; }
.cookie-panel :focus-visible, .cookie-settings-bar :focus-visible, [data-open-cookie-settings]:focus-visible { outline: 2px solid #1d70b7; outline-offset: 2px; }
[data-consent-placeholder] {
    padding: 1rem;
    margin-block: .65rem;
    border: 1px solid #cedde9;
    border-radius: .5rem;
    background: #f3f7fa;
    color: #182d41;
}
[data-consent-placeholder] a { text-decoration: underline; }
