.delivery-progress{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px;line-height:1.5}
.delivery-progress>strong{display:inline-block;padding:3px 9px;border-radius:999px;background:#edf2f7;color:#52647a;font-weight:600}
.delivery-progress>span{color:#60748c;font-size:12px}
.delivery-progress.is-part_delivered>strong,.delivery-progress.is-needs_review>strong{background:#fff1dc;color:#a85b08}
.delivery-progress.is-delivered>strong{background:#e4f5eb;color:#247346}
.delivery-progress.is-cancelled>strong{background:#fff0f0;color:#b32626}
.hub-visits{display:flex;flex-direction:column;gap:14px;min-height:0}
.hub-visits__requests{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.hub-visits__request{padding:16px;border:1px solid #d9e3ed;border-radius:8px;background:#f7faff}
.hub-visits__request h4,.hub-visits__request p{margin:0 0 10px}
.hub-visits__request footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.hub-visits__history{max-height:210px;overflow:auto;border:1px solid #d9e3ed;border-radius:8px}
.hub-visits__history table{width:100%;border-collapse:collapse}
.hub-visits__history th,.hub-visits__history td{padding:12px;text-align:left;border-bottom:1px solid #e0e7ef}
.hub-visits__reason{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid #d9e3ed;border-radius:8px}
.hub-visits__reason textarea{resize:none;min-height:90px}
.hub-visits__reason footer{display:flex;gap:10px;justify-content:flex-end}
#orderHub .hub-visits{height:100%;overflow:hidden}
#orderHub .hub-visits>#customerHubScheduleBody{display:flex;flex-direction:column;flex:1;min-height:0}
#orderHub .hub-visits .hub-visit-picker{flex:none}
#orderHub .hub-visits .hub-visit-picker__choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#orderHub .hub-visits .hub-visit-picker__choices>button{padding:10px 12px;min-height:44px;justify-content:center}
#orderHub .hub-visits__requests:empty{display:none}
#orderHub .hub-visits__requests{flex:none;max-height:165px;overflow:auto}
#orderHub .hub-visits__history{flex:none}
#orderHub .hub-visits__history summary{padding:12px 16px;font-weight:600;cursor:pointer}
#orderHub .hub-visits__reason{overflow:auto}
#orderHub .order-hub__dates .delivery-progress{justify-content:flex-end}
#orderHub .order-hub__dates .delivery-progress>strong{font-size:12px}
#orderHub .order-hub__dates .delivery-progress{white-space:normal;gap:2px 6px;line-height:1.25}
#orderHub .order-hub__dates .delivery-progress>strong{font-size:11px;padding:1px 6px}
#orderHub .order-hub__dates .delivery-progress>span{flex-basis:100%;font-size:11px;white-space:normal;text-align:right}
#orderHub .hub-visits .hub-visit-picker{padding-top:12px;margin:0;gap:10px}
#orderHub .hub-visits .hub-visit-picker__choices>button{min-height:44px;white-space:nowrap}
#orderHub .hub-visits .order-scheduler-hub__error:empty{display:none}
#orderHub .hub-visits .order-scheduler-hub__booking{gap:12px;padding:18px 22px 0}
#orderHub .hub-visits .order-scheduler-hub__booking-date{font-size:24px}
#orderHub .hub-visits .order-scheduler-hub__booking-details{gap:16px}
#orderHub .hub-visits .order-scheduler-hub__booking-capacity{padding-top:12px;gap:7px}
#orderHub .hub-visits .order-scheduler-hub__booking-footer{margin-inline:-22px;padding:10px 22px}
#orderHub .hub-visits .order-scheduler-hub__delivering{padding-bottom:8px;flex-shrink:0}
#orderHub .hub-visits .order-scheduler-hub__focused-actions{flex-shrink:0}
#orderHub .hub-visits .order-scheduler-hub__heading{display:none}
#orderHub .hub-visits .order-scheduler-hub__scope{padding:10px 14px;gap:10px}
#orderHub .hub-visits .order-scheduler-hub__scope-count{width:36px;height:36px}
#orderHub .hub-visits .order-scheduler-hub__scope small{display:none}
#orderHub .hub-visits .order-scheduler-hub__capacity-empty{padding:10px 16px}
#orderHub .hub-visits .order-scheduler-hub__routes{flex:1 1 auto}
#orderHub .hub-visits__requests:not(:empty){margin-inline:20px}
#orderHub .hub-visits__back{min-height:32px!important;padding:4px 8px!important;font-size:12px!important;white-space:nowrap}
#orderHub .hub-visits__summary{align-self:flex-start;margin:0 20px;min-height:32px!important;padding:4px 10px!important;font-size:13px!important}
#orderHub .hub-visits .order-scheduler-hub__reason:has([data-schedule-visit-reason]){display:grid;flex:0 0 auto;gap:5px;margin:0}
#orderHub .hub-visits .order-scheduler-hub__visit-reason-label{display:inline;line-height:1.3}
#orderHub .hub-visits [data-schedule-visit-reason]{box-sizing:border-box;height:52px;min-height:52px;margin:0;padding:8px 10px;resize:none}
#orderHub .hub-visits .order-scheduler-hub__routes:has([data-schedule-route-list]){flex:1 1 220px;min-height:145px}
@media(max-width:760px){#orderHub .hub-visits .hub-visit-picker__choices>button{white-space:normal}#orderHub .hub-visits #customerHubScheduleBody:has(.order-scheduler-hub__booking){overflow:auto;flex-shrink:0;min-height:260px}}
#orderHub .order-scheduler-hub__remove-copy label{display:flex;align-items:center;gap:10px;margin:16px 0}
@media(max-width:760px){#orderHub .hub-visits .hub-visit-picker__choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
.order-scheduler-popup{width:min(1100px,calc(100vw - 40px));max-width:none;min-height:420px;height:min(790px,calc(100dvh - 40px));display:flex;flex-direction:column;position:relative;padding:28px}
.order-scheduler-popup>[data-shared-schedule-close]{align-self:flex-end;flex:none;width:34px;height:34px;padding:0;font-size:24px;line-height:1}
.order-scheduler-popup>[data-shared-schedule-body]{flex:1;min-height:0;display:flex;flex-direction:column}
.order-scheduler-popup .order-scheduler-hub{flex:1;min-height:0;overflow:hidden}

/* Keep Schedule controls together, with content-sized requests and forms. */
#orderHub .hub-visits{gap:16px;overflow:auto;overscroll-behavior:contain}
#orderHub .hub-visits .hub-visit-picker{gap:12px;padding:16px 20px 0}
#orderHub .hub-visits .order-hub__section-head{flex-wrap:wrap;gap:8px 16px}
#orderHub .hub-visits .order-hub__section-head h3{margin:0}
#orderHub .hub-visits .delivery-progress{min-width:0;max-width:100%;gap:4px 8px}
#orderHub .hub-visits .delivery-progress>span{overflow-wrap:anywhere}
#orderHub .hub-visit-picker__toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;min-width:0}
#orderHub .hub-visits .hub-visit-picker__choices{display:flex;flex-wrap:wrap;gap:6px;max-width:none;min-width:0}
#orderHub .hub-visits .hub-visit-picker__choices>button{flex:0 1 auto;min-height:44px;white-space:normal;padding:8px 12px!important}
#orderHub .hub-visits__summary{display:inline-flex;flex:0 1 auto;align-items:center;gap:5px;margin:0;min-height:44px!important;padding:7px 10px!important;white-space:normal;text-align:left;line-height:1.35!important}
#orderHub .hub-visits__summary .order-hub__icon{width:16px;height:16px}
#orderHub .hub-visits__count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 4px;box-sizing:border-box;border-radius:11px;background:#e9eff6;font-weight:700}
#orderHub .hub-visits__request-list{display:grid;flex:0 0 auto;gap:12px;margin:0 20px;min-width:0}
#orderHub .hub-visits__list-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
#orderHub .hub-visits__list-head h4{display:flex;align-items:center;gap:8px;margin:0;font-size:15px}
#orderHub .hub-visits__list-head h4 span{color:#60748c;font-size:13px;font-weight:400}
#orderHub .hub-visits__requests:not(:empty){display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:10px;margin:0;max-height:none;overflow:visible}
#orderHub .hub-visits__request{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding:16px;min-width:0;background:#f7faff}
#orderHub .hub-visits__request-copy{display:grid;gap:7px;min-width:0}
#orderHub .hub-visits__request header{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
#orderHub .hub-visits__request h4,#orderHub .hub-visits__request p{margin:0;overflow-wrap:anywhere}
#orderHub .hub-visits__request h4{font-size:15px}
#orderHub .hub-visits__request p{white-space:pre-wrap;line-height:1.5}
#orderHub .hub-visits__request small{color:#60748c;overflow-wrap:anywhere;line-height:1.4}
#orderHub .hub-visits__status{max-width:100%;box-sizing:border-box;padding:3px 8px;border-radius:5px;background:#fff1dc;color:#8b520f;font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#orderHub .hub-visits__status.is-scheduled{background:#e5f3eb;color:#256443}
#orderHub .hub-visits__request footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
#orderHub .hub-visits__request footer button{min-height:44px;white-space:normal}
#orderHub .hub-visits__request-tools{display:flex;align-items:center;gap:6px;margin-left:auto}
#orderHub .hub-visits__icon-button{display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px!important;padding:0!important;color:var(--oms-action-primary)!important}
#orderHub .hub-visits__icon-button--danger{color:var(--oms-action-danger-text,#a32836)!important;border-color:var(--oms-action-danger-border,#ce6571)!important}
#orderHub .hub-visits__icon-button--danger:hover{background:var(--oms-action-danger-hover,#fff0f2)!important;border-color:var(--oms-action-danger-border,#ce6571)!important}
#orderHub .hub-visits__icon-button--danger:focus-visible{outline-color:var(--oms-action-danger-border,#ce6571)!important}
#orderHub .hub-visits__inline-icon{display:block;flex:0 0 auto;width:20px;height:20px;filter:none}
#orderHub .hub-visits__dialog-backdrop{position:absolute;inset:0;z-index:10030;display:grid;place-items:center;padding:24px;background:rgba(13,34,57,.46)}
#orderHub .hub-visits__dialog{display:grid;gap:14px;width:min(520px,100%);max-height:min(680px,calc(100% - 24px));overflow:auto;box-sizing:border-box;padding:22px;border-radius:10px;background:#fff;box-shadow:0 18px 46px rgba(13,34,57,.28)}
#orderHub .hub-visits__dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
#orderHub .hub-visits__dialog h3,#orderHub .hub-visits__dialog p{margin:0}
#orderHub .hub-visits__dialog>header p{margin-top:5px;color:#526b83;line-height:1.45}
#orderHub .hub-visits__dialog>header button{display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px!important;padding:0!important;font-size:22px}
#orderHub .hub-visits__dialog textarea{box-sizing:border-box;width:100%;min-height:112px;resize:vertical}
#orderHub .hub-visits__dialog .ai-improve-row{margin:0}
#orderHub .hub-visits__dialog-error{min-height:20px;color:#a32836}
#orderHub .hub-visits__dialog-error:empty{visibility:hidden}
#orderHub .hub-visits__dialog>footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
#orderHub .hub-visits__history{margin:0 20px 16px;max-height:none;overflow:visible}
#orderHub .hub-visits__history[open]{overflow:auto;flex-shrink:1;min-height:100px}
#orderHub .hub-visits__history table{min-width:540px;font-size:13px}
#orderHub .hub-visits__history summary{padding:12px 14px}
#orderHub .hub-visits>#customerHubScheduleBody:not(:has(>.order-scheduler-hub)){flex:0 0 auto;overflow:visible;margin:0 20px}
#orderHub .hub-visits>#customerHubScheduleBody:empty{display:none}
#orderHub .hub-visits__reason{display:grid;align-content:start;gap:12px;padding:18px;margin:0;overflow:visible;min-width:0}
#orderHub .hub-visits__reason h4,#orderHub .hub-visits__reason p{margin:0;line-height:1.5;overflow-wrap:anywhere}
#orderHub .hub-visits__reason>p{font-size:13px;color:#526b83}
#orderHub .hub-visits__reason [data-visit-error]{color:#a32836}
#orderHub .hub-visits__reason [data-visit-error]:empty{display:none}
#orderHub .hub-visits__reason textarea{min-height:100px;max-height:260px;resize:vertical}
#orderHub .hub-visits__reason footer{margin:0;padding-top:2px;flex-wrap:wrap}
#orderHub .hub-visits__reason [data-visit-request]:not(.hub-visits__request-only),#orderHub .hub-visits__reason [data-visit-schedule]{background:var(--oms-action-primary)!important;color:#fff!important;border-color:var(--oms-action-primary)!important}
#orderHub .hub-visits #customerHubScheduleBody>.order-scheduler-hub{gap:12px;padding:0 20px 16px;min-height:300px}
#orderHub .hub-visits .order-scheduler-hub__routes-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-width:0}
#orderHub .hub-visits .order-scheduler-hub__routes-heading h4{font-size:16px;white-space:nowrap}
#orderHub .hub-visits .order-scheduler-hub__scope{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:0;border:0;border-radius:0;background:transparent;min-width:0;max-width:100%;flex:0 1 auto}
#orderHub .hub-visits .order-scheduler-hub__scope>div{display:grid;gap:2px;min-width:0;flex:1 1 150px}
#orderHub .hub-visits .order-scheduler-hub__scope strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
#orderHub .hub-visits .order-scheduler-hub__scope small{display:block;font-size:12px;line-height:1.4;color:#526b83;overflow-wrap:anywhere}
#orderHub .hub-visits .order-scheduler-hub__scope button{flex:0 0 auto;min-height:38px!important;padding:7px 10px!important;white-space:normal}
#orderHub .hub-visits .order-scheduler-hub__section-head{flex-wrap:wrap;gap:10px 18px;padding:12px 14px}
#orderHub .hub-visits .order-scheduler-hub__section-head>div{flex-wrap:wrap;min-width:0}
#orderHub .hub-visits .order-scheduler-hub__new-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
#orderHub .hub-visits .order-scheduler-hub__route-table{max-height:none}
#orderHub .hub-visits .order-scheduler-hub__booking-status{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#orderHub .hub-visits .order-scheduler-hub__booking-head{align-items:flex-start}
#orderHub .hub-visits .order-scheduler-hub__booking-date{min-width:0;overflow-wrap:anywhere;font-size:22px}
#orderHub .hub-visits .order-scheduler-hub__booking-details>div{min-width:0}
#orderHub .hub-visits .order-scheduler-hub__delivering{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
#orderHub .hub-visits .order-scheduler-hub__footer{gap:10px;margin-top:0;padding-top:12px}
@media(max-width:1050px){
  #orderHub .hub-visits__request{align-items:flex-start;flex-wrap:wrap}
  #orderHub .hub-visits__request footer{flex-basis:100%}
}
@media(max-width:760px){
  #orderHub .hub-visits{height:auto;min-height:0;overflow:visible}
  #orderHub .hub-visits .hub-visit-picker{padding:16px 16px 0}
  #orderHub .hub-visits .hub-visit-picker__choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  #orderHub .hub-visit-picker__toolbar{align-items:stretch}
  #orderHub .hub-visits__summary{align-self:flex-start;min-height:44px!important}
  #orderHub .hub-visits__request-list,#orderHub .hub-visits__history{margin-inline:16px}
  #orderHub .hub-visits>#customerHubScheduleBody:not(:has(>.order-scheduler-hub)){margin-inline:16px}
  #orderHub .hub-visits #customerHubScheduleBody{flex:0 0 auto;overflow:visible;min-height:0}
  #orderHub .hub-visits #customerHubScheduleBody>.order-scheduler-hub{height:auto;min-height:0;overflow:visible;padding:0 16px 16px}
  #orderHub .hub-visits .order-scheduler-hub__routes:has([data-schedule-route-list]){flex:0 0 auto;min-height:0}
  #orderHub .hub-visits .order-scheduler-hub__route-table{max-height:280px}
  #orderHub .hub-visits .order-scheduler-hub__route-table table{min-width:580px}
  #orderHub .hub-visits .order-scheduler-hub__booking{padding:16px 16px 0}
  #orderHub .hub-visits .order-scheduler-hub__booking-date{font-size:20px}
  #orderHub .hub-visits .order-scheduler-hub__booking-footer{margin-inline:-16px;padding-inline:16px;flex-wrap:wrap;gap:8px}
  #orderHub .hub-visits .order-scheduler-hub__booking-details{gap:16px}
  #orderHub .hub-visits .order-scheduler-hub__scope button{min-height:44px!important}
  #orderHub .hub-visits .order-scheduler-hub__section-head button,#orderHub .hub-visits .order-scheduler-hub__section-head input{height:auto!important;min-height:44px!important}
  #orderHub .hub-visits__reason{padding:16px}
  #orderHub .hub-visits [data-schedule-visit-reason]{height:88px;min-height:88px;max-height:240px;resize:vertical}
  #orderHub .hub-visits__dialog-backdrop{position:fixed;padding:14px}
  #orderHub .hub-visits__dialog{max-height:calc(100dvh - 28px);padding:18px}
}
