/* Scoped vehicle selector; retains legacy AJAX, IDs and Select2 integration. */
.hx-parts { display: contents; }
.hx-parts .widget_top, .hx-parts .widget_header-container { display: flex; }
.hx-parts-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.hx-parts .widget_form {
  overflow: visible;
}
.hx-parts-body { width: 100%; }
.hx-parts-body-inner { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
.hx-parts .widget_top { flex-shrink: 0; }
.hx-parts-secondary-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 1.5rem;
  padding-right: .75rem;
}
.hx-parts-secondary-actions[hidden] { display: none !important; }
.hx-parts-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #7bcfff;
  background: transparent;
  border: 0;
  border-left: 2px solid #0e98e6;
  border-radius: 0;
  min-height: 32px;
  margin-left: .25rem;
  padding: .3rem 0 .3rem .85rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25rem;
  cursor: pointer;
}
.hx-parts-toggle:hover { color: #fff; background: transparent; border-left-color: #7bcfff; }
.hx-parts-toggle:focus-visible { outline: 2px solid #0e98e6; outline-offset: 4px; }
.widget:has(.hx-parts), .widget.hx-parts-host-managed {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 1.5rem 3rem !important;
  gap: 0 !important;
  justify-content: flex-start !important;
  transition: none !important;
}
.widget:has(.hx-parts--home) {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
.hx-parts--new { display: flex; flex-direction: column; width: 100%; gap: 0; }
.hx-parts--new .widget_top { height: auto; min-height: 2.75rem; gap: 1rem; }
.hx-parts--new .widget_icon {
  width: 48px !important;
  height: 30px !important;
  min-width: 48px;
  flex: 0 0 48px;
}
.hx-parts--new .widget_header-container { gap: 1rem; }
.hx-parts--new .widget_description { display: none; }
.hx-parts--new .widget_title { font-size: 1.05rem; }
.hx-parts-selection { color: #bdcbdc; font-size: .85rem; }
.hx-parts-selection:empty { display: none; }
.hx-parts--new .widget_form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 1rem; }
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .widget_form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .widget_form > input[type=hidden] { display: none; }
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .widget_input,
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .widget_button { width: 100%; min-width: 0; height: 52px; margin: 0; }
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .widget_button { width: auto; min-width: 140px; padding: 0 1.5rem; }
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .select2-container { width: 100% !important; min-width: 0; }
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .select2-selection--single { height: 52px !important; }
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .select2-selection__rendered { line-height: 50px !important; }
:is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .select2-selection__arrow { height: 50px !important; }
.hx-parts--new .widget_form > input[type=hidden] { display: none; }
.hx-parts--new .widget_input, .hx-parts--new .widget_button { height: 44px; min-height: 44px; }
.hx-parts--new .widget_button { padding: 0 1.5rem; }
.hx-parts--new .select2-container { min-width: 0; width: 100% !important; }
.hx-parts--new .select2-selection--single { height: 44px !important; }
.hx-parts--new .select2-selection__rendered { line-height: 42px !important; }
.hx-parts--new .select2-selection__arrow { height: 42px !important; }
@media(max-width:767px) {
  .widget:has(.hx-parts), .widget.hx-parts-host-managed { padding: 1.25rem !important; }
  .widget:has(.hx-parts--home) { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .hx-parts .widget_top { height: auto; flex-wrap: wrap; gap: .75rem; }
  .hx-parts--new .widget_top { flex-wrap: nowrap; align-items: center; }
  .hx-parts--new .widget_header-container { min-width: 0; flex: 1 1 auto; }
  .hx-parts-title-row { gap: .5rem; }
  .hx-parts-toggle { margin-left: .0625rem; }
  .hx-parts--new .widget_form { grid-template-columns: minmax(0,1fr); }
  :is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .widget_form { grid-template-columns: minmax(0,1fr); }
  :is(.hx-parts--horizontal, .catalog-head__search .hx-parts) .widget_button { width: 100%; }
}
