/* Cookie modal overlay */
#cookieConsentOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#cookieConsentOverlay.d-none { display: none !important; }

#cookieConsentBox {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
}

#cookieConsentBox .cc-header {
    background: var(--spax-dark, #0b3d0b);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
#cookieConsentBox .cc-header i {
    font-size: 1.5rem;
    opacity: .9;
}
#cookieConsentBox .cc-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

#cookieConsentBox .cc-body {
    padding: 1.25rem 1.5rem;
}
#cookieConsentBox .cc-desc {
    font-size: .88rem;
    color: #444;
    margin-bottom: 1.1rem;
    line-height: 1.55;
}

/* Category rows */
.cc-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-top: 1px solid #eee;
}
.cc-category:last-child { border-bottom: 1px solid #eee; }
.cc-cat-info { flex: 1; }
.cc-cat-info strong {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #222;
}
.cc-cat-info small {
    font-size: .78rem;
    color: #666;
    line-height: 1.4;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}
.cc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.cc-toggle input:checked + .cc-toggle-slider { background: var(--spax-green, #106a12); }
.cc-toggle input:checked + .cc-toggle-slider::before { transform: translateX(20px); }
.cc-toggle input:disabled + .cc-toggle-slider { opacity: .55; cursor: default; }

/* Buttons */
#cookieConsentBox .cc-footer {
    padding: .75rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
#cookieConsentBox .cc-footer .cc-btn-row {
    display: flex;
    gap: .5rem;
}
.cc-btn {
    flex: 1;
    padding: .55rem .75rem;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}
.cc-btn-accept {
    background: var(--spax-green, #106a12);
    color: #fff;
    border-color: var(--spax-green, #106a12);
}
.cc-btn-accept:hover { background: var(--spax-dark, #0b3d0b); border-color: var(--spax-dark, #0b3d0b); }
.cc-btn-necessary {
    background: #fff;
    color: #333;
    border-color: #ccc;
}
.cc-btn-necessary:hover { background: #f4f4f4; border-color: #aaa; }
.cc-btn-save {
    background: #fff;
    color: var(--spax-green, #106a12);
    border-color: var(--spax-green, #106a12);
    width: 100%;
}
.cc-btn-save:hover { background: var(--spax-bg, #f4f7f4); }

.cc-privacy-link {
    font-size: .78rem;
    color: #888;
    text-align: center;
    margin-top: .25rem;
}
.cc-privacy-link a { color: var(--spax-green, #106a12); }

/* Floating settings button */
#cookieSettingsBtn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 9000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--spax-dark, #0b3d0b);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
    opacity: .75;
    transition: opacity .2s, transform .2s;
}
#cookieSettingsBtn:hover { opacity: 1; transform: scale(1.08); }
