/* Approved Jijel reference proportions: 237-food-home-controls. */
/* Keep the shared SVG filter definitions out of document flow, including
   when the production CSP blocks the previous inline position declaration. */
#sahla-filter-defs {position:absolute; width:0; height:0; overflow:hidden; pointer-events:none;}
body.customer-theme {
  --theme-ink: #004e3e;
  --theme-yellow: #ffcf19;
  background: #fff !important;
  isolation: isolate;
}
/* A fixed backdrop fills the viewport, including tablet gutters, without iOS background-attachment. */
body.customer-theme::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: #fff var(--customer-background-image, url('/assets/sahla-jijel-approved-v233.webp')) center top / cover no-repeat;
  filter: var(--customer-background-filter, none);
}
body.customer-theme::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--customer-background-overlay, #ffffff);
  opacity: var(--customer-background-opacity, .12);
}
body.customer-theme #root > .phone-shell {
  width: 100%; max-width: 940px; min-height: 100svh; margin-inline: auto;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
body.customer-theme #root > .phone-shell > .app-content {
  max-width: 940px; width: 100%; min-width: 0; margin-inline: auto;
  padding: 6px max(12px, env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
/* Reset the legacy white gradient that concealed the white home message. */
body.customer-theme #root > .customer-home > .app-content {
  background: transparent; color: #fff;
}
body.customer-theme #root .app-header.balanced-customer-header {
  background: transparent; border: 0; box-shadow: none; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  height: auto; min-height: 58px; gap: 8px;
  padding: calc(6px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
}
body.customer-theme #root .balanced-customer-header > .app-wordmark {
  display: block; width: 108px; height: 42px; padding: 0; border: 0; border-radius: 0;
  background: transparent; stroke: none; overflow: visible;
}
body.customer-theme #root .balanced-customer-header .language-trigger,
body.customer-theme #root .balanced-customer-header .location-header {
  color: #fff; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
/* Override the legacy !important capsule in closed, open and hover states. */
body.customer-theme #root .balanced-customer-header .language-menu {
  width: 44px !important; height: 44px !important; flex: 0 0 44px !important;
}
body.customer-theme #root .balanced-customer-header .language-menu > summary {
  width: 44px !important; height: 44px !important; padding: 0 !important;
  color: #fff; background: transparent !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
}
body.customer-theme #root .balanced-customer-header .language-menu > summary:focus-visible {
  outline: 2px solid var(--theme-yellow); outline-offset: 2px;
}
body.customer-theme #root .balanced-customer-header .language-trigger b {color: #fff; font-size: 16px;}
body.customer-theme #root .balanced-customer-header .language-trigger {min-width: 44px; min-height: 44px; padding: 4px;}
body.customer-theme #root .balanced-customer-header .location-header {padding: 2px 0; gap: 4px;}
body.customer-theme #root .balanced-customer-header .location-header b {font-size: 11px; color: #fff;}
body.customer-theme #root .balanced-customer-header .location-header small {color: #e6fff3;}
body.customer-theme #root .balanced-customer-header .location-icon {color: #fff; background: transparent; border: 0;}
body.customer-theme #root .balanced-customer-header .page-back {background: transparent; border-color: transparent; color: #fff;}
body.customer-theme #root .balanced-customer-header .language-options {color: var(--theme-ink);}
body.customer-theme #root .customer-home .balanced-customer-header > .header-language-slot {grid-column:1; grid-row:1; justify-content:flex-start;}
body.customer-theme #root .customer-home .balanced-customer-header > .app-wordmark {grid-column:2; grid-row:1;}
body.customer-theme #root .customer-home .balanced-customer-header > .location-header {grid-column:3; grid-row:1; justify-self:end;}
/* Let the welcome copy determine the hero height; keep the bird inside it. */
body.customer-theme #root .customer-home .compact-home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: start;
  min-height: 0; height: auto; max-height: none; gap: 8px;
  margin: 0 0 8px; padding: 3px 2px; border: 0; border-radius: 0;
  background: transparent; color: #fff; box-shadow: none; overflow: hidden;
}
body.customer-theme #root .customer-home .compact-home-hero::before,
body.customer-theme #root .customer-home .compact-home-hero::after {display: none;}
body.customer-theme #root .customer-home .compact-home-hero .hero-copy {min-width: 0; padding: 16px 0 0; text-align: center;}
body.customer-theme #root .customer-home .compact-home-hero h1 {
  font-size: clamp(24px, 7vw, 30px); line-height: 1.4; color: #fff;
  margin: 0 0 2px; text-shadow: 0 1px 3px #00413280;
}
body.customer-theme #root .customer-home .compact-home-hero p {font-size: 15px; color: #fff; line-height: 1.5; margin: 0;}
body.customer-theme #root .customer-home .compact-home-hero img {
  position: static; inset: auto; display: block; width: 96px; height: 100px; max-width: 100%;
  object-fit: contain; margin: 0; padding: 0; filter: none; transform: none; align-self: start;
}
body.customer-theme #root .customer-home .universal-search {width: 94%; max-width: 680px; margin: 10px auto; padding: 0; border: 0; background: transparent;}
body.customer-theme #root .customer-home .universal-search .search-launcher {
  min-height: 36px !important; height: 36px; padding: 4px 12px !important; margin: 0; width: 100%;
  border-radius: 24px !important; background: #ffffffed !important; color: #175d50 !important;
  border: 1px solid #ffffffa6 !important; box-shadow: none !important; font-size: 13px !important;
}
body.customer-theme #root .customer-home .search-launcher > span:nth-child(2) {min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 1.4;}
body.customer-theme #root .customer-home .search-launcher > span:first-child {display: flex; align-items: center;}
body.customer-theme #root .customer-home .search-launcher > i {font-size: 20px; line-height: 1; flex: 0 0 auto;}
/* Keep existing ad links/artwork and the free-service carousel; only their home size changes. */
body.customer-theme #root .customer-home .compact-home-hero + [data-ad-slot] {margin-top:0;}
body.customer-theme #root .customer-home #home-ad-carousel {margin-block: 0 10px;}
body.customer-theme #root .customer-home #home-ad-carousel .ad-slides {width: 100%; height: clamp(68px, calc((100vw - 24px) * .215), 112px); aspect-ratio: auto; border-radius: 18px; background: #004e3e;}
body.customer-theme #root .customer-home #home-ad-carousel .commercial-ad {border: 1px solid #ffffffb3; border-radius: 18px !important;}
body.customer-theme #root .customer-home #home-ad-carousel .commercial-ad::before {content:''; position:absolute; inset:-16px; background:var(--home-ad-backdrop) center / cover no-repeat; filter:blur(12px) brightness(.75); pointer-events:none;}
body.customer-theme #root .customer-home #home-ad-carousel .commercial-ad > :is(img,video) {z-index:1; background:transparent; object-fit: contain !important;}
body.customer-theme #root .customer-home .free-services-banner {margin: 8px auto 12px;}
body.customer-theme #root .customer-home #free-services-carousel .ad-slides {height: clamp(74px, 20.5vw, 96px); min-height: 0; aspect-ratio: auto; border-radius: 18px;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner {height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; border: 1px solid #ffffffa6; border-radius: 18px !important;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner > img {object-fit: cover !important; object-position: center !important;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy {width: 57%; padding-block: 4px; gap: 1px;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy b {font-size: clamp(14px, 3.6vw, 18px); line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy small,
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy > span {font-size: 10px; line-height: 1.2;}
/* Same six managed services and source photos, in normal scrolling order. */
body.customer-theme #root .customer-home .service-filter {margin: 0; padding: 0; background: transparent; border: 0;}
body.customer-theme #root .customer-home .service-filter .categories {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  width: 100%; max-width: 600px; margin: 0 auto; padding: 0; overflow: visible;
}
body.customer-theme #root .customer-home .service-filter .categories > :is(button,a.delivery-service-card) {
  display: block; position: relative;
  width: 100%; min-width: 0; min-height: 44px; height: auto; aspect-ratio: 1; margin: 0; padding: 0;
  background: #004e3e; color: #fff; border: 1px solid #ffffffc7;
  border-radius: 16px; box-shadow: 0 2px 6px #002d2514; overflow: hidden;
  text-align: center; text-decoration:none; transition: transform .15s ease;
}
body.customer-theme #root .customer-home .service-filter .categories > button:active {transform: scale(.98);}
body.customer-theme #root .theme-service-scene {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-height: none;
  border-radius: 0; overflow: hidden; background: #004e3e;
}
body.customer-theme #root .theme-service-scene svg {display: block; width: 100%; height: 100%; stroke: none; overflow: hidden;}
body.customer-theme #root .customer-home .categories .service-copy {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: center; align-items: flex-end; min-width: 0; width: 100%;
  min-height: 46%; padding: 18px 4px 8px; background: linear-gradient(0deg, #004e3ef5 0%, #004e3edb 42%, #004e3e00 100%);
}
body.customer-theme #root .customer-home .categories .service-copy b {
  font-size: clamp(13px, 4vw, 17px); line-height: 1.5; color: #fff; text-shadow: 0 1px 2px #00362c;
  font-weight: 700; white-space: normal; overflow-wrap: normal; margin: 0;
}
body.customer-theme #root .customer-home .categories .service-copy small {display: none;}
body.customer-theme #root .theme-home-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center;
  gap: 0; width: 100%; max-width: 600px; margin: 10px auto 0; padding: 5px 0;
  border: 1px solid #ffffff45; border-radius: 9px; color: #fff; background: #003e3624;
}
body.customer-theme #root .theme-home-stats > div {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 3px 7px; min-width: 0; padding: 0 5px; font-size: 11px; line-height: 1.6;
}
body.customer-theme #root .theme-home-stats > div + div {border-inline-start: 1px solid #ffffff40;}
body.customer-theme #root .theme-home-stats strong {font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;}
body.customer-theme #root .theme-home-message {
  display: block; position: static; text-align: center; padding: 8px 4px; margin: 0;
  color: #fff; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere;
  text-shadow: 0 1px 3px #003e3280;
}
body.customer-theme #root .theme-home-message strong {color: inherit;}
body.customer-theme #root .phone-shell nav.sahla-bottom-nav {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row;
  left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 20px); max-width: 900px;
  bottom: max(8px, env(safe-area-inset-bottom)); padding: 4px; gap: 2px;
  min-height: 62px; border: 1px solid #62bda55e; border-radius: 28px;
  background: #003f35f2; box-shadow: 0 4px 14px #002f2930; backdrop-filter: blur(10px);
}
body.customer-theme #root .phone-shell nav.sahla-bottom-nav button {
  min-height: 52px; min-width: 0; padding: 5px 1px; gap: 3px;
  background: transparent; color: #fff; border: 0; border-radius: 23px; font-size: 10px;
}
body.customer-theme #root .phone-shell nav.sahla-bottom-nav button svg {width: 22px; height: 22px; stroke-width: 1.8;}
body.customer-theme #root .phone-shell nav.sahla-bottom-nav button[aria-current="page"] {background: var(--theme-yellow); color: #003c33; font-weight: 700; box-shadow: none;}
body.customer-theme #root .phone-shell nav.sahla-bottom-nav button:focus-visible {outline: 3px solid white; outline-offset: -3px;}
/* A photo-backed footer prevents later rows showing through the floating bar.
   The rows themselves remain immediately adjacent and scroll normally. */
body.customer-theme #root .customer-home.home-opening-footer-mask::before {
  content:''; position:fixed; inset:0; z-index:44;
  clip-path:inset(var(--home-opening-mask-top, calc(100% - 82px)) 0 0);
  background:var(--customer-background-image, url('/assets/sahla-jijel-approved-v233.webp')) center top / cover no-repeat;
  box-shadow:inset 0 0 0 100vmax color-mix(in srgb, var(--customer-background-overlay,#fff) calc(var(--customer-background-opacity,.12) * 100%), transparent);
}
/* Approved home composition: physical placement does not reverse with language.
   The original portrait keeps its aspect ratio and moves with document scroll. */
body.customer-theme.customer-home-active {position:relative; padding:0; background:#0c85a9 !important;}
body.customer-theme.customer-home-active::before {position:absolute; background-color:#0c85a9; background-size:cover;}
body.customer-theme.customer-home-active::after {position:absolute;}
body.customer-theme #root > .customer-home > .app-content {padding-top:0; padding-inline:clamp(12px,3.8vw,20px);}
body.customer-theme #root .customer-home .app-header.balanced-customer-header {
  position:relative; top:auto; margin:0; min-height:48px; height:auto;
  padding:calc(2px + env(safe-area-inset-top)) clamp(16px,5vw,28px) 2px;
  grid-template-columns:minmax(0,1fr) clamp(108px,28vw,124px) minmax(0,1fr);
}
body.customer-theme #root .customer-home .balanced-customer-header > .app-wordmark {width:100%; height:44px; align-self:center;}
body.customer-theme #root .customer-home .balanced-customer-header > .location-header {direction:rtl; justify-content:flex-start; text-align:right; width:100%; max-width:100%;}
body.customer-theme #root .customer-home .location-header > span:last-child {min-width:0;}
body.customer-theme #root .customer-home .location-header b {font-size:clamp(11px,3.7vw,16px);}
body.customer-theme #root .customer-home .location-header .location-icon {width:20px; flex-basis:20px;}
body.customer-theme #root .customer-home .balanced-customer-header .language-trigger {display:flex; flex-direction:row; gap:6px; justify-content:center;}
body.customer-theme #root .customer-home .balanced-customer-header .language-trigger b {font-size:22px; font-weight:400;}
body.customer-theme #root .customer-home .compact-home-hero {display:block; position:relative; padding:0; margin-bottom:calc(min(100%,900px) / 4.5);}
body.customer-theme #root .customer-home .compact-home-hero .hero-copy {width:64%; margin-inline:auto; padding:0; text-align:center;}
body.customer-theme #root .customer-home .compact-home-hero h1 {font-size:clamp(23px,7vw,30px); line-height:1.4; margin:0 0 2px; white-space:nowrap; text-align:center;}
body.customer-theme #root .customer-home .compact-home-hero p {font-size:clamp(12px,3.9vw,17px); line-height:1.5; text-align:center; overflow-wrap:anywhere;}
body.customer-theme #root .customer-home .compact-home-hero .hero-copy > :is(h1,p) {display:block; width:100%; max-width:none; align-self:stretch;}
body.customer-theme #root .customer-home .compact-home-hero img {position:absolute; top:0; left:0; right:auto; width:22%; height:100%; max-height:82px; object-fit:contain; mix-blend-mode:normal;}
body.customer-theme #root .customer-home #home-ad-carousel .ad-slides {height:auto; aspect-ratio:4.5;}
body.customer-theme #root .customer-home .universal-search {width:94%;}
body.customer-theme #root .customer-home .search-launcher > i {display:none;}
body.customer-theme #root .customer-home .search-launcher {animation:none !important;}
body.customer-theme #root .customer-home .search-launcher > span:nth-child(2) {text-align:center; font-size:14px;}
body.customer-theme #root .customer-home .free-services-banner {margin-bottom:20px;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy b {font-size:clamp(16px,4.6vw,21px);}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy small,
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy > span {font-size:clamp(11px,3vw,13px);}
body.customer-theme #root .customer-home .service-filter .categories {gap:8px;}
body.customer-theme #root .customer-home nav.sahla-bottom-nav {bottom:max(16px,env(safe-area-inset-bottom));}
body.customer-theme #root .customer-home.home-opening-footer-mask::before {
  top:var(--home-scroll-y,0px); bottom:auto; height:var(--home-background-height,100vh);
  clip-path:inset(calc(var(--home-opening-mask-top,100vh) - var(--home-scroll-y,0px)) 0 0);
  background-color:#0c85a9; background-size:cover; background-position:center top;
}
/* Matched banner proportions keep the artwork and captions inside the frame.
   A fixed ratio gives phones and tablets the same image framing. */
body.customer-theme #root .customer-home #home-ad-carousel,
body.customer-theme #root .customer-home #free-services-carousel {max-width:900px; margin-inline:auto;}
body.customer-theme.customer-home-active #root .customer-home #free-services-carousel .ad-slides {height:auto; aspect-ratio:4.5;}
/* Preserve every existing free-service photograph. A 3:1 image occupies
   two thirds of the 4.5:1 frame, so it is neither stretched nor cropped. */
body.customer-theme #root .customer-home #free-services-carousel .service-banner {background:#004e3e;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner > img {width:66.6667%; height:100%; left:0; right:auto; object-fit:contain !important; object-position:left center !important;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner::after {display:block; background:linear-gradient(90deg,transparent 44%,#004e3e 68%);}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy {
  position:absolute; z-index:2; left:auto; right:3%; inset-inline-start:auto; inset-inline-end:auto;
  top:0; bottom:0; width:44%; height:100%; max-height:100%; display:flex; flex-direction:column;
  justify-content:center; align-items:center; gap:2px; padding:2px 0; color:#fff; text-align:center;
  direction:inherit; pointer-events:none; box-sizing:border-box; text-shadow:none;
}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy b {font-size:clamp(12px,3.8vw,26px); line-height:1.2; -webkit-line-clamp:2;}
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy small,
body.customer-theme #root .customer-home #free-services-carousel .service-banner-copy > span {font-size:clamp(8px,2.7vw,17px); line-height:1.2;}
/* free-service-language-layout: move the artwork, its built-in fade and the
   green caption backdrop together for French/English. Mirror only the image;
   the translated caption stays readable and Arabic keeps its approved layout. */
body.customer-theme #root .customer-home #free-services-carousel[dir="ltr"] .service-banner > img {
  left:auto; right:0; object-position:right center !important; transform:scaleX(-1);
}
body.customer-theme #root .customer-home #free-services-carousel[dir="ltr"] .service-banner::after {
  background:linear-gradient(270deg,transparent 44%,#004e3e 68%);
}
body.customer-theme #root .customer-home #free-services-carousel[dir="ltr"] .service-banner-copy {
  left:3%; right:auto; inset-inline-start:3%; inset-inline-end:auto; direction:ltr;
}
/* The scenic image belongs only to the home. All other customer surfaces are white. */
body.customer-theme:not(.customer-home-active)::before,
body.customer-theme:not(.customer-home-active)::after {display:none;}
body.customer-theme:not(.customer-home-active),
body.customer-theme:not(.customer-home-active) #root > .phone-shell,
body.customer-theme:not(.customer-home-active) #root > .phone-shell > .app-content {background:#fff !important; color:#17352d;}
body.customer-theme:not(.customer-home-active) #root .app-header.balanced-customer-header {background:#fff; color:#004e3e;}
body.customer-theme:not(.customer-home-active) #root .balanced-customer-header .app-wordmark image {filter:none;}
body.customer-theme:not(.customer-home-active) #root .balanced-customer-header :is(.language-trigger,.language-trigger b,.location-header,.location-header b,.location-header small,.location-icon,.page-back) {color:#004e3e;}
body.customer-theme:not(.customer-home-active) #root :is(.theme-home-stats,.theme-home-message,.guest-note) {color:#17352d; text-shadow:none;}
/* Forms/catalogues remain readable while the home keeps its uninterrupted bay background. */
body.customer-theme #root .phone-shell:not(.customer-home) > .app-content {background: transparent; color: #17352d; min-height: calc(100svh - 58px); border-radius: 16px 16px 0 0;}
body.customer-theme #root .customer-home .home-discovery.theme-catalog-panel {background: transparent; padding: 12px; border-radius: 14px; color: #17352d;}
body.customer-theme #root .customer-home .guest-note {color: #fff; background: #003e3340; border: 1px solid #ffffff24; border-radius: 10px; padding: 8px; margin-top: 4px;}
body.customer-theme #root .customer-home .guest-note button {background: #fff; color: #00533f;}
@media (min-width: 600px) {
  body.customer-theme #root > .phone-shell > .app-content {padding-inline: 20px; padding-top: 6px;}
  body.customer-theme #root .app-header.balanced-customer-header {padding-inline: 20px; grid-template-columns: minmax(0,1fr) 124px minmax(0,1fr);}
  body.customer-theme #root .balanced-customer-header > .app-wordmark {width: 124px; height: 46px;}
  body.customer-theme #root .balanced-customer-header .location-header {justify-self: end; width: auto; max-width: 230px;}
  body.customer-theme #root .balanced-customer-header .location-header b {font-size: 13px;}
  body.customer-theme #root .customer-home .compact-home-hero {grid-template-columns: minmax(0,1fr) 76px; min-height: 0;}
  body.customer-theme #root .customer-home .compact-home-hero img {width: 76px; height: 100%; max-height:68px;}
  body.customer-theme #root .customer-home .compact-home-hero h1 {font-size: 26px;}
  body.customer-theme #root .customer-home .compact-home-hero p {font-size: 14px;}
  body.customer-theme #root .customer-home .service-filter .categories {gap: 10px;}
  body.customer-theme #root .customer-home .categories .service-copy b {font-size: 14px;}
  body.customer-theme #root .theme-home-stats > div {font-size: 12px;}
  body.customer-theme #root .phone-shell nav.sahla-bottom-nav {width: calc(100% - 40px);}
  body.customer-theme #root .phone-shell nav.sahla-bottom-nav button {font-size: 11px;}
}
@media (max-width: 359px) {
  body.customer-theme #root .app-header.balanced-customer-header {grid-template-columns: minmax(0,1fr) 90px minmax(0,1fr); gap: 5px;}
  body.customer-theme #root .balanced-customer-header > .app-wordmark {width: 90px;}
  body.customer-theme #root .customer-home .service-filter .categories {gap: 6px;}
  body.customer-theme #root .customer-home .categories .service-copy b {font-size: 12px;}
  body.customer-theme #root .theme-home-stats > div {font-size: 10px; gap: 3px;}
}
@media (prefers-reduced-motion: reduce) {
  body.customer-theme #root .customer-home .categories > :is(button,a.delivery-service-card) {transition: none;}
}



/* v228: text over the original photo remains legible without an opaque page wash. */
body.customer-theme #root .theme-home-stats,
body.customer-theme #root .customer-home .guest-note {background:#003e3320;color:#fff;border-color:#ffffff60;text-shadow:0 1px 3px #001c17;}
body.customer-theme #root .compact-home-hero h1,
body.customer-theme #root .compact-home-hero p {text-shadow:0 1px 4px #001c17;}

/* Directory pages are full viewport surfaces, including safe-area and overscroll. */
body.customer-theme:has(#root > .phone-shell[data-directory-layout]) {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
body.customer-theme:has(#root > .phone-shell[data-directory-layout])::before,
body.customer-theme:has(#root > .phone-shell[data-directory-layout])::after {
  display: none;
}
body.customer-theme #root > .phone-shell[data-directory-layout] {
  width: 100% !important;
  max-width: none !important;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
body.customer-theme #root > .phone-shell[data-directory-layout] > .app-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box;
}
body.customer-theme #root > .phone-shell[data-directory-layout] > :is(.app-header,.service-page-header,.service-navigation) {
  background: #fff !important;
  color: #17352d;
  border-radius: 0;
}

/* v239 approved white/green preview. No extra 10px greeting offset.
   The broad haze is a UI layer, independent of the administrator's image. */
body.customer-theme.customer-home-active::before {
  background-image:var(--customer-background-image,url('/assets/sahla-jijel-soft-v239.webp'));
  background-color:#cce8f5;background-position:center top;
  filter:saturate(.7) brightness(1.12);
}
body.customer-theme.customer-home-active::after {
  opacity:1;
  background:radial-gradient(ellipse 82% 175px at 50% 35px,color-mix(in srgb,#fff calc(var(--customer-header-haze,1) * 95%),transparent) 0%,color-mix(in srgb,#fff calc(var(--customer-header-haze,1) * 85%),transparent) 32%,color-mix(in srgb,#fff calc(var(--customer-header-haze,1) * 52%),transparent) 65%,#ffffff00 100%),#ffffff18;
}
body.customer-theme.customer-home-active #root .customer-home .balanced-customer-header :is(.language-trigger,.language-trigger b,.location-header,.location-header b,.location-header small,.location-icon) {color:#004e3e;}
body.customer-theme.customer-home-active #root .customer-home .balanced-customer-header .app-wordmark image {filter:none;}
body.customer-theme.customer-home-active #root .customer-home .balanced-customer-header .language-menu,
body.customer-theme.customer-home-active #root .customer-home .balanced-customer-header .language-menu > summary {width:auto !important;min-width:64px;flex-basis:auto !important;}
body.customer-theme.customer-home-active #root .customer-home .balanced-customer-header .language-trigger b {font-size:clamp(12px,3.4vw,16px);font-weight:600;white-space:nowrap;}
body.customer-theme.customer-home-active #root .customer-home .compact-home-hero {overflow:visible;}
body.customer-theme.customer-home-active #root .customer-home .compact-home-hero .hero-copy {position:relative;top:30px;}
body.customer-theme.customer-home-active #root .customer-home .compact-home-hero :is(h1,p) {color:#004e3e;text-shadow:none;}
body.customer-theme.customer-home-active #root .customer-home #free-services-carousel .service-banner {background:#fff;}
body.customer-theme.customer-home-active #root .customer-home #free-services-carousel .service-banner::after {background:linear-gradient(90deg,transparent 34%,#ffffffb3 49%,#fff 68%);}
body.customer-theme.customer-home-active #root .customer-home #free-services-carousel[dir="ltr"] .service-banner::after {background:linear-gradient(270deg,transparent 34%,#ffffffb3 49%,#fff 68%);}
body.customer-theme.customer-home-active #root .customer-home #free-services-carousel .service-banner-copy,
body.customer-theme.customer-home-active #root .customer-home #free-services-carousel .service-banner-copy :is(b,small,span) {color:#004e3e;text-shadow:none;}
body.customer-theme.customer-home-active #root .customer-home .categories .service-copy {background:linear-gradient(0deg,#fff 0%,#fffffff0 35%,#ffffff00 100%);}
body.customer-theme.customer-home-active #root .customer-home .categories .service-copy b {color:#004e3e;text-shadow:none;}
body.customer-theme.customer-home-active #root .customer-home nav.sahla-bottom-nav {background:#fff;border-color:#ffffffa6;}
body.customer-theme.customer-home-active #root .customer-home nav.sahla-bottom-nav button {color:#004e3e;}
body.customer-theme.customer-home-active #root .customer-home nav.sahla-bottom-nav button[aria-current="page"] {background:#ffcf19;color:#004e3e;}
body.customer-theme.customer-home-active #root .customer-home.home-opening-footer-mask::before {
  background-image:var(--customer-background-image,url('/assets/sahla-jijel-soft-v239.webp'));
  background-color:#cce8f5;background-position:center top;filter:saturate(.7) brightness(1.12);
}

/* v242: the full Arabic language name must not be squeezed into a 44px icon. */
body.customer-theme #root .balanced-customer-header .header-language-slot {min-width:0;overflow:visible;}
body.customer-theme #root .balanced-customer-header .language-menu,
body.customer-theme #root .balanced-customer-header .language-menu > summary {
 width:auto !important;min-width:64px;max-width:100%;flex:0 0 auto !important;
}
body.customer-theme #root .balanced-customer-header .language-trigger {
 display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;
 width:auto;min-height:44px;white-space:nowrap;
}
body.customer-theme #root .balanced-customer-header .language-trigger b {
 font-size:clamp(12px,3.4vw,16px);font-weight:600;line-height:1.4;white-space:nowrap;flex-shrink:0;
}
body.customer-theme #root .balanced-customer-header .language-trigger svg {flex:0 0 12px;width:12px;height:8px;}
/* Paint to the screen edges, but keep interactive content inside the safe area.
   Existing header rules already account for the top inset; do not add it twice. */
html {min-height:100%;background:#fff;}
body.customer-theme #root .customer-home .app-header.balanced-customer-header {
 padding-inline:max(clamp(16px,5vw,28px),env(safe-area-inset-left),env(safe-area-inset-right));
}
@media (display-mode:standalone) {
 body.customer-theme {margin:0;min-height:100dvh;}
 body.customer-theme #root > .phone-shell > :is(.service-page-header,.pharmacy-page-header):first-child {
 padding-top:calc(8px + env(safe-area-inset-top));
 padding-left:max(12px,env(safe-area-inset-left));
 padding-right:max(12px,env(safe-area-inset-right));
 }
}

/* v243: one customer navigation style on home, catalogue, orders and profile. */
body.customer-theme #root .phone-shell nav.sahla-bottom-nav {background:#fff;border-color:#ffffffa6;}
body.customer-theme #root .phone-shell nav.sahla-bottom-nav button {color:#004e3e;}
body.customer-theme #root .phone-shell nav.sahla-bottom-nav button[aria-current="page"] {background:#ffcf19;color:#004e3e;}

/* v244: orders use the same green label / yellow underline as directory tabs. */
body.customer-theme #root .phone-shell .orders-view-toggle {
 display:flex;align-items:stretch;gap:8px;overflow-x:auto;flex-wrap:nowrap;
 padding:0 0 4px;margin:0 0 16px;background:transparent;border:0;border-radius:0;
 -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
body.customer-theme #root .phone-shell .orders-view-toggle::-webkit-scrollbar {display:none;}
body.customer-theme #root .phone-shell .orders-view-toggle > button {
 position:relative;flex:0 0 auto;min-height:44px;padding:10px 16px;
 color:#586b63;background:transparent;border:0;border-radius:0;box-shadow:none;
 font:inherit;white-space:nowrap;
}
body.customer-theme #root .phone-shell .orders-view-toggle > button[aria-pressed="true"] {
 color:#07563f;background:transparent;font-weight:700;
}
body.customer-theme #root .phone-shell .orders-view-toggle > button[aria-pressed="true"]::after {
 content:"";position:absolute;bottom:1px;inset-inline:15%;height:3px;
 border-radius:3px;background:#f4c542;display:block;
}
body.customer-theme #root .phone-shell .orders-view-toggle > button:focus-visible {
 outline:2px solid #07563f;outline-offset:-2px;
}

/* Keep a swipe surface even when the selected orders list is empty. */
body.customer-theme #root #orders-list {min-height:45svh;}
