/* Cookie consent banner + preferences dialog. Markup: _consent.php, behaviour: js/components/consent.js */
.consent[hidden], .consent__modal[hidden], .consent__bar[hidden] { display: none; }

.consent__bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1060;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 14px;
    background: #fff;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
    font-size: 15px;
    line-height: 1.6;
}

.consent__msg { flex: 1 1 380px; }
.consent__msg strong { display: block; font-size: 17px; color: #0b71e1; }
.consent__msg a { text-decoration: underline; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.consent__btn {
    padding: 9px 18px;
    border: 2px solid #0b71e1;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.consent__btn--primary { background: #0b71e1; color: #fff; }
.consent__btn--primary:hover { background: #0958b3; border-color: #0958b3; }
.consent__btn--ghost { background: #fff; color: #0b71e1; }
.consent__btn--ghost:hover { background: #eaf3fd; }
.consent__btn:focus-visible { outline: 3px solid #ff9a1f; outline-offset: 2px; }

.consent__modal {
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
}

.consent__panel {
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    overflow: auto;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    color: #333;
}

.consent__panel h2 { margin: 0 0 8px; font-size: 22px; color: #0b71e1; }
.consent__panel p { font-size: 15px; }

.consent__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
    cursor: pointer;
}

.consent__row small { display: block; color: #666; font-size: 13px; line-height: 1.5; }
.consent__row input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: #0b71e1; }
.consent__panel .consent__actions { margin-top: 12px; }

@media (max-width: 767.98px) {
    .consent__bar { left: 8px; right: 8px; bottom: 8px; padding: 14px; font-size: 14px; }
    .consent__actions { width: 100%; }
    .consent__actions .consent__btn { flex: 1 1 auto; }
}
