.receipt-sheet {
  position: relative;
  width: var(--paper-width);
  min-height: var(--paper-height);
  color: #101010;
  background: #ffffff;
  border: 1px solid #262626;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.12);
  font-family: var(--paper-font);
}

.receipt-sheet--export {
  box-shadow: none;
}

.receipt-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
  padding: 18px 30px 14px;
  border-bottom: 1px solid #9a9a9a;
}

.receipt-header__title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.receipt-header__mark {
  justify-self: end;
  width: 124px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.receipt-header__mark img {
  width: auto;
  height: auto;
  max-width: 112px;
  max-height: 52px;
  display: block;
  object-fit: contain;
  object-position: center right;
  image-rendering: auto;
}

.receipt-header__mark--error {
  color: #ba203a;
}

.receipt-body {
  padding: 10px 18px 16px;
}

.receipt-topline,
.receipt-meta-line,
.receipt-line {
  font-size: 15.75px;
  line-height: 1.2;
}

.receipt-topline {
  margin-bottom: 10px;
}

.receipt-section {
  margin-top: 10px;
}

.receipt-section__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.receipt-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 16px;
  align-items: start;
}

.receipt-qr {
  min-height: 162px;
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.receipt-qr svg,
.receipt-qr-placeholder {
  width: 152px;
  height: 152px;
}

.receipt-qr svg {
  display: block;
  image-rendering: pixelated;
}

.receipt-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #c7c7c7;
  background: #fafafa;
  color: #505050;
  text-align: center;
}

.receipt-qr-placeholder span {
  font-size: 15px;
  font-weight: 700;
}

.receipt-qr-placeholder small {
  font-size: 12px;
}

.receipt-payment-block {
  margin-bottom: 12px;
}

.receipt-payment-block:last-child {
  margin-bottom: 0;
}

.receipt-line {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.receipt-line__label {
  margin-right: 4px;
}

.receipt-meta-line {
  margin-top: 10px;
}

.receipt-section-stack {
  margin-top: 14px;
}

.receipt-stack-group {
  margin-top: 12px;
}

.receipt-stack-group:first-child {
  margin-top: 0;
}

.receipt-stack-group__title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
}

.receipt-sheet--error .receipt-stack-group__title {
  color: #7f1527;
}

.receipt-error-summary {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(186, 32, 58, 0.3);
  background: rgba(186, 32, 58, 0.06);
}

.receipt-error-summary__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.receipt-error-summary__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
}

.receipt-error-list {
  margin: 10px 0 0 24px;
  padding: 0;
}

.receipt-error-list li {
  margin-bottom: 5px;
  font-size: 15.75px;
  line-height: 1.24;
}

.receipt-section--pending .receipt-error-summary {
  border-color: rgba(175, 122, 17, 0.28);
  background: rgba(175, 122, 17, 0.08);
}

.receipt-sheet--pending .receipt-stack-group__title {
  color: #6d4e0f;
}

.receipt-note {
  margin-top: 18px;
  font-size: 14.75px;
  color: #474747;
}

.receipt-error-glyph {
  width: 54px;
  height: 54px;
}

@media print {
  html,
  body {
    background: #ffffff !important;
  }

  .receipt-sheet {
    box-shadow: none;
    border: 1px solid #262626;
  }
}
