/* Shared panel for both the full selector and compact PDP header assets. */
.psvc-header-garage__panel,
.psvc-header-garage__panel * {
  box-sizing: border-box;
}

.psvc-header-garage__dropdown.psvc-header-garage__panel {
  width: min(430px, calc(100vw - 32px));
  min-width: 0;
  max-width: none;
  max-height: min(720px, calc(100dvh - 112px));
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5eb;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(7, 60, 94, .2);
  color: #073c5e;
}

.psvc-header-garage__panel.is-open {
  display: flex;
  flex-direction: column;
}

.psvc-header-garage__panel::before {
  content: none;
}

.psvc-header-garage__panel .psvc-header-garage__dropdown-header {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 16px;
  min-height: 64px;
  border-radius: 0;
  background: #073c5e;
  text-transform: none;
  letter-spacing: normal;
  font-size: 17px;
  box-shadow: none;
}

.psvc-header-garage__panel .psvc-header-garage__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}

.psvc-header-garage__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: #9cafbd #f4f7fa;
  scroll-padding-block: 12px;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle {
  display: block;
  margin: 0;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid #e2e9ee;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
  overflow: visible;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle--selected {
  background: #f0f7fa;
  box-shadow: inset 3px 0 #f76300;
}

.psvc-header-garage__vehicle-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.psvc-header-garage__vehicle-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.psvc-header-garage__panel img.psvc-header-garage__row-icon {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 40px;
  max-width: 56px;
  object-fit: contain;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle-name {
  margin: 0 0 4px;
  color: #073c5e;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle-status,
.psvc-header-garage__panel .psvc-header-garage__vehicle-meta {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: #536777;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle-status {
  color: #236847;
  font-weight: 600;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle-actions > a,
.psvc-header-garage__panel .psvc-header-garage__vehicle-actions > form {
  display: flex;
  flex: 1 1 120px;
  min-width: 0;
  margin: 0;
}

.psvc-header-garage__panel .psvc-header-garage__vehicle-actions a,
.psvc-header-garage__panel .psvc-header-garage__vehicle-actions button {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  letter-spacing: normal;
  box-shadow: none;
}

.psvc-header-garage__panel .psvc-hg__btn-products {
  background: #073c5e;
}

.psvc-header-garage__panel .psvc-hg__btn-products:hover {
  background: #052d47;
}

.psvc-header-garage__panel .psvc-hg__btn-remove {
  background: #fff;
  color: #b12c3c;
  border: 1px solid #e9cdd2;
}

.psvc-header-garage__panel .psvc-header-garage__add {
  flex: 0 0 auto;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid #dce5eb;
  border-radius: 0;
  background: #f4f7fa;
  box-shadow: none;
}

.psvc-header-garage__panel :is(a, button):focus-visible {
  outline: 2px solid #f76300;
  outline-offset: -3px;
}

@media (max-width: 991.98px) {
  .psvc-header-garage__dropdown.psvc-header-garage__panel {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 70vh;
    height: 70dvh;
    min-height: 50vh;
    min-height: 50dvh;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px 20px 0 0;
  }

  .psvc-header-garage__panel .psvc-header-garage__add {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .psvc-header-garage__dropdown.psvc-header-garage__panel {
    animation: none;
  }
}

.psvc-header-garage__title-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #fff;
}

.psvc-garage-confirm {
  position: fixed;
  inset: 0;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid #dce5eb;
  border-radius: 18px;
  background: #fff;
  color: #073c5e;
  box-shadow: 0 20px 60px rgba(7, 60, 94, .3);
  text-align: left;
}

.psvc-garage-confirm:not([open]) {
  display: none;
}

.psvc-garage-confirm::backdrop {
  background: rgba(4, 25, 40, .55);
}

.psvc-garage-confirm__title {
  margin: 0 0 12px;
  color: #073c5e;
  font-size: 21px;
  line-height: 1.3;
}

.psvc-garage-confirm__vehicle {
  display: block;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.psvc-garage-confirm p {
  margin: 0 0 20px;
  color: #536777;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: normal;
}

.psvc-garage-confirm p.psvc-garage-confirm__error {
  padding: 12px;
  border-radius: 8px;
  background: #fff1f2;
  color: #a42133;
}

.psvc-garage-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.psvc-garage-confirm__actions button {
  flex: 1 1 100px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #dce5eb;
  border-radius: 9px;
  background: #f4f7fa;
  color: #073c5e;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.psvc-garage-confirm__actions [data-psvc-remove-confirm] {
  background: #b12c3c;
  border-color: #b12c3c;
  color: #fff;
}

.psvc-garage-confirm__actions button:disabled {
  opacity: .6;
  cursor: wait;
}

.psvc-header-garage__panel .psvc-hg__btn-prefer {
  border: 1px solid #073c5e;
  background: #073c5e;
  color: #fff;
}

.psvc-hg__activation-error {
  margin: 8px 0 0;
  color: #b12c3c;
  font-size: 12px;
}

/* The desktop theme forces navy on header controls and SVG paths. */
#psvc-header-garage-dropdown .psvc-header-garage__close,
#psvc-header-garage-dropdown .psvc-header-garage__title-icon,
#psvc-header-garage-dropdown .psvc-header-garage__finder,
#psvc-header-garage-dropdown .psvc-hg__btn-products,
#psvc-header-garage-dropdown .psvc-hg__btn-prefer,
#psvc-header-garage-dropdown .psvc-garage-confirm__actions [data-psvc-remove-confirm] {
  color: #fff !important;
}

#psvc-header-garage-dropdown .psvc-header-garage__title-icon path {
  stroke: #fff !important;
}

#psvc-header-garage-dropdown .psvc-hg__btn-remove {
  color: #b12c3c !important;
}

.psvc-header-garage__finder { display:flex; justify-content:center; align-items:center; gap:12px; min-height:44px; padding:12px 18px; border-radius:6px; background:#073c5e; color:#fff !important; font-weight:700; }
.psvc-header-garage__finder:hover { background:#0d527a; }
.psvc-header-garage__finder:focus-visible { outline:3px solid #f76300; outline-offset:3px; }
.psvc-header-garage__vehicle-actions .psvc-bar__btn-selected-add-garage { min-height:44px; max-width:100%; padding:8px 12px; border:1px solid #073c5e; border-radius:5px; background:#edf5fa; color:#073c5e; font-size:13px; font-weight:700; white-space:normal; }
