/* Thành Phát EV v0.0.81 — model accessory cards: real sale pricing, reviews, hover.
 * Intentionally scoped to vehicle-model grids. Combo quote and WooCommerce
 * product pages retain their established, independent pricing layouts.
 */
.tpa-evv-vehicle .tpa-evv-woo-grid .tpa-evv-item-v081 {
  position: relative;
  isolation: isolate;
  border: 1px solid #d4e7f1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px rgba(5,47,75,.035);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-media {
  position: relative;
  overflow: hidden;
  flex: none;
  background: #f1f9fc;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-image {
  position: relative;
  width: 100%;
  display: block;
  border-radius: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-image > img {
  transition: transform .35s ease, filter .35s ease;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-sale-corner {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 7px;
  background: #ed3337;
  box-shadow: 0 3px 11px rgba(127,0,0,.14);
  color: #fff;
  font: 800 13px/1.2 Roboto, Arial, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-image-hover {
  position: absolute;
  z-index: 1;
  inset: auto 9px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 33px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  background: rgba(2,45,76,.87);
  color: #fff;
  font: 700 12px/1.35 Roboto, Arial, sans-serif;
  backdrop-filter: blur(5px);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
  pointer-events: none;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  gap: 8px;
  padding: 13px 13px 14px;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-body h3 {
  margin: 0;
  color: #0b2d4b;
  font-weight: 700;
  line-height: 1.37;
  font-size: 15px;
  min-height: 2.74em;
}
.tpa-evv-vehicle .tpa-evv-item-v081 h3 a {
  color: inherit;
  text-decoration: none;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 19px;
  line-height: 1.3;
  color: #698196;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-rating-stars {
  position: relative;
  display: inline-block;
  letter-spacing: .4px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  color: #cddce6;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-rating-stars::before {
  content: '★★★★★';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--tpa-rating-fill, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: #f5a000;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-review-count {
  font-size: 12px;
  color: #68839a;
  white-space: nowrap;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-price-v081 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: auto;
  min-height: 57px;
  max-width: 100%;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-current-price {
  color: #e22129;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-current-price .amount,
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-current-price bdi,
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-current-price .woocommerce-Price-currencySymbol { color: inherit; font: inherit; }
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-old-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-old-price,
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-old-price * {
  color: #8699ad;
  font-size: 13px;
  font-weight: 500;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-old-price {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-discount-percent {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 5px;
  background: #ffe9e6;
  color: #df2b2b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-add-product {
  margin-top: 3px;
  justify-content: center;
  transition: background-color .18s ease, color .18s ease;
}
.tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-view-product {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 13px;
}
.tpa-evv-vehicle .tpa-evv-item-v081:has(input[data-ev-product]:checked) {
  border-color: #5bcbbf;
  box-shadow: 0 0 0 2px rgba(15,169,157,.10);
}
.tpa-evv-vehicle .tpa-evv-item-v081 a:focus-visible,
.tpa-evv-vehicle .tpa-evv-item-v081 input:focus-visible {
  outline: 2px solid #007eb5;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .tpa-evv-vehicle .tpa-evv-woo-grid .tpa-evv-item-v081:hover,
  .tpa-evv-vehicle .tpa-evv-woo-grid .tpa-evv-item-v081:focus-within {
    z-index: 2;
    transform: translateY(-5px);
    border-color: #57c3e6;
    box-shadow: 0 14px 30px rgba(7,82,125,.14);
  }
  .tpa-evv-vehicle .tpa-evv-item-v081:hover .tpa-evv-item-image > img,
  .tpa-evv-vehicle .tpa-evv-item-v081:focus-within .tpa-evv-item-image > img {
    transform: scale(1.045);
  }
  .tpa-evv-vehicle .tpa-evv-item-v081:hover .tpa-evv-image-hover,
  .tpa-evv-vehicle .tpa-evv-item-v081:focus-within .tpa-evv-image-hover {
    opacity: 1;
    transform: translateY(0);
  }
  .tpa-evv-vehicle .tpa-evv-item-v081:hover .tpa-evv-add-product:not(:has(input:checked)) {
    background: #daf1fa;
  }
  .tpa-evv-vehicle .tpa-evv-item-v081 h3 a:hover { color: #007caa; }
}
@media (max-width: 800px) {
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-body {
    padding: 10px 9px 11px;
    gap: 6px;
  }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-body h3 {
    font-size: 13px;
    line-height: 1.35;
    min-height: 2.7em;
  }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-rating-stars { font-size: 12px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-rating { gap: 3px; min-height: 16px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-review-count { font-size: 10px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-price-v081 { gap: 3px; min-height: 47px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-current-price { font-size: clamp(14px, 3.9vw, 17px); }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-old-price,
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-old-price * { font-size: 11px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-discount-percent { font-size: 10px; padding: 2px 4px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-old-price-row { gap: 4px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-sale-corner { top: 6px; left: 6px; padding: 3px 6px; min-height: 20px; font-size: 11px; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-image-hover { display: none; }
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-add-product { padding: 9px 4px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpa-evv-vehicle .tpa-evv-item-v081,
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-item-image > img,
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-image-hover,
  .tpa-evv-vehicle .tpa-evv-item-v081 .tpa-evv-add-product { transition: none; }
}
