/* Cookie consent banner + modal — vanilla, no JS framework dependency */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d3748;
    color: #fff;
    padding: 16px 20px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

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

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

.cookie-banner__text { flex: 1 1 360px; }

.cookie-banner__text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.cookie-banner__text p {
    margin: 0;
    color: #cbd5e0;
    font-size: 13px;
}

.cookie-banner__text a {
    color: #90cdf4;
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: 0;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: inline-block;
    line-height: 1.4;
}

.cookie-btn--primary { background: #4299e1; color: #fff; }
.cookie-btn--primary:hover { background: #3182ce; }
.cookie-btn--secondary { background: #4a5568; color: #fff; }
.cookie-btn--secondary:hover { background: #2d3748; border: 1px solid #4a5568; }
.cookie-btn--link {
    background: transparent;
    color: #cbd5e0;
    text-decoration: underline;
}

/* Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal[hidden] { display: none !important; }

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-modal__content {
    position: relative;
    background: #fff;
    color: #2d3748;
    padding: 24px 28px;
    border-radius: 8px;
    max-width: 560px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-modal h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.cookie-modal__intro {
    color: #4a5568;
    margin: 0 0 16px;
    font-size: 13px;
}

.cookie-category {
    border-top: 1px solid #e2e8f0;
    padding: 14px 0;
}

.cookie-category__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-category__label {
    font-weight: bold;
    font-size: 14px;
}

.cookie-category__desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #718096;
}

.cookie-category input[disabled] { opacity: 0.5; }

.cookie-modal__buttons {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

@media (max-width: 640px) {
    .cookie-banner__buttons {
        width: 100%;
    }
    .cookie-banner__buttons .cookie-btn {
        flex: 1 1 100px;
    }
}
