.shop-dialog {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 70px #0004;
  box-sizing: border-box;
  color: var(--text, #303030);
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  max-width: none;
  padding: 0;
  width: min(940px, calc(100% - 32px));
  -webkit-tap-highlight-color: transparent;
}
.shop-dialog[open] { display: flex; flex-direction: column; }
.shop-dialog::backdrop { background: #0006; }
.shop-dialog__header {
  align-items: center;
  border-bottom: 1px solid var(--line, #ddd);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding: 14px 22px;
}
.shop-dialog__header h2 { flex: 1; font-size: 24px; font-weight: 500; margin: 0; }
.shop-dialog__header h2:focus { outline: none; }
.shop-dialog__header button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  height: 40px;
  padding: 0;
  width: 40px;
}
.shop-dialog__content { overflow-y: auto; overscroll-behavior: contain; padding: 22px; min-height: 80px; }
.shop-dialog__content .shop-section,
.shop-dialog__content .shop-checkout { margin: 0; max-width: none; padding: 0; width: 100%; }
.shop-dialog .shop-cart__title { display: none; }
.shop-dialog__status { color: #787878; margin: 12px 22px; }
.shop-dialog__footer { border-top: 1px solid var(--line, #ddd); flex: 0 0 auto; padding: 12px 22px; }
.shop-dialog__footer button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shop-dialog button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.shop-dialog .shop-cart__summary { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 22px; }
.shop-dialog .shop-cart__items { display: grid; gap: 18px; }
@media (max-width: 720px) {
  .shop-dialog { border-radius: 0; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; width: 100%; }
  .shop-dialog__header { padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
  .shop-dialog__header h2 { font-size: 22px; }
  .shop-dialog__content { flex: 1; padding: 16px; }
  .shop-dialog__footer { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
}
