html:has(#reservation .registration-receipt),
html body:has(#reservation .registration-receipt) {
  background: #fffcf6;
}

#app #reservation:has(> .registration-receipt) {
  background: transparent;
  box-shadow: none;
}

#reservation .registration-receipt {
  --receipt-plum: #30233c;
  --receipt-bronze: #795e34;
  --receipt-text: #514541;
  width: min(100%, 580px);
  padding: clamp(24px, 6.2vw, 52px) clamp(20px, 6.2vw, 52px);
  color: var(--receipt-text);
  background: #fffcf6;
  border: 1px solid #d8ccb0;
  border-radius: 16px;
  box-shadow: none;
  font: 400 1rem/1.5 system-ui, sans-serif;
}
#reservation .registration-receipt p {margin: 0}
#reservation .receipt-welcome {text-align: center}
#reservation .receipt-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 15px;
  border: 1px solid #cbb48a;
  border-radius: 50%;
  color: var(--receipt-bronze);
}
#reservation .receipt-check::before {
  content: '';
  width: 12px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-1px) rotate(-45deg);
}
#reservation #receipt-title {
  max-width: 18ch;
  margin: 0 auto;
  color: var(--receipt-plum);
  font: 400 clamp(28px, 7.1vw, 42px)/1.14 Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
#reservation #receipt-title em {font-weight: inherit}
#reservation .receipt-letter {
  max-width: 44ch;
  margin: clamp(22px, 5vw, 30px) auto 0;
  text-align: start;
  font-size: 15px;
  line-height: 1.65;
}
#reservation .receipt-letter p+p {margin-top: 10px}
#reservation .registration-receipt .receipt-email-note {
  margin-top: 18px;
  color: var(--receipt-text);
}
#reservation .registration-receipt .receipt-signature {
  margin-top: clamp(24px, 6vw, 34px);
  color: var(--receipt-text);
  text-align: center;
  font: 400 14px/1.45 Georgia, serif;
}
#reservation .receipt-signature em,
#reservation .receipt-signature span {display: block}
#reservation .receipt-signature em {margin-bottom: 5px; color: var(--receipt-plum); font-size: 19px}

#reservation .receipt-wax {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(40px, 10vw, 44px);
  aspect-ratio: 1;
  margin: 14px auto 0;
  border: 1px solid #6c3442;
  border-radius: 48% 53% 47% 52% / 53% 46% 54% 47%;
  background: radial-gradient(ellipse at 32% 23%, #874753, #69323f 74%);
  box-shadow: inset 0 1px 2px #c07a802b, inset 0 -1px 2px #45212c45;
  transform: rotate(-5deg);
}
#reservation .receipt-wax::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #a45f69;
  border-radius: 50%;
}
#reservation .receipt-wax > span {
  width: 70%;
  aspect-ratio: 144 / 100;
  background: #d29a9c;
  -webkit-mask: url('/images/registration-chateau-v1.png') center / contain no-repeat;
  mask: url('/images/registration-chateau-v1.png') center / contain no-repeat;
}
