/* Teslize navigation stays white; the search uses a compact iOS-style sheet. */
:root.customer-teslize:not(#tz-ios-x) .landing-header {
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-header-search {
  left: auto; right: clamp(16px, 4vw, 56px); top: calc(100% + 10px);
  width: min(600px, calc(100% - 32px)); padding: 18px 20px 20px;
  max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid rgba(60, 60, 67, .12) !important; border-radius: 24px !important;
  background: #fff !important; color: #1c1c1e;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .04) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif;
}
:root.customer-teslize .teslize-header-search form { max-width: none; margin: 0; }
:root.customer-teslize .teslize-header-search-heading {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
:root.customer-teslize .teslize-header-search label {
  margin: 0; color: #1c1c1e; font-size: 17px; font-weight: 600;
  letter-spacing: -.025em; line-height: 1.3;
}
:root.customer-teslize:not(#tz-ios-x) .teslize-header-search-heading button {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  min-height: 44px; padding: 0; border-radius: 50%;
  background: transparent !important; color: #68686d !important;
}
:root.customer-teslize .teslize-header-search-heading button svg {
  box-sizing: content-box; width: 15px; height: 15px; padding: 7px;
  border-radius: 50%; background: #ededf0; fill: none; stroke: currentColor; stroke-width: 2;
}
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-header-search-input {
  display: flex; flex-direction: row; align-items: center; gap: 0;
  padding: 4px 5px 4px 14px; min-height: 48px;
  border: 1px solid transparent; border-radius: 16px;
  background: #f2f2f7;
}
:root.customer-teslize .teslize-header-search-input::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
}
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-header-search-input input {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 40px; min-height: 40px;
  margin: 0; padding: 9px 10px; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: #1c1c1e !important;
  font-size: 16px; line-height: 1.4; letter-spacing: -.015em;
  box-shadow: none !important; outline: none !important;
}
:root.customer-teslize .teslize-header-search input::placeholder { color: #8e8e93 !important; opacity: 1; }
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-header-search-input button {
  flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 12px;
  background: #ffad1e !important; color: #1c1c1e !important;
  font-size: 14px; font-weight: 600; letter-spacing: -.015em;
}
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-header-search-input:focus-within {
  border-color: #c58412;
  box-shadow: 0 0 0 3px rgba(255, 173, 30, .16);
}
:root.customer-teslize .teslize-header-search p { margin: 12px 2px 0; color: #68686d; font-size: 13px; line-height: 1.4; }
:root.customer-teslize .landing-header :is([data-landing-toggle="landing-search"], .teslize-header-search button):focus-visible {
  outline: 2px solid #a86800; outline-offset: 3px;
}
@media (hover: hover) {
  :root.customer-teslize .teslize-header-search-heading button:hover svg { background: #e3e3e8; }
}
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-search-matches { display: block; width: 100%; }
.teslize-search-matches[hidden] { display: none !important; }
:root.customer-teslize .teslize-search-results {
  display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none;
  max-height: min(420px, 45dvh); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid #e5e5ea;
}
:root.customer-teslize .teslize-search-results li { min-width: 0; margin: 0; padding: 0; }
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-search-result {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0;
  margin: 0; padding: 12px 4px; border: 0; border-bottom: 1px solid #e5e5ea;
  border-radius: 0; background: transparent; color: #1c1c1e;
  text-decoration: none; white-space: normal;
}
:root.customer-teslize .teslize-search-result img {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px;
  object-fit: contain; background: #f5f5f7;
}
:root.customer-teslize .teslize-search-result > span:not(.teslize-search-arrow) { flex: 1; min-width: 0; }
:root.customer-teslize .teslize-search-result strong {
  display: block; color: #1c1c1e; font-size: 14px; font-weight: 600;
  line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere;
}
:root.customer-teslize .teslize-search-result small { display: block; margin-top: 4px; color: #68686d; font-size: 11px; line-height: 1.35; }
:root.customer-teslize .teslize-search-arrow { flex: 0 0 12px; color: #8e8e93; font-size: 24px; font-weight: 400; }
:root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-search-all {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 4px 0; color: #935b00; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
:root.customer-teslize .teslize-search-result:focus-visible { outline: 2px solid #a86800; outline-offset: -2px; }
@media (hover: hover) {
  :root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-search-result:hover { background: #f5f5f7; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  :root.customer-teslize .landing-desktop-nav { display: none !important; }
  :root.customer-teslize .landing-menu-button { display: flex !important; }
}
@media (max-width: 600px) {
  :root.customer-teslize .landing-header-inner { gap: 8px; }
  :root.customer-teslize .landing-wordmark--teslize { width: min(170px, 40vw); flex-basis: auto; min-width: 0; flex-shrink: 1; }
  :root.customer-teslize .landing-header-actions { gap: 4px; }
  :root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-header-search {
    right: 12px; width: calc(100% - 24px); padding: 12px 14px 16px; border-radius: 22px !important;
    max-height: calc(100dvh - 130px);
  }
  :root.customer-teslize .teslize-header-search label { font-size: 16px; }
  :root.customer-teslize .teslize-header-search p { font-size: 12px; }
  :root.customer-teslize:not(#tz-ios-x) .landing-header .teslize-header-search-input button { padding: 0 10px; }
}
