.prices {
  padding: clamp(32px, 5vw, 70px) 0;
  max-width: 1000px;
  width: 100%;
  margin: auto;
}
.price-intro {
  padding-bottom: 1.45rem;
}
.price-intro h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  max-width: 12em;
}
.price-intro .primary {
  text-decoration: none;
}
.price-intro .intro {
  max-width: 43em;
}
.price-section {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.price-section h2,
.shop-panel h3,
.receipt-banner h2 {
  font: 400 clamp(1.5rem, 2.4vw, 2rem) / 1.15 var(--serif);
  letter-spacing: -0.04em;
  margin: 0.2rem 0 0.6rem;
}
.price-section > p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 55em;
  margin: 0.5rem 0 1.2rem;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.price-card,
.pack-card,
.book-price {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}
.price-card h3,
.pack-card h3,
.book-price h3,
.shop-panel h4 {
  font-weight: 710;
  font-size: 1rem;
  margin: 0.65rem 0 0.25rem;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.price-card p,
.book-price p {
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0.3rem 0;
  color: var(--muted);
}
.price-tag {
  font-weight: 730;
  font-size: 1rem;
  white-space: nowrap;
}
.sample-finish {
  min-height: 60px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #aaa388;
  border-radius: 4px;
  color: #204139;
  font: italic 1.1rem var(--serif);
}
.sample-finish::before {
  content: "✦";
  position: absolute;
  right: 8px;
  top: 5px;
  font: 1rem/1 var(--serif);
}
.sample-gold,
.letter-gold {
  background: linear-gradient(135deg, #f7e5a5, #fffaf0 45%, #e5c77c);
  border-color: #9b772b !important;
}
.sample-frost,
.letter-frost {
  background:
    repeating-linear-gradient(117deg, #dcedec 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #dfedf2, #fffdf8 55%, #d8e7ee);
  border-color: #88aab7 !important;
}
.sample-aurora,
.letter-aurora {
  background:
    radial-gradient(ellipse at 5% 0%, #b5dac8, transparent 55%),
    radial-gradient(ellipse at 100% 90%, #d8c1dd, transparent 65%), #f4f3e8;
  border-color: #9b84ac !important;
}
.sample-deluxe,
.letter-deluxe {
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, #d6ac6230 11px 12px),
    radial-gradient(ellipse at 100% 0, #d1a46c40, transparent 63%), #f2dcd8;
  border-color: #a65c4d !important;
}
.sample-frost::before {
  content: "❄";
}
.sample-aurora::before {
  content: "✧";
}
.sample-deluxe::before {
  content: "❖";
}
.sample-free {
  background: var(--paper);
}
.sample-free::before {
  content: none;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pack-card h3,
.book-price h3 {
  margin: 0.1rem 0 0.4rem;
}
.book-price {
  max-width: 470px;
  border: 3px double #a78241;
}
.shop-panel {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.shop-panel > summary,
.wallet-box > summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 0;
  min-height: 44px;
}
.shop-panel label,
.shop-panel select {
  margin: 0.4rem 0;
}
.shop-panel .actions {
  margin: 0.6rem 0;
}
.shop-panel .secondary,
.shop-panel .primary {
  min-height: 42px;
  font-size: 0.87rem;
  padding: 0.6rem 0.8rem;
}
.shop-panel > .hint {
  margin: 0.5rem 0;
}
.wallet-box {
  margin-top: 0.8rem;
}
.wallet-code {
  width: 100%;
  font:
    0.82rem/1.4 ui-monospace,
    monospace;
  word-break: break-all;
}
.receipt-banner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1.2rem;
  margin: 1.1rem 0;
}
.receipt-banner p {
  line-height: 1.45;
  margin: 0.5rem 0;
}
.receipt-banner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.finish-stamp {
  position: absolute;
  top: 22%;
  left: 43%;
  display: grid;
  place-items: center;
  width: 17%;
  height: 16%;
  color: #2e382e;
  background: #f0cf73;
  font: bold 0.75rem/1 var(--serif);
  border-radius: 50%;
  border: 1px solid #865e21;
  text-shadow: none;
}
.stamp-frost {
  color: #2b5365;
  background: #ddf4ff;
}
.stamp-aurora {
  color: #523756;
  background: linear-gradient(45deg, #a7e9c1, #ecc5e9);
}
.stamp-deluxe {
  color: #fff2c2;
  background: #873c47;
}
.gilded-calendar {
  border: 4px double #c4a04e;
  box-shadow:
    0 0 0 1px #826727,
    0 7px 15px #1d342826;
}
.gilded-calendar::before {
  border: 2px solid #ddc577a6;
}
.letter-finish {
  border: 1px solid;
  padding: 1rem;
  border-radius: 6px;
  margin: 0.72rem 0;
}
.letter-finish .read-note {
  margin: 0.45rem 0;
}
.finish-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.progress-summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.55rem 0;
}
.share-composer textarea {
  height: 100px;
}
.return-gift {
  margin-top: 0.5rem;
}
.shop-notice {
  color: var(--wine);
  font-size: 0.9rem;
  line-height: 1.45;
}
.shop-preview {
  margin: 0.5rem 0;
}
.shop-preview[hidden] {
  display: none;
}
@media (max-width: 780px) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .price-card {
    padding: 10px;
  }
  .price-row {
    display: block;
  }
  .price-card h3 {
    margin: 0.5rem 0 0.1rem;
  }
  .pack-grid {
    grid-template-columns: 1fr;
  }
  .pack-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .pack-card h3 {
    margin: 0;
  }
  .prices {
    padding-top: 2.1rem;
  }
  .sample-finish {
    min-height: 49px;
  }
  .finish-stamp {
    font-size: 0.57rem;
  }
}

/* Deluxe editions retain a matching seal on the door and paper inside it. */
:is(.sample-deluxe-globe, .letter-deluxe-globe, .stamp-deluxe-globe) {
  --edition-paper:
    radial-gradient(circle at 13px 9px, #fff 0 2px, transparent 2.5px) 0 0 /
      33px 27px,
    linear-gradient(125deg, #c9e0ef, #f8fbfc 64%, #cfdee8);
  --edition-border: #4e8099;
  --edition-seal: #416e88;
  --edition-mark: "❄";
}
:is(
  .sample-deluxe-gingerbread,
  .letter-deluxe-gingerbread,
  .stamp-deluxe-gingerbread
) {
  --edition-paper:
    repeating-linear-gradient(37deg, transparent 0 19px, #ac672219 20px 22px),
    linear-gradient(125deg, #edd5ae, #fff7e8 58%, #f2c99d);
  --edition-border: #99683f;
  --edition-seal: #895025;
  --edition-mark: "🏠";
}
:is(.sample-deluxe-gift, .letter-deluxe-gift, .stamp-deluxe-gift) {
  --edition-paper:
    linear-gradient(
      90deg,
      transparent 0 6%,
      #bd8f3c 6% 7%,
      #efcd85 7% 9%,
      transparent 9%
    ),
    linear-gradient(125deg, #e4cccc, #fff4e7 60%, #eed6d6);
  --edition-border: #9e5358;
  --edition-seal: #963e49;
  --edition-mark: "🎁";
}
:is(.sample-deluxe-reindeer, .letter-deluxe-reindeer, .stamp-deluxe-reindeer) {
  --edition-paper:
    radial-gradient(ellipse at 16% 4%, #ecdca5, transparent 23%),
    radial-gradient(ellipse at 100% 100%, #bdc9e1, transparent 55%), #f1eff8;
  --edition-border: #72618b;
  --edition-seal: #594e79;
  --edition-mark: "🦌";
}
:is(.sample-deluxe-cocoa, .letter-deluxe-cocoa, .stamp-deluxe-cocoa) {
  --edition-paper:
    repeating-radial-gradient(
      ellipse at 0 105%,
      transparent 0 20px,
      #a3674030 21px 22px,
      transparent 23px 30px
    ),
    linear-gradient(110deg, #ecd9c8, #fff8ed 65%, #edcdb9);
  --edition-border: #9b6449;
  --edition-seal: #7d4635;
  --edition-mark: "☕";
}
:is(.sample-deluxe-wreath, .letter-deluxe-wreath, .stamp-deluxe-wreath) {
  --edition-paper:
    radial-gradient(circle at 4% 90%, #994b462b 0 3px, transparent 4px),
    repeating-linear-gradient(146deg, transparent 0 19px, #46755414 20px 23px),
    linear-gradient(125deg, #d2e1ce, #fffbec 70%, #e5d5ae);
  --edition-border: #65805a;
  --edition-seal: #406744;
  --edition-mark: "🕯";
}
.sample-finish[class*="sample-deluxe-"],
.letter-finish[class*="letter-deluxe-"] {
  background: var(--edition-paper);
  border-color: var(--edition-border) !important;
}
.sample-finish[class*="sample-deluxe-"]::before,
.letter-finish[class*="letter-deluxe-"]::before {
  content: var(--edition-mark);
  color: var(--edition-seal);
}
.letter-finish[class*="letter-deluxe-"]::before {
  float: right;
  margin: 0 0 0.3rem 0.6rem;
  font-size: 1.35rem;
}
.finish-stamp[class*="stamp-deluxe-"] {
  color: #fff9df;
  background: var(--edition-seal);
  border-color: #f1d894;
}
.deluxe-selector {
  display: grid;
  gap: 0.3rem;
}
.deluxe-selector select {
  min-width: 0;
  width: 100%;
}
.song-style-picker audio,
.reader-song audio {
  display: block;
  width: 100%;
  max-width: 350px;
  margin: 0.55rem 0;
}
.song-offer .song-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.7rem 0;
}
.song-consent input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
  margin-top: 0.08rem;
}
.reader-song:empty {
  display: none;
}
.reader-song,
.sent-letter {
  margin: 0.9rem 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.reader-song h3,
.sent-letter h3 {
  font-size: 1.03rem;
  margin: 0.25rem 0 0.6rem;
}
#dialog-content > button.secondary + button.secondary {
  margin: 0.2rem 0.4rem;
}

/* The finishes sit in an open stationer's sample book. */
.stationery-shop #letter-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 clamp(20px,4vw,58px);
}
.stationery-shop #letter-prices .price-card {
  display: grid;
  grid-template-columns: minmax(88px,.48fr) minmax(0,1fr);
  align-content: start;
  align-items: start;
  gap: 3px 16px;
  padding: 1.15rem 0;
  border: 0;
  border-top: 1px dashed #bba784;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#letter-prices .price-card > :not(.sample-finish) { grid-column: 2; }
#letter-prices .sample-finish {
  grid-row: 1 / span 5;
  grid-column: 1;
  width: 100%;
  aspect-ratio: 1.46;
  min-height: 64px;
  padding: 13px 6px 6px;
  text-align: center;
  border-radius: 1px;
  transform: rotate(-2deg);
  box-shadow: 1px 3px 3px #4d381b22;
}
#letter-prices .price-card:nth-child(even) .sample-finish { transform: rotate(2deg); }
#letter-prices .price-row h3 { margin: 0; font: 600 1.23rem/1.25 var(--serif); }
#letter-prices .price-row { flex-wrap: wrap; }
#letter-prices select { max-width: 100%; min-width: 0; }
.stationery-shop #pack-prices .pack-card {
  position: relative;
  padding: 10px clamp(6px,2vw,20px) 10px 0;
  background: transparent;
  border: none;
  border-right: 1px dashed #bdaf94;
  border-radius: 0;
  box-shadow: none;
}
.stationery-shop #pack-prices .pack-card:last-child { border-right: 0; }
#pack-prices .pack-card h3 { font: 600 clamp(1.03rem,2.3vw,1.55rem)/1.17 var(--serif); }
#pack-prices .pack-card p { font-size: .88rem; }
.stationery-shop #book-prices .book-price {
  background: transparent;
  box-shadow: none;
  border: 2px solid #c7a96f;
  outline: 1px solid #c7a96f;
  outline-offset: -5px;
  color: #fff3d6;
}
#book-prices .book-price p, .stationery-shop #book-prices .price-tag { color: #fff1ce; }
@media (max-width: 780px) {
  .stationery-shop #letter-prices { grid-template-columns: minmax(0,1fr); }
  .stationery-shop #pack-prices { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 500px) {
  .stationery-shop #pack-prices { grid-template-columns: minmax(0,1fr); gap: 0; }
  .stationery-shop #pack-prices .pack-card {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    border: 0;
    border-top: 1px dashed #bdaf94;
    padding: .65rem 0;
  }
  #pack-prices .pack-card p { flex-basis: 100%; margin: 0; }
}
