.cookie-notice[hidden],
.cookie-preferences-link[hidden] {
    display: none !important;
}

.site-footer-v6 .site-footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 1;
}

.cookie-preferences-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-notice {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1000000;
    width: min(326px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    overflow: auto;
    padding: 12px;
    border: 1px solid #dbe1e5;
    border-radius: 12px;
    background: #fff;
    color: #242b30;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
}

.cookie-notice h2 {
    margin: 0 0 6px;
    color: inherit;
    font-size: 18px;
}

.cookie-notice p {
    margin: 0 0 9px;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-notice a {
    color: #a70019;
    text-decoration: underline;
}

.cookie-notice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cookie-notice-actions button {
    min-height: 44px;
    padding: 7px;
    border: 1px solid #52606a;
    border-radius: 6px;
    background: #fff;
    color: #242b30;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-notice-actions button:hover {
    background: #edf2f5;
}

.cookie-notice-actions button:focus-visible,
.cookie-preferences-link:focus-visible {
    outline: 2px solid #a70019;
    outline-offset: 2px;
}
