.receipt-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #dfe8e9;
}

.receipt-stage-heading,
.receipt-stage-note {
  width: min(430px, 100%);
}

.receipt-stage-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.receipt-stage-heading h2 {
  margin: 0;
}

.receipt-stage-heading > span {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--navy);
  background: var(--aqua);
  font-size: 9px;
  font-weight: 900;
}

.receipt-stage-note {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 10px;
}

.receipt-preview {
  width: min(360px, 100%);
}

.receipt-paper {
  position: relative;
  padding: 27px 24px 34px;
  color: #151515;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 56, 79, .16);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.35;
}

.receipt-paper::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 9px;
  content: "";
  background: linear-gradient(135deg, #fff 6px, transparent 0) 0 0/12px 12px repeat-x,
              linear-gradient(45deg, #fff 6px, transparent 0) 6px 0/12px 12px repeat-x;
}

.receipt-center {
  text-align: center;
}

.receipt-center strong,
.receipt-center span {
  display: block;
}

.receipt-center strong {
  font-size: 14px;
}

.receipt-company-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  max-height: 58px;
  margin: 0 auto 9px;
  object-fit: contain;
}

.receipt-company-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 9px;
  display: grid !important;
  place-items: center;
  border: 2px solid #111;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.receipt-preview-label {
  margin: 12px 0;
  padding: 6px;
  border: 1px solid #111;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}

.receipt-rule {
  margin: 10px 0;
  border-top: 1px dashed #444;
}

.receipt-meta,
.receipt-total-row,
.receipt-payment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-meta span:last-child,
.receipt-total-row strong,
.receipt-payment-row strong {
  text-align: right;
}

.receipt-item {
  margin: 9px 0;
}

.receipt-item-name {
  font-weight: 900;
}

.receipt-item-values {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.receipt-item small {
  display: block;
  color: #444;
}

.receipt-total-row {
  margin: 4px 0;
}

.receipt-grand-total {
  margin: 9px 0;
  padding: 7px 0;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  font-size: 15px;
  font-weight: 900;
}

.receipt-fiscal-note {
  margin-top: 15px;
  font-size: 9px;
  text-align: center;
}

.receipt-fiscal-note strong {
  display: block;
  margin-bottom: 3px;
}

.receipt-deposit-history {
  margin: 9px 0;
  padding: 8px 0;
  border-top: 1px dashed #444;
  border-bottom: 1px dashed #444;
}

.receipt-deposit-history > b {
  display: block;
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.receipt-deposit-entry {
  margin: 5px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 9px;
}

.receipt-deposit-entry span,
.receipt-deposit-entry strong,
.receipt-deposit-entry small {
  display: block;
}

.receipt-deposit-entry strong,
.receipt-deposit-entry small {
  font-size: 9px;
}

.receipt-deposit-entry small {
  color: #444;
}

.reservation-deposit-history {
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #153f4d;
  background: #f0f7f8;
}

.reservation-deposit-history summary {
  cursor: pointer;
  color: #00384f;
  font-size: .78rem;
  font-weight: 900;
}

.reservation-deposit-history > span {
  margin-top: 7px;
  padding-top: 7px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  border-top: 1px solid #d7e4e8;
}

.reservation-deposit-history > span small {
  min-width: 0;
}

.reservation-deposit-history > span em {
  grid-column: 1 / -1;
  color: #667d86;
  font-size: .72rem;
  font-style: normal;
}

@media (max-width: 900px) {
  .payment-order.receipt-stage {
    display: flex;
    min-height: 560px;
  }
}
