/* Cookie modal overlay */
#cookieConsentOverlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#cookieConsentOverlay[hidden],
#cookieSettingsBtn[hidden] { display: none !important; }

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

#cookieConsentBox .cc-header {
    background: #24304a;
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
#cookieConsentBox .cc-header i {
    font-size: 24px;
    opacity: .9;
}
#cookieConsentBox .cc-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

#cookieConsentBox .cc-body {
    padding: 20px 24px;
}
#cookieConsentBox .cc-desc {
    font-size: 14px;
    color: #444;
    margin: 0 0 18px;
    line-height: 1.55;
}

/* Category rows */
.cc-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 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: 14px;
    font-weight: 600;
    color: #222;
}
.cc-cat-info small {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    margin: 0;
}
.cc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.cc-toggle-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 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: #24304a; }
.cc-toggle input:checked + .cc-toggle-slider::before { transform: translateX(20px); }
.cc-toggle input:disabled + .cc-toggle-slider { opacity: .55; cursor: default; }
.cc-toggle input:focus-visible + .cc-toggle-slider { outline: 2px solid #24304a; outline-offset: 2px; }

/* Buttons */
#cookieConsentBox .cc-footer {
    padding: 12px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#cookieConsentBox .cc-footer .cc-btn-row {
    display: flex;
    gap: 8px;
}
.cc-btn {
    flex: 1;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}
.cc-btn-accept {
    background: #24304a;
    color: #fff;
    border-color: #24304a;
}
.cc-btn-accept:hover { background: #1a2336; border-color: #1a2336; }
.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: #24304a;
    border-color: #24304a;
    width: 100%;
}
.cc-btn-save:hover { background: #f2f4f8; }

.cc-privacy-link {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 4px 0 0;
}
.cc-privacy-link a { color: #24304a; text-decoration: underline; }

/* Floating settings button */
#cookieSettingsBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #24304a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    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); }

@media (max-width: 420px) {
    #cookieConsentBox .cc-footer .cc-btn-row { flex-direction: column; }
}
