/* Window tint simulator. Every rule is scoped to .tbtb-sc
   so it cannot leak into the Elementor page, and selectors are specific enough
   to beat typical theme button/link/heading styles. */
.tbtb-sc {
  --sc-navy: #071832;
  --sc-blue: #2463ff;
  --sc-ink: #0b1524;
  --sc-muted: #4a5a70;
  --sc-line: #dde4ee;
  --sc-soft: #f4f7fb;
  --sc-white: #ffffff;
  --sc-radius: 12px;
  --sc-ease: cubic-bezier(.2, .7, .2, 1);
  container-type: inline-size;
  color: var(--sc-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.tbtb-sc *, .tbtb-sc *::before, .tbtb-sc *::after { box-sizing: border-box; }
.tbtb-sc .tbtb-sc__card {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(18px, 4cqw, 40px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tbtb-sc p { margin: 0; }
.tbtb-sc p.tbtb-sc__eyebrow {
  margin: 0 0 8px;
  color: var(--sc-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tbtb-sc h2.tbtb-sc__title {
  margin: 0 0 8px;
  padding: 0;
  color: var(--sc-navy);
  font-family: inherit;
  font-size: clamp(28px, 5cqw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: none;
}
.tbtb-sc p.tbtb-sc__lede { max-width: 60ch; margin: 0 0 24px; color: var(--sc-muted); font-size: 17px; }

/* Fallback (shown until the script runs) */
.tbtb-sc .tbtb-sc__fallback ul { margin: 0 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--sc-line); }
.tbtb-sc .tbtb-sc__fallback li { padding: 12px 0; border-bottom: 1px solid var(--sc-line); color: var(--sc-muted); }
.tbtb-sc .tbtb-sc__fallback li strong { display: block; color: var(--sc-navy); }
.tbtb-sc .tbtb-sc__fallback .tbtb-sc__price { margin-bottom: 12px; }
.tbtb-sc .tbtb-sc__fallback .tbtb-sc__cta { margin: 16px 0 12px; }
.tbtb-sc.is-enhanced .tbtb-sc__fallback { display: none; }

/* Layout */
.tbtb-sc .tbtb-sc__grid { display: grid; gap: 24px; }
.tbtb-sc .tbtb-sc__col { display: grid; gap: 20px; align-content: start; min-width: 0; }
@container (min-width: 880px) {
  .tbtb-sc .tbtb-sc__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
  .tbtb-sc .tbtb-sc__col--info { padding-top: 38px; }
}

/* Step headings */
.tbtb-sc .tbtb-sc__step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--sc-navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.tbtb-sc .tbtb-sc__num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sc-navy);
  color: var(--sc-white);
  font-size: 13px;
  font-weight: 700;
}
.tbtb-sc .tbtb-sc__optional { color: var(--sc-muted); font-size: 13px; font-weight: 500; }

/* Shared button reset so theme styles cannot bleed in */
.tbtb-sc button.tbtb-sc__veh,
.tbtb-sc button.tbtb-sc__stop,
.tbtb-sc button.tbtb-sc__pill {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.tbtb-sc button:focus-visible,
.tbtb-sc a.tbtb-sc__cta:focus-visible {
  outline: 3px solid var(--sc-blue);
  outline-offset: 2px;
}

/* Vehicle selector */
.tbtb-sc .tbtb-sc__vehicles { display: grid; grid-template-columns: repeat(var(--sc-veh-count, 3), minmax(0, 1fr)); gap: 8px; }
.tbtb-sc [hidden] { display: none !important; }

/* Walkaround (vehicles with an angle set) */
.tbtb-sc .tbtb-sc__art.is-rotatable { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tbtb-sc .tbtb-sc__art.is-rotatable:active { cursor: grabbing; }
.tbtb-sc .tbtb-sc__rotate { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tbtb-sc button.tbtb-sc__rot {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 50%;
  background: var(--sc-white);
  color: var(--sc-navy);
  box-shadow: none;
  cursor: pointer;
}
.tbtb-sc button.tbtb-sc__rot:hover { border-color: #b7c3d4; background: var(--sc-soft); color: var(--sc-navy); }
.tbtb-sc button.tbtb-sc__rot svg { width: 20px; height: 20px; }
.tbtb-sc p.tbtb-sc__rot-label { display: flex; flex-direction: column; align-items: center; margin: 0; text-align: center; color: var(--sc-navy); font-size: 15px; font-weight: 700; line-height: 1.3; }
.tbtb-sc .tbtb-sc__rot-hint { color: var(--sc-muted); font-size: 12px; font-weight: 500; }

/* Factory privacy glass switch (SUV and truck only) */
.tbtb-sc .tbtb-sc__factory-toggle { margin-top: 12px; }
.tbtb-sc button.tbtb-sc__switch {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--sc-navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
}
.tbtb-sc button.tbtb-sc__switch:hover { background: transparent; color: var(--sc-navy); }
.tbtb-sc .tbtb-sc__switch-track {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #c3ccd8;
  transition: background-color .2s;
}
.tbtb-sc .tbtb-sc__switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sc-white);
  box-shadow: 0 1px 3px rgba(7, 24, 50, .35);
  transition: transform .2s var(--sc-ease);
}
.tbtb-sc button.tbtb-sc__switch[aria-checked="true"] .tbtb-sc__switch-track { background: var(--sc-navy); }
.tbtb-sc button.tbtb-sc__switch[aria-checked="true"] .tbtb-sc__switch-knob { transform: translateX(18px); }
.tbtb-sc p.tbtb-sc__switch-help { margin: 0 0 0 54px; color: var(--sc-muted); font-size: 13px; }
.tbtb-sc [data-sc-factory-glass] { transition: opacity 280ms var(--sc-ease); }
.tbtb-sc .is-instant [data-sc-factory-glass],
.tbtb-sc.is-reduced-motion [data-sc-factory-glass] { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .tbtb-sc [data-sc-factory-glass], .tbtb-sc .tbtb-sc__switch-track, .tbtb-sc .tbtb-sc__switch-knob { transition: none; }
}
.tbtb-sc button.tbtb-sc__veh {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px 6px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  background: var(--sc-white);
  color: var(--sc-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tbtb-sc button.tbtb-sc__veh:hover { border-color: #b7c3d4; background: var(--sc-soft); color: var(--sc-navy); }
.tbtb-sc button.tbtb-sc__veh[aria-pressed="true"],
.tbtb-sc button.tbtb-sc__veh[aria-pressed="true"]:hover {
  border-color: var(--sc-navy);
  background: #eef3fa;
  color: var(--sc-navy);
  box-shadow: inset 0 0 0 1px var(--sc-navy);
  font-weight: 700;
}
.tbtb-sc .tbtb-sc__veh-icon { display: block; width: 100%; max-width: 132px; aspect-ratio: 1400 / 553; border-radius: 6px; overflow: hidden; background: #c7c7c9; }
.tbtb-sc .tbtb-sc__veh-icon img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }

/* Stage */
.tbtb-sc .tbtb-sc__stage-wrap { position: relative; }
.tbtb-sc figure.tbtb-sc__stage {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: var(--sc-radius);
  background: #c7c7c9;
  border: 1px solid #d5d8dd;
  overflow: hidden;
}
.tbtb-sc .tbtb-sc__art { aspect-ratio: 1400 / 553; } /* the walkaround frame */
/* Demo copy marker (see DEMO in app.js). */
.tbtb-sc .tbtb-sc__demo {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(7, 24, 50, 0.82);
  color: var(--sc-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.tbtb-sc .tbtb-sc__art svg { display: block; width: 100%; height: 100%; }
.tbtb-sc .tbtb-sc__chip {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sc-navy);
  color: var(--sc-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.tbtb-sc [data-sc-film],
.tbtb-sc [data-sc-glare],
.tbtb-sc [data-sc-sheen] { transition: opacity 280ms var(--sc-ease); }
.tbtb-sc .is-instant [data-sc-film],
.tbtb-sc .is-instant [data-sc-glare],
.tbtb-sc .is-instant [data-sc-sheen],
.tbtb-sc.is-reduced-motion [data-sc-film],
.tbtb-sc.is-reduced-motion [data-sc-glare],
.tbtb-sc.is-reduced-motion [data-sc-sheen] { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .tbtb-sc [data-sc-film], .tbtb-sc [data-sc-glare], .tbtb-sc [data-sc-sheen], .tbtb-sc button { transition: none; }
}

/* Shade slider. The thumb is 28px, so the track box is inset and the range
   input extends 14px past each side; that lines each stop up with its label. */
.tbtb-sc .tbtb-sc__track { padding: 0 26px; }
.tbtb-sc .tbtb-sc__stops { position: relative; height: 44px; margin-bottom: 2px; }
.tbtb-sc button.tbtb-sc__stop {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  min-width: 48px;
  height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sc-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  white-space: nowrap;
}
.tbtb-sc button.tbtb-sc__stop:hover { color: var(--sc-navy); background: var(--sc-soft); }
.tbtb-sc button.tbtb-sc__stop[aria-pressed="true"],
.tbtb-sc button.tbtb-sc__stop[aria-pressed="true"]:hover {
  height: 36px;
  top: 4px;
  line-height: 36px;
  background: var(--sc-navy);
  color: var(--sc-white);
  font-weight: 700;
}
.tbtb-sc .tbtb-sc__slider { position: relative; height: 44px; }
.tbtb-sc .tbtb-sc__rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5ebf2 0%, #b3bcc6 25%, #7a848f 50%, #3a414a 75%, #0f1318 100%);
  box-shadow: inset 0 0 0 1px rgba(7, 24, 50, .08);
}
.tbtb-sc .tbtb-sc__dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--sc-white);
  border: 2px solid #9aa6b4;
}
.tbtb-sc .tbtb-sc__dot.is-passed { border-color: var(--sc-navy); }
.tbtb-sc input.tbtb-sc__range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 0;
  left: -14px;
  width: calc(100% + 28px);
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.tbtb-sc input.tbtb-sc__range:focus { outline: none; }
.tbtb-sc input.tbtb-sc__range::-webkit-slider-runnable-track { height: 44px; background: transparent; border: 0; }
.tbtb-sc input.tbtb-sc__range::-moz-range-track { height: 44px; background: transparent; border: 0; }
.tbtb-sc input.tbtb-sc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: 8px;
  border: 3px solid var(--sc-navy);
  border-radius: 50%;
  background: var(--sc-white);
  box-shadow: 0 2px 6px rgba(7, 24, 50, .3);
}
.tbtb-sc input.tbtb-sc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--sc-navy);
  border-radius: 50%;
  background: var(--sc-white);
  box-shadow: 0 2px 6px rgba(7, 24, 50, .3);
}
.tbtb-sc input.tbtb-sc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--sc-white), 0 0 0 7px var(--sc-blue); }
.tbtb-sc input.tbtb-sc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--sc-white), 0 0 0 7px var(--sc-blue); }
.tbtb-sc .tbtb-sc__ends { display: flex; justify-content: space-between; margin: 2px -14px 0; color: var(--sc-muted); font-size: 13px; }

/* Info column */
.tbtb-sc .tbtb-sc__panel { padding: 18px 20px; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); background: var(--sc-soft); }
.tbtb-sc p.tbtb-sc__kicker { margin-bottom: 4px; color: var(--sc-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tbtb-sc h3.tbtb-sc__panel-title { margin: 0 0 6px; padding: 0; color: var(--sc-navy); font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.tbtb-sc p.tbtb-sc__panel-desc { color: var(--sc-ink); font-size: 16px; }
.tbtb-sc p.tbtb-sc__price {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid #c9d8ff;
  border-left: 4px solid var(--sc-blue);
  border-radius: var(--sc-radius);
  background: #f1f5ff;
  color: var(--sc-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.tbtb-sc p.tbtb-sc__price svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; color: var(--sc-blue); }
.tbtb-sc .tbtb-sc__factory { padding: 14px 16px; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); transition: border-color .2s, background-color .2s; }
.tbtb-sc .tbtb-sc__factory.is-relevant { border-color: var(--sc-navy); background: #f7f9fc; }
.tbtb-sc h4.tbtb-sc__factory-title { margin: 0 0 4px; padding: 0; color: var(--sc-navy); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.tbtb-sc .tbtb-sc__factory p { color: var(--sc-muted); font-size: 15px; }

/* Goals */
.tbtb-sc fieldset.tbtb-sc__goals { min-width: 0; margin: 0; padding: 0; border: 0; }
.tbtb-sc fieldset.tbtb-sc__goals legend { float: left; width: 100%; }
.tbtb-sc .tbtb-sc__pills { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.tbtb-sc button.tbtb-sc__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  background: var(--sc-white);
  color: var(--sc-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tbtb-sc button.tbtb-sc__pill:hover { border-color: #b7c3d4; background: var(--sc-soft); color: var(--sc-navy); }
.tbtb-sc .tbtb-sc__check { display: none; width: 16px; height: 16px; }
.tbtb-sc button.tbtb-sc__pill[aria-pressed="true"],
.tbtb-sc button.tbtb-sc__pill[aria-pressed="true"]:hover { border-color: var(--sc-navy); background: var(--sc-navy); color: var(--sc-white); }
.tbtb-sc button.tbtb-sc__pill[aria-pressed="true"] .tbtb-sc__check { display: block; }

/* CTA */
.tbtb-sc a.tbtb-sc__cta,
.tbtb-sc a.tbtb-sc__cta:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: var(--sc-radius);
  background: var(--sc-navy);
  color: var(--sc-white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s;
}
.tbtb-sc a.tbtb-sc__cta:hover,
.tbtb-sc a.tbtb-sc__cta:focus-visible { background: var(--sc-blue); color: var(--sc-white); text-decoration: none; }
.tbtb-sc a.tbtb-sc__cta svg { width: 20px; height: 20px; flex: 0 0 20px; }
.tbtb-sc p.tbtb-sc__disclaimer { color: var(--sc-muted); font-size: 13px; line-height: 1.45; }

.tbtb-sc .tbtb-sc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Narrow containers */
@container (max-width: 420px) {
  .tbtb-sc .tbtb-sc__track { padding: 0 22px; }
  .tbtb-sc button.tbtb-sc__stop { min-width: 44px; padding: 0 6px; font-size: 14px; }
  .tbtb-sc button.tbtb-sc__veh { font-size: 14px; min-height: 68px; }
  .tbtb-sc .tbtb-sc__vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbtb-sc .tbtb-sc__panel { padding: 16px; }
}
/* Phones (any size): the shade chip, whatever shade is picked, sits above the
   photo so it never covers the vehicle. */
@container (max-width: 640px) {
  .tbtb-sc .tbtb-sc__chip { position: static; display: inline-block; margin: 0 0 8px; }
  /* Bigger vehicle on phones: the photo runs edge to edge (cancels the card
     padding) in a taller 2:1 box; app.js zooms each view to fill it. */
  .tbtb-sc figure.tbtb-sc__stage {
    margin-inline: calc(-1 * clamp(18px, 4cqw, 40px));
    border-radius: 0;
    border-inline: 0;
  }
  .tbtb-sc .tbtb-sc__art { aspect-ratio: 2 / 1; }
}
