.cookie-banner[hidden],
.cookie-banner [hidden],
.cookie-settings-button[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    z-index: 500;
    inset: auto 20px 20px;
    width: min(960px, calc(100% - 40px));
    max-height: 70vh;
    margin-inline: auto;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    overflow-y: auto;
    color: #192454;
    background: #fff;
    border: 1px solid #dce4ff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(17, 28, 78, 0.2);
}

.cookie-banner-copy h2 {
    margin: 0 24px 7px 0;
    color: #111c4e;
    font-size: 17px;
    line-height: 1.35;
}

.cookie-banner-copy p {
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-banner-copy a {
    color: #1739c8;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner-actions button {
    min-height: 44px;
    padding: 10px 16px;
    color: #1739c8;
    background: #fff;
    border: 1px solid #244bea;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.cookie-banner-actions button:hover {
    background: #edf3ff;
}

.cookie-banner button:focus-visible,
.cookie-banner a:focus-visible,
.cookie-settings-button:focus-visible {
    outline: 3px solid #244bea;
    outline-offset: 4px;
}

.cookie-banner-close {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #192454;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
}

.cookie-settings-button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .cookie-banner {
        inset: auto 12px 12px;
        width: calc(100% - 24px);
        padding: 20px;
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
        border-radius: 14px;
    }

    .cookie-banner-actions button {
        flex: 1;
        padding-inline: 10px;
    }
}
