/* ── Depolie Cookie Consent ─────────────────────────────────────────────── */
#cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9100;
    background: #222222;
    color: #fff;
    padding: 16px 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#cc-banner.cc-visible { transform: translateY(0); }
#cc-banner.cc-hidden  { transform: translateY(100%); opacity: 0; pointer-events: none; }

.cc-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cc-text { flex: 1; min-width: 260px; }
.cc-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.cc-desc  { font-size: 12px; margin: 0; color: rgba(255,255,255,0.75); line-height: 1.6; }
.cc-link  { color: #f59d6a; text-decoration: underline; }
.cc-link:hover { color: #fff; }

.cc-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.cc-btn {
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
}
.cc-btn:hover { transform: translateY(-1px); }

.cc-btn-accept  { background: #ec4b46; color: #fff; border-color: #ec4b46; }
.cc-btn-accept:hover  { background: #d43b36; border-color: #d43b36; }

.cc-btn-decline { background: transparent; color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }
.cc-btn-decline:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

.cc-btn-manage  { background: transparent; color: #f59d6a; border-color: #f59d6a; }
.cc-btn-manage:hover { background: #f59d6a; color: #fff; }

/* ── Preferences modal ──────────────────────────────────────────────────── */
#cc-preferences {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: opacity 0.25s ease;
}
#cc-preferences.cc-hidden {
    opacity: 0;
    pointer-events: none;
}

.cc-pref-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

.cc-pref-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    margin: 16px;
}

.cc-pref-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.cc-pref-header h3 { font-size: 16px; font-weight: 700; color: #222; margin: 0; }
.cc-pref-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.cc-pref-close:hover { background: #f5f5f5; color: #222; }

.cc-pref-body { padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }

.cc-pref-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}
.cc-pref-info { flex: 1; }
.cc-pref-info strong { display: block; font-size: 13px; color: #222; margin-bottom: 3px; }
.cc-pref-info p { font-size: 11.5px; color: #777; margin: 0; line-height: 1.6; }

/* Toggle switch */
.cc-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.cc-toggle-disabled { cursor: not-allowed; opacity: 0.5; }
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.cc-slider {
    width: 42px;
    height: 24px;
    background: #ddd;
    border-radius: 24px;
    position: relative;
    transition: background 0.2s;
}
.cc-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.cc-toggle input:checked + .cc-slider { background: #ec4b46; }
.cc-toggle input:checked + .cc-slider::after { transform: translateX(18px); }

.cc-pref-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.cc-pref-footer .cc-btn-decline { color: #555; border-color: #ccc; }
.cc-pref-footer .cc-btn-decline:hover { color: #222; border-color: #888; }

@media (max-width: 600px) {
    #cc-banner { padding: 16px; }
    .cc-inner  { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cc-actions { width: 100%; justify-content: flex-end; }
}
