

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #1a1a2e;
    border-top: 1px solid #2d2d44;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cookie-banner-inner {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}

.cookie-banner-content {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cookie-banner-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    white-space: nowrap;
}

.cookie-customize-panel {
    position: absolute;
    top: -400px;
    right: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    min-width: 320px;
    max-width: 500px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.cookie-customize-panel.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.customize-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.cookie-category {
    margin-bottom: 1rem;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.cookie-category label:hover {
    background-color: #f3f4f6;
}

.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #6D28D9;
    flex-shrink: 0;
}

.cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.checkbox-label {
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.5;
}

.customize-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.customize-actions button {
    white-space: nowrap;
}

.cookie-btn:focus-visible,
.customize-actions button:focus-visible,
.cookie-category input:focus-visible {
    outline: 2px solid #6D28D9;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .link-secondary {
        width: 100%;
        text-align: center;
    }
    
    .cookie-customize-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
    
    .cookie-customize-panel {
        transition: none;
    }
    
    .cookie-category label {
        transition: none;
    }
}

.cookie-customize-panel { color: #111111 !important; }
.cookie-category label:hover { color: #1a1a2e !important; }


/* wh-contrast-fix */
/* Auto-injected: text color did not meet 4.5:1 against declared background. */
.cookie-customize-panel { color: #111111 !important; }
.cookie-category label:hover { color: #111111 !important; }
