/* Cookie consent banner: neutral colours so it fits every site; accept and reject share the same style. */

.dlg-consent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 99995;
    display: flex;
    justify-content: center;
    font-family: inherit;
}

.dlg-consent[hidden],
.dlg-consent [hidden] {
    display: none !important;
}

.dlg-consent__box {
    width: 100%;
    max-width: 880px;
    padding: 20px 24px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fff;
    color: #1f2d3d;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dlg-consent__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.dlg-consent__text {
    margin: 0 0 14px;
}

.dlg-consent__text a {
    color: inherit;
    text-decoration: underline;
}

.dlg-consent__prefs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0 0 14px;
}

.dlg-consent__prefs[hidden] {
    display: none;
}

.dlg-consent__prefs label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.dlg-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dlg-consent .dlg-consent__btn,
.dlg-consent .dlg-consent__btn:focus,
.dlg-consent .dlg-consent__btn:active {
    min-width: 120px;
    padding: 10px 18px;
    border: 1px solid #1f2d3d;
    border-radius: 4px;
    background: #1f2d3d;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.dlg-consent .dlg-consent__btn:hover {
    background: #34465c;
    color: #fff;
}

.dlg-consent .dlg-consent__btn--link,
.dlg-consent .dlg-consent__btn--link:focus,
.dlg-consent .dlg-consent__btn--link:active {
    border-color: transparent;
    background: transparent;
    color: #1f2d3d;
    text-decoration: underline;
}

.dlg-consent .dlg-consent__btn--link:hover {
    background: #f1f3f5;
    color: #1f2d3d;
}

.dlg-consent .dlg-consent__btn:focus-visible {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .dlg-consent {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .dlg-consent .dlg-consent__btn {
        flex: 1 1 100%;
    }
}
