﻿/* Cookie consent banner + policy modal */
.qa-cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 4000;
    background-color: #ffffff;
    border: 1px solid rgba(43, 45, 66, 0.2);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

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

.qa-cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.qa-cookie-banner-text {
    margin: 0;
    color: #2b2d42;
}

.qa-cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qa-cookie-link {
    border: none;
    background: none;
    color: #dd7547;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.qa-cookie-accept {
    background-color: #f9925a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.qa-cookie-accept:hover {
    background-color: #dd7547;
}

.qa-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 5000;
}

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

.qa-cookie-dialog {
    width: min(900px, 100%);
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.qa-cookie-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8e8e8;
}

.qa-cookie-dialog-header h2 {
    margin: 0;
    color: #2b2d42;
    font-size: 1.35rem;
}

.qa-cookie-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #2b2d42;
    cursor: pointer;
}

.qa-cookie-dialog-content {
    padding: 1.25rem;
    overflow: auto;
    color: #2b2d42;
}

.qa-cookie-dialog-content h2,
.qa-cookie-dialog-content h3,
.qa-cookie-dialog-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.qa-cookie-dialog-content p {
    margin-bottom: 0.7rem;
}

.qa-cookie-dialog-content ul {
    margin-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.qa-cookie-dialog-footer {
    border-top: 1px solid #e8e8e8;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .qa-cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .qa-cookie-dialog {
        max-height: 95vh;
    }
}
