.allegro-popup {
--allegro-popup-max-width: 640px;
box-sizing: border-box;
width: min(var(--allegro-popup-max-width), calc(100vw - 32px));
max-height: calc(100vh - 32px);
padding: 0;
overflow: auto;
border: 0;
background: #fff;
color: #1d2327;
box-shadow: 0 18px 60px rgb(0 0 0 / 28%);
font-family: inherit;
text-align: left;
}
.allegro-popup[data-allegro-popup-state='closed'] {
display: none;
}
dialog.allegro-popup {
margin: auto;
}
dialog.allegro-popup::backdrop {
background: var(--allegro-popup-overlay, rgb(0 0 0 / 55%));
}
.allegro-popup[popover] {
position: fixed;
inset: auto;
margin: 0;
z-index: 100000;
}
.allegro-popup[popover].allegro-popup-top-left {
inset: 0 auto auto 0;
}
.allegro-popup[popover].allegro-popup-top-right {
inset: 0 0 auto auto;
}
.allegro-popup[popover].allegro-popup-bottom-left {
inset: auto auto 0 0;
}
.allegro-popup[popover].allegro-popup-bottom-right {
inset: auto 0 0 auto;
}
.allegro-popup-close {
position: absolute;
top: 10px;
right: 10px;
display: grid;
width: 36px;
height: 36px;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
color: currentColor;
cursor: pointer;
font: inherit;
font-size: 30px;
line-height: 1;
place-items: center;
}
.allegro-popup-close:hover,
.allegro-popup-close:focus-visible {
background: rgb(0 0 0 / 8%);
}
.allegro-popup-close:focus-visible {
outline: 2px solid currentColor;
outline-offset: 2px;
}
.allegro-popup-content > :first-child {
margin-top: 0;
}
.allegro-popup-content > :last-child {
margin-bottom: 0;
}
@media (max-width: 600px) {
.allegro-popup {
max-height: calc(100dvh - 24px);
overscroll-behavior: contain;
width: calc(100dvw - 24px);
}
}