/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999 !important; /* Higher than any dashboard alert wrapper */
    padding: 8px 16px;
    max-height: auto;
    overflow-y: visible;
}

/* Ensure cookie banner is not blocked by dashboard left menu when pined */
.wrapper.pined ~ .cookie-consent-banner,
.dashboard_container ~ .cookie-consent-banner,
.dashboard_container .cookie-consent-banner {
    z-index: 99999 !important;
}

/* Account for left menu when wrapper is pined */
body:has(.wrapper.pined) .cookie-consent-banner {
    left: 0;
    right: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-text h3 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cookie-consent-text p {
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.3;
    color: #666;
}

.cookie-consent-text a {
    color: #2a94f4;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #1a7cd4;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.cookie-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #53EB12;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #45d00f;
}

.cookie-btn-necessary {
    background: #6c757d;
    color: #fff;
}

.cookie-btn-necessary:hover {
    background: #5a6268;
}

.cookie-btn-customize {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-btn-customize:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.cookie-btn-cancel {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn-cancel:hover {
    background: #f8f9fa;
}

/* Customize Panel */
.cookie-customize-panel {
    max-width: 1200px;
    margin: 8px auto 0;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.cookie-customize-panel h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cookie-category {
    margin-bottom: 6px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cookie-category label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-category strong {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    font-size: 13px;
    color: #333;
}

.cookie-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    margin-left: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-consent-text {
        min-width: 100%;
    }
}

