/* Consolidated inventory enhancements */

/* Thin search aligned above the Condition filter */
.inventory-consolidated-search {
  display: block !important;
  width: 100% !important;
  margin: 0 0 14px !important;
}

.inventory-consolidated-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inventory-consolidated-search-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 82px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  overflow: hidden;
  border: 1.5px solid #0b5ddd;
  border-radius: 14px;
  background: #fff;
}

.inventory-consolidated-search-control:focus-within {
  box-shadow: 0 0 0 4px rgba(11, 93, 221, 0.12);
}

.inventory-consolidated-search-control svg {
  width: 19px;
  height: 19px;
  margin: 0 auto;
  color: #0b5ddd;
}

.inventory-consolidated-search-control input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 8px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17233b;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.inventory-consolidated-search-control input::placeholder {
  color: #65748d;
  opacity: 1;
}

.inventory-consolidated-search-control button {
  align-self: stretch;
  min-width: 82px;
  padding: 0 11px;
  border: 0;
  background: #0b5ddd;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.inventory-consolidated-search-control button:hover,
.inventory-consolidated-search-control button:focus-visible {
  background: #084bb5;
}

/* Briefly identify the exact vehicle restored after leaving a VDP */
.healey-inventory-card-restored {
  position: relative;
  z-index: 1;
  animation: healey-inventory-return-highlight 2.1s ease-out 1;
}

@keyframes healey-inventory-return-highlight {
  0% {
    outline: 4px solid rgba(7, 91, 216, 0.72);
    outline-offset: 5px;
    box-shadow: 0 0 0 10px rgba(7, 91, 216, 0.13);
  }

  100% {
    outline: 0 solid rgba(7, 91, 216, 0);
    outline-offset: 0;
    box-shadow: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  .healey-inventory-card-restored {
    animation: none;
    outline: 3px solid rgba(7, 91, 216, 0.5);
    outline-offset: 4px;
  }
}
