/* Native dialog owns scrolling; the product page remains locked underneath. */
dialog.qweb-inquiry-dialog {
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 42rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-block: 6rem 1rem;
}
.qweb-inquiry-dialog .qweb-inquiry-header {
    position: sticky;
    top: 0;
    z-index: 2;
    gap: 1rem;
    background: white;
}
.qweb-inquiry-header h2 { min-width: 0; }
.qweb-inquiry-header button { flex-shrink: 0; }
.qweb-inquiry-form input, .qweb-inquiry-form textarea { min-width: 0; }
@media (max-width: 639px) {
    dialog.qweb-inquiry-dialog {
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }
    .qweb-inquiry-dialog .qweb-inquiry-header { padding: 1rem; }
    .qweb-inquiry-header h2 { font-size: 1.125rem; line-height: 1.5; }
    .qweb-inquiry-dialog .qweb-inquiry-form {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    .qweb-inquiry-form input, .qweb-inquiry-form textarea { font-size: 16px; }
    .qweb-inquiry-actions { flex-direction: column-reverse; }
    .qweb-inquiry-actions .btn { width: 100%; justify-content: center; white-space: normal; }
}
