/* GDPR / UU PDP cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    background: #ffffff;
    color: #1f2933;
    border-top: 1px solid #d9dee3;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-banner[hidden] {
    display: none;
}

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

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

.cookie-consent-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cookie-consent-text > p {
    margin: 0 0 12px;
}

.cookie-consent-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.cookie-consent-category {
    flex: 1 1 220px;
    min-width: 200px;
}

.cookie-consent-category p {
    margin: 4px 0 0;
    color: #52606d;
    font-size: 13px;
}

.cookie-consent-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-toggle input[disabled] {
    cursor: not-allowed;
}

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

.cookie-consent-btn {
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-consent-btn-primary {
    background: #0d6efd;
    color: #ffffff;
}

.cookie-consent-btn-primary:hover {
    background: #0b5ed7;
}

.cookie-consent-btn-outline {
    background: transparent;
    color: #0d6efd;
    border-color: #0d6efd;
}

.cookie-consent-btn-outline:hover {
    background: rgba(13, 110, 253, 0.08);
}

.cookie-consent-btn-secondary {
    background: #f1f3f5;
    color: #1f2933;
    border-color: #d9dee3;
}

.cookie-consent-btn-secondary:hover {
    background: #e7eaed;
}

.cookie-consent-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 19999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d9dee3;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    font-size: 20px;
    cursor: pointer;
}

.cookie-consent-reopen[hidden] {
    display: none;
}

@media (max-width: 576px) {
    .cookie-consent-inner {
        padding: 16px;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent-actions .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: #1c2128;
        color: #e6edf3;
        border-top-color: #30363d;
    }

    .cookie-consent-category p {
        color: #9da7b1;
    }

    .cookie-consent-btn-secondary {
        background: #2d333b;
        color: #e6edf3;
        border-color: #444c56;
    }

    .cookie-consent-btn-secondary:hover {
        background: #363d46;
    }

    .cookie-consent-reopen {
        background: #1c2128;
        border-color: #444c56;
    }
}
