/* Popup-only rules: avoid changing Blocksy theme variables and global controls. */
.bapopup-trigger[hidden] { display: none !important; }
.bapopup-overlay {
    position: fixed; inset: 0; z-index: 1000000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    background: rgba(0, 0, 0, .6); isolation: isolate;
}
.bapopup-container {
    --ba-color1: #fff; --ba-color2: #054b49; --ba-color3: #054b49; --ba-white: #fff;
    position: relative; width: var(--bapopup-width, 640px); max-width: 100%;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    min-width: 0; margin: 0; overflow: auto; overscroll-behavior: contain;
    box-sizing: border-box; border-radius: 0;
    box-shadow: 0 16px 60px rgba(0,0,0,.25);
}
.bapopup-container.ba_white { background: var(--ba-white); padding: 28px; }
.bapopup-container .bapopup-content { width: 100%; min-width: 0; }
.bapopup-container .bapopup-content > :last-child { margin-bottom: 0; }
.bapopup-container img { max-width: 100%; height: auto; }
.bapopup-container .elementor { width: 100%; max-width: 100%; margin: 0; }
.bapopup-container .bapopup-default-close {
    appearance: none; position: absolute; top: 8px; right: 8px; z-index: 20;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; min-width: 40px; height: 40px; min-height: 40px;
    padding: 0; margin: 0; border: 0; border-radius: 0;
    background: var(--ba-color2); color: var(--ba-color1); cursor: pointer;
    font: 30px/1 Arial, sans-serif; box-shadow: none; transform: none;
}
.bapopup-container .bapopup-default-close:hover { background: #073b39; color: #fff; }
.bapopup-container :focus-visible { outline: 2px solid #06988f; outline-offset: 3px; }
.bapopup-container:focus { outline: none; }
@media (max-width: 767px) {
    .bapopup-overlay { padding: 10px; }
    .bapopup-container { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
    .bapopup-container.ba_white { padding: 20px; padding-top: 52px; }
}
