/* Cookie Consent GDPR — banner.css */

#ccg-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.35s ease;
}

/* Position */
#ccg-banner.ccg-pos-bottom { bottom: 0; }
#ccg-banner.ccg-pos-top    { top: 0; }

/* Bar style */
#ccg-banner.ccg-style-bar .ccg-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 24px;
}

/* Box style */
#ccg-banner.ccg-style-box {
    left: auto;
    right: 24px;
    bottom: 24px !important;
    top: auto !important;
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
#ccg-banner.ccg-style-box .ccg-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

/* Text */
.ccg-text { flex: 1; min-width: 220px; }
.ccg-text a { opacity: 0.8; text-decoration: underline; }
.ccg-text a:hover { opacity: 1; }

/* Buttons */
.ccg-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.ccg-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
    line-height: 1.4;
    background: none;
    font-family: inherit;
}
.ccg-btn:hover  { opacity: 0.82; }
.ccg-btn:active { transform: scale(0.97); }

/* Accept: inverted (bg = text color, text = bg color) — set by JS style tag */
.ccg-btn-accept { }

/* Decline: outline */
.ccg-btn-decline { background: transparent !important; }

/* Manage: subtle text link */
.ccg-btn-manage {
    background: transparent !important;
    border-color: transparent !important;
    font-weight: 400;
    text-decoration: underline;
    padding-left: 4px;
    padding-right: 4px;
}

/* Hidden / animation */
#ccg-banner.ccg-hidden {
    pointer-events: none;
    opacity: 0;
}
#ccg-banner.ccg-pos-bottom.ccg-hidden { transform: translateY(100%); }
#ccg-banner.ccg-pos-top.ccg-hidden    { transform: translateY(-100%); }
#ccg-banner.ccg-style-box.ccg-hidden  { transform: translateY(120%); }

/* ── Modal ───────────────────────────────────────────────────────── */

#ccg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
}
#ccg-modal-overlay.ccg-open { display: flex; }

#ccg-modal {
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 28px;
    max-width: 460px;
    width: calc(100% - 40px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#ccg-modal h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
#ccg-modal p  { margin: 0 0 20px; font-size: 13px; color: #555; line-height: 1.6; }

.ccg-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ccg-cat-item:last-child { border-bottom: none; }
.ccg-cat-label { font-size: 14px; font-weight: 500; }
.ccg-cat-tag   { font-size: 11px; color: #888; margin-top: 2px; }

/* Toggle */
.ccg-toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.ccg-toggle input { opacity: 0; width: 0; height: 0; }
.ccg-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s;
}
.ccg-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.ccg-toggle input:checked + .ccg-toggle-slider::before { transform: translateX(18px); }
.ccg-toggle input:disabled + .ccg-toggle-slider { background: #888; cursor: default; }

.ccg-modal-buttons { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.ccg-modal-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    min-width: 120px;
    font-family: inherit;
}
.ccg-modal-btn:hover { opacity: 0.85; }
/* ccg-modal-btn-save colors set by JS style tag */
.ccg-modal-btn-close { background: #eee; color: #333; }

/* Responsive */
@media (max-width: 600px) {
    #ccg-banner.ccg-style-bar .ccg-inner { flex-direction: column; align-items: flex-start; }
    #ccg-banner.ccg-style-box { left: 16px; right: 16px; max-width: none; }
}
