.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 9999;
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px))
        max(16px, env(safe-area-inset-left, 0px));
    pointer-events: none;
}

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

.cookie-consent__panel {
    pointer-events: auto;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e2e5ea;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    color: #1a1f26;
}

.cookie-consent__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0e1116;
}

.cookie-consent__text {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
}

.cookie-consent__text a {
    color: var(--brand-red, #d81921);
    text-decoration: underline;
}

.cookie-consent__text a:hover {
    color: var(--brand-red-dark, #b01018);
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-consent__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.cookie-consent__btn--primary {
    background: var(--brand-red, #d81921);
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: var(--brand-red-light, #f02d36);
}

.cookie-consent__btn--secondary {
    background: #ffffff;
    border-color: #c5cad3;
    color: #1a1f26;
}

.cookie-consent__btn--secondary:hover {
    border-color: #9aa3af;
    background: #f4f6f8;
}

.cookie-consent__btn--link {
    background: transparent;
    border: none;
    color: #4b5563;
    padding: 10px 8px;
    text-decoration: underline;
}

.cookie-consent__btn--link:hover {
    color: #1a1f26;
}

body.has-cookie-consent {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 600px) {
    .cookie-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__btn {
        width: 100%;
        text-align: center;
    }
}

.site-footer-legal__cookie-prefs {
    margin-left: 0.35em;
}

.site-footer-legal__cookie-prefs button {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
