.base-popup { --popup-available-height: 100dvh; position: fixed; inset: 0; z-index: 100000; display: flex; padding: 0; pointer-events: none; opacity: 0; transition: opacity 250ms ease; }
.base-popup, .base-popup__panel, .base-popup__controls, .base-popup__close { box-sizing: border-box; }
.base-popup.is-open { opacity: 1; }
.base-popup.is-pending { visibility: hidden; }
.base-popup.is-pending, .base-popup.is-pending *, .base-popup.is-closing, .base-popup.is-closing * { pointer-events: none; }
.base-popup--modal { --popup-available-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))); align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgb(0 0 0 / 55%); pointer-events: auto; }
.base-popup--modal.base-popup--overlay-none { background: transparent; }
.base-popup__panel { position: relative; pointer-events: auto; display: flex; flex-direction: column; width: min(max(240px, var(--popup-width, 720px)), 100%); min-width: 0; min-height: min(120px, var(--popup-available-height)); max-height: var(--popup-available-height); overflow: hidden; border-radius: var(--popup-radius, 0px); background: var(--site-body-background-image, none) var(--site-body-background-color, #fff); box-shadow: 0 12px 60px rgb(0 0 0 / 25%); align-self: inherit; }
.base-popup__panel:focus-visible { outline: 2px solid #111; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 12px 60px rgb(0 0 0 / 25%); }
.base-popup__controls { display: flex; justify-content: flex-end; align-items: center; flex: 0 0 60px; padding: 8px; }
.base-popup__body { display: grid; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.base-popup__body:focus-visible { outline: 2px solid #111; outline-offset: -4px; box-shadow: inset 0 0 0 2px #fff; }
.base-popup--slide .base-popup__panel { transform: translateY(12px); transition: transform 250ms ease; }
.base-popup__panel { height: var(--popup-height, auto); }
.base-popup--slide.is-open .base-popup__panel { transform: translateY(0); }
.base-popup--top-left, .base-popup--top-center, .base-popup--top-right { align-items: flex-start; }
.base-popup--bottom-left, .base-popup--bottom-center, .base-popup--bottom-right { align-items: flex-end; }
.base-popup--top-center, .base-popup--bottom-center { justify-content: center; }
.base-popup--top-right, .base-popup--bottom-right { justify-content: flex-end; }
.base-popup.base-popup--modal { align-items: center; justify-content: center; }
.base-popup__panel--left .base-popup__body, .base-popup__panel--right .base-popup__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.base-popup__panel--right .base-popup__image { grid-column: 2; grid-row: 1; }
.base-popup__panel--right .base-popup__content { grid-column: 1; grid-row: 1; }
.base-popup__content { min-width: 0; padding: var(--popup-padding, 32px) var(--popup-padding-horizontal, var(--popup-padding, 32px)); }
.base-popup__image { min-width: 0; overflow: hidden; }
.base-popup__image a { display: block; height: 100%; }
.base-popup__image img { display: block; width: 100%; height: 100%; }
.base-popup__panel--top .base-popup__image img, .base-popup__panel--image .base-popup__image img { height: auto; }
.base-popup__panel--top .base-popup__image, .base-popup__panel--image .base-popup__image { min-height: min-content; }
.base-popup__panel[data-popup-height="fixed"]:is(.base-popup__panel--top, .base-popup__panel--image) .base-popup__image { min-height: 0; }
.base-popup__panel[data-popup-height="fixed"]:is(.base-popup__panel--top, .base-popup__panel--image) .base-popup__image img { height: 100%; }
.base-popup__panel--top[data-popup-height="fixed"] .base-popup__body { grid-template-rows: min(240px, max(0px, calc((min(max(120px, var(--popup-height)), var(--popup-available-height)) - 60px) / 2))) auto; }
.base-popup__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #111; border-radius: 50%; background: #fff; box-shadow: none; color: #111; opacity: 1; cursor: pointer; }
.base-popup__close span { font-size: 22px; font-weight: 400; line-height: 1; }
.base-popup__close:hover { background: #eee; color: #111; }
.base-popup__close:focus-visible, .base-popups-shortcut:focus { outline: 2px solid #111; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.base-popup.is-mobile.base-popup--slide { align-items: flex-end; justify-content: center; }
.base-popup.is-mobile { --popup-available-height: 90dvh; }
.base-popup.is-mobile.base-popup--modal { --popup-available-height: min(90dvh, calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)))); }
.base-popup.is-mobile .base-popup__panel--left .base-popup__body, .base-popup.is-mobile .base-popup__panel--right .base-popup__body { grid-template-columns: minmax(0, 1fr); }
.base-popup.is-mobile .base-popup__image, .base-popup.is-mobile .base-popup__content { grid-column: 1; grid-row: auto; }
.base-popup.is-mobile .base-popup__image img { height: auto; max-height: 35dvh; }
.base-popup.is-mobile .base-popup__image { min-height: min-content; }
.base-popup.is-mobile :is(.base-popup__panel--top, .base-popup__panel--image)[data-popup-height="fixed"] .base-popup__image img { max-height: none; }
.base-popup.is-mobile .base-popup__content { padding: var(--popup-padding, var(--space-m, 20px)) var(--popup-padding-horizontal, var(--popup-padding, var(--space-m, 20px))); }
.base-popups-announcement, .base-popups-shortcut:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.base-popups-shortcut:focus { position: fixed; top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); z-index: 100001; max-width: calc(100% - 16px); padding: 12px 16px; background: #fff; color: #111; }
@media (forced-colors: active) {
    .base-popup__close, .base-popups-shortcut:focus { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
    .base-popup__panel:focus-visible, .base-popup__body:focus-visible, .base-popup__close:focus-visible, .base-popups-shortcut:focus { outline: 2px solid Highlight; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .base-popup, .base-popup--slide .base-popup__panel { transition: none; transform: none; } }
