
/* =========================================
   YANKEE MOTORS - BNPL CARD DESIGN FIX
   ========================================= */

.vehicle-listings .vehicle-card.bnpl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e8f0;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(17, 43, 68, 0.06);
}

.vehicle-listings .vehicle-card.bnpl-card[hidden] {
  display: none;
}

.inventory-show-more {
  display: block;
  min-width: 220px;
  margin: 28px auto 0;
  padding: 12px 18px;
  border: 1px solid #b9cedf;
  border-radius: 999px;
  background: #fff;
  color: #1c536f;
  font: 800 13px "Plus Jakarta Sans", "DM Sans", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12, 55, 80, .08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.inventory-show-more:hover,
.inventory-show-more:focus-visible {
  border-color: #68a8ba;
  background: #eef8f8;
  outline: none;
  transform: translateY(-2px);
}

.inventory-reset-category {
  display: block;
  min-height: 40px;
  margin: 12px auto 0;
  padding: 0 16px;
  border: 1px solid #b9cedf;
  border-radius: 999px;
  background: #fff;
  color: #1c536f;
  font: 800 12px "Plus Jakarta Sans", "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12, 55, 80, .08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.inventory-reset-category:hover,
.inventory-reset-category:focus-visible { border-color:#68a8ba; background:#eef8f8; outline:none; transform:translateY(-2px); }

.inventory-category-empty {
  margin: 26px 0 0;
  color: #5b7181;
  text-align: center;
  font: 600 14px/1.5 "Plus Jakarta Sans", "DM Sans", sans-serif;
}

.category-card.is-active-category {
  outline: 2px solid #4a9bac;
  outline-offset: 3px;
}

/* FIX OVERSIZED IMAGES */

.vehicle-listings .bnpl-card .bnpl-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 155px;
  flex: 0 0 155px;
  overflow: hidden;
}

.vehicle-listings .bnpl-card .bnpl-image-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* FIX BNPL BADGE */

.vehicle-listings .bnpl-card .bnpl-image-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 6px 9px;
  border-radius: 6px;
  background: #e7f6ed;
  color: #187546;
  font: 700 10px "Inter", sans-serif;
}

/* CARD CONTENT */

.vehicle-listings .bnpl-card .vehicle-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 13px;
}

.vehicle-listings .bnpl-card .vehicle-card-body h3 {
  margin: 0 0 5px;
  color: #123858;
  font: 800 14px/1.4 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.vehicle-listings .bnpl-card .vehicle-stock {
  display: block;
  margin: 0 0 12px;
  color: #788c9d;
  font: 500 10px "Inter", sans-serif;
}

/* FULL PRICE */

.vehicle-listings .bnpl-card .bnpl-full-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.vehicle-listings .bnpl-card .bnpl-full-price span {
  color: #718291;
  font: 500 10px "Inter", sans-serif;
}

.vehicle-listings .bnpl-card .bnpl-full-price strong {
  color: #40576b;
  font: 700 13px "DM Sans", sans-serif;
  white-space: nowrap;
}

/* MAIN BNPL PRICE */

.vehicle-listings .bnpl-card .bnpl-main-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  border-top: 1px solid #e7edf3;
}

.vehicle-listings .bnpl-card .bnpl-main-price > span {
  color: #697d8c;
  font: 600 11px "Inter", sans-serif;
}

.vehicle-listings .bnpl-card .bnpl-main-price strong {
  display: block;
  color: #0969c5;
  font: 800 24px/1.2 "DM Sans", sans-serif;
  letter-spacing: -0.045em;
}

.vehicle-listings .bnpl-card .bnpl-main-price small {
  color: #81909e;
  font: 500 10px "Inter", sans-serif;
}

/* FINANCE DETAILS */

.vehicle-listings .bnpl-card .bnpl-finance-info {
  display: grid;
  gap: 9px;
  margin: 5px 0 13px;
  padding: 11px;
  border-radius: 8px;
  background: #f2f6fa;
}

.vehicle-listings .bnpl-card .bnpl-finance-info > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.vehicle-listings .bnpl-card .bnpl-finance-info span {
  color: #65798b;
  font: 500 10px/1.4 "Inter", sans-serif;
}

.vehicle-listings .bnpl-card .bnpl-finance-info b {
  color: #1d3c56;
  font: 700 11px "DM Sans", sans-serif;
  text-align: right;
  white-space: nowrap;
}

/* PURCHASE BUTTONS */

.vehicle-listings .bnpl-card .vehicle-card-body > a.bnpl-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #1169c8;
  color: white;
  font: 700 11px "Inter", sans-serif;
  text-decoration: none;
  box-sizing: border-box;
}

.vehicle-listings .bnpl-card .vehicle-card-body > a.bnpl-start-btn:hover {
  background: #0956a5;
}

.vehicle-listings .bnpl-card .vehicle-card-body > a.bnpl-full-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid #1169c8;
  border-radius: 8px;
  background: #fff;
  color: #1169c8;
  text-decoration: none;
  box-sizing: border-box;
}

.vehicle-listings .bnpl-card .vehicle-card-body > a.bnpl-full-btn:hover {
  background: #eff7ff;
}

.vehicle-listings .bnpl-card .bnpl-full-btn > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.vehicle-listings .bnpl-card .bnpl-full-btn b {
  font: 700 11px "Inter", sans-serif;
}

.vehicle-listings .bnpl-card .bnpl-full-btn small {
  color: #758999;
  font: 400 9px/1.4 "Inter", sans-serif;
}

/* DISCLAIMER */

.vehicle-listings .bnpl-card .bnpl-disclaimer {
  margin: 11px 0 0;
  color: #8797a4;
  font: 400 9px/1.5 "Inter", sans-serif;
}

/* MOBILE */

@media (max-width: 600px) {
  .vehicle-listings .bnpl-card .bnpl-image-wrap {
    height: 125px;
    flex-basis: 125px;
  }

  .vehicle-listings .bnpl-card .vehicle-card-body {
    padding: 10px;
  }

  .vehicle-listings .bnpl-card .bnpl-main-price strong {
    font-size: 20px;
  }

  .vehicle-listings .bnpl-card .bnpl-finance-info {
    padding: 8px;
    gap: 7px;
  }

  .vehicle-listings .bnpl-card .bnpl-finance-info > div {
    flex-wrap: wrap;
  }

  .vehicle-listings .bnpl-card .bnpl-finance-info b {
    white-space: normal;
  }
}
/* Premium soft neutral off-white */
.vehicle-listings .bnpl-card .vehicle-card-body {
  background: #fafafa;
}

/* Finance/payment section remains almost white */
.vehicle-listings .bnpl-card .bnpl-lower-section {
  background: #ffffff;
  border-top: 1px solid #ededed;
}

/* Keep finance details soft and neutral */
.vehicle-listings .bnpl-card .bnpl-finance-info {
  background: #f7f7f7;
  border: 1px solid #f0f0f0;
}

/* Keep regular text neutral */
.vehicle-listings .bnpl-card .bnpl-finance-info span {
  color: #777777;
}
.vehicle-listings .bnpl-card button.bnpl-full-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  margin-top: 9px;

  background: #ffffff;
  color: #000000;
  border: 1px solid #e5e5e5;
  border-radius: 8px;

  font-family: "Inter", sans-serif;
  font-size: 11px;
  cursor: pointer;
  box-sizing: border-box;
}

.vehicle-listings .bnpl-card button.bnpl-full-btn b,
.vehicle-listings .bnpl-card button.bnpl-full-btn small {
  color: #000000;
}

.vehicle-listings .bnpl-card button.bnpl-full-btn > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.vehicle-listings .bnpl-card button.bnpl-full-btn:hover {
  background: #fafafa;
}
/* ======================================
   BNPL PRIMARY PAYMENT BUTTON
   ====================================== */

.vehicle-listings .bnpl-card button.bnpl-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 11px 14px;

  background: #1169c8;
  color: #ffffff;
  border: none;
  border-radius: 8px;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;

  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.vehicle-listings .bnpl-card button.bnpl-start-btn:hover {
  background: #0c56a5;
}

.vehicle-listings .bnpl-card button.bnpl-start-btn:active {
  transform: scale(0.99);
}

.vehicle-listings .bnpl-card button.bnpl-start-btn:focus-visible {
  outline: 3px solid #9ac7f5;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .vehicle-listings .bnpl-card button.bnpl-start-btn {
    min-height: 40px;
    padding: 10px 8px;
    font-size: 10px;
  }
}
/* YANKEE MOTORS — VEHICLE GRID SPACING */

.vehicle-listings {
  column-gap: 14px !important;
  row-gap: 24px !important;
}

/* Slightly tighter spacing on mobile */
@media (max-width: 600px) {
  .vehicle-listings {
    column-gap: 10px !important;
    row-gap: 18px !important;
  }
}
/* MORE BREATHING SPACE INSIDE WHITE BNPL SECTION */

.vehicle-listings .bnpl-card .bnpl-lower-section {
  padding: 20px 18px 22px !important;
}

/* MOBILE */
@media (max-width: 600px) {
  .vehicle-listings .bnpl-card .bnpl-lower-section {
    padding: 16px 13px 18px !important;
  }
}
/* Soft rounded corners for the white BNPL section */
.vehicle-listings .bnpl-card .bnpl-lower-section {
  border-radius: 14px !important;
  overflow: hidden;
}
/* ==========================================
   YANKEE MOTORS — ELEGANT FULL PAYMENT BUTTON
   ========================================== */

.vehicle-listings .bnpl-card button.bnpl-full-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background: #ffffff !important;
  color: #20252b !important;

  /* Soft bluish-gray border */
  border: 1px solid #cbd8e5 !important;
  border-radius: 10px;

  box-shadow: 0 2px 8px rgba(60, 90, 120, 0.035);

  cursor: pointer;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Keep all text dark */
.vehicle-listings .bnpl-card button.bnpl-full-btn b {
  color: #20252b !important;
}

.vehicle-listings .bnpl-card button.bnpl-full-btn small {
  color: #555d67 !important;
}

/* Delicate moving shine */
.vehicle-listings .bnpl-card button.bnpl-full-btn::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: -100%;

  width: 65%;
  height: 100%;

  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(210, 225, 240, 0.08) 25%,
    rgba(210, 225, 240, 0.28) 50%,
    rgba(210, 225, 240, 0.08) 75%,
    transparent 100%
  );

  transform: skewX(-18deg);
  pointer-events: none;

  animation: ymSoftShine 7s ease-in-out infinite;
}

/* Keep content above shine */
.vehicle-listings .bnpl-card button.bnpl-full-btn > span {
  position: relative;
  z-index: 1;
}

/* Soft movement with a long rest */
@keyframes ymSoftShine {
  0%, 18% {
    left: -100%;
  }

  40%, 100% {
    left: 160%;
  }
}

/* Gentle hover effect */
.vehicle-listings .bnpl-card button.bnpl-full-btn:hover {
  background: #ffffff !important;
  border-color: #aebfd1 !important;

  box-shadow: 0 4px 14px rgba(70, 100, 135, 0.09);

  transform: translateY(-1px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .vehicle-listings .bnpl-card button.bnpl-full-btn::before {
    animation: none;
  }

  .vehicle-listings .bnpl-card button.bnpl-full-btn {
    transition: none;
  }
}/* YANKEE MOTORS — FULL PAYMENT BUTTON */

.vehicle-listings .bnpl-card .bnpl-full-btn {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;

  background: #ffffff !important;
  color: #20252b !important;
  border: 1.5px solid #b8c9da !important;
  border-radius: 10px !important;

  box-shadow: 0 2px 10px rgba(80, 105, 135, 0.06);

  cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease;
}

/* Shine overlay */
.vehicle-listings .bnpl-card .bnpl-full-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  z-index: 0;

  background: linear-gradient(
    105deg,
    transparent,
    rgba(190, 210, 230, 0.38),
    transparent
  );

  transform: translateX(-220%) skewX(-18deg);
  animation: ymFullPaymentShine 6s ease-in-out infinite;
  pointer-events: none;
}

/* Keep text visible above shine */
.vehicle-listings .bnpl-card .bnpl-full-btn > span {
  position: relative;
  z-index: 1;
}

/* Smooth, continuous shine */
@keyframes ymFullPaymentShine {
  0% {
    transform: translateX(-220%) skewX(-18deg);
  }

  100% {
    transform: translateX(300%) skewX(-18deg);
  }
}

.vehicle-listings .bnpl-card .bnpl-full-btn b {
  color: #20252b !important;
}

.vehicle-listings .bnpl-card .bnpl-full-btn small {
  color: #555d67 !important;
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-listings .bnpl-card .bnpl-full-btn::before {
    animation: none;
  }
}
.vehicle-listings .bnpl-card .bnpl-full-btn::before {
  animation: ymFullPaymentShine 2.8s linear infinite !important;
  animation-delay: 0s !important;
}
/* Elegant OR separator between payment options */

.vehicle-listings .bnpl-card .bnpl-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 3px;
}

.vehicle-listings .bnpl-card .bnpl-or-divider::before,
.vehicle-listings .bnpl-card .bnpl-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e9ee;
}

.vehicle-listings .bnpl-card .bnpl-or-divider span {
  color: #9299a1;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* The homepage finance cards must be one per row on phones and tablets. */
@media (max-width: 850px) {
  .vehicle-listings {
    grid-template-columns: 1fr !important;
  }
}

/* Prevent extra spacing below OR */
.vehicle-listings .bnpl-card button.bnpl-full-btn {
  margin-top: 8px;
}
.vehicle-listings .bnpl-card .bnpl-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0 5px;
}

.vehicle-listings .bnpl-card .bnpl-or-divider::before,
.vehicle-listings .bnpl-card .bnpl-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.vehicle-listings .bnpl-card .bnpl-or-divider span {
  color: #939393;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* ======================================
   YANKEE MOTORS — PREMIUM OR SEPARATOR
   ====================================== */

.vehicle-listings .bnpl-card .bnpl-or-divider {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  margin: 12px 0 4px;
  padding: 0;

  background: transparent;
  text-align: center;
}

.vehicle-listings .bnpl-card .bnpl-or-divider::before,
.vehicle-listings .bnpl-card .bnpl-or-divider::after {
  content: "";
  display: block;
  flex: 1;
  min-width: 0;
  height: 1px;
  background: #e4e7eb;
}

.vehicle-listings .bnpl-card .bnpl-or-divider span {
  display: inline-block;
  flex-shrink: 0;

  padding: 0 3px;
  color: #9299a1;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
}

/* Balance the spacing around the OR */
.vehicle-listings .bnpl-card button.bnpl-full-btn {
  margin-top: 8px !important;
}
