/* === VFS fitment Selector =============================================== */
:root {
  --vfs-bg: #fff;
  --vfs-border: #e6e6e6;
  --vfs-muted: #6b7280;
  --vfs-text: #111827;
  --vfs-accent: #2563eb;
  --vfs-accent-hover: #1d4ed8;
  --vfs-radius: 10px;
  --vfs-gap: 12px;
  --vfs-height: 44px;
}

/* Container */
.vfs-vehicle-wrap {
  background: var(--vfs-bg);
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  padding: 0.75rem;
  margin: 1.25rem 0 1.75rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
}
.vfs-vehicle-wrap:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

/* Active state (when all selections are made) */
.vfs-vehicle-wrap.vfs-vehicle-active {
  border-color: var(--vfs-accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

/* Help text */
.vfs-vehicle-help {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--vfs-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Layout */
.vfs-vehicle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vfs-gap);
}

/* Labels (visually hidden) */
.vfs-vehicle-wrap .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Selects */
.vfs-vehicle-select {
  appearance: none;
  flex: 1 1 200px;
  height: var(--vfs-height);
  padding: 0 14px;
  border: 1px solid var(--vfs-border);
  border-radius: var(--vfs-radius);
  background: #fafafa;
  color: var(--vfs-text);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  background-image:
    linear-gradient(45deg,transparent 50%,#9aa0a6 50%),
    linear-gradient(135deg,#9aa0a6 50%,transparent 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 13px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
  margin-bottom: 0;
}
.vfs-vehicle-select:focus {
  outline: none;
  border-color: var(--vfs-accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.vfs-vehicle-select option[value=""] {
  color: var(--vfs-muted);
}
.vfs-vehicle-select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Buttons */
.vfs-vehicle-button {
  height: var(--vfs-height);
  padding: 0 20px;
  border-radius: var(--vfs-radius);
  font-weight: 700;
  border: none;
  color: #fff;
  background: var(--vfs-accent);
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
  margin-bottom: 0;
}
.vfs-vehicle-button:hover {
  background: var(--vfs-accent-hover);
  transform: translateY(-1px);
}
.vfs-vehicle-button:active { transform: translateY(0); }
.vfs-vehicle-button[disabled] { opacity: .45; cursor: not-allowed; }

/* Light variant (Clear button) */
[data-vfs-clear] {
  background: #f0f0f0;
  color: #222;
  border: 1px solid #ccc;
}
[data-vfs-clear]:hover {
  background: #e8e8e8;
}

/* --- Responsive --- */
@media (max-width: 800px) {
  .vfs-vehicle-row { flex-wrap: wrap; }
  .vfs-vehicle-select, .vfs-vehicle-button {
    flex: 1 1 100%;
  }
}

/* Vehicle Fitment Pills */
.vfs-vehicle-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}

.vfs-vehicle-pills-label {
  font-weight: 600;
  color: #222;
  margin-right: 0.4em;
  font-size: 0.8em;
}

/* Individual pill style */
.vfs-vehicle-pill {
  display: inline-block;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  text-decoration: none;
  color: #111;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.vfs-vehicle-pill:hover,
.vfs-vehicle-pill:focus {
  background-color: var(--vfs-accent);
  border-color: var(--vfs-accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.vfs-vehicle-pill:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .vfs-vehicle-pills {
    flex-direction: column;
    align-items: flex-start;
  }
  .vfs-vehicle-pills-label {
    margin-bottom: 0.25rem;
  }
}

.vehicle-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.vehicle-cat-filters .pill {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}

.vehicle-cat-filters .pill:hover {
  background: var(--vfs-accent, #2563eb);
  border-color: var(--vfs-accent, #2563eb);
  color: #fff;
  transform: translateY(-1px);
}

.vehicle-cat-filters .pill.is-active {
  background: var(--vfs-accent, #2563eb);
  border-color: var(--vfs-accent, #2563eb);
  color: #fff;
}
