/* The invoice popup. Self-contained so it looks the same on the storefront and in the admin portal. */
dialog.invoice-modal {
  width: min(960px, 96vw);
  max-width: 96vw;
  height: min(92vh, 1000px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #1a1f29;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
  overflow: hidden;
}
dialog.invoice-modal::backdrop { background: rgba(15, 23, 42, .55); }
.invoice-inner { display: flex; flex-direction: column; height: 100%; }
.invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .75rem 1rem;
  border-bottom: 1px solid #e2e5ea;
}
.invoice-head h2 { margin: 0; font-size: 1.05rem; }
.invoice-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.invoice-btn {
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border: 1px solid #c8cdd6;
  border-radius: 8px;
  background: #fff;
  color: #1a1f29;
  font: inherit;
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
}
.invoice-btn:hover { background: #f2f4f7; }
.invoice-btn.primary { background: #2f5bea; border-color: #2f5bea; color: #fff; }
.invoice-btn.primary:hover { background: #244bcc; }
.invoice-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: #525659; }
.invoice-fallback { margin: 0; padding: .45rem 1rem; font-size: .78rem; color: #667085; border-top: 1px solid #e2e5ea; }
@media (max-width: 700px) {
  dialog.invoice-modal { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
}
