/* ESB Battery Finder. Brand: indigo #23248F, green #50BF24 (from electricscooterbattery.net). */
:root {
  --esb-indigo: #23248f; --esb-indigo-2: #2f31b5; --esb-indigo-ink: #161766;
  --esb-green: #3fa51a; --esb-green-2: #50bf24; --esb-ink: #141a2e; --esb-muted: #5a6275;
  --esb-line: #dfe3ec; --esb-soft: #f4f6fb; --esb-panel: #ffffff;
  --esb-agm: #2457a6; --esb-gel: #2b8a3e; --esb-lithium: #7a3fb0;
  --esb-radius: 16px; --esb-shadow: 0 18px 50px rgba(20, 26, 70, .12);
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Finder ---------- */
.esb-finder { background: var(--esb-panel); border: 1px solid var(--esb-line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; box-shadow: var(--esb-shadow); scroll-margin-top: 110px; color: var(--esb-ink); }
.esb-finder__head { display: grid; gap: 6px; }
.esb-finder__title { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.esb-finder__intro { margin: 0; color: var(--esb-muted); font-size: 17px; }
.esb-finder__tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--esb-soft); border-radius: 999px; justify-self: start; flex-wrap: wrap; }
.esb-tab { font: inherit; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--esb-muted); cursor: pointer; transition: background .15s, color .15s; }
.esb-tab[aria-selected="true"] { background: var(--esb-indigo); color: #fff; box-shadow: 0 4px 12px rgba(35, 36, 143, .25); }
.esb-finder__row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; }
.esb-finder__row--one { grid-template-columns: 1fr; }
.esb-finder__row[hidden] { display: none; }
.esb-field span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--esb-muted); margin-bottom: 8px; }
.esb-field b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--esb-green); color: #fff; font-size: 12px; letter-spacing: 0; }
.esb-field select { width: 100%; font: inherit; font-size: 18px; padding: 14px 44px 14px 14px; border: 2px solid var(--esb-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2323248f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--esb-ink); appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .15s; }
.esb-field select:hover { border-color: #b9c0d6; }
.esb-field select:disabled { opacity: .55; cursor: not-allowed; }
.esb-tab:focus-visible, .esb-field select:focus-visible, .esb-btn:focus-visible, .esb-chips button:focus-visible { outline: 3px solid var(--esb-green-2); outline-offset: 2px; }
.esb-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.esb-chips[hidden] { display: none; }
.esb-chips span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--esb-muted); margin-right: 4px; }
.esb-chips button { font: inherit; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--esb-line); background: #fff; color: var(--esb-ink); cursor: pointer; }
.esb-chips button[aria-pressed="true"] { border-color: var(--esb-indigo); background: var(--esb-indigo); color: #fff; }
.esb-results { display: grid; gap: 16px; }
.esb-empty { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; text-align: center; color: var(--esb-muted); border: 2px dashed var(--esb-line); border-radius: var(--esb-radius); }
.esb-empty svg { color: #b6bdd2; }
.esb-empty p { margin: 0; font-size: 17px; }
.esb-fits { margin: 0; color: var(--esb-muted); font-size: 16px; }
.esb-fits strong { color: var(--esb-ink); }
.esb-card { border: 1px solid var(--esb-line); border-radius: var(--esb-radius); padding: 18px; display: grid; gap: 14px; background: #fff; animation: esb-in .25s ease both; }
.esb-card[hidden] { display: none; }
@keyframes esb-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .esb-card { animation: none; } }
.esb-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.esb-card h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.esb-card__sub { margin: 2px 0 0; color: var(--esb-muted); font-size: 15px; }
.esb-count { font-size: 13px; font-weight: 700; color: var(--esb-indigo); background: #eceefe; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.esb-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.esb-opt { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: var(--esb-soft); border: 1px solid transparent; border-radius: 14px; padding: 10px 14px 10px 10px; transition: border-color .15s, background .15s; }
.esb-opt:hover { border-color: #c9cfe3; background: #fff; }
.esb-opt[hidden] { display: none; }
.esb-opt img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: #fff; }
.esb-opt__main { min-width: 0; display: grid; gap: 3px; }
.esb-opt__main strong { font-size: 19px; line-height: 1.2; }
.esb-opt__spec { color: var(--esb-muted); font-size: 15px; }
.esb-chem { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; color: #fff; background: var(--esb-agm); }
.esb-chem--gel { background: var(--esb-gel); } .esb-chem--lithium { background: var(--esb-lithium); }
.esb-opt__buy { display: grid; gap: 8px; justify-items: end; text-align: right; }
.esb-price { font-weight: 800; font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--esb-ink); }
.esb-price del { color: var(--esb-muted); font-weight: 400; font-size: 15px; margin-right: 4px; }
.esb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--esb-green); color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 16px; padding: 11px 18px; border-radius: 10px; white-space: nowrap; border: 0; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.esb-btn:hover { background: #359114; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(63, 165, 26, .3); }
.esb-out { color: var(--esb-muted); font-size: 14px; }
.esb-link { font-weight: 700; color: var(--esb-indigo); text-decoration: none; justify-self: start; }
.esb-link:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .esb-finder__row { grid-template-columns: 1fr; }
  .esb-opt { grid-template-columns: 64px 1fr; }
  .esb-opt img { width: 64px; height: 64px; }
  .esb-opt__buy { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

/* ---------- Search by model (keeps the site's keyword search) ---------- */
.esb-msearch { display: grid; gap: 12px; color: var(--esb-ink); }
.esb-msearch h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.esb-msearch__bar { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.esb-msearch__bar input[type="search"] { font: inherit; font-size: 18px; padding: 15px 16px 15px 48px; border: 2px solid var(--esb-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2323248f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 15px center; color: var(--esb-ink); min-width: 0; }
.esb-msearch__bar input[type="search"]:focus { outline: none; border-color: var(--esb-indigo); box-shadow: 0 0 0 4px rgba(35, 36, 143, .15); }
.esb-msearch__bar button { font: inherit; font-weight: 700; font-size: 17px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--esb-indigo); color: #fff; cursor: pointer; }
.esb-msearch__bar button:hover { background: var(--esb-indigo-2); }
.esb-msearch__hint { margin: 0; color: var(--esb-muted); font-size: 15px; font-style: italic; }
.esb-popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.esb-popular span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--esb-muted); margin-right: 2px; }
.esb-popular a { font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--esb-soft); border: 1px solid var(--esb-line); color: var(--esb-ink); text-decoration: none; }
.esb-popular a:hover { border-color: var(--esb-indigo); color: var(--esb-indigo); }
.esb-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--esb-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(20, 26, 70, .18); max-height: 380px; overflow: auto; }
.esb-suggest[hidden] { display: none; }
.esb-suggest li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.esb-suggest li[aria-selected="true"], .esb-suggest li:hover { background: var(--esb-soft); }
.esb-sug-main { font-weight: 600; }
.esb-sug-sub { color: var(--esb-muted); font-size: 14px; }
.esb-kind { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: #eceefe; color: var(--esb-indigo); }
.esb-kind--part { background: #e6f5df; color: #2b7a12; }
.esb-kind--brand { background: #f1f1f1; color: #555; }
.esb-nohit { color: var(--esb-muted); cursor: default !important; display: block !important; }
@media (max-width: 520px) { .esb-msearch__bar { grid-template-columns: 1fr; } .esb-msearch__bar button { padding: 14px; } }

/* ---------- Brand tiles ---------- */
.esb-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.esb-brand { display: grid; place-items: center; gap: 8px; padding: 22px; min-height: 130px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius); background: #fff; text-decoration: none; color: var(--esb-ink); transition: transform .15s, box-shadow .15s, border-color .15s; text-align: center; }
.esb-brand:hover { border-color: var(--esb-indigo); transform: translateY(-2px); box-shadow: var(--esb-shadow); }
.esb-brand img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.esb-brand span { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 22px; color: var(--esb-indigo); }
.esb-brand small { color: var(--esb-muted); font-size: 14px; }

/* ---------- Product page spec box ---------- */
.esb-spec { margin: 18px 0; padding: 18px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius); background: var(--esb-soft); overflow-x: auto; }
.esb-spec h3 { margin: 0 0 10px; font-size: 18px; }
.esb-spec table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.esb-spec th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--esb-muted); padding: 6px 8px; border-bottom: 2px solid var(--esb-line); }
.esb-spec td { text-align: left; padding: 8px; border-bottom: 1px solid var(--esb-line); }
.esb-spec td a { font-weight: 700; color: var(--esb-indigo); }
.esb-spec__fits { margin: 12px 0 0; font-size: 15px; }

/* Scooter photo in results, suggestions and product page */
.esb-card header { align-items: center; }
.esb-card__title { flex: 1 1 220px; min-width: 0; }
.esb-scooter { margin: 0; display: grid; justify-items: center; gap: 4px; flex: none; }
.esb-scooter img { width: 120px; height: 120px; object-fit: contain; background: #fff; border: 1px solid var(--esb-line); border-radius: 12px; padding: 6px; box-sizing: border-box; }
.esb-scooter figcaption { font-size: 12px; font-weight: 700; color: var(--esb-muted); }
.esb-sug-img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--esb-line); border-radius: 8px; }
.esb-fitbox { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; margin: 18px 0; padding: 14px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius); background: #fff; }
.esb-fitbox__img { width: 132px; height: 132px; object-fit: contain; border-radius: 10px; }
.esb-fitbox > div { display: grid; gap: 2px; min-width: 0; }
.esb-fitbox__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--esb-green); }
.esb-fitbox strong { font-size: 20px; line-height: 1.2; }
.esb-fitbox__num { color: var(--esb-muted); font-size: 15px; }
.esb-fitbox__hint { color: var(--esb-muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 520px) { .esb-scooter img { width: 96px; height: 96px; } .esb-fitbox { grid-template-columns: 96px 1fr; } .esb-fitbox__img { width: 96px; height: 96px; } }

/* ---------- Chargers and call-for-price (1.2.0) ---------- */
.esb-opt__chg { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--esb-indigo); text-decoration: none; }
.esb-opt__chg:hover { text-decoration: underline; }
.esb-price--call, .esb-callprice { font-weight: 800; color: var(--esb-indigo); }
.esb-btn--call, .esb-callbox .esb-btn { background: var(--esb-indigo) !important; }
.esb-callbox { margin: 18px 0; padding: 16px 18px; border: 2px solid var(--esb-indigo); border-radius: var(--esb-radius); background: #fff; display: grid; gap: 6px; justify-items: start; }
.esb-callbox p { margin: 0; color: var(--esb-muted); font-size: 15px; }
.esb-chgbox { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius); background: #fff; }
.esb-chgbox h3 { margin: 0 0 10px; font-size: 18px; }
.esb-chgbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.esb-chgbox a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--esb-ink); }
.esb-chgbox img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--esb-line); border-radius: 8px; }
.esb-chgbox span { display: grid; gap: 2px; }
.esb-chgbox small { color: var(--esb-muted); }
.esb-chgbox__hint { margin: 10px 0 0; font-size: 14px; color: var(--esb-muted); }

/* ---------- Charger tab (1.3.0) ---------- */
.esb-opt--chg .esb-opt__spec { display: block; }
.esb-opt--chg .esb-opt__buy { display: grid; gap: 6px; justify-items: end; }
.esb-chgcall { margin: 12px 0; padding: 14px 16px; border: 2px dashed var(--esb-line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.esb-chgcall p { margin: 0; flex: 1 1 260px; }
.esb-kind--charger { background: #eef0ff; color: var(--esb-indigo); }
.esb-hero__chg { margin: 14px 0 0; }
.esb-hero__chg a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .esb-opt__buy { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; text-align: left; }
  .esb-opt--chg .esb-opt__buy { justify-content: flex-start; }
  .esb-finder__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; justify-self: stretch; }
  .esb-tab { padding: 9px 6px; font-size: 13px; border-radius: 10px; line-height: 1.2; }
}
.esb-finder ul.esb-opts, .esb-card ul.esb-opts { padding: 0 !important; margin: 0 !important; list-style: none !important; }
.esb-opts > li { margin: 0 !important; }
@media (max-width: 680px) { .esb-opt--chg .esb-price, .esb-price--call { flex-basis: 100%; } .esb-opt__buy { min-width: 0; } }
@media (max-width: 680px) { .esb-opt.esb-opt--chg .esb-opt__buy { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: flex-start; } }

/* ---------- Product page: call button, power-seat note, shipping & returns (1.4.0) ---------- */
.esb-fitbox__call { justify-self: start; margin-top: 8px; }
.esb-fitbox__note { margin-top: 8px; font-size: 14px; color: var(--esb-ink); background: #fff8e1; border-radius: 8px; padding: 8px 10px; }
.esb-shipbox { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius); background: #fff; }
.esb-shipbox h3 { margin: 0 0 8px; font-size: 18px; }
.esb-shipbox ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.esb-fitbox .esb-fitbox__note strong { font-size: 14px; display: inline; }
/* 1.9.1: brand buttons under the top search box; brand filter in the battery part view */
.esb-brandpick { display: grid; gap: 8px; }
.esb-brandpick__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--esb-muted); }
.esb-brandpick.is-part .esb-brandpick__label { font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--esb-ink); }
.esb-brandpick__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.esb-bp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 66px; padding: 10px 8px; border: 1.5px solid var(--esb-line); border-radius: 12px; background: #fff; color: var(--esb-ink); text-decoration: none; text-align: center; transition: border-color .15s, box-shadow .15s; }
.esb-bp img { display: block; max-width: 100%; max-height: 28px; width: auto; height: auto; object-fit: contain; }
.esb-bp strong { font-size: 15px; line-height: 1.2; }
.esb-bp small { font-size: 13px; font-weight: 600; color: var(--esb-muted); }
.esb-bp:hover, .esb-bp:focus-visible { border-color: var(--esb-indigo); box-shadow: 0 0 0 3px rgba(35, 36, 143, .14); outline: none; }
.esb-brandpick.is-part .esb-bp { border-color: var(--esb-indigo); }
.esb-bp--all { background: var(--esb-soft); }
.esb-brandpick.is-part .esb-bp--all { border-color: var(--esb-line); }
.esb-brandbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.esb-brandbar span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--esb-muted); margin-right: 4px; }
.esb-brandbar button { font: inherit; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--esb-line); background: #fff; color: var(--esb-ink); cursor: pointer; }
.esb-brandbar button[aria-pressed="true"] { border-color: var(--esb-indigo); background: var(--esb-indigo); color: #fff; }
.esb-brandbar button:focus-visible { outline: 3px solid var(--esb-green-2); outline-offset: 2px; }
@media (max-width: 520px) { .esb-brandpick__row { grid-template-columns: repeat(2, 1fr); } }
