#s2-van-barcode-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 16px;
  background: #f8f8f8;
  color: #171717;
  margin: auto;
  overflow: auto;
}
#s2-van-barcode-dialog::backdrop { background: rgb(0 0 0 / 65%); }
#s2-van-barcode-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #111;
  color: #fff;
}
#s2-van-barcode-dialog h2,
#s2-van-barcode-dialog h3 { font-size: 1.25rem; font-weight: 750; }
#s2-van-barcode-dialog [data-close] {
  color: #ff9a54;
  font-size: 1.75rem;
  min-width: 44px;
}
.s2bc-body { padding: clamp(14px, 4vw, 24px); }
.s2bc-body video { width: 100%; max-height: 30vh; object-fit: contain; background: #111; margin-bottom: 12px; border-radius: 10px; }
.s2bc-body video[hidden] { display: none; }
.s2bc-entry { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.s2bc-entry input, .s2bc-card select {
  padding: 10px;
  background: #fff;
  color: #171717;
  border: 1px solid #aaa;
  border-radius: 8px;
  min-width: 0;
  font-size: 16px;
}
.s2bc-entry input { flex: 1 1 165px; }
.s2bc-entry button, .s2bc-grid button, .s2bc-grid a {
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
  text-align: center;
  font-weight: 700;
  color: #171717;
}
.s2bc-entry button { background: #f58c42; border-color: #f58c42; }
.s2bc-body button:focus-visible, .s2bc-body input:focus-visible, .s2bc-body select:focus-visible, .s2bc-body a:focus-visible { outline: 2px solid #a84d0a; outline-offset: 2px; }
.s2bc-body button:disabled { opacity: .5; }
.s2bc-body [data-status]:not(:empty), .s2bc-body [data-result]:not(:empty) { margin-top: 14px; }
.s2bc-card { border: 1px solid #ddd; border-radius: 14px; padding: clamp(14px, 4vw, 24px); overflow-wrap: anywhere; }
.s2bc-identified { color: #2e603a; font-weight: 700; margin-bottom: 12px; }
.s2bc-card h3+p { color: #525252; margin: 4px 0 12px; }
.s2bc-card label { display: grid; gap: 6px; }
.s2bc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.s2bc-grid dt { color: #525252; font-size: .88rem; }
.s2bc-grid dd { font-weight: 750; font-size: 1.4rem; margin: 0; }
.s2bc-grid button span { color: #ae520b; display: block; font-size: 1.35rem; }

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html:not(.s2-ipad-mobile, .s2-ipad-device) #view-van-stock #s2-van-toolbar {
    grid-template-columns: minmax(145px, 180px) minmax(0, 1fr) max-content max-content !important;
    grid-template-areas: "van part scan add" "zero boiler boiler boiler";
    gap: 12px !important;
  }
  html:not(.s2-ipad-mobile, .s2-ipad-device) #s2-van-toolbar #s2-van-filter { grid-area: van; }
  html:not(.s2-ipad-mobile, .s2-ipad-device) #s2-van-toolbar #s2-van-search { grid-area: part; }
  html:not(.s2-ipad-mobile, .s2-ipad-device) #s2-van-toolbar label:has(> #s2-van-show-zero) {
    grid-area: zero;
    min-height: 46px;
    align-items: center;
  }
  html:not(.s2-ipad-mobile, .s2-ipad-device) #view-van-stock #s2-van-toolbar #s2-van-boiler-filters {
    grid-area: boiler !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) max-content !important;
  }
  html:not(.s2-ipad-mobile, .s2-ipad-device) #s2-van-toolbar #s2-van-scan { grid-area: scan; }
  html:not(.s2-ipad-mobile, .s2-ipad-device) #s2-van-toolbar #s2-van-add-button { grid-area: add; }
  html:not(.s2-ipad-mobile, .s2-ipad-device) #s2-van-toolbar > button {
    min-height: 46px;
    padding: 0 16px;
    white-space: nowrap;
  }
}
