/* Home header only. Existing controls keep their handlers. */
html.swift-design body #appScreen .header{position:relative!important;isolation:isolate!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;gap:18px 12px!important;background:#ff6a00!important;color:#fff!important;margin:0 -22px 20px!important;padding:calc(24px + env(safe-area-inset-top,0px)) 22px 24px!important;border-radius:0 0 28px 28px!important;overflow:visible!important}
html.swift-design body #appScreen .header::before,html.swift-design body #appScreen .header::after{content:none!important;display:none!important;background:none!important}
html.swift-design body #appScreen .header .sd-brand{display:none!important}
html.swift-design body #appScreen .header .header-saved-location{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;column-gap:12px!important;padding:0!important;margin:0!important;color:white!important;min-height:46px!important;background:transparent!important;border:0!important}
html.swift-design body #appScreen .header .header-saved-location>.sd-icon{display:none!important}
html.swift-design body #appScreen .header .header-saved-location>span:not(.home-customer-avatar){grid-column:2!important;grid-row:1!important;color:#fff!important;font-size:11px!important;opacity:.9;line-height:1.3!important}
html.swift-design body #appScreen .header .header-saved-location>strong{grid-column:2!important;grid-row:2!important;color:white!important;font-size:15px!important;line-height:1.4!important}
html.swift-design body #appScreen .header .home-customer-avatar{grid-column:1!important;grid-row:1/3!important;width:46px!important;height:46px!important;border-radius:50%!important;border:2px solid #fff9!important;background:#fff!important;color:#2a2c28!important;display:grid!important;place-items:center!important;overflow:hidden!important;box-sizing:border-box!important;opacity:1!important}
.home-customer-avatar img{display:block;width:100%;height:100%;object-fit:cover}.home-customer-avatar svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}
html.swift-design body #appScreen .header>p{grid-column:1/-1!important;grid-row:2!important;margin:0!important;color:white!important}
html.swift-design body #appScreen .header .sd-home-greeting{display:block;color:white!important;font-size:clamp(28px,5vw,38px)!important;line-height:1.15!important}
html.swift-design body #appScreen .header .sd-home-subtitle{display:block;color:white!important;opacity:.92;font-size:13px!important;line-height:1.5!important;margin-top:8px!important}
html.swift-design body #appScreen .header #deliveryNotificationBell{grid-column:2!important;grid-row:1!important;background:#ffffff24!important;border:1px solid #ffffff66!important;color:#fff!important}
html.swift-design body #appScreen .header #deliveryNotificationBell svg{color:white!important;stroke:white!important}
html.swift-design body #appScreen .header .sd-header-balance{grid-column:1!important;grid-row:3!important;margin:0!important;background:#fff!important;border:0!important;color:#252b23!important}
html.swift-design body #appScreen .header .sd-header-group{grid-column:2!important;grid-row:3!important;background:#fff!important;border:0!important;color:#252b23!important;padding:10px 12px!important;font-size:11px!important}
@media(max-width:480px){html.swift-design body #appScreen .header{padding-top:max(28px,env(safe-area-inset-top,0px))!important}.home-customer-avatar{flex-shrink:0}}

html.swift-design body #appScreen .header{margin-inline:calc(-1 * var(--sd-gutter,22px))!important;padding-inline:var(--sd-gutter,22px)!important;box-sizing:border-box!important}

/* The location controller wraps address and district in one group. */
html.swift-design body #appScreen .header .swift-location-group{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;width:100%!important;max-width:none!important;min-width:0!important}
html.swift-design body #appScreen .header .swift-location-group .header-saved-location{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:auto auto!important;grid-column:auto!important;grid-row:auto!important;align-items:center!important;min-width:0!important;width:100%!important;min-height:46px!important;height:auto!important}
html.swift-design body #appScreen .header .swift-location-group .swift-region-bar{padding:0 0 0 58px!important;margin:0!important;max-width:100%!important}
html.swift-design body #appScreen .header .swift-location-group #swiftRegionName{background:transparent!important;color:white!important;border:0!important;min-height:26px!important;padding:2px 0!important;font-size:11px!important;max-width:100%!important}
html.swift-design body #appScreen .header .sd-header-balance{align-self:center!important;min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;gap:5px!important;padding:9px 11px!important}
html.swift-design body #appScreen .header .sd-header-group{align-self:center!important;min-width:0!important;white-space:nowrap!important}
html.swift-design:not(.swift-keyboard-open) body #appScreen{padding-top:0!important;margin-top:0!important}
html.swift-design body #appScreen .header{display:grid!important;align-items:center!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;row-gap:18px!important;min-height:0!important;height:auto!important;box-shadow:0 -100px 0 #ff6a00!important}
html.swift-design body #appScreen .header .header-saved-location>strong{display:block!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:360px){html.swift-design body #appScreen .header .sd-header-balance{font-size:10px!important;padding:8px!important}.sd-header-balance .sd-balance-label{display:none}html.swift-design body #appScreen .header .sd-header-group{padding:9px!important;font-size:10px!important}}

/* Change the orange silhouette only; header grid, spacing and controls stay intact. */
html.swift-design body #appScreen .header{border-radius:0!important}
html.swift-design body #appScreen .header::after{content:""!important;display:block!important;position:absolute!important;inset:auto 0 -1px!important;width:100%!important;height:18px!important;z-index:0!important;pointer-events:none!important;border:0!important;background:transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%2036%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%2019C24%206%2043%206%2066%2018S108%2031%20132%2018S175%206%20198%2018S241%2031%20264%2018S307%206%20330%2018S373%2031%20396%2018S439%206%20462%2018S505%2031%20528%2018S571%206%20594%2018S637%2031%20660%2018S703%206%20726%2018S769%2031%20792%2018S835%206%20858%2018S901%2031%20924%2018S967%206%20990%2018S1033%2031%201056%2018S1099%206%201122%2018S1170%2031%201200%2018V36H0Z%22%2F%3E%3C%2Fsvg%3E") center bottom/100% 100% no-repeat!important}
