.nvz-vehicle-selector {
  display: inline-block;
  position: relative;
  font-family: "Neue Montreal", Helvetica, Arial, sans-serif;
  --nvz-vs-header-height: 40px;
  --nvz-saia-orange: #f5a623;
  --nvz-saia-orange-hover: #e89717;
  z-index: 1000;
}

/* Keep the Elementor header shortcode aligned to the left of its flex row. */
.elementor-element.elementor-element-2d2384e {
  margin-right: auto;
  margin-inline-end: auto;
}

.nvz-vehicle-selector *,
.nvz-results-page,
.nvz-results-page *,
.nvz-compat-badge,
.nvz-compat-badge * {
  font-family: "Neue Montreal", Helvetica, Arial, sans-serif;
}

.nvz-header-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nvz-header-logo-row #desktop_logo {
  flex: 0 0 auto;
}

.nvz-header-logo-vehicle-selector {
  flex: 0 0 auto;
}

.nvz-header-logo-vehicle-selector .nvz-vehicle-selector {
  vertical-align: middle;
}

.nvz-vs-trigger {
  min-width: 260px;
  height: var(--nvz-vs-header-height);
  min-height: var(--nvz-vs-header-height);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #1d2733;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.nvz-vs-trigger:hover,
.nvz-vs-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .08);
}


.nvz-vs-car {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  display: inline-block;
}


.nvz-vs-check {
  margin-left: -18px;
  margin-top: -18px;
  min-width: 20px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #45b75b;
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.nvz-vs-text {
  display: block;
  line-height: 1.1;
  font-size: 16px;
  font-weight: 800;
}

.nvz-vs-text strong {
  display: block;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 800;
}

.nvz-vs-modal[hidden] { display: none; }

.nvz-vs-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 78px 14px 20px;
}

.nvz-vs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
}

.nvz-vs-dialog {
  position: relative;
  width: min(1180px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 26px 32px 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.nvz-vs-dialog h3 {
  margin: 0 0 24px;
  color: #1d2733;
  font-size: 24px;
  font-weight: 800;
}

.nvz-vs-close {
  position: absolute;
  top: 18px;
  right: 26px;
  border: 0;
  background: transparent;
  color: #1d2733;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.nvz-vs-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(120px, 180px);
  gap: 12px;
  align-items: end;
}

.nvz-vs-field span,
.nvz-vs-label {
  display: block;
  margin-bottom: 6px;
  color: #5f6b76;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nvz-vs-field select {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid #cfd4da;
  border-radius: 8px;
  background: #fff;
  color: #1d2733;
  font-size: 14px;
}

.nvz-vs-search-select {
  position: relative;
}

.nvz-vs-search-select.is-ready .nvz-vs-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nvz-vs-search-input,
.nvz-vs-select-trigger {
  width: 100%;
  height: 52px;
  padding: 0 38px 0 12px;
  border: 1px solid #cfd4da;
  border-radius: 8px;
  background: #fff;
  color: #1d2733;
  font-size: 14px;
  outline: none;
}

.nvz-vs-select-trigger {
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nvz-vs-search-input:focus,
.nvz-vs-select-trigger:focus {
  border-color: #9da8b3;
  box-shadow: 0 0 0 3px rgba(29, 39, 51, .08);
}

.nvz-vs-search-input:disabled,
.nvz-vs-select-trigger:disabled {
  background: #f6f7f8;
  color: #7b8794;
  cursor: not-allowed;
}

.nvz-vs-search-input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: brightness(0);
  opacity: 1;
}

.nvz-vs-search-select::after {
  content: "";
  position: absolute;
  top: 23px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7b8794;
  border-bottom: 2px solid #7b8794;
  transform: rotate(45deg);
  pointer-events: none;
}

.nvz-vs-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dde2e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(29, 39, 51, .16);
}

.nvz-vs-option,
.nvz-vs-option-empty {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d2733;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
}

.nvz-vs-option {
  cursor: pointer;
}

.nvz-vs-option:hover,
.nvz-vs-option:focus,
.nvz-vs-option.is-selected {
  outline: none;
  background: #f3f5f7;
}

.nvz-vs-option-empty {
  color: #7b8794;
}

.nvz-vs-save {
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--nvz-saia-orange);
  color: #1d2733;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  cursor: pointer;
}

.nvz-vs-save:hover,
.nvz-vs-save:focus {
  background: var(--nvz-saia-orange-hover);
  outline: none;
}

.nvz-vs-save:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.nvz-vs-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 26px 18px;
  border: 1px solid #34c759;
  border-radius: 8px;
  background: #fff;
}

.nvz-vs-current-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nvz-vs-current-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nvz-vs-current-icon.is-vehicle-photo {
  width: 220px;
  height: 135px;
  border-radius: 6px;
  background: #f7f7f7;
  object-fit: contain;
}

.nvz-vs-current p {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 1.35;
}

.nvz-vs-current strong {
  font-weight: 800;
}

.nvz-vs-current-remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: underline;
  cursor: pointer;
}

.nvz-vs-current-remove:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.nvz-vs-results-link {
  display: table;
  margin: 26px auto 12px;
  color: #000;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nvz-vs-results-link:hover,
.nvz-vs-results-link:focus {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nvz-vs-clear {
  margin-top: 15px;
  border: 0;
  background: transparent;
  color: #b31b1b;
  text-decoration: underline;
  cursor: pointer;
}

.nvz-vs-alert {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff3cd;
  color: #6d5200;
}

.nvz-compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.nvz-compat-badge .nvz-compat-icon {
  flex: 0 0 auto;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
}

.nvz-compat-page {
  width: 100%;
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid;
  justify-content: center;
}

.nvz-compat-badge.is-compatible {
  border-color: #40b85d;
  color: #1d6f35;
  background: #f5fff7;
}

.nvz-compat-badge.is-compatible .nvz-compat-icon { background: #40b85d; }

.nvz-compat-badge.is-incompatible {
  border-color: #dc3545;
  color: #a6222e;
  background: #fff7f8;
}

.nvz-compat-badge.is-incompatible .nvz-compat-icon { background: #dc3545; }

.nvz-compat-badge.is-neutral {
  border-color: #b5bdc5;
  color: #5f6b76;
  background: #f8f9fa;
}

.nvz-compat-badge.is-neutral .nvz-compat-icon { background: #6c757d; }

.nvz-results-page {
  width: min(1180px, 100%);
  margin: 0 auto 40px;
}

.nvz-results-header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.nvz-results-header h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.nvz-results-header p {
  margin: 0;
}

.nvz-results-count {
  margin-bottom: 16px;
  color: #5f6b76;
  font-weight: 700;
}

.nvz-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.nvz-result-product {
  border: 1px solid #dde2e7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.nvz-result-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f6f7f8;
  color: #7b8794;
}

.nvz-result-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nvz-result-body {
  padding: 14px;
}

.nvz-result-body h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.nvz-result-reference {
  margin: 0 0 8px;
  color: #6c757d;
  font-size: 13px;
}

.nvz-result-price {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
}

.nvz-results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .nvz-vs-fields {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .nvz-vs-trigger { min-width: 210px; }
  .nvz-vs-dialog { padding: 22px 18px 24px; }
  .nvz-vs-fields { grid-template-columns: 1fr; }
  .nvz-vs-current {
    display: block;
    padding: 18px 14px;
  }
  .nvz-vs-current-info {
    align-items: center;
    flex-direction: column;
  }
  .nvz-vs-current-icon.is-vehicle-photo {
    width: 100%;
    max-width: 220px;
    height: 135px;
  }
  .nvz-vs-current-remove {
    margin-top: 16px;
  }
  .nvz-vs-results-link {
    margin-top: 22px;
    font-size: 16px;
  }
  .nvz-vs-field select,
  .nvz-vs-search-input,
  .nvz-vs-select-trigger,
  .nvz-vs-save { height: 50px; }
  .nvz-results-header {
    display: block;
  }
  .nvz-results-selector {
    margin-top: 16px;
  }
}
