/* Localsewa UI-02 v32.9.25 — customer/public header correction.
   Site-wide customer typography: Plus Jakarta Sans for headings, Inter for UI/body.
   This CSS deliberately does not modify the independent Admin/Provider shells. */
#root:has(.ls-public-header) {
  --ls-font-heading: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --ls-font-ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family:var(--ls-font-ui) !important;
}
#root:has(.ls-public-header) :is(h1,h2,h3,h4,h5,h6),
#root:has(.ls-public-header) .ls-ui02-brand-name {
  font-family:var(--ls-font-heading) !important;
}
#root:has(.ls-public-header) :is(button,input,textarea,select),
#root:has(.ls-public-header) .ls-public-main-nav a {
  font-family:var(--ls-font-ui) !important;
}
#root:has(.ls-public-header) .ls-public-header {
  background:#087A3F !important;
  border-bottom:1px solid rgba(255,255,255,.15) !important;
  box-shadow:0 1px 3px rgba(3,35,20,.09) !important;
  backdrop-filter:none !important;
  overflow:visible !important;
}
/* 1fr / auto / 1fr keeps navigation at true screen center, independent of unequal side widths. */
#root:has(.ls-public-header) .ls-public-header-inner {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);
  align-items:center !important;
  column-gap:clamp(8px,1.2vw,18px) !important;
  height:64px !important;
  min-height:64px !important;
  max-height:64px !important;
  width:100%;
  overflow:visible !important;
}
#root:has(.ls-public-header) .ls-ui02-brand {
  grid-column:1;
  justify-self:start;
  display:inline-flex !important;
  align-items:center;
  flex:none !important;
  gap:9px;
  min-width:0;
  margin:0 !important;
  white-space:nowrap;
  text-decoration:none;
}
#root:has(.ls-public-header) .ls-ui02-brand-icon {
  display:block;
  width:38px !important;
  height:38px !important;
  min-width:38px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.22);
  object-fit:cover;
  box-shadow:none;
}
#root:has(.ls-public-header) .ls-ui02-brand-lockup {min-width:0;display:flex;align-items:center;}
#root:has(.ls-public-header) .ls-ui02-brand-name,
#root:has(.ls-public-header) .ls-ui02-brand-name > span {
  color:#fff !important;
  font-size:18px !important;
  font-weight:800 !important;
  letter-spacing:-.045em;
  line-height:1.15;
}
#root:has(.ls-public-header) .ls-ui02-brand-tagline {display:none !important;}
#root:has(.ls-public-header) .ls-public-main-nav {
  grid-column:2;
  display:flex !important;
  justify-content:center !important;
  align-items:center;
  gap:clamp(2px,.32vw,7px) !important;
  flex:none !important;
  min-width:max-content;
  width:max-content;
  margin:0 !important;
  padding:0 !important;
}
#root:has(.ls-public-header) .ls-public-main-nav > a {
  display:inline-flex;
  position:relative;
  height:44px;
  min-height:44px;
  padding:0 clamp(7px,.85vw,12px) !important;
  align-items:center;
  gap:7px !important;
  color:rgba(255,255,255,.85) !important;
  font-size:13px !important;
  line-height:1.15;
  font-weight:600 !important;
  white-space:nowrap;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#root:has(.ls-public-header) .ls-public-main-nav > a:hover,
#root:has(.ls-public-header) .ls-public-main-nav > a[aria-current="page"] {color:#fff !important;}
#root:has(.ls-public-header) .ls-public-main-nav > a[aria-current="page"]::after {
  position:absolute;bottom:2px;left:12px;right:12px;height:2px;
  content:"";background:#fff;border-radius:2px;
}
#root:has(.ls-public-header) .ls-ui02-header-actions {
  grid-column:3;
  justify-self:end;
  position:relative;
  display:flex !important;
  height:100%;
  align-items:center;
  justify-content:flex-end;
  flex:none;
  gap:7px;
  min-width:0;
  margin-left:0 !important;
}
#root:has(.ls-public-header) .ls-public-desktop-actions {
  display:flex !important;
  flex:0 0 auto;
  align-items:center;
  gap:6px !important;
  margin:0 !important;
  order:3;
}
/* Desktop location is already in the Home hero; do not reintroduce it in header. */
#root:has(.ls-public-header) .ls-public-desktop-actions > button:first-child {display:none !important;}
#root:has(.ls-public-header) .ls-public-desktop-actions > div > button,
#root:has(.ls-public-header) .ls-public-desktop-actions > a {
  display:inline-flex;
  align-items:center;
  min-height:38px;
  height:38px;
  gap:8px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:white !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:600 !important;
  white-space:nowrap;
}
#root:has(.ls-public-header) .ls-public-notifications {
  order:2;
  margin:0 !important;
  flex:0 0 auto;
}
#root:has(.ls-public-header) .ls-ui02-search-control {order:1;display:flex;align-items:center;position:static;flex:0 0 auto;}
#root:has(.ls-public-header) .ls-public-menu-button {order:4;flex:0 0 auto;margin:0 !important;}
#root:has(.ls-public-header) .ls-ui02-search-trigger,
#root:has(.ls-public-header) .ls-public-notifications > button,
#root:has(.ls-public-header) .ls-public-menu-button {
  display:grid !important;
  place-items:center;
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  box-shadow:none !important;
  color:white !important;
  cursor:pointer;
}
#root:has(.ls-public-header) .ls-ui02-search-trigger:hover,
#root:has(.ls-public-header) .ls-public-notifications > button:hover,
#root:has(.ls-public-header) .ls-public-menu-button:hover {background:rgba(255,255,255,.14) !important;}
#root:has(.ls-public-header) .ls-public-menu-button {display:none !important;}

/* Compact 420px popup is anchored to the right actions; never spans the hero/page. */
#root:has(.ls-public-header) .ls-ui02-search-popover {
  position:absolute;
  top:calc(100% + 7px);
  right:0;
  z-index:95;
  width:min(420px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  padding:15px;
  border:1px solid #DFE9E2;
  border-radius:15px;
  background:#fff;
  color:#163125;
  box-shadow:0 20px 46px rgba(6,37,23,.2);
  font-family:var(--ls-font-ui);
}
#root:has(.ls-public-header) .ls-ui02-search-popover-title {
  display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;
}
#root:has(.ls-public-header) .ls-ui02-search-popover-title strong {
  font-family:var(--ls-font-heading);font-size:15px;font-weight:700;letter-spacing:-.025em;
}
#root:has(.ls-public-header) .ls-ui02-search-close {
  display:grid;place-items:center;width:30px;height:30px;
  border:0;border-radius:8px;background:#F3F7F4;color:#426150;cursor:pointer;
}
#root:has(.ls-public-header) .ls-ui02-search-inline {
  display:flex;align-items:center;gap:8px;width:100%;min-width:0;
  height:42px;padding:0 5px 0 11px;
  border:1px solid #D9E5DD;border-radius:10px;
  background:#F8FAF8;box-shadow:none;color:#1B3429;
}
#root:has(.ls-public-header) .ls-ui02-input-search-icon{flex:0 0 auto;color:#547063;}
#root:has(.ls-public-header) .ls-ui02-search-inline input{
  flex:1;min-width:0;width:100%;height:100%;
  padding:0;border:0;outline:0;box-shadow:none;background:transparent;
  color:#1B3429;font-family:var(--ls-font-ui) !important;font-size:14px;font-weight:400;
}
#root:has(.ls-public-header) .ls-ui02-search-inline input::placeholder{color:#84948B;}
#root:has(.ls-public-header) .ls-ui02-search-inline input::-webkit-search-cancel-button{display:none;}
#root:has(.ls-public-header) .ls-ui02-search-clear,
#root:has(.ls-public-header) .ls-ui02-search-submit {
  display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;
  border:0;border-radius:8px;cursor:pointer;
}
#root:has(.ls-public-header) .ls-ui02-search-clear{background:transparent;color:#587060;}
#root:has(.ls-public-header) .ls-ui02-search-submit{background:#087A3F;color:white;}
#root:has(.ls-public-header) .ls-ui02-search-clear:hover{background:#EBF4EE;}
#root:has(.ls-public-header) .ls-ui02-search-group-label {
  padding:15px 6px 5px;
  font-size:10px;font-weight:700;letter-spacing:.1em;color:#819386;
}
#root:has(.ls-public-header) .ls-ui02-search-results {
  display:flex;flex-direction:column;gap:2px;
  max-height:min(290px,42dvh);overflow-y:auto;
  padding:0;
  overscroll-behavior:contain;
}
#root:has(.ls-public-header) .ls-ui02-search-results button {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;min-height:40px;padding:10px 9px;
  border:0;border-radius:9px;text-align:left;cursor:pointer;
  background:transparent;color:#1B392A;font-size:13px;font-weight:600;
}
#root:has(.ls-public-header) .ls-ui02-search-results button:hover,
#root:has(.ls-public-header) .ls-ui02-search-results button.is-highlighted {background:#EFF7F1;}
#root:has(.ls-public-header) .ls-ui02-search-results small {font-size:11px;font-weight:400;color:#7B8E80;white-space:nowrap;}
#root:has(.ls-public-header) .ls-ui02-search-no-results {padding:13px 8px;color:#688173;font-size:13px;line-height:1.5;}
#root:has(.ls-public-header) .ls-ui02-search-trigger:focus-visible,
#root:has(.ls-public-header) .ls-public-main-nav a:focus-visible {outline:2px solid white;outline-offset:2px;}
#root:has(.ls-public-header) .ls-ui02-search-inline:focus-within{border-color:#0F8449;box-shadow:0 0 0 2px rgba(15,132,73,.12);}

@media (max-width:1199.98px) and (min-width:1024px) {
  #root:has(.ls-public-header) .ls-public-header-inner{column-gap:8px !important;}
  #root:has(.ls-public-header) .ls-public-main-nav > a{font-size:12px !important;gap:5px !important;padding-inline:7px !important;}
  #root:has(.ls-public-header) .ls-ui02-brand-name{font-size:17px !important;}
  #root:has(.ls-public-header) .ls-ui02-header-actions{gap:4px;}
}
@media (max-width:1023.98px), (min-width:1024px) and (max-width:1439.98px) and (hover:none) and (pointer:coarse) {
  #root:has(.ls-public-header) .ls-public-header-inner {
    grid-template-columns:minmax(0,1fr) auto;
    height:60px !important;min-height:60px !important;max-height:60px !important;
  }
  #root:has(.ls-public-header) .ls-public-main-nav {display:none !important;}
  #root:has(.ls-public-header) .ls-ui02-header-actions {grid-column:2;gap:4px;}
  #root:has(.ls-public-header) .ls-public-desktop-actions {display:none !important;}
  #root:has(.ls-public-header) .ls-public-menu-button {display:grid !important;}
  #root:has(.ls-public-header) .ls-ui02-brand-icon {width:36px !important;height:36px !important;min-width:36px;}
  .ls-customer-sidebar-backdrop {display:block !important;}
  .ls-customer-sidebar {display:flex !important;}
}
@media (max-width:767.98px) {
  #root:has(.ls-public-header) .ls-public-header-inner {height:56px !important;min-height:56px !important;max-height:56px !important;column-gap:7px !important;}
  #root:has(.ls-public-header) .ls-ui02-brand-icon {width:33px !important;height:33px !important;min-width:33px;}
  #root:has(.ls-public-header) .ls-ui02-brand {gap:7px;}
  #root:has(.ls-public-header) .ls-ui02-brand-name {font-size:16px !important;}
  #root:has(.ls-public-header) .ls-ui02-header-actions {gap:2px;}
  #root:has(.ls-public-header) .ls-ui02-search-trigger,
  #root:has(.ls-public-header) .ls-public-notifications > button,
  #root:has(.ls-public-header) .ls-public-menu-button {width:36px !important;min-width:36px !important;height:36px !important;min-height:36px !important;}
  #root:has(.ls-public-header) .ls-ui02-search-popover {top:calc(100% + 5px);right:-1px;width:min(420px,calc(100vw - 20px));max-width:calc(100vw - 20px);padding:12px;border-radius:13px;}
  #root:has(.ls-public-header) .ls-ui02-search-results {max-height:min(285px,38dvh);}
}
@media (max-width:359.98px) {
  #root:has(.ls-public-header) .ls-ui02-brand-name {font-size:15px !important;}
  #root:has(.ls-public-header) .ls-ui02-brand-icon {width:30px !important;height:30px !important;min-width:30px;}
  #root:has(.ls-public-header) .ls-ui02-header-actions {gap:0;}
}
@media (prefers-reduced-motion:reduce) {
  #root:has(.ls-public-header) .ls-ui02-search-popover {transition:none;}
}
