/**
 * Cookie Consent Styles
 */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent-bottom {
    bottom: 0;
}

.cookie-consent-top {
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Container */
.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Content */
.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cookie-consent-close:hover {
    color: #333;
}

/* Body */
.cookie-consent-body {
    flex: 1;
}

.cookie-consent-description {
    margin: 0 0 15px;
    color: #666;
    line-height: 1.6;
}

/* Categories */
.cookie-consent-categories {
    display: grid;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cookie-category {
    display: grid;
    gap: 5px;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

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

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

.cookie-category-name {
    color: #333;
}

.cookie-category-required {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.cookie-category-description {
    margin: 0;
    padding-left: 28px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Footer */
.cookie-consent-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.cookie-consent-button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-consent-button:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.cookie-consent-primary {
    background: #F29100;
    color: #fff;
    border-color: #F29100;
}

.cookie-consent-primary:hover {
    background: #d97f00;
    border-color: #d97f00;
}

/* Links */
.cookie-consent-links {
    text-align: center;
    font-size: 14px;
}

.cookie-consent-links a {
    color: #666;
    text-decoration: underline;
}

.cookie-consent-links a:hover {
    color: #333;
}

/* Responsive */
@media (min-width: 768px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .cookie-consent-header {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .cookie-consent-title {
        position: static;
    }
    
    .cookie-consent-body {
        flex: 1;
        max-width: 600px;
    }
    
    .cookie-consent-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }
    
    .cookie-consent-actions {
        order: 2;
    }
    
    .cookie-consent-links {
        order: 1;
    }
}

@media (max-width: 480px) {
    .cookie-consent-container {
        padding: 15px;
    }
    
    .cookie-consent-title {
        font-size: 18px;
    }
    
    .cookie-consent-description {
        font-size: 14px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-button {
        width: 100%;
        text-align: center;
    }
}

/* Body class when banner is open */
body.cookie-consent-open {
    padding-bottom: 200px; /* Adjust based on banner height */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .cookie-consent-title,
    .cookie-category-name {
        color: #e0e0e0;
    }
    
    .cookie-consent-description,
    .cookie-category-description {
        color: #b0b0b0;
    }
    
    .cookie-consent-close {
        color: #b0b0b0;
    }
    
    .cookie-consent-close:hover {
        color: #e0e0e0;
    }
    
    .cookie-consent-button {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .cookie-consent-button:hover {
        background: #333;
        border-color: #555;
    }
    
    .cookie-consent-links a {
        color: #b0b0b0;
    }
    
    .cookie-consent-links a:hover {
        color: #e0e0e0;
    }
    
    .cookie-consent-categories {
        border-top-color: #333;
    }
}

/* High specificity for meldingen integration */
body[data-cookie-functional="false"] .uit-holland-melding-modal {
    display: none !important;
}