.vehicle-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 20px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.carousel-arrow:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.vehicle-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.vehicle-strip::-webkit-scrollbar {
  display: none;
}

.vehicle-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 6px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.55;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vehicle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vehicle-thumb:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.35);
}

.vehicle-thumb.active {
  width: 96px;
  height: 96px;
  opacity: 1;
  border-color: #4f8cff;
  background: rgba(79, 140, 255, 0.15);
  box-shadow: 0 8px 22px rgba(79, 140, 255, 0.35);
  cursor: default;
}

.vehicle-thumb.active img {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.vehicle-name {
  margin: 10px 0 2px;
  font-size: 16px;
  font-weight: 700;
}

.carousel-hint {
  margin: 0;
  font-size: 11px;
  opacity: 0.55;
}

/* Confirmation pulse played on the active thumbnail when Enter is pressed. */
.vehicle-thumb.active.confirmed {
  animation: vehicle-confirm 0.5s ease;
}

@keyframes vehicle-confirm {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.6);
  }
  60% {
    box-shadow: 0 0 0 14px rgba(79, 140, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 140, 255, 0);
  }
}
