/* Keep checkout inside the viewport, including Safari's native form controls. */
#order-dialog{
  box-sizing:border-box;
  width:430px;
  min-width:0;
  max-width:calc(100vw - 36px);
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:34px 24px 26px;
  overflow-x:hidden;
  overflow-y:auto;
  border-radius:20px;
}
#order-dialog .close{
  top:7px;
  right:7px;
  width:42px;
  height:42px;
  padding:0;
  display:grid;
  place-items:center;
  border:2px solid var(--green);
  border-radius:12px;
  background:var(--panel);
  color:var(--green);
  font-size:30px;
  line-height:1;
}
#order-dialog h2{margin:7px 44px 26px 0;font-size:24px;overflow-wrap:anywhere}
#order-dialog .id-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#order-dialog .id-row button{min-width:85px;white-space:nowrap}
#order-dialog input,#order-dialog select{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  /* iOS zooms the viewport when a focused form control is below 16px. */
  font-size:16px;
}
#order-dialog select{overflow:hidden;text-overflow:ellipsis}
#order-dialog #sk-package{
  min-height:26px;
  padding:2px 6px;
  border-radius:12px;
  background:var(--panel);
  line-height:1.25;
}
#order-dialog .order-total{gap:12px}
#order-dialog .order-total strong{white-space:nowrap}
#order-dialog .order-prices{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:5px 10px;min-width:0}
#order-dialog #original-total{color:var(--muted);font-size:16px;font-weight:400;white-space:nowrap;text-decoration-thickness:1.5px}
#order-dialog #checkout{justify-content:center;text-align:center}
#order-dialog .order-note,#order-dialog .field-help{overflow-wrap:anywhere}
#order-dialog.dialog-fallback[open]{margin:0}
@media(max-width:650px){
  #storefront-id{font-size:16px}
}
@media(max-width:350px){
  #order-dialog{max-width:calc(100vw - 24px);padding-left:18px;padding-right:18px}
}
