/* Shared MG request controls. Intentionally scoped above Elementor kit defaults. */
body.mg-site #mg-request-panel{--mg-order-blue:#0753f2;--mg-order-ink:#14263f;--mg-order-border:#d7e2f0}
body.mg-site #mg-request-panel .elementor-form .elementor-button,
body.mg-site #mg-request-panel [data-mg-save-draft],
body.mg-site #mg-request-panel .mg-handoff-retry{display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-height:50px;height:auto;margin:0;padding:13px 20px;border:1px solid transparent;border-radius:14px;background:var(--mg-order-blue);color:#fff;font:700 15px/1.45 Manrope,sans-serif;text-align:center;text-decoration:none;white-space:normal;box-shadow:0 6px 16px #0753f21a;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
body.mg-site #mg-request-panel .elementor-form .e-form__buttons__wrapper__button-previous{background:#fff;color:#28496e;border-color:var(--mg-order-border);box-shadow:none}
body.mg-site #mg-request-panel .elementor-form .elementor-button:hover:not(:disabled),body.mg-site #mg-request-panel .mg-handoff-retry:hover:not(:disabled){background:#0645cd;color:#fff;box-shadow:0 8px 20px #0753f22b;transform:translateY(-1px)}
body.mg-site #mg-request-panel .elementor-form .e-form__buttons__wrapper__button-previous:hover:not(:disabled){background:#edf4ff;color:#173d72;border-color:#a9c1e9;box-shadow:none}
body.mg-site #mg-request-panel .elementor-form .e-form__buttons{display:flex;flex-flow:row nowrap;align-items:stretch;gap:12px;width:100%;margin:4px 0 0}
body.mg-site #mg-request-panel .elementor-form .e-form__buttons__wrapper{display:flex;align-items:stretch;flex:1 1 0;min-width:0;padding:0;margin:0}
body.mg-site #mg-request-panel .elementor-form .e-form__buttons__wrapper>.elementor-button{width:100%;min-width:0;flex:1}
body.mg-site #mg-request-panel .mg-request-secondary-actions{display:flex;justify-content:flex-start;margin-top:18px}
body.mg-site #mg-request-panel [data-mg-save-draft]{min-height:44px;padding:10px 16px;background:#f2f6fd;color:#31567f;border-color:#dce5f1;box-shadow:none;font-size:14px}
body.mg-site #mg-request-panel [data-mg-save-draft]:hover:not(:disabled){background:#e5efff;border-color:#b6ccef;color:#16457f;transform:translateY(-1px)}
body.mg-site #mg-request-panel button:disabled{cursor:wait;opacity:.6;transform:none;box-shadow:none}
/* Intro/HTML fields are content, rather than bordered input controls. */
body.mg-site #mg-request-panel .elementor-field-type-html>.elementor-field,
body.mg-site #mg-request-panel .elementor-field-type-html .elementor-field-textual,
body.mg-site #mg-request-panel .e-form__step>div.elementor-field:not(.elementor-select-wrapper){border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;min-height:0}
body.mg-site #mg-request-panel .elementor-field-type-html :is(div,section,h2,h3,p):focus,
body.mg-site #mg-request-panel .e-form__step:focus{outline:none;box-shadow:none}
body.mg-site #mg-request-panel .elementor-select-wrapper{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;min-height:0}
body.mg-site #mg-request-panel .elementor-select-wrapper select{box-sizing:border-box;width:100%;border:1px solid #cfdbea;border-radius:12px;min-height:50px;background-color:#fff;box-shadow:none}
body.mg-site #mg-request-panel .elementor-select-wrapper .select-caret-down-wrapper{display:none}
body.mg-site #mg-request-panel :is(input,textarea,select,button,summary,a):focus-visible{outline:2px solid #0753f2;outline-offset:3px}
body.mg-site #mg-request-panel :is(input[type=checkbox],input[type=radio]){accent-color:#0753f2}
body.mg-site #mg-request-panel .app-category-picker .mg-category-check{position:absolute;inset:9px 9px auto auto;display:none;align-items:center;justify-content:center;flex:none;width:22px;height:22px;padding:0;margin:0;border:0;border-radius:50%;background:#0753f2;color:#fff;font-size:0;line-height:0;box-shadow:0 2px 6px #0753f21f}
body.mg-site #mg-request-panel .app-category-picker .selected>.mg-category-check{display:flex}
body.mg-site #mg-request-panel .mg-category-check svg{display:block;width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2.5;transform:none}
body.mg-site #mg-request-panel .mg-request-identity .account-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}
body.mg-site #mg-request-panel .mg-request-identity .account-type button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:11px 14px;border:1px solid #d7e2f0;border-radius:12px;background:#fff;color:#31567f;font:650 14px/1.4 Manrope,sans-serif;box-shadow:none;white-space:normal}
body.mg-site #mg-request-panel .mg-request-identity .account-type button.selected{background:#eaf1ff;border-color:#8cb0ff;color:#0753f2;box-shadow:inset 0 0 0 1px #0753f208}
body.mg-site #mg-request-panel .mg-request-identity .account-type button:hover{border-color:#89aaf0;background:#edf4ff;color:#0753f2}
body.mg-site #mg-request-panel .mg-password-tools{display:flex;flex-wrap:wrap;gap:8px}
body.mg-site #mg-request-panel .mg-password-tools button{flex:0 1 auto;min-height:40px;padding:8px 12px;border:1px solid #d7e2f0;border-radius:10px;background:#fff;color:#31567f;font:600 12px/1.4 Manrope,sans-serif;box-shadow:none}
body.mg-site #mg-request-panel .mg-password-tools button:hover{background:#eaf1ff;color:#0753f2;border-color:#a8c2f1}
body.mg-site #mg-request-panel .mg-form-status{margin:14px 0 0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
body.mg-site #mg-request-panel .mg-auth-errors{outline:none;border:1px solid #f0c5c5;border-radius:12px;background:#fff6f6;color:#9d2828;padding:14px 16px;margin-bottom:18px}
/* Verification shares the auth-page controls, with one compact header and no floating close button. */
body.mg-site .mg-verification{position:fixed;padding:28px;width:min(480px,calc(100vw - 28px));border-radius:22px;font-family:'DM Sans',sans-serif}
body.mg-site .mg-verification .app-form{display:flex;flex-direction:column;gap:14px;margin:0}
body.mg-site .mg-verification .mg-verify-close{align-self:flex-end;float:none;display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;margin:-12px -10px -16px 0;padding:0;border:0;border-radius:8px;background:transparent;color:#28496e;font:400 28px/1 sans-serif;box-shadow:none}
body.mg-site .mg-verification .app-eyebrow{font-size:11px;line-height:1.4;margin:0;color:#426089;letter-spacing:.08em}
body.mg-site .mg-verification h2{margin:0;font:750 25px/1.25 Manrope,sans-serif;letter-spacing:-.025em}
body.mg-site .mg-verification p{margin:0;font:400 15px/1.65 'DM Sans',sans-serif;color:#53647b}
body.mg-site .mg-verification [data-mg-verify-email]{display:inline;overflow-wrap:anywhere;color:#14263f}
body.mg-site .mg-verification :is([data-mg-code-fields],[data-mg-edit-email]){display:grid;gap:14px}
body.mg-site .mg-verification input[name=email]{font:400 16px/1.5 'DM Sans',sans-serif;letter-spacing:0}
body.mg-site .mg-verification :is(.mg-change-email,.mg-cancel-email,.mg-resend){align-self:flex-start;display:inline-flex;justify-content:flex-start;width:auto;min-height:40px;margin:0;padding:6px 0;border:0;border-radius:0;background:transparent;color:#0753f2;font:600 14px/1.5 Manrope,sans-serif;text-align:left;box-shadow:none;transform:none}
body.mg-site .mg-verification .mg-resend:disabled{color:#768498}
body.mg-site .mg-verification .app-btn.primary,body.mg-site .auth-form .app-btn.primary{background:#0753f2;color:#fff;border:1px solid transparent;border-radius:14px;font-family:Manrope,sans-serif}
body.mg-site .mg-verification .app-btn.primary:hover:not(:disabled),body.mg-site .auth-form .app-btn.primary:hover:not(:disabled){background:#0645cd}
body.mg-site .mg-verification .mg-auth-errors{margin:0;outline:none}
body.mg-site .mg-verification [hidden]{display:none!important}
body.mg-site .auth-form .mg-reset-success{display:grid;gap:16px}
@media(max-width:480px){body.mg-site #mg-request-panel .elementor-form .elementor-button{padding:12px 13px;font-size:14px}body.mg-site #mg-request-panel .elementor-form .e-form__buttons{gap:10px}body.mg-site #mg-request-panel .app-category-picker button{padding-top:21px}body.mg-site .mg-verification{padding:24px}body.mg-site .mg-verification h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){body.mg-site #mg-request-panel button{transition:none;transform:none!important}}
/* Pro can focus the HTML field group itself when entering a step. */
body.mg-site #mg-request-panel .elementor-field-type-html:focus,
body.mg-site #mg-request-panel .elementor-field-type-html:focus-visible,
body.mg-site #mg-request-panel .wizard-section-heading:focus,
body.mg-site #mg-request-panel .wizard-section-heading:focus-visible{outline:0!important;box-shadow:none!important;border:0!important}
body.mg-site #mg-request-panel .mg-country-picker{border:0;padding:0;box-shadow:none;background:transparent}
body.mg-site #mg-request-panel .mg-country-picker>summary{border:1px solid #cfdbea;border-radius:12px;background:#fff;box-shadow:none}
body.mg-site button[data-mg-loading]{position:relative;pointer-events:none}
body.mg-site .mg-submit-spinner,.mg-loader-ring{content:'';display:inline-block;flex:none;box-sizing:border-box;width:18px;height:18px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:mg-loading-spin .7s linear infinite;vertical-align:middle}
.mg-loader-ring{width:38px;height:38px;color:#0753f2}
@keyframes mg-loading-spin{to{transform:rotate(360deg)}}
body.mg-site #mg-request-panel .mg-password-tools{display:flex;flex-wrap:nowrap;gap:5px;max-width:100%}
body.mg-site #mg-request-panel .mg-password-tools button{flex:0 1 auto;min-width:0;padding:7px 8px;font-size:11px;line-height:1.3;white-space:nowrap;background:transparent;border-color:transparent;min-height:36px}
body.mg-site #mg-request-panel .mg-password-tools button:nth-child(2){flex:1 1 auto}
body.mg-site #mg-request-panel .mg-password-tools button:hover{background:#eaf1ff;border-color:#d5e3fa}
.mg-continuation-loader{text-align:center;padding:48px 20px;min-height:250px}.mg-continuation-loader h2{font-size:25px;margin:20px 0 12px}
.mg-confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:99999}
.mg-order-featured{width:100%;max-height:360px;object-fit:cover;border-radius:18px;margin-bottom:20px}
.mg-featured-editor{display:flex;flex-wrap:wrap;align-items:end;gap:16px;padding:22px;margin-bottom:24px}.mg-featured-editor h3{width:100%;margin:0}.mg-featured-editor label{display:grid;gap:8px;flex:1;min-width:180px}.mg-featured-editor select{max-width:100%;min-height:46px;border:1px solid #d7e2f0;border-radius:12px;padding:10px;background:#fff}
.mg-partner-terms .check-field{display:flex;align-items:start;gap:9px;font-size:14px;line-height:1.65;margin:16px 0}.mg-partner-terms input[type=checkbox]{flex:none;margin-top:5px;accent-color:#0753f2}
@media(prefers-reduced-motion:reduce){body.mg-site .mg-submit-spinner,.mg-loader-ring{animation:none}}
.mg-service-terms{max-width:880px;margin:60px auto;padding:24px;line-height:1.8}.mg-service-terms h1{font-size:36px}.mg-service-terms h3{margin-top:30px}
body.mg-site :is(.auth-form,.mg-request-identity) .mg-password-tools{display:flex;flex-wrap:nowrap;gap:5px;max-width:100%}
body.mg-site :is(.auth-form,.mg-request-identity) .mg-password-tools button{flex:0 1 auto;min-width:0;min-height:44px;padding:7px 8px;font-size:12px;white-space:nowrap;background:transparent;border-color:transparent}
body.mg-site #mg-request-panel .mg-password-tools button{min-height:44px}
.mg-app .mg-project-category-art.is-featured{object-fit:cover;border-radius:9px}

/* Six-stage progress adapted from supplied animation; no global demo selectors. */
.mg-order-progress{--mg-progress-accent:#0751ed;background:#fff;border:1px solid #e0e7f0;border-radius:20px;padding:22px 12px 14px;margin:20px 0;min-width:0}
.mg-progress-wrap{position:relative}
.mg-progress-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.mg-progress-track,.mg-progress-fill{fill:none;stroke:#e2e9f2;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.mg-progress-fill{stroke:var(--mg-progress-accent);transition:stroke-dashoffset 1.8s cubic-bezier(.22,1,.36,1)}
.mg-order-progress .mg-progress-steps{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.mg-progress-steps>li{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;text-align:center}
.mg-progress-circle{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#f7f9fc;border:1.5px solid #dfe6ef;border-radius:50%;color:#536278;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;transition:background .35s,color .35s}
.mg-progress-steps .is-done .mg-progress-circle{color:var(--mg-progress-accent);background:#edf4ff;border-color:#ccddfb}
.mg-progress-steps .is-active .mg-progress-circle{background:var(--mg-progress-accent);border-color:var(--mg-progress-accent);color:#fff;animation:mg-stage-pulse 2.3s ease-in-out infinite}
.mg-progress-label{position:relative;z-index:1;background:#fff;border-radius:6px;padding:2px 4px;min-height:38px;font-size:11px;line-height:1.45;max-width:125px;text-wrap:balance;color:#526479}
.mg-progress-steps .is-active .mg-progress-label{color:var(--mg-progress-accent);font-weight:700}
@keyframes mg-stage-pulse{0%,100%{box-shadow:0 0 0 5px #0751ed18,0 0 0 0 #0751ed30}50%{box-shadow:0 0 0 7px #0751ed0e,0 0 0 13px #0751ed00}}
.mg-invite-mode{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.mg-invite-mode .app-btn{flex:1;min-width:0;font-size:13px;padding:10px 12px}
@media(max-width:700px){.mg-order-progress{padding:20px 10px 12px}.mg-order-progress .mg-progress-steps{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px;column-gap:8px}.mg-progress-circle{width:36px;height:36px}.mg-progress-label{font-size:11px}}
@media(prefers-reduced-motion:reduce){.mg-progress-circle,.mg-progress-fill{animation:none!important;transition:none!important}}
.mg-private-upload [data-mg-file-list]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;list-style:none;margin:14px 0;padding:0}
.mg-private-upload [data-mg-file-list] li{display:flex;flex-direction:column;gap:8px;min-width:0;overflow-wrap:anywhere;font-size:12px}
.mg-upload-thumbnail{width:100%;height:112px;object-fit:cover;border-radius:12px;border:1px solid #dce4ef}
.document-preview img{width:100%;height:100%;max-height:180px;object-fit:cover;border-radius:inherit}

/* Offer identity must retain a usable column beside the avatar and status. */
body.mg-site .order-detail .offer-card-heading{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:12px}
body.mg-site .order-detail .offer-card-heading>.avatar{width:44px;height:44px;min-width:44px;margin:0}
body.mg-site .order-detail .offer-card-heading>div:nth-child(2){min-width:0;width:auto}
body.mg-site .order-detail .offer-card-heading h3{margin:0 0 6px;word-break:normal;overflow-wrap:break-word;white-space:normal;line-height:1.4}
body.mg-site .order-detail .offer-card-heading>div>span{display:flex;gap:6px;align-items:flex-start;word-break:normal;overflow-wrap:normal}
body.mg-site .order-detail .offer-card-heading>div>span svg{flex:none;margin-top:3px}
body.mg-site .order-detail .offer-card-heading>.status-badge{margin:0;max-width:100%;justify-self:start;white-space:normal;word-break:normal;overflow-wrap:break-word}
body.mg-site .order-detail .offer-conditions{grid-template-columns:repeat(2,minmax(0,1fr))}
body.mg-site .order-detail .offer-conditions>span{display:flex;align-items:flex-start;gap:8px;min-width:0}
body.mg-site .order-detail .offer-conditions>span>svg{flex:none;margin-top:3px}
body.mg-site .order-detail .offer-conditions strong{display:block;overflow-wrap:break-word}
body.mg-site .order-detail .offer-footer{flex-wrap:wrap;gap:12px}
body.mg-site .app-toast{max-width:min(520px,calc(100vw - 32px));box-sizing:border-box;z-index:1100;overflow-wrap:break-word}
@media(max-width:760px){
 body.mg-site .order-detail .offer-card-heading{grid-template-columns:40px minmax(0,1fr);column-gap:10px;row-gap:12px}
 body.mg-site .order-detail .offer-card-heading>.avatar{width:40px;height:40px;min-width:40px}
 body.mg-site .order-detail .offer-card-heading>.status-badge{grid-column:2;justify-self:start;margin:0}
 body.mg-site .order-detail .offer-card{padding:18px 16px;min-width:0}
 body.mg-site .order-detail .offer-price strong{font-size:clamp(24px,7vw,34px);white-space:normal;overflow-wrap:break-word}
 body.mg-site .order-detail .offer-footer>.app-btn{width:100%;justify-content:center}
 body.mg-site .app-toast{left:50%;bottom:calc(var(--account-dock-space,100px) + 12px);width:max-content;font-size:13px;padding:12px 16px}
}
@media(max-width:360px){body.mg-site .order-detail .offer-conditions{grid-template-columns:minmax(0,1fr)}}
/* A narrow detail column also needs the mobile arrangement on wider screens. */
body.mg-site .order-detail .offer-card{container-type:inline-size}
@container(max-width:480px){
 body.mg-site .order-detail .offer-card-heading{grid-template-columns:40px minmax(0,1fr)}
 body.mg-site .order-detail .offer-card-heading>.status-badge{grid-column:2;margin:0;justify-self:start}
}
