@media (min-width: 1011px) {
  #calendar.hero:has(.gift-composer) { grid-template-columns: minmax(0, 1fr) minmax(385px, 440px); }
}
.gift-composer fieldset { min-inline-size: 0; }
.gift-composer :is(.sticker-picker, .wrap-picker, .gift-music) { margin: 0 0 17px; padding: 0; }
.gift-composer legend { margin-bottom: 8px; color: #5b382a; font-size: .96rem; }
.gift-options, .gift-composer .wrap-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gift-composer .gift-choice, .gift-composer .wrap-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  min-width: 0;
  min-height: 80px;
  text-align: start;
  overflow: clip;
  border: 1px solid #e0c9a4;
  border-radius: 10px;
  padding: 0 0 5px;
  background: #fff8eb;
  cursor: pointer;
}
.gift-composer :is(.gift-choice, .wrap-choice):has(input:checked) { box-shadow: 0 0 0 1px #975334; border-color: #975334; }
.gift-composer :is(.gift-choice, .wrap-choice):has(input:focus-visible) { outline: 2px solid #975334; outline-offset: 2px; }
.gift-composer :is(.gift-choice, .wrap-choice):has(input:disabled) { opacity: .53; cursor: default; }
.gift-composer :is(.gift-choice, .wrap-choice) input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.gift-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fcf2e3; }
.gift-composer :is(.gift-choice, .wrap-choice) :is(strong, small) { padding-inline: 5px; }
.gift-composer :is(.gift-choice, .wrap-choice) strong {
  margin: 5px 0 2px;
  color: #493226;
  font-size: .72rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.gift-composer :is(.gift-choice, .wrap-choice) small { color: #7c4630; font-size: .68rem; line-height: 1.15; }
.gift-composer .gift-music {
  padding: 10px;
  background: #f6e5c7;
  border: 1px solid #e2c9a0;
  border-radius: 12px;
}
.gift-composer .gift-music legend { padding-inline: 4px; }
.gift-music audio { display: block; width: 100%; height: 38px; margin-bottom: 8px; }
.gift-music .gift-sample-label { margin: 0 0 4px; font-size: .78rem; font-weight: 700; }
.gift-music .gift-song-consent { font-size: .72rem; margin: 0; }
.gift-generate-song { width: 100%; margin-top: 8px; }
.gift-checkout-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  margin-top: 9px;
  padding: 10px 11px;
  border: 1px solid #dec8a3;
  border-radius: 10px;
  background: #f7e7ca;
}
.gift-checkout-summary :is(small, button) { grid-column: 1 / -1; justify-self: start; }
.gift-composer .note-footer { margin-top: 9px; }
.gift-composer .note-footer .primary { flex: 1; }
.calendar-upgrade-disclosure {
  border-color: #d7ad6d90;
  background: #142a20e8;
  color: #fff0d3;
}
.calendar-upgrade-disclosure summary { padding: 5px 0; cursor: pointer; font-weight: 700; }
.calendar-upgrade-disclosure .gold-upgrade { margin-bottom: 0; color: #4c3328; }
.gold-calendar-art { display: block; margin-bottom: 9px; width: 100%; height: clamp(92px, 14vw, 158px); object-fit: cover; object-position: center 48%; border-radius: 8px; }
.opened-note:has(.gift-reveal-illustrations) { animation: none; }
.gift-reveal-illustrations {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(7px, 2vw, 16px);
  margin-bottom: 10px;
}
.gift-reveal-illustrations img {
  display: block;
  width: min(43%, 174px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #daad70;
  border-radius: 12px;
  box-shadow: 0 6px 14px #56361b33;
  animation: gift-illustration-in .5s cubic-bezier(.18,.7,.25,1.15) both;
}
.gift-reveal-illustrations .gift-reveal-charm { animation-delay: .07s; }
.pocket-board .pocket-gift-medallion {
  width: clamp(25px, 3.5vw, 40px);
  height: auto;
  aspect-ratio: 1;
  margin-top: -9px;
  border: 1px solid #e9c892;
  border-radius: 50%;
  box-shadow: 0 2px 6px #100a07a6;
  object-fit: cover;
}
@keyframes gift-illustration-in {
  from { transform: translateY(12px) scale(.9); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gift-reveal-illustrations img { animation: none; }
}
@media (max-width: 360px) {
  .gift-options, .gift-composer .wrap-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
