html.has-dialog { overflow: hidden; }
.store-dialog {
  width: min(480px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(25 17 12 / 25%);
  overflow: auto;
  overscroll-behavior: contain;
}
.store-dialog::backdrop { background: rgb(30 24 21 / 60%); backdrop-filter: blur(3px); }
.dialog-panel { position: relative; padding: 36px; }
.dialog-close {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: #71665b; font-size: 28px; line-height: 1; border-radius: 50%;
}
.dialog-close:hover { background: var(--cream); color: var(--wine); }
.dialog-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: 22px; border: 1px solid #d9cbb8; border-radius: 50%;
  background: #eee7da; color: var(--wine); font: 25px/1 var(--serif);
}
.store-dialog[data-tone="success"] .dialog-icon { background: #e6ecdf; border-color: #ccd7c1; color: #40543c; }
.store-dialog[data-tone="error"] .dialog-icon { background: #f1e2dc; border-color: #dfbeb3; color: #823b2d; }
.store-dialog .eyebrow { font-size: 9px; letter-spacing: 1.6px; margin-bottom: 12px; }
.store-dialog h2 { font-size: 32px; line-height: 1.18; letter-spacing: -.8px; margin-bottom: 16px; }
.store-dialog p { color: #6c6358; font-size: 14px; line-height: 1.75; margin-bottom: 0; white-space: pre-line; overflow-wrap: anywhere; }
.dialog-detail { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin-top: 22px; background: var(--cream); border: 1px solid var(--line); }
.dialog-detail span { font-size: 12px; }
.dialog-detail strong { color: var(--wine); font-size: 18px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.dialog-actions .button { flex: 1; min-height: 48px; padding: 12px 16px; font-size: 12px; }
.dialog-actions .dialog-secondary { background: transparent; border-color: #c7beb1; color: var(--ink); }
.dialog-actions .dialog-secondary:hover { background: var(--cream); }
@media (max-width: 480px) {
  .dialog-panel { padding: 28px 22px; }
  .store-dialog h2 { font-size: 29px; }
  .dialog-actions { flex-direction: column; margin-top: 24px; padding-top: 20px; }
  .dialog-actions .button { width: 100%; }
}
