/* Artwork positions follow the supplied glass frame; live controls overlay it. */
.TaxiMainCardV2 {
  --tmc-accent: #ffbc17;
  position: relative;
  isolation: isolate;
  container-type: size;
  width: 90dvw !important;
  height: calc(70 * var(--service-card-vh, 1dvh)) !important;
  max-width: 90dvw !important;
  max-height: calc(70 * var(--service-card-vh, 1dvh)) !important;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: clamp(16px, 4vw, 32px);
  background: #07111c;
  color: #fff4da;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.TaxiMainCardV2__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.TaxiMainCardV2__header { position: absolute; inset: 6.5% 8% auto; display: flex; justify-content: space-between; align-items: center; }
.TaxiMainCardV2__lights { display: flex; gap: 2.5cqw; }
.TaxiMainCardV2__brandCopy { position: relative; display: block; text-align: right; text-shadow: 0 2px 4px #000; }
.TaxiMainCardV2__brandCopy strong { display: block; line-height: 1; font-size: clamp(12px, 4.4cqw, 30px); letter-spacing: .06em; }
.TaxiMainCardV2__brandCopy small { position: absolute; top: 100%; right: 0; margin-top: .5cqh; line-height: 1.1; color: #ffda77; font-size: clamp(8px, 2.4cqw, 18px); letter-spacing: .18em; }
.TaxiMainCardV2__brandMark { display: none; }
.TaxiMainCardV2__hero { position: absolute; top: 9.75%; left: 6%; width: 35%; }
.TaxiMainCardV2__hero h2 { margin: 0; }
.TaxiMainCardV2__hero img { display: block; width: 100%; height: auto; border-radius: 18%; filter: drop-shadow(0 3px 8px #0009); }
.TaxiMainCardV2__visualSpace { display: none; }
.TaxiMainCardV2__hero p {
 box-sizing: border-box; width: 57cqw; margin: 3.45cqh 0 0; padding: 0;
 border: 0; background: transparent; color: #fff4dc;
 font-size: clamp(11px, 3.3cqw, 23px); font-weight: 600; line-height: 1.35;
 text-shadow: 0 1px 2px #000, 0 2px 5px #000, 0 0 8px #000b;
}
.TaxiMainCardV2__metrics { position: absolute; top: 75%; left: 9%; right: 9%; }
.TaxiMainCardV2__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8%; }
.TaxiMainCardV2__stat { min-width: 0; display: grid; justify-items: center; gap: .4cqh; }
.TaxiMainCardV2__statIcon img { display: block; width: 13cqw; height: 10cqw; object-fit: fill; border-radius: 18%; }
.TaxiMainCardV2__stat strong { font-size: clamp(10px, 3.2cqw, 22px); line-height: 1.1; font-weight: 500; text-shadow: 0 1px 4px #000, 0 0 6px #000; }
.TaxiMainCardV2__verified { color: #8affb0; }
.TaxiMainCardV2__statLabel, .TaxiMainCardV2__benefit > strong, .TaxiMainCardV2__benefit > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.TaxiMainCardV2__benefits { position: absolute; top: 32%; right: 8%; display: grid; gap: 1.5cqh; }
.TaxiMainCardV2__benefitIcon img { display: block; width: 12cqw; height: 12cqw; object-fit: fill; border-radius: 20%; filter: drop-shadow(0 2px 4px #0009); }
.TaxiMainCardV2__cta { position: absolute; top: 85%; left: 8%; right: 8%; height: 8.5%; }
body[data-taxi-card-theme="light"] .TaxiMainCardV2__background { content: url('/images/background-item/taxi-dzien4.webp'); }
@media (prefers-reduced-motion: reduce) { .TaxiMainCardV2 * { transition-duration: .01ms !important; } }
.TaxiMainCardV2__light {
  width: clamp(calc(10px * var(--service-card-detail-scale, 1)), calc(1.4 * var(--service-card-vh, 1dvh)), calc(18px * var(--service-card-detail-scale, 1)));
  height: clamp(calc(10px * var(--service-card-detail-scale, 1)), calc(1.4 * var(--service-card-vh, 1dvh)), calc(18px * var(--service-card-detail-scale, 1)));
  border-radius: 50%;
  background: #59616a;
  box-shadow: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.TaxiMainCardV2__light[data-state="green"] {
  background: #21ef77;
  box-shadow: 0 0 calc(0.9 * var(--service-card-vh, 1dvh)) rgba(33, 239, 119, 0.34);
}

.TaxiMainCardV2__light[data-state="red"] {
  background: #ff4d5f;
  box-shadow: 0 0 calc(0.9 * var(--service-card-vh, 1dvh)) rgba(255, 77, 95, 0.3);
}

.TaxiMainCardV2__light[data-state="yellow"] {
  background: #ffd23f;
  box-shadow: 0 0 calc(0.9 * var(--service-card-vh, 1dvh)) rgba(255, 210, 63, 0.28);
}

.TaxiMainCardV2__light[data-state="empty"] {
  background: #59616a;
  box-shadow: none;
  opacity: 0.72;
}

html.combajn-native-webview body[data-category="PitStopTaxi"] .DriverCardsSwiper--with-taxi-main-v2,
html.combajn-native-webview body[data-category="PitStopTaxi"] .DriverCardsSwiper--with-taxi-main-v2 > .swiper-wrapper,
html.combajn-native-webview body[data-category="PitStopTaxi"] .DriverCardsSwiper--with-taxi-main-v2 .DriverCardsSwiper__slide--taxi-main-v2,
html.combajn-native-webview .TaxiMainCardV2 {
  width: calc(var(--combajn-native-vw, 1vw) * 90) !important;
  height: calc(var(--combajn-native-vh, calc(1 * var(--service-card-vh, 1vh))) * 70) !important;
  min-width: calc(var(--combajn-native-vw, 1vw) * 90) !important;
  min-height: calc(var(--combajn-native-vh, calc(1 * var(--service-card-vh, 1vh))) * 70) !important;
  max-width: calc(var(--combajn-native-vw, 1vw) * 90) !important;
  max-height: calc(var(--combajn-native-vh, calc(1 * var(--service-card-vh, 1vh))) * 70) !important;
}

.TaxiMainCardV2 .TaxiMainCardV2__orderSlider {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none;
  height: 100% !important;
  min-height: 0;
  margin: 0 !important;
  transform: none;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #ffd76c;
  border-radius: 3cqw;
  background: #080f16;
  box-shadow: 0 0 0 1px #5b3510, 0 0 0 2px #ffd664aa, 0 0 10px #f4a82b88, inset 0 0 8px #f4a82b55;
}
/* Empty rail and gold handle from the supplied sprite sheet (WebP, with alpha). */
.TaxiMainCardV2__orderSlider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/background-item/przycisk-suwany.webp') 2.6% 41.5% / 270% 500% no-repeat;
  pointer-events: none;
}
.TaxiMainCardV2__orderSlider .slider-track { position: absolute; inset: 0 auto 0 0; width: 0; height: 100%; transform: none; border-radius: inherit; background: #ffbf2238; box-shadow: none; }
.TaxiMainCardV2__orderSlider .slider-track::after { display: none; }
.TaxiMainCardV2__orderSlider .slider-handle {
  box-sizing: border-box;
  width: 19%;
  height: 90%;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  border-radius: 2.5cqw;
  border: 0;
  background: url('/images/background-item/przycisk-suwany.webp') 44.9% 42.5% / 1194% 445% no-repeat;
  box-shadow: 2px 0 5px #000b;
  z-index: 4;
}
.TaxiMainCardV2__orderSlider .slider-handle:active { transform: translateY(-50%); }
.TaxiMainCardV2__orderSlider .slider-handle::before { content: none; }
.TaxiMainCardV2__orderSlider .slider-text {
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 61%;
  font-size: clamp(12px, 5.15cqw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.025em;
  text-align: center;
  color: #fff3d6;
  text-shadow: 0 2px 2px #000, 0 0 8px #ca974744;
  white-space: nowrap;
  z-index: 2;
}

.TaxiMainCardV2__benefitIcon img[data-taxi-icon="star"] { filter: brightness(1.2) drop-shadow(0 0 5px #ffc844aa); }
