.zoom-open {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
  overflow: hidden;
}

.invoice-review-modal {
  width: min(960px, calc(100% - 8px));
  max-height: 94dvh;
}

.receipt-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
}

.receipt-zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 18px max(18px, env(safe-area-inset-right)) 18px
    max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.receipt-zoom-head h2 {
  font-size: 22px;
}

.receipt-zoom-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px max(12px, env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  overscroll-behavior: contain;
}

.receipt-zoom-overlay .receipt-zoom-toolbar {
  top: 0;
  margin: 0 0 12px;
  padding: 8px;
}

.receipt-zoom-overlay .receipt-zoom-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-height: none;
  min-height: calc(100dvh - 190px);
}

.receipt-zoom-overlay .receipt-zoom-stage img {
  width: 100%;
  max-width: none;
}

.receipt-zoom-overlay .zoom-help {
  padding-bottom: 12px;
}

@media (min-width: 900px) {
  .receipt-zoom-content {
    padding-right: 32px;
    padding-left: 32px;
  }

  .receipt-zoom-overlay .receipt-zoom-stage img {
    width: min(100%, 1100px);
  }
}

@media (max-width: 700px) {
  .invoice-review-modal {
    width: calc(100% - 4px);
    border-radius: 12px;
  }
}
