/* Every selector and custom property belongs to AmaxGas Popups. */
html.amaxgas-popup-scroll-lock { overflow: hidden !important; }
dialog.amaxgas-popup:not([open]) { display: none !important; }
dialog.amaxgas-popup[open] {
    display: block;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: var(--amaxgas-width, 640px);
    height: fit-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: var(--amaxgas-radius, 16px);
    background: var(--amaxgas-background, #fff);
    color: var(--amaxgas-foreground, #202c3a);
    box-shadow: 0 24px 90px rgb(0 0 0 / 28%);
    text-align: start;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    animation: amaxgas-popup-appear 160ms ease-out;
}
dialog.amaxgas-popup::backdrop { background: var(--amaxgas-backdrop, rgb(16 42 67 / 65%)); }
.amaxgas-popup .amaxgas-popup-shell { position: relative; padding: max(48px, var(--amaxgas-padding, 28px)) var(--amaxgas-padding, 28px) var(--amaxgas-padding, 28px); }
.amaxgas-popup .amaxgas-popup-close {
    all: unset;
    box-sizing: border-box;
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgb(127 127 127 / 12%);
    color: inherit;
    cursor: pointer;
    font: 30px/1 Arial, sans-serif;
    text-transform: none;
    z-index: 1;
}
.amaxgas-popup .amaxgas-popup-close:hover { background: rgb(127 127 127 / 22%); }
.amaxgas-popup .amaxgas-popup-close:focus-visible,
.amaxgas-popup-trigger:focus-visible { outline: 3px solid #328cc8; outline-offset: 3px; }
.amaxgas-popup .amaxgas-popup-title { margin: 0 0 18px; font-size: 26px; line-height: 1.25; color: inherit; }
.amaxgas-popup .amaxgas-popup-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.amaxgas-popup .amaxgas-popup-content { overflow-wrap: anywhere; }
.amaxgas-popup .amaxgas-popup-content > :first-child { margin-top: 0; }
.amaxgas-popup .amaxgas-popup-content > :last-child { margin-bottom: 0; }
.amaxgas-popup .amaxgas-popup-content img,
.amaxgas-popup .amaxgas-popup-content video,
.amaxgas-popup .amaxgas-popup-content iframe { max-width: 100%; }
.amaxgas-popup .amaxgas-popup-content img { height: auto; }
.amaxgas-popup .amaxgas-popup-content iframe { border: 0; }
.amaxgas-popup-trigger { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 0; border-radius: 24px; background: #328cc8; color: #fff; font: inherit; line-height: 1.3; text-decoration: none; cursor: pointer; }
.amaxgas-popup-trigger:hover { background: #266f9f; color: #fff; }
.amaxgas-popup-preview .amaxgas-popup-preview-note { max-width: 780px; padding: 40px 24px; margin: 0 auto; }
@keyframes amaxgas-popup-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
    dialog.amaxgas-popup[open] { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .amaxgas-popup .amaxgas-popup-shell { padding-left: min(var(--amaxgas-padding, 28px), 20px); padding-right: min(var(--amaxgas-padding, 28px), 20px); }
}
@media (prefers-reduced-motion: reduce) { dialog.amaxgas-popup[open] { animation: none; } }
