.mb-vehicle-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin: 0;
}

.mb-vehicle-panel-card {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  padding: 1.5rem !important;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #ed1c24;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

.mb-vehicle-panel-title {
  margin: 0 0 1rem;
  color: #171717;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.35;
}

.mb-vehicle-panel-title > span:first-child { color: #171717; }
.mb-vehicle-select { margin-bottom: .625rem; }

.mb-vehicle-control {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #cfd3d8;
  border-radius: 7px;
  background-color: #fff;
  color: #171717;
  font-size: 1rem;
  line-height: 1.25;
}

.mb-vehicle-select.form-control {
  height: 48px;
  padding: 0 .875rem;
}

.mb-vehicle-field { margin-bottom: .875rem; }

.mb-vehicle-form label,
.mbvl-form label {
  display: block;
  margin-bottom: .375rem;
  color: #2b2b2b;
  font-size: .875rem;
  font-weight: 700;
}

.mb-vehicle-control-group {
  display: flex;
  width: 100%;
}

.mb-vehicle-text-input,
.mbvl-form .form-control {
  flex: 1 1 auto;
  width: 1%;
  height: 48px;
  padding: 0 .875rem;
  border-radius: 7px 0 0 7px;
  text-transform: uppercase;
}

.mb-vehicle-submit,
.mbvl-submit {
  flex: 0 0 56px;
  width: 56px;
  min-height: 48px;
  border: 1px solid #c7cbd1;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: #f5f6f7;
  color: #171717;
  cursor: pointer;
}

.mbvl-submit {
  border-color: #ed1c24;
  background: #ed1c24;
  color: #fff;
}

.mb-vehicle-submit:hover,
.mb-vehicle-submit:focus,
.mbvl-submit:hover,
.mbvl-submit:focus {
  background: #c5121a;
  border-color: #c5121a;
  color: #fff;
}

.mb-vehicle-control:focus-visible,
.mb-vehicle-action:focus-visible {
  outline: 3px solid rgba(237, 28, 36, .3);
  outline-offset: 2px;
}

.mb-vehicle-control:active { transform: translateY(1px); }

.mb-selected-vehicle {
  min-height: 100%;
  align-content: center;
}

.mb-selected-vehicle__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  text-align: center;
}

.mb-selected-vehicle__image img {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.mb-selected-vehicle__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  font-size: .875rem;
  line-height: 1.35;
}

.mb-selected-vehicle__details p { text-align: left; }
.mb-selected-vehicle__details .text-warning { color: #ed1c24 !important; }

.mb-vehicle-actions-wrap {
  margin-top: .75rem;
  font-size: .875rem;
}

.mb-vehicle-actions {
  display: flex;
  gap: .5rem;
}

.mb-vehicle-action {
  display: inline-flex;
  flex: 1 1 50%;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .5rem .75rem;
  border: 1px solid #e3e5e8;
  border-radius: 7px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.mb-vehicle-action .fa { margin-right: .375rem; }
.mb-vehicle-mobile-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: right;
}
.mbvl-form-block { margin-bottom: 0; }
.mbvl-form small { display: block; margin-top: .25rem; line-height: 1.35; }
.mbvl-login-note { margin: 0; }
.mbvl-results { display: grid; gap: 1rem; }
.mbvl-result { padding: 1rem; border: 1px solid #ddd; border-radius: 7px; background: #fff; }

@media (max-width: 767.98px) {
  .mb-vehicle-panel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    overflow-x: clip;
  }

  .mb-vehicle-panel-card { padding: 1rem !important; }
  .mb-vehicle-panel-card--mobile { height: auto; }

  .mb-vehicle-panel-card--mobile .title {
    min-height: 44px;
    padding: .625rem 0;
  }

  .mb-vehicle-panel-card--mobile #panel_with_search_fields {
    padding: .75rem 0 0;
    margin: 0;
  }

  .mb-selected-vehicle__details { font-size: .8125rem; }
  .mb-vehicle-actions { flex-direction: column; }
}
