/* Qualy Parts header search. Keep all component styles scoped to this header. */
#header .qp-search {
  --qp-ink: #252525;
  --qp-border: #acacac;
  --qp-blue: #003399;
  --qp-green: #38752b;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 830px;
  margin: 0 0 0 auto;
  color: var(--qp-ink);
  font-family: inherit;
  text-align: left;
  position: relative;
}
#header .qp-search *, #header .qp-search *::before, #header .qp-search *::after { box-sizing: border-box; }
#header .qp-search__form { position: relative; min-width: 0; margin: 0; }
#header .qp-search__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
#header .qp-search__field { position: relative; border: 1px solid var(--qp-border); border-radius: 4px; background: #fff; }
#header .qp-search input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 35px 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: inset 0 1px 3px #0000000d;
  color: var(--qp-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  appearance: none;
}
#header .qp-search input::placeholder { opacity: 1; color: #737373; font-style: italic; font-weight: 400; }
#header .qp-search input:focus { outline: none; }
#header .qp-search__field:focus-within { border-color: var(--qp-blue); box-shadow: 0 0 0 2px #00339926; }
#header .qp-search__form--vin .qp-search__field { background: #f6fff1; border-color: #8fa185; }
#header .qp-search__form--vin input { color: var(--qp-green); }
#header .qp-search__form--plate .qp-search__field { background: #fffbe3; border-color: #8b9bb9; }
#header .qp-search__form--plate input { padding-left: 42px; color: var(--qp-blue); }
#header .qp-search__country { position: absolute; top: 0; left: 0; bottom: 0; width: 34px; display: flex; align-items: center; justify-content: center; border-radius: 3px 0 0 3px; background: #003399 url('/ricambiauto/add/regnum/templates/default/media/eur.png') center center no-repeat; color: #fff; font: bold 14px Arial, sans-serif; }
#header .qp-search button[type="submit"] { position: absolute; top: 0; right: 0; width: 34px; height: 40px; padding: 8px; border: 0; border-radius: 0 3px 3px 0; background: transparent; color: #606060; cursor: pointer; }
#header .qp-search button[type="submit"]:hover { color: var(--qp-blue); background: #00000008; }
#header .qp-search button:focus-visible, #header .qp-search a:focus-visible { outline: 2px solid var(--qp-blue); outline-offset: 2px; }
#header .qp-search button svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#header .qp-search__form--vin button[type="submit"] { color: var(--qp-green); }
#header .qp-search__form--plate button[type="submit"] { color: var(--qp-blue); }
#header .qp-search__form[aria-busy="true"] button svg { visibility: hidden; }
#header .qp-search__form[aria-busy="true"] button::after { content: ''; position: absolute; width: 17px; height: 17px; top: 11px; left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qp-search-spin .7s linear infinite; }
#header .qp-search input:disabled { opacity: .65; }
#header .qp-search__results { position: absolute; top: calc(100% + 7px); left: 0; width: max-content; min-width: 100%; max-width: min(680px, calc(100vw - 32px)); max-height: min(480px, 65vh); overflow: auto; z-index: 1100; border: 1px solid #c5c5c5; border-radius: 4px; background: #fff; box-shadow: 0 8px 24px #00000024; color: #252525; font: normal 13px/1.45 Arial, sans-serif; }
#header .qp-search__form--vin .qp-search__results, #header .qp-search__form--plate .qp-search__results { right: 0; left: auto; }
#header .qp-search [hidden] { display: none !important; }
#header .qp-search__message { padding: 14px 16px; margin: 0; white-space: normal; }
#header .qp-search__results table { width: 100%; border-collapse: collapse; font-size: 13px; }
#header .qp-search__results td { padding: 0; border: 1px solid #e4e4e4; white-space: normal; vertical-align: middle; }
#header .qp-search__results a { color: #3f3f3f; }
#header .qp-search__results .CmSearchBox { display: block; min-width: 210px; padding: 10px 14px; background: #fff; }
#header .qp-search__results .CmSearchBox:hover { background: #f2f5f8; }
#header .qp-search__results .CmSearchBrand, #header .qp-search__results .RnModel, #header .qp-search__results .RnType { font-weight: 700; }
#header .qp-search__results .CmSearchArtNum { font-style: italic; }
#header .qp-search__results .CmSearchName { display: block; color: #525252; white-space: normal; }
#header .qp-search__results .CmSearchImage { width: 60px; height: 46px; margin: auto; background: #fff center / contain no-repeat; }
#header .qp-search__results .CmSearchPrice { float: right; margin-left: 12px; color: #38752b; }
#header .qp-search__results .VinNumModel td, #header .qp-search__results .RegNumModel { padding: 10px 12px; background: #f0f3f6; color: #252525; font-weight: 700; }
#header .qp-search__results .VinNumType a, #header .qp-search__results .RegNumType a { display: block; padding: 9px 12px; background: #fff; color: #333 !important; }
#header .qp-search__results .VinNumType a:hover, #header .qp-search__results .RegNumType a:hover { background: #f2f5f8; }
#header .qp-search__results .VinNumLit { padding: 8px; text-align: center; cursor: pointer; }
#header .qp-search__results .VinNumLitActive { background: #e9f5e4; color: #237200; }
#header .qp-search__results .VinNumHidden { display: none; }
#header .qp-search__results .RnModInfo, #header .qp-search__results .RnEngType, #header .qp-search__results .RnYears, #header .qp-search__results .RnKwHp { color: #747474; font-size: 12px; }
#header .qp-search__results #VinNumClose, #header .qp-search__results #RegNumClose { cursor: pointer; padding: 5px 8px; color: #666; }
#header .qp-search__results #VinNumClose::after, #header .qp-search__results #RegNumClose::after { content: '\00d7'; font-size: 20px; }
.qp-header-search-ready .CmHeader { display: none !important; }
@keyframes qp-search-spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .qp-header-search-ready #header .header-top > .container > .row:first-child { display: flex; align-items: center; } }
@media (max-width: 991px) { #header .qp-search { gap: 8px; } #header .qp-search input { font-size: 12px; } }
@media (max-width: 767px) {
  .qp-header-search-ready #header .header-top { display: block; padding: 12px 0; }
  #header .qp-search { max-width: none; margin: 0; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #header .qp-search__form--part { grid-column: 1 / -1; }
  #header .qp-search input { font-size: 16px; height: 42px; line-height: 42px; }
  #header .qp-search button[type="submit"] { height: 42px; }
  #header .qp-search__form--vin .qp-search__results { left: 0; right: auto; }
  #header .qp-search__results { max-width: calc(100vw - 30px); }
}
@media (prefers-reduced-motion: reduce) { #header .qp-search__form[aria-busy="true"] button::after { animation: none; border-style: dotted; } }
