/* Customer entry only. The existing logo, booking dialogs and tracking keep their styles. */
body.customer-ui:not(.supplement-upload-mode){background:#fff}
body.customer-ui:not(.supplement-upload-mode) .app{background:#fff!important}
#home{height:100%!important;min-height:100%!important;padding:0!important;align-items:center!important;justify-content:flex-start!important;overflow-x:hidden!important;overflow-y:auto!important;isolation:isolate;scrollbar-width:thin;color:#4c4c4c;font-family:Heebo,Arial,sans-serif}
#home .entry-background{position:absolute;inset:0 0 auto;height:100%;background:none!important;filter:none!important;opacity:1!important;z-index:-1;pointer-events:none}
#service-background{display:block;width:100%;height:100%;pointer-events:none}
.entry-install{position:absolute;top:calc(env(safe-area-inset-top,0px) + 18px);left:max(16px,env(safe-area-inset-left,0px));right:auto;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:9px 0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#000;font:400 14px Heebo,Arial,sans-serif;z-index:8;cursor:pointer;white-space:nowrap;touch-action:manipulation}
.entry-install[hidden]{display:none!important}
.entry-install-label-mobile{display:none}
@media(max-width:600px){.entry-install-label-desktop{display:none}.entry-install-label-mobile{display:inline}}
.entry-install svg{display:block;flex:none;width:19px;height:19px}
.entry-install-arrow{animation:entry-install-arrow-nudge 6s ease-in-out infinite}
@keyframes entry-install-arrow-nudge{0%,8%,24%,100%{transform:translateY(0)}16%{transform:translateY(2.5px)}}
@media(prefers-reduced-motion:reduce){.entry-install-arrow{animation:none}}
.entry-install:hover span{text-decoration:underline;text-underline-offset:4px}
.entry-install:focus-visible{outline:2px solid #000;outline-offset:4px}
@media not all and (display-mode:browser){.entry-install{display:none!important}}
/* Reserve the revealed controls before opening, so the illustration stays in place. */
#home .entry-intro{position:relative;z-index:1;flex:none;width:100%;max-height:100%;padding:var(--entry-intro-top,184px) 24px 100px;text-align:center}
#home #entryTitle{font-family:'Noto Serif Hebrew',Georgia,serif;font-size:clamp(42px,4.6vw,65px)!important;font-weight:600;line-height:1.4;letter-spacing:-1.8px;color:#4c4c4c!important;text-shadow:none!important;margin:0 auto;max-width:1000px;opacity:0;transform:translateY(12px)}
#home .entry-description{color:#666;font-size:26px;font-weight:500;line-height:1.65;margin:23px auto 0;max-width:650px;opacity:0;transform:translateY(12px)}
#home .entry-start{display:inline-flex;align-items:center;justify-content:center;gap:19px;min-width:0;width:min(310px,100%);min-height:64px;margin:30px 0 0;padding:17px 28px;border:0;border-radius:5px;background:linear-gradient(135deg,var(--variant-primary),var(--variant-primary-2));color:white;font-family:inherit;font-size:19px;font-weight:600;box-shadow:0 12px 33px color-mix(in srgb,var(--variant-primary) 20%,transparent);opacity:0;transform:translateY(12px);transition:background .18s;touch-action:manipulation}
#home .entry-start:hover{background:linear-gradient(135deg,var(--variant-accent),var(--variant-primary))}
#home.entry-booking-open .entry-start{visibility:hidden;pointer-events:none}
#home .entry-scene-space{flex:1 1 0px;width:100%;min-height:var(--entry-keyboard-space,0px);pointer-events:none}
.side-menu-trigger:focus-visible{outline:3px solid #ed087c;outline-offset:4px}
#home :is(.entry-start,#bookBtn):focus-visible{outline:3px solid var(--variant-accent);outline-offset:4px}

/* The label occupies the former button's top edge; the plate sits immediately below it. */
#home > .entry-plate-panel{position:absolute!important;left:50%!important;right:auto!important;top:var(--entry-plate-top,560px)!important;bottom:auto!important;transform:translateX(-50%)!important;width:var(--entry-action-width,310px)!important;max-width:calc(100% - 40px)!important;flex:none;font-family:Heebo,Arial,sans-serif;margin:0!important;padding:0;background:transparent;border:0;box-shadow:none;z-index:2!important;animation:entry-plate-arrive .3s ease both}
#home > .entry-plate-panel[hidden]{display:none!important}
#home .entry-plate-label{display:block;font-size:18px;line-height:24px;color:#62615c;margin:0 0 7px;font-weight:600;text-align:center}
#home .entry-plate-panel .plate-wrap{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:310/82;margin:0!important;padding:0!important;gap:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;direction:ltr;isolation:isolate;container-type:inline-size;filter:drop-shadow(0 2px 1px #69614f09)}
#home .entry-plate-panel .plate-wrap:before,#home .entry-plate-panel .plate-wrap:after{display:none!important;content:none!important}
#home .plate-art{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
/* Condense the bold numerals horizontally while keeping all eight digits readable. */
#home #plateInput.plate-input{position:absolute!important;left:17%!important;right:auto!important;top:17%!important;bottom:auto!important;flex:none!important;width:96.34%!important;max-width:none!important;min-width:0!important;height:66%!important;margin:0!important;padding:0 3px!important;border:0!important;border-radius:2px!important;background:transparent!important;color:#494743!important;font-family:'Arial Narrow',Arial,sans-serif!important;font-size:44px!important;font-size:clamp(36px,14.2cqw,44px)!important;font-weight:700!important;letter-spacing:.1em!important;line-height:1!important;text-align:center!important;direction:ltr!important;outline:none!important;box-shadow:none!important;font-variant-numeric:tabular-nums;caret-color:#494743;transform:scaleX(.82)!important;transform-origin:left center;-webkit-appearance:none;filter:none!important;text-shadow:none!important}
#home #plateInput.plate-input::placeholder{font-family:Heebo,Arial,sans-serif!important;letter-spacing:0!important;font-size:20px!important;font-weight:400!important;color:#77715e!important;opacity:1!important}
#home #plateInput.plate-input:focus,#home #plateInput.plate-input:focus-visible{outline:none!important;box-shadow:none!important;background:transparent!important}
/* Keep the label and footer heights unchanged so the keyboard fit is preserved. */
#home .entry-plate-foot{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:5px;min-height:36px}
#home .entry-plate-panel #bookBtn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex:none;width:auto!important;min-width:112px;max-width:none!important;height:auto!important;min-height:36px;margin:0!important;padding:4px 12px;border:0;border-radius:0;background:none!important;box-shadow:none!important;color:var(--variant-accent)!important;font-family:inherit;font-size:18px!important;font-weight:600;letter-spacing:0;line-height:1.5;white-space:nowrap;opacity:1!important;transform:none!important;pointer-events:auto;transition:color .18s;filter:none}
#home .entry-plate-panel #bookBtn:after{content:'←';font-family:Arial,sans-serif;font-size:21px;line-height:1;font-weight:400}
#home .entry-plate-panel #bookBtn:disabled{color:#817b72!important;opacity:.65!important;cursor:default}

#home.entry-ready #entryTitle{animation:entry-arrive .65s ease both}
#home.entry-ready .entry-description{animation:entry-arrive .65s .45s ease both}
#home.entry-ready .entry-start{animation:entry-arrive .55s 1.15s ease both}
@keyframes entry-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes entry-plate-arrive{from{opacity:0}to{opacity:1}}
@keyframes entry-fade{from{opacity:0}to{opacity:1}}
@media(max-width:600px){
  .entry-install{font-size:13px}
  #home .entry-intro{padding:var(--entry-intro-top,176px) 20px 100px}
  #home #entryTitle{font-size:38px!important;line-height:1.45;letter-spacing:-1.2px}
  #home .entry-description{font-size:clamp(17.5px,5.5vw,22px);line-height:1.65;margin-top:22px;max-width:390px}
  #home .entry-start{min-height:61px;margin-top:29px;font-size:18px}
}
@media(max-width:360px){#home #entryTitle{font-size:34px!important}#home .entry-intro{padding-top:var(--entry-intro-top,176px)}}
@media(prefers-reduced-motion:reduce){#home :is(#entryTitle,.entry-description,.entry-start){transform:none!important;transition:none}#home.entry-ready :is(#entryTitle,.entry-description,.entry-start){animation-name:entry-fade!important}#home > .entry-plate-panel{animation:none}}

/* Fit the ordinary website to the browser's available viewport.
 * Installed TWA/PWA/WebView sessions never receive this selector. */
html.customer-website-entry,html.customer-website-entry body{overscroll-behavior-y:none}
.customer-website-entry body:not(.supplement-upload-mode){
  position:fixed;
  inset:0;
  width:100%;
  min-height:0;
  overflow:hidden!important;
}
.customer-website-entry #home{
  position:fixed;
  inset:0;
  height:var(--entry-browser-height,100%)!important;
  min-height:var(--entry-browser-height,100%)!important;
  overflow:hidden!important;
  overflow:clip!important;
  overscroll-behavior-y:none;
}
.customer-website-entry #home.entry-keyboard-scroll{
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
.customer-website-entry #home > .entry-plate-panel{
  /* Label + plate aspect ratio + footer; keep the complete control above
   * the screen edge on short viewports, without scrolling the entry. */
  top:clamp(0px,var(--entry-plate-top,560px),calc(100% - var(--entry-action-width,310px)*82/310 - 72px - max(12px,env(safe-area-inset-bottom,0px))))!important;
}
/* The 100px bottom padding reserves the plate reveal, but is not visible content.
 * Let that empty reserve contract inside the fixed entry frame. Keyboard
 * scrolling is enabled separately, only while the plate is being edited. */
.customer-website-entry #home .entry-intro{max-height:100%}
.customer-website-entry #home .entry-scene-space{flex:1 1 0px;min-height:var(--entry-keyboard-space,0px)}
.customer-website-entry #home .entry-background{height:100%!important}
@media(max-width:340px){
  /* The legacy narrow-screen rule enlarges the logo to 66vw. Keep the same
   * 130px entry logo used on other phones, leaving room for the plate. */
  body.customer-ui #home .logo-top img{width:130px!important}
}
@media(max-width:600px) and (max-height:600px){
  body.customer-ui #home .entry-intro{padding-top:max(0px,calc(var(--entry-intro-top,176px) - 14px))}
  body.customer-ui #home .entry-description{margin-top:14px}
}

/* Standalone order lookup: the existing tracking/phone dialog is reused afterwards. */
.entry-order-overlay[hidden]{display:none!important}
.entry-order-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;font-family:Heebo,Arial,sans-serif}
.entry-order-backdrop{position:absolute;inset:0;background:rgba(27,39,44,.43)}
.entry-order-dialog{position:relative;width:min(100%,390px);max-height:calc(100dvh - 36px);overflow-y:auto;box-sizing:border-box;background:#fff;border:1px solid #e4e7e6;border-radius:8px;padding:27px 25px 23px;box-shadow:0 20px 65px rgba(30,46,54,.16);text-align:right;color:#34434b}
.entry-order-close{position:absolute;top:9px;left:13px;border:0;background:none;color:#65717a;font:400 28px Arial,sans-serif;cursor:pointer;width:36px;height:36px}
.entry-order-dialog h2{font-size:22px;font-weight:650;line-height:1.4;margin:0 0 8px;padding-left:24px}
.entry-order-dialog p{font-size:15px;line-height:1.65;color:#68757c;margin:0 0 20px}
.entry-order-dialog label{display:block;font-size:14px;font-weight:600;margin:0 0 7px}
#entryOrderPlate{width:100%;box-sizing:border-box;min-height:48px;border:1px solid #cdd9dd;border-radius:5px;background:#fff;padding:9px 12px;direction:ltr;text-align:center;font:600 20px Heebo,Arial,sans-serif;color:#34434b;outline:none}
#entryOrderPlate:focus{border-color:#3585be;box-shadow:0 0 0 2px rgba(53,133,190,.12)}
.entry-order-result{font-size:13px;color:#a03d3d;line-height:1.45;margin:8px 0 0;min-height:0}
.entry-order-result:empty{display:none}
.entry-order-submit{width:100%;min-height:48px;margin-top:16px;border:0;border-radius:5px;background:var(--variant-primary,#2383bb);color:#fff;font:600 16px Heebo,Arial,sans-serif;cursor:pointer}
.entry-order-submit:disabled{opacity:.65;cursor:wait}
.entry-order-foot{font-size:12px;line-height:1.6;color:#849096;text-align:center;margin-top:14px}
@media(max-width:600px){.entry-order-dialog{padding:25px 20px 20px}}

/* Short browser and installed-app windows leave room for the complete scene.
 * Keep the same animation instance while fitting controls to available height. */
@media(max-width:899px) and (max-height:720px){
  body.customer-ui #home .logo-top img{width:clamp(86px,18dvh,130px)!important}
  body.customer-ui #home .entry-intro{padding-bottom:60px}
  body.customer-ui #home #entryTitle{font-size:clamp(30px,5.2dvh,38px)!important}
  body.customer-ui #home .entry-description{font-size:clamp(17px,3dvh,20px);line-height:1.5;margin-top:16px}
  body.customer-ui #home .entry-start{font-size:17px;min-height:56px;padding:14px 16px;margin-top:20px}
}
@media(max-width:599px) and (max-height:540px){
  body.customer-ui #home .logo-top img{width:80px!important}
  body.customer-ui #home .entry-intro{padding-bottom:35px}
  body.customer-ui #home #entryTitle{font-size:28px!important;line-height:1.35}
  body.customer-ui #home .entry-description{font-size:16px;margin-top:10px}
  body.customer-ui #home .entry-start{min-height:52px;margin-top:14px}
}
@media(min-width:480px) and (max-width:899px) and (max-height:500px){
  body.customer-ui #home .logo-top img{width:64px!important}
  body.customer-ui #home .entry-intro{padding-bottom:30px}
  body.customer-ui #home #entryTitle{font-size:28px!important;line-height:1.2}
  body.customer-ui #home .entry-description{font-size:17px;line-height:1.4;margin-top:10px;max-width:none}
  body.customer-ui #home :is(#entryTitle,.entry-description) br{display:none}
  body.customer-ui #home .entry-start{min-height:52px;margin-top:12px}
}
