/* Own cookie consent (replaces Cookiebot). Visual: white rounded card, grey text, blue links, pill buttons. */
#cc-banner[hidden], #cc-panel[hidden], #cc-overlay[hidden] { display: none !important; }

.cc-root, .cc-root * { box-sizing: border-box; }
.cc-root { font-family: inherit; color: #5b6770; font-size: 14px; line-height: 1.5; }
.cc-root a { color: #0b5cad; text-decoration: underline; }
.cc-root a:hover { color: #08407a; }
.cc-root :focus-visible { outline: 3px solid #0b5cad; outline-offset: 2px; }

.cc-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #222; }
.cc-text { margin: 0 0 12px; }

.cc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 44px; padding: 10px 24px;
    background: #fff; color: #222; border: 1px solid #c9d0d6; border-radius: 999px;
    font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.cc-btn:hover { background: #f4f7fa; border-color: #9aa5ae; }

/* Banner */
#cc-banner {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 2147483000; width: calc(100% - 32px); max-width: 1040px;
    background: #fff; border-radius: 16px; padding: 20px 24px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .18);
}
.cc-banner-body { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; }
.cc-banner-copy { flex: 1 1 auto; min-width: 0; }
.cc-banner-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.cc-link-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #0b5cad; text-decoration: underline; cursor: pointer; min-height: 24px; }
#cc-banner button:hover { background: none; }

/* Panel */
#cc-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgba(0, 0, 0, .45); }
#cc-panel {
    position: fixed; z-index: 2147483002; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: calc(100% - 32px); max-width: 680px; max-height: calc(100vh - 32px); overflow: auto;
    background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.cc-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cc-close { background: none; border: 0; font-size: 28px; line-height: 1; width: 44px; height: 44px; cursor: pointer; color: #5b6770; border-radius: 50%; }
.cc-close:hover { background: #f0f3f6; }
#cc-panel button:hover { background: none; }

.cc-cat { background: #e8f1fb; border-radius: 12px; padding: 4px 16px; margin: 0 0 8px; }
.cc-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.cc-cat-name { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: #222; font-size: 15px; }
.cc-expand { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #222; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-align: left; }
.cc-expand::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-top: -4px; }
.cc-expand[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.cc-cat-desc { margin: 0; padding: 0 0 14px; }
.cc-always { font-weight: 600; color: #1d6b3a; white-space: nowrap; }

/* Switch */
.cc-switch { position: relative; display: inline-block; width: 52px; height: 32px; flex: 0 0 auto; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch .cc-slider { position: absolute; inset: 0; background: #8a949c; border-radius: 999px; transition: background .15s; }
.cc-switch .cc-slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: transform .15s; }
.cc-switch input:checked + .cc-slider { background: #0b5cad; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { outline: 3px solid #0b5cad; outline-offset: 2px; }

.cc-panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cc-panel-actions { display: flex; gap: 12px; flex-wrap: wrap; }

html.cc-lock { overflow: hidden; }

.cc-footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 720px) {
    #cc-banner { bottom: 8px; width: calc(100% - 16px); padding: 16px; max-height: calc(100vh - 16px); overflow: auto; }
    .cc-banner-body { flex-direction: column; align-items: stretch; gap: 12px; }
    .cc-banner-actions { flex-direction: column; }
    .cc-btn { width: 100%; }
    .cc-panel-foot, .cc-panel-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-switch .cc-slider, .cc-switch .cc-slider::before, .cc-expand::after { transition: none; }
}
