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

.cookie-consent-notice {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    width: min(380px, calc(100% - 40px));
    box-sizing: border-box;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .18);
}

.cookie-consent-notice h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.cookie-consent-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cookie-consent-actions button {
    min-width: 110px;
    padding: 8px 12px;
    border: 1px solid #333;
    cursor: pointer;
}

.cookie-consent-accept {
    background: #333;
    color: #fff;
}

.cookie-consent-accept:hover,
.cookie-consent-accept:focus-visible {
    background: #555;
}

.cookie-consent-decline {
    background: #fff;
    color: #333;
}

.cookie-consent-decline:hover,
.cookie-consent-decline:focus-visible {
    background: #eee;
}

.cookie-consent-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.cookie-consent-settings:hover,
.cookie-consent-settings:focus-visible,
.cookie-consent-settings:active {
    background-color: transparent;
    color: #ab977a;
    text-decoration: underline;
}

.site-footer .site-info p.cookie-consent-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-consent-notice {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        padding: 10px 12px;
    }

    .cookie-consent-notice h2 {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .cookie-consent-notice p {
        font-size: 12px;
        line-height: 1.35;
    }

    .cookie-consent-actions {
        margin-top: 8px;
    }

    .cookie-consent-actions button {
        flex: 1 1 0;
        min-width: 0;
        padding: 7px 8px;
    }

    .site-footer .site-info p.cookie-consent-footer-links {
        font-size: clamp(10px, 3.2vw, 13px);
    }
}
