html:has(.agr-announcement[open]) {
    overflow: hidden;
}

.agr-announcement {
    position: fixed;
    inset: 0;
    width: min(680px, calc(100% - 32px), calc(100vh - 32px));
    width: min(680px, calc(100% - 32px), calc(100dvh - 32px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #052847;
    box-shadow: 0 16px 60px rgb(0 0 0 / 35%);
}

.agr-announcement::backdrop {
    background: rgb(5 13 24 / 76%);
}

.agr-announcement img {
    display: block;
    width: 100%;
    height: auto;
}

.agr-announcement__close {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #052847;
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
}

.agr-announcement__close:focus-visible {
    outline: 2px solid #052847;
    outline-offset: 2px;
}
