/* Compact mobile address dropdowns; desktop keeps its existing controls. */
@media (max-width:720px) {
  html:has(body.checkout-address-locked) { overflow:hidden;scroll-behavior:auto; }
  body.checkout-address-locked { position:fixed;top:var(--checkout-page-offset,0px);left:0;right:0;width:100%; }
  .stw-checkout-route .checkout-address-sheet .checkout-address-sheet__panel { top:12px;bottom:auto;max-height:calc(var(--checkout-viewport-height,100dvh) - 24px); }
  .stw-checkout-route .checkout-address-sheet__body { scroll-behavior:auto; }
  .stw-checkout-route .checkout-address-sheet .form-grid-2:has(#wrapProvince) {
    grid-template-columns:minmax(0,1fr);
    gap:12px !important;
  }
  .stw-checkout-route .checkout-address-sheet__body { overflow-anchor:none; }
  .stw-checkout-route .checkout-address-sheet :is(#wrapProvince,#wrapWard).open .search-select-dropdown {
    position:fixed;
    top:var(--picker-top,0px) !important;
    left:var(--picker-left,8px) !important;
    right:auto !important;
    bottom:auto !important;
    width:var(--picker-width,calc(100vw - 16px)) !important;
    min-width:0 !important;
    max-width:calc(100vw - 16px);
    height:auto !important;
    max-height:var(--picker-max-height,256px) !important;
    display:flex;
    flex-direction:column;
    border:1px solid #c8ddec;
    border-radius:8px;
    box-shadow:0 6px 16px rgba(8,46,88,.15);
    animation:none;
    visibility:hidden;
  }
  .stw-checkout-route .checkout-address-sheet :is(#wrapProvince,#wrapWard).open .search-select-dropdown.is-positioned { visibility:visible; }
  .stw-checkout-route .checkout-address-sheet :is(#wrapProvince,#wrapWard) .search-select-dropdown::before { display:none; }
  .stw-checkout-route .checkout-address-sheet .search-input-box { flex:0 0 auto;padding:8px; }
  .stw-checkout-route .checkout-address-sheet .dropdown-search-input { height:40px;font-size:16px;line-height:24px; }
  .stw-checkout-route .checkout-address-sheet .dropdown-options-list { min-height:0;max-height:196px;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y; }
  .stw-checkout-route .checkout-address-sheet .dropdown-option { min-height:44px;padding:10px 12px;font-size:14px;line-height:22px; }
}
