/* Scoped to the new native Elementor popup and entry. Canonical XMG tokens. */
.xmg-rfq-popup-entry,.xmg-rfq-popup-hint{font-family:Inter,"Helvetica Neue",Arial,sans-serif;box-sizing:border-box}
.xmg-rfq-popup-entry{position:fixed;right:24px;bottom:24px;z-index:9990;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:0 24px;border:1px solid #0b789f;border-radius:999px;background:#0b789f;color:#fff!important;text-decoration:none!important;font-size:15px;font-weight:750;box-shadow:0 14px 36px rgba(6,45,75,.12)}
.xmg-rfq-popup-entry:hover{background:#096685;color:#fff!important;border-color:#096685}
.xmg-rfq-popup-entry:focus-visible,.xmg-rfq-popup-hint a:focus-visible,.xmg-rfq-popup-hint button:focus-visible{outline:3px solid #31add0;outline-offset:3px}
.xmg-rfq-popup-hint[hidden]{display:none!important}
.xmg-rfq-popup-hint{position:fixed;right:16px;left:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:9992;display:flex;gap:12px;max-width:440px;margin-left:auto;padding:20px;background:#fff;border:1px solid #d6e5eb;border-radius:20px;box-shadow:0 14px 36px rgba(6,45,75,.12);color:#17364f}
.xmg-rfq-popup-hint strong{font-size:16px;line-height:1.4;color:#0b3158}
.xmg-rfq-popup-hint p{margin:5px 0 8px;font-size:14px;line-height:1.5;color:#587083}
.xmg-rfq-popup-hint a{display:inline-flex;align-items:center;gap:9px;min-height:44px;font-size:15px;font-weight:750;color:#0b789f;text-decoration:none}
.xmg-rfq-popup-hint button{flex:0 0 44px;height:44px;min-width:44px;padding:0;background:#f3f8fa;border:1px solid #d6e5eb;border-radius:50%;color:#0b3158;font-size:26px;line-height:1}
.xmg-rfq-popup-hint button:hover{background:#e8f3f7;border-color:#90c8da;color:#0b3158}
/* Keep this dialog out of document flow before Elementor's lazy dialog CSS arrives. */
.elementor-popup-modal:has(.xmg-rfq-popup-content){position:fixed!important;inset:0;width:100%;height:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;z-index:100100!important;padding:24px;background:rgba(6,29,55,.56);font-family:Inter,"Helvetica Neue",Arial,sans-serif}
.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-widget-content{position:relative;max-width:720px;width:min(720px,calc(100vw - 48px));max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);border:1px solid #d6e5eb;border-radius:22px;background:#fff;box-shadow:0 24px 64px rgba(6,45,75,.18);overflow:hidden}
.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-message{width:100%!important;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;text-align:left;scrollbar-gutter:stable}
.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-close-button{position:absolute!important;top:14px!important;right:14px!important;left:auto!important;z-index:10;display:flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;border:1px solid #d6e5eb;border-radius:50%;background:#fff;color:#0b3158!important;font-size:18px!important;box-shadow:none}
.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-close-button:hover{background:#f3f8fa;color:#0b3158!important;border-color:#90c8da}
.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-close-button:focus-visible{outline:3px solid #31add0;outline-offset:2px}
.xmg-rfq-popup-content{padding:28px 32px!important;gap:0!important;background:#fff;color:#17364f;font-family:Inter,"Helvetica Neue",Arial,sans-serif}
.xmg-rfq-popup-title .elementor-heading-title{margin:0!important;padding-right:44px;color:#0b3158!important;font-family:inherit!important;font-size:27px!important;line-height:1.18!important;font-weight:800!important;letter-spacing:-.02em}
.xmg-rfq-popup-intro{margin:12px 0 20px!important}
.xmg-rfq-popup-intro p{margin:0!important;color:#587083;font-size:15px;line-height:1.6}
.xmg-rfq-popup-form{width:100%;font-family:inherit}
.xmg-rfq-popup-form .elementor-form-fields-wrapper{margin-left:-6px!important;margin-right:-6px!important;row-gap:0!important}
.xmg-rfq-popup-form .elementor-field-group{min-width:0;padding:0 6px!important;margin-bottom:12px!important;align-content:flex-start}
.xmg-rfq-popup-form .elementor-field-label{padding-bottom:6px!important;color:#17364f!important;font-size:13px!important;font-weight:700!important;line-height:1.5!important;letter-spacing:normal!important}
.xmg-rfq-popup-form .elementor-field-textual{width:100%;min-height:48px!important;padding:10px 12px!important;border:1px solid #b9d3de!important;border-radius:10px!important;background:#fff!important;color:#17364f!important;box-shadow:none!important;font-family:inherit!important;font-size:16px!important;line-height:1.45!important}
.xmg-rfq-popup-form textarea.elementor-field-textual{min-height:100px!important;resize:vertical}
.xmg-rfq-popup-form .elementor-field-textual::placeholder{color:#617b8d;opacity:1}
.xmg-rfq-popup-form .elementor-field-textual:focus{outline:3px solid rgba(49,173,208,.3)!important;outline-offset:1px;border-color:#0b789f!important;background:#fff!important;color:#17364f!important}
.xmg-rfq-popup-form .elementor-field-type-acceptance{margin-top:3px}
.xmg-rfq-popup-form .elementor-field-type-acceptance .elementor-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.xmg-rfq-popup-form .elementor-field-type-acceptance .elementor-field-option{display:flex;align-items:flex-start;gap:10px}
.xmg-rfq-popup-form .elementor-acceptance-field{flex:0 0 auto;margin:4px 0 0!important;min-width:18px;min-height:18px;accent-color:#0b789f}
.xmg-rfq-popup-form .elementor-field-type-acceptance label{font-size:13px!important;line-height:1.6!important;color:#587083!important;cursor:pointer}
.xmg-rfq-popup-form .elementor-field-type-acceptance a{color:#0b789f;text-decoration:underline;text-underline-offset:2px}
.xmg-rfq-popup-form .elementor-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:52px;width:100%;padding:0 24px!important;border:1px solid #0b789f!important;border-radius:999px!important;background:#0b789f!important;color:#fff!important;font-size:16px!important;font-family:inherit!important;font-weight:750!important;box-shadow:none!important}
.xmg-rfq-popup-form .elementor-button:hover{background:#096685!important;color:#fff!important;border-color:#096685!important;transform:none!important}
.xmg-rfq-popup-form .elementor-button:focus-visible{outline:3px solid #31add0;outline-offset:3px}
.xmg-rfq-popup-form .elementor-button:disabled{opacity:.65;cursor:wait}
.xmg-rfq-popup-form .elementor-message{padding:12px;border:1px solid #d6e5eb;border-radius:10px;color:#17364f;font-size:14px;line-height:1.6}
.xmg-rfq-popup-form .elementor-message-success{color:#225f2a;background:#edf8eb}
.xmg-rfq-popup-form .elementor-message-danger{color:#923d32;background:#fff0ed}
.xmg-rfq-popup-note{margin-top:5px!important}
.xmg-rfq-popup-note p{margin:0!important;color:#587083;font-size:12px;line-height:1.6}
.xmg-rfq-purchase-details{display:flex;flex-wrap:wrap;width:100%;padding-top:12px}
.xmg-rfq-purchase-details[hidden]{display:none!important}
.xmg-rfq-details-toggle{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:calc(100% - 12px);min-height:44px;margin:0 6px 12px;padding:8px 12px;border:1px solid #d6e5eb;border-radius:10px;background:#f3f8fa;color:#0b789f;font-family:inherit;font-size:14px;font-weight:700;text-align:left}
.xmg-rfq-details-toggle:hover{background:#e8f3f7;color:#0b3158;border-color:#90c8da}
.xmg-rfq-details-toggle:focus-visible{outline:3px solid #31add0;outline-offset:2px}
@media(max-width:767px){.xmg-rfq-popup-entry{right:16px;bottom:max(16px,env(safe-area-inset-bottom));min-height:48px;padding:0 18px;font-size:14px}.elementor-popup-modal:has(.xmg-rfq-popup-content){padding:12px;align-items:center!important}.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-widget-content{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:20px}.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-message{max-height:calc(100dvh - 24px)}.xmg-rfq-popup-content{padding:24px 20px calc(20px + env(safe-area-inset-bottom))!important}.xmg-rfq-popup-title .elementor-heading-title{font-size:22px!important;padding-right:40px}.xmg-rfq-popup-intro p{font-size:14px}.xmg-rfq-popup-form .elementor-field-group{width:100%!important}.elementor-popup-modal:has(.xmg-rfq-popup-content) .dialog-close-button{top:12px!important;right:12px!important}}
@media(prefers-reduced-motion:reduce){.elementor-popup-modal:has(.xmg-rfq-popup-content),.xmg-rfq-popup-entry{animation:none!important;transition:none!important}}

/* Native Arabic template: mirror reading order and close control inside this popup only. */
.xmg-rfq-popup-content--rtl{direction:rtl;text-align:right}
.elementor-popup-modal:has(.xmg-rfq-popup-content--rtl){direction:rtl}
.elementor-popup-modal:has(.xmg-rfq-popup-content--rtl) .dialog-message{text-align:right}
.elementor-popup-modal:has(.xmg-rfq-popup-content--rtl) .dialog-close-button{right:auto!important;left:14px!important}
.xmg-rfq-popup-content--rtl .xmg-rfq-popup-title .elementor-heading-title{padding-right:0!important;padding-left:44px;text-align:right}
.xmg-rfq-popup-content--rtl .xmg-rfq-details-toggle{text-align:right}
.xmg-rfq-popup-content--rtl input[type=email],.xmg-rfq-popup-content--rtl input[type=tel]{direction:ltr;text-align:left}
.xmg-rfq-popup-hint[dir=rtl]{text-align:right}
@media(max-width:767px){.elementor-popup-modal:has(.xmg-rfq-popup-content--rtl) .dialog-close-button{left:12px!important}.xmg-rfq-popup-content--rtl .xmg-rfq-popup-title .elementor-heading-title{padding-left:40px}}
