/* MOVER V35 — final mobile, notifications, availability and modal hardening. Loaded last. */
:root{--v35-navy:#102448;--v35-blue:#1565d8;--v35-cyan:#29c2dc;--v35-line:#dce5f0;--v35-muted:#66758b;--v35-danger:#b42318;--v35-danger-soft:#fff1f0;--v35-success:#067647;--v35-success-soft:#ecfdf3}
html{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{max-width:100%;overflow-x:clip;min-width:0}
body *,body *::before,body *::after{min-width:0}
img,svg,video,canvas{max-width:100%;height:auto}
input,select,textarea,button{max-width:100%}
[hidden]{display:none!important}

/* Predictable layer order. */
.system-overlay{z-index:60000!important;inset:0!important;width:100vw!important;max-width:100vw!important;overflow:hidden!important}
.entry-gateway{z-index:59000!important;inset:0!important;width:100vw!important;max-width:100vw!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
.mover-global-language{z-index:61000!important}
.pa-launch{z-index:62000!important}
.pa-shell{z-index:63000!important}
.mover-notification-root{z-index:64000!important}
.mover-install-prompt{z-index:58000!important}

/* The first explanation and the entry gateway must never create a clipped side strip. */
.system-overlay:not([hidden]),.entry-gateway:not([hidden]){position:fixed!important;margin:0!important;transform:none!important}
.system-modal,.welcome-modal,.gateway-card{box-sizing:border-box!important;max-width:100%!important}
body.v35-entry-locked{overflow:hidden!important;touch-action:none}
body.v35-entry-locked main{inert:auto}

/* Notification center */
.mover-notification-root{position:fixed;inset:calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) auto auto;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;direction:rtl}
.mover-notification-bell{position:relative;width:46px;height:46px;border:1px solid rgba(148,163,184,.45);border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 10px 32px rgba(15,23,42,.18);display:grid;place-items:center;color:var(--v35-navy);font-size:21px;cursor:pointer;backdrop-filter:blur(12px)}
.mover-notification-badge{position:absolute;top:-6px;left:-6px;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;border:2px solid #fff;font:800 11px/17px system-ui;text-align:center}
.mover-notification-panel{position:absolute;top:54px;right:0;width:min(390px,calc(100vw - 24px));max-height:min(70dvh,620px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border:1px solid var(--v35-line);border-radius:22px;box-shadow:0 24px 70px rgba(15,23,42,.24);overflow:hidden}
.mover-notification-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--v35-line)}
.mover-notification-head strong{font-size:17px;color:var(--v35-navy)}
.mover-notification-head button{border:0;background:transparent;color:#475467;font-weight:800;cursor:pointer}
.mover-notification-list{overflow:auto;overscroll-behavior:contain;padding:8px}
.mover-notification-item{display:block;padding:13px 12px;border:1px solid transparent;border-radius:15px;text-decoration:none;color:#172033;line-height:1.45}
.mover-notification-item:hover,.mover-notification-item:focus-visible{background:#f5f9ff;border-color:#d9e8ff;outline:none}
.mover-notification-item.unread{background:#eef6ff;border-color:#cfe3ff}
.mover-notification-item b{display:block;font-size:14px;margin-bottom:3px}
.mover-notification-item span{display:block;color:#475467;font-size:13px}
.mover-notification-item time{display:block;color:#8491a3;font-size:11px;margin-top:6px}
.mover-notification-empty{padding:28px 14px;text-align:center;color:#667085}
.mover-notification-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--v35-line);background:#f8fafc;font-size:13px;color:#344054}
.mover-notification-switch{position:relative;width:44px;height:25px;border:0;border-radius:999px;background:#98a2b3;cursor:pointer;padding:0;flex:none}
.mover-notification-switch::after{content:"";position:absolute;top:3px;right:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:.18s}
.mover-notification-switch[aria-checked="true"]{background:#12b76a}
.mover-notification-switch[aria-checked="true"]::after{right:22px}
.mover-notification-consent{position:fixed;z-index:64500;inset:auto 14px calc(14px + env(safe-area-inset-bottom)) 14px;margin:auto;width:min(620px,calc(100vw - 28px));background:#fff;border:1px solid #cfe0f5;border-radius:24px;box-shadow:0 25px 75px rgba(15,23,42,.25);padding:18px;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;direction:rtl}
.mover-notification-consent-icon{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#e9f5ff,#e8fbff);display:grid;place-items:center;font-size:24px}
.mover-notification-consent-copy strong{display:block;color:var(--v35-navy);font-size:16px}
.mover-notification-consent-copy span{display:block;color:#536174;font-size:13px;line-height:1.55;margin-top:3px}
.mover-notification-consent-actions{display:flex;gap:8px;align-items:center}
.mover-notification-consent-actions button{min-height:42px;border-radius:12px;padding:9px 13px;font-weight:850;cursor:pointer}
.mover-notification-allow{border:0;background:var(--v35-navy);color:#fff}
.mover-notification-later{border:1px solid var(--v35-line);background:#fff;color:#475467}
.mover-notification-toast{position:fixed;z-index:64600;top:calc(70px + env(safe-area-inset-top));right:14px;width:min(390px,calc(100vw - 28px));padding:15px 16px;border-radius:18px;background:#102448;color:#fff;box-shadow:0 22px 60px rgba(15,23,42,.28);cursor:pointer;direction:rtl}
.mover-notification-toast b{display:block;margin-bottom:4px}.mover-notification-toast span{display:block;font-size:13px;line-height:1.5;color:#dce8f8}

/* Mover availability control */
.v35-marketplace-status{margin:14px 0;padding:18px;border-radius:20px;border:1px solid #a6f4c5;background:var(--v35-success-soft);display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}
.v35-marketplace-status.paused{border-color:#fecdca;background:var(--v35-danger-soft)}
.v35-marketplace-status.pending{border-color:#fedf89;background:#fffaeb}
.v35-marketplace-status h2{margin:0 0 5px;font-size:20px;color:var(--v35-success)}
.v35-marketplace-status.paused h2{color:var(--v35-danger)}
.v35-marketplace-status.pending h2{color:#93370d}
.v35-marketplace-status p{margin:0;color:#475467;line-height:1.55}
.v35-marketplace-status .btn{white-space:normal;min-height:46px}
.v35-marketplace-status.paused .btn{background:var(--v35-navy)!important;color:#fff!important;border-color:var(--v35-navy)!important}
.v35-marketplace-status:not(.paused):not(.pending) .btn{background:#fff!important;color:var(--v35-danger)!important;border:1px solid #fda29b!important}
.v35-confirm-overlay{position:fixed;inset:0;z-index:65000;background:rgba(15,23,42,.68);display:grid;place-items:center;padding:16px;direction:rtl}
.v35-confirm-card{width:min(520px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:0 30px 90px rgba(15,23,42,.35)}
.v35-confirm-card h2{margin:0 0 9px;color:var(--v35-navy)}
.v35-confirm-card p{color:#475467;line-height:1.65}
.v35-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.v35-confirm-actions button{min-height:48px;border-radius:14px;font-weight:900;cursor:pointer}
.v35-confirm-danger{border:0;background:#b42318;color:#fff}.v35-confirm-cancel{border:1px solid var(--v35-line);background:#fff;color:#344054}

/* Registration-only help */
.v35-registration-help{margin:15px 0 0;padding:14px 15px;border:1px solid #cfe0f5;border-radius:17px;background:linear-gradient(135deg,#f7fbff,#f4fdff);display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:#163a63}
.v35-registration-help strong{display:block;font-size:14px}.v35-registration-help span{display:block;font-size:12px;color:#5e7188;margin-top:3px;line-height:1.45}
.v35-registration-help b{flex:none;padding:9px 12px;border-radius:11px;background:#102448;color:#fff;font-size:12px}

/* Explicit unavailable state for a paused direct mover. */
.direct-mover-unavailable{max-width:760px!important;margin:auto!important;text-align:center!important;padding:clamp(28px,6vw,58px)!important;border:1px solid #e5eaf1!important;border-radius:28px!important;background:#fff!important;box-shadow:0 22px 70px rgba(15,23,42,.1)!important}
.direct-mover-unavailable .unavailable-logo{width:86px;height:86px;object-fit:contain;margin:0 auto 14px;border:1px solid var(--v35-line);border-radius:22px;background:#fff;padding:8px}
.direct-mover-unavailable .unavailable-status{display:inline-flex;padding:7px 12px;border-radius:999px;background:#fff1f0;color:#b42318;font-weight:900;margin-bottom:12px}

/* Admin availability indicator */
.admin-market-status{display:inline-flex;align-items:center;gap:6px;margin-top:7px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900}
.admin-market-status.available{background:#123c2c;color:#8ef0bb}.admin-market-status.paused{background:#4c1717;color:#ffb4ad}.admin-market-status.unavailable{background:#3b2e13;color:#fbd38d}

@media(max-width:720px){
  body{width:100%;min-height:100%;padding-bottom:env(safe-area-inset-bottom)}
  input,select,textarea{font-size:16px!important}
  .topbar,.customer-head,.order-head{width:100%;max-width:100%;flex-wrap:wrap!important}
  .topbar>* ,.customer-head>* ,.order-head>*{max-width:100%}
  .card,.customer-card,.order,.metric,.modal-card,.portal-note,.share-box{max-width:100%;overflow-wrap:anywhere}
  table{max-width:none}
  .tablewrap{width:100%;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
  .system-overlay{padding:0!important;align-items:stretch!important;place-items:stretch!important;background:#f8fbff!important}
  .system-modal,.welcome-modal{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;padding:calc(72px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important;text-align:center!important;display:block!important}
  .welcome-modal .modal-close{position:fixed!important;top:calc(12px + env(safe-area-inset-top))!important;right:auto!important;left:14px!important;z-index:2}
  .welcome-logo{display:block!important;width:min(300px,82vw)!important;margin:0 auto 18px!important}
  .welcome-modal h2{font-size:clamp(27px,8.5vw,38px)!important;line-height:1.08!important;margin:0 0 12px!important;overflow-wrap:normal!important;word-break:normal!important}
  .welcome-lead{font-size:15px!important;line-height:1.6!important;margin-bottom:15px!important}
  .welcome-audience{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;text-align:right!important}
  .welcome-audience section{width:100%!important;margin:0!important;padding:14px!important;border-radius:16px!important}
  .welcome-audience h3{font-size:17px!important;margin:0 0 5px!important}.welcome-audience p{font-size:13px!important;line-height:1.55!important;margin:0!important}
  .welcome-quick-access{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:13px 0!important}
  .welcome-modal .btn{min-height:50px!important}
  .entry-gateway{padding:0!important;place-items:stretch!important;background:#f8fbff!important}
  .gateway-card.v33-gateway,.gateway-card{width:100vw!important;max-width:100vw!important;min-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;padding:calc(66px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important}
  .v33-entry-hero h1,.gateway-card h1{font-size:clamp(29px,8.2vw,39px)!important;line-height:1.08!important;overflow-wrap:normal!important;word-break:normal!important}
  .v33-entry-grid{grid-template-columns:1fr!important}.v33-entry-card{width:100%!important}
  .v33-entry-card.primary{min-height:200px!important}
  .v33-entry-card h2,.instant-mover-name,.mover-card h2,.mover-card h3{text-align:center!important;margin-inline:auto!important}
  .v33-secondary-links{grid-template-columns:1fr!important}.v33-secondary-links a{width:100%!important;text-align:center!important}
  .v33-trust-row{grid-template-columns:1fr!important}
  .mover-global-language{top:calc(8px + env(safe-area-inset-top))!important;left:8px!important;right:auto!important;min-height:43px!important;max-width:150px!important;padding:4px 8px!important;z-index:61000!important}
  html[dir="ltr"] .mover-global-language{right:8px!important;left:auto!important}
  .system-overlay:not([hidden])~.mover-global-language,.entry-gateway:not([hidden])~.mover-global-language{display:none!important}
  .pa-launch{left:max(10px,env(safe-area-inset-left))!important;right:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:54px!important;height:54px!important;max-width:54px!important;border-radius:18px!important;padding:6px!important}
  .pa-launch>span:last-child{display:none!important}
  .pa-shell{padding:6px!important;align-items:end!important}
  .pa-card{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:24px 24px 18px 18px!important;overflow-x:hidden!important}
  .mover-notification-root{top:calc(8px + env(safe-area-inset-top));right:8px}
  .mover-notification-bell{width:43px;height:43px;border-radius:14px}
  .mover-notification-panel{position:fixed;top:calc(60px + env(safe-area-inset-top));right:8px;left:8px;width:auto;max-height:calc(100dvh - 80px - env(safe-area-inset-bottom));border-radius:20px}
  .mover-notification-consent{grid-template-columns:auto 1fr;padding:15px;border-radius:20px}
  .mover-notification-consent-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;width:100%}
  .mover-notification-consent-actions button{width:100%}
  .v35-marketplace-status{grid-template-columns:1fr;padding:16px}.v35-marketplace-status .btn{width:100%}
  .v35-confirm-overlay{align-items:end;padding:7px}.v35-confirm-card{border-radius:24px 24px 18px 18px;padding:20px 17px calc(18px + env(safe-area-inset-bottom))}.v35-confirm-actions{grid-template-columns:1fr}
  .v35-registration-help{align-items:flex-start}.v35-registration-help b{align-self:center}
  .order-actions,.chat-compose,.settings,.form-grid{max-width:100%}
  .order-actions{grid-template-columns:1fr!important}
}

@media(max-width:360px){
  .system-modal,.welcome-modal{padding-inline:13px!important}.welcome-modal h2{font-size:27px!important}
  .gateway-card.v33-gateway,.gateway-card{padding-inline:10px!important}.v33-entry-card{padding-inline:13px!important}.v33-entry-card h2{font-size:23px!important}
  .v35-registration-help{display:grid;grid-template-columns:1fr}.v35-registration-help b{width:100%;text-align:center}
}

/* V35 mobile entry-flow hardening: neutralize the legacy named grid area that
   created implicit 28px columns on narrow screens. */
.v35-entry-locked .mover-global-language{display:none!important}
@media(max-width:720px){
  .v33-entry-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;grid-auto-flow:row!important;grid-auto-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;width:100%!important}
  .v33-entry-grid>*{grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;min-width:0!important;width:100%!important;max-width:100%!important}
  #customerEntry{grid-area:auto!important;grid-column:auto!important;grid-row:auto!important}
}

.instant-overlay-open .mover-global-language{display:none!important}

/* V35.1 — notification approval is device-specific; account preference stays server-side. */
.mover-notification-settings{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.mover-notification-setting-row,.mover-notification-device-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.mover-notification-device-row{padding-top:10px;border-top:1px solid var(--v35-line)}
.mover-notification-device-row span{min-width:0;color:#536174;font-size:12px;line-height:1.45}
.mover-notification-device-row button{flex:none;min-height:36px;max-width:145px;padding:7px 10px;border:1px solid #bfd2e8;border-radius:11px;background:#fff;color:#163a63;font-weight:850;font-size:12px;cursor:pointer;white-space:normal}
.mover-notification-device-row button[data-permission="granted"],.mover-notification-device-row button:disabled{border-color:#a6f4c5;background:#ecfdf3;color:#067647;cursor:default;opacity:1}
.mover-notification-device-row button[data-permission="denied"]{border-color:#fecdca;background:#fff1f0;color:#b42318}
@media(max-width:420px){.mover-notification-device-row{align-items:flex-start}.mover-notification-device-row button{max-width:118px}}
