/* ============================================================
   Cookie Consent — zenterovia.eu (matches LUCERNYS palette)
   ============================================================ */
.consent-backdrop {
    position: fixed; inset: 0;
    background: rgba(14,17,38,.45);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
}
.consent-backdrop.active { opacity: 1; pointer-events: auto; }

.consent-banner {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    width: 94%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(42,49,128,.18);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.consent-banner.active { transform: translateX(-50%) translateY(0); }

.consent-inner { padding: 28px 28px 24px; }

.consent-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.consent-header svg {
    width: 28px; height: 28px;
    fill: #2a3180;
    flex-shrink: 0;
}
.consent-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a3180;
    margin: 0;
}

.consent-text {
    font-size: .875rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}
.consent-text a { color: #1f71b8; text-decoration: underline; }

/* BUTTONS */
.consent-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.consent-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    flex: 1; min-width: 130px;
    text-align: center;
}
.consent-btn-accept {
    background: #1f71b8;
    color: #fff;
}
.consent-btn-accept:hover { background: #2a3180; }

.consent-btn-reject {
    background: #f0f2f7;
    color: #2c2c3a;
}
.consent-btn-reject:hover { background: #e2e6ef; }

.consent-btn-details {
    background: transparent;
    color: #1f71b8;
    border: 1.5px solid #1f71b8;
}
.consent-btn-details:hover { background: #dee9fc; }

.consent-btn-save {
    background: #2a3180;
    color: #fff;
}
.consent-btn-save:hover { background: #1e2460; }

/* DETAILS */
.consent-details {
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
    padding: 0;
}
.consent-details.open {
    max-height: 500px;
    padding-top: 20px;
}
.consent-categories { margin-bottom: 16px; }
.consent-cat {
    border: 1px solid #e2e6ef;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
}
.consent-cat.always { background: #f5f7fb; }
.consent-cat-header {
    display: flex; justify-content: space-between; align-items: center;
}
.consent-cat-header span { font-weight: 600; font-size: .9rem; color: #2c2c3a; }
.consent-cat p { font-size: .8rem; color: #6b7280; margin-top: 6px; line-height: 1.5; }

/* TOGGLE */
.consent-toggle { position: relative; width: 44px; height: 24px; display: inline-block; }
.consent-toggle input { opacity: 0; width: 0; height: 0; }
.consent-toggle .slider {
    position: absolute; inset: 0;
    background: #ccc; border-radius: 24px;
    cursor: pointer;
    transition: .3s;
}
.consent-toggle .slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%;
    transition: .3s;
}
.consent-toggle input:checked + .slider { background: #1f71b8; }
.consent-toggle input:checked + .slider::before { transform: translateX(20px); }
.consent-toggle input:disabled + .slider { background: #2a3180; opacity: .7; cursor: default; }

/* REOPEN BUTTON */
.consent-reopen {
    position: fixed;
    bottom: 20px; left: 20px;
    z-index: 9997;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #2a3180;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(42,49,128,.25);
    transition: transform .3s ease, opacity .3s ease;
}
.consent-reopen:hover { transform: scale(1.1); }
.consent-reopen svg { width: 22px; height: 22px; fill: #fff; }
.consent-reopen.hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

@media (max-width: 480px) {
    .consent-banner { bottom: 0; border-radius: 16px 16px 0 0; width: 100%; max-width: 100%; }
    .consent-btn { min-width: 100px; padding: 10px 12px; font-size: .8rem; }
}
