/* ===== Cookie Consent Banner ===== */
#cookie-consent-banner {
    position: fixed;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 780px;
    z-index: 99999;
    transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}
#cookie-consent-banner.cc-visible {
    bottom: 1.25rem;
    opacity: 1;
    pointer-events: all;
}
#cookie-consent-banner.cc-hidden {
    bottom: -20px;
    opacity: 0;
    pointer-events: none;
}
.cc-inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.02);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.cc-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.cc-text {
    flex: 1;
}
.cc-text strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.cc-text p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}
.cc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 140px;
    align-self: center;
}
.cc-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.cc-btn.cc-accept {
    background: #10b981;
    color: white;
}
.cc-btn.cc-accept:hover {
    background: #059669;
    transform: translateY(-1px);
}
.cc-btn.cc-accept-selected {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.cc-btn.cc-accept-selected:hover {
    background: #e2e8f0;
}
.cc-btn.cc-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
}
.cc-btn.cc-reject:hover {
    color: #64748b;
}
.cc-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.5rem;
    margin-top: -1px;
}
.cc-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.cc-detail-row:last-of-type {
    border-bottom: none;
}
.cc-detail-info strong {
    font-size: 0.85rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cc-detail-info strong i {
    color: #10b981;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}
.cc-detail-info p {
    margin: 0.15rem 0 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}
.cc-detail-save {
    padding-top: 0.75rem;
    text-align: right;
}
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    cursor: pointer;
}
.cc-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background 0.3s;
}
.cc-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cc-toggle input:checked + .cc-slider {
    background: #10b981;
}
.cc-toggle input:checked + .cc-slider:before {
    transform: translateX(18px);
}
@media (max-width: 640px) {
    #cookie-consent-banner {
        width: calc(100% - 1rem);
        max-width: 100%;
        bottom: -20px;
    }
    #cookie-consent-banner.cc-visible {
        bottom: 0.5rem;
    }
    .cc-inner {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }
    .cc-actions {
        flex-direction: row;
        min-width: unset;
        width: 100%;
        justify-content: stretch;
    }
    .cc-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
    }
    .cc-btn.cc-reject {
        order: 3;
    }
}