/* Cool Creative – Cookie Consent (self-hosted, DSGVO / TDDDG §25) */

.cc-root, .cc-root * { box-sizing: border-box; }

.cc-root {
    --cc-bg: #16181c;
    --cc-surface: #1f2228;
    --cc-border: #33373f;
    --cc-text: #e9e9e9;
    --cc-muted: #9aa0a8;
    --cc-primary: #c9f31d;
    --cc-primary-text: #101300;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Overlay for the settings dialog */
.cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px);
    z-index: 2147483646;
    display: none;
}
.cc-overlay.cc-open { display: block; }

/* Bottom banner */
.cc-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 880px;
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    padding: 24px 26px;
    z-index: 2147483647;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55);
    display: none;
}
.cc-banner.cc-open { display: block; }

.cc-title {
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: .2px;
}
.cc-text {
    color: var(--cc-text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
}
.cc-text a { color: var(--cc-primary); text-decoration: underline; }

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cc-btn {
    appearance: none;
    border: 1px solid var(--cc-border);
    background: transparent;
    color: var(--cc-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .05s;
    line-height: 1;
}
.cc-btn:hover { border-color: #5a6069; }
.cc-btn:active { transform: translateY(1px); }
.cc-btn:focus-visible { outline: 2px solid var(--cc-primary); outline-offset: 2px; }

.cc-btn--primary {
    background: var(--cc-primary);
    border-color: var(--cc-primary);
    color: var(--cc-primary-text);
    font-weight: 600;
}
.cc-btn--primary:hover { background: #d6ff2e; border-color: #d6ff2e; }

.cc-btn--ghost { border-color: transparent; color: var(--cc-muted); padding-left: 10px; padding-right: 10px; }
.cc-btn--ghost:hover { color: #fff; border-color: transparent; }

.cc-actions .cc-spacer { flex: 1 1 auto; }

/* Settings dialog */
.cc-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 560px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    padding: 28px;
    z-index: 2147483647;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .6);
    display: none;
}
.cc-dialog.cc-open { display: block; }

.cc-dialog .cc-title { font-size: 21px; margin-bottom: 6px; }
.cc-dialog__intro { color: var(--cc-muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 20px; }

.cc-group {
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: var(--cc-surface);
}
.cc-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.cc-group__name { color: #fff; font-size: 15px; font-weight: 600; }
.cc-group__desc { color: var(--cc-muted); font-size: 13px; line-height: 1.6; margin: 8px 0 0; }

/* Toggle */
.cc-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch .cc-slider {
    position: absolute; inset: 0;
    background: #3a3f48;
    border-radius: 999px;
    transition: background-color .2s;
    pointer-events: none;
}
.cc-switch .cc-slider::before {
    content: "";
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.cc-switch input:checked + .cc-slider { background: var(--cc-primary); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { opacity: .55; }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--cc-primary); outline-offset: 2px; }

.cc-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.cc-dialog__actions .cc-btn { flex: 1 1 auto; text-align: center; }

.cc-links { margin-top: 16px; font-size: 12.5px; color: var(--cc-muted); }
.cc-links a { color: var(--cc-muted); text-decoration: underline; margin-right: 14px; }
.cc-links a:hover { color: #fff; }

@media (max-width: 560px) {
    .cc-banner { padding: 20px; bottom: 12px; width: calc(100% - 20px); }
    .cc-actions { flex-direction: column; align-items: stretch; }
    .cc-actions .cc-spacer { display: none; }
    .cc-btn { width: 100%; text-align: center; }
    .cc-dialog__actions { flex-direction: column; }
}
