/* The embedded form remains hosted by Odoo. */
#popup.odoo-modal {
    position: fixed;
    box-sizing: border-box;
    width: min(960px, calc(100% - 64px));
    height: min(900px, calc(100vh - 64px));
    height: min(900px, calc(100dvh - 64px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    color: #007479;
    box-shadow: 0 28px 100px #002a2c40;
}
#popup.odoo-modal[open] { display: flex; flex-direction: column; }
#popup.odoo-modal::backdrop { background: #002a2c99; backdrop-filter: blur(7px); }
#popup .close-popup {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    align-self: flex-end;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 6px;
    border: 1px solid #007479;
    border-radius: 50%;
    background: #ecf1d0;
    color: #007479;
    box-shadow: 0 2px 8px #002a2c20;
    cursor: pointer;
    touch-action: manipulation;
}
#popup .close-popup svg { display: block; width: 34px; height: 34px; pointer-events: none; }
#popup .close-popup:hover { background: #fff; }
#popup .close-popup:focus-visible { outline: 3px solid #007479; outline-offset: 2px; }
#popup .odoo-modal__viewport { display: flex; flex: 1 1 auto; min-height: 0; min-width: 0; overflow: hidden; border-radius: inherit; isolation: isolate; transform: translateZ(0); }
#popup .odoo-modal__form { display: block; flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; background: #fff; }
@media (max-width: 600px) {
    #popup.odoo-modal { width: calc(100% - 24px); height: calc(100vh - 24px); height: calc(100dvh - 24px); border-radius: 18px; }
}
