/* 予約フォーム：SOLD OUT の札・コラボデザート・デザートの数（reserve-extras.js が作る要素） */
#reservation-form {
  --fmp-ink: #372D21;
  --fmp-line: #B4AC9B;
  --fmp-beige: #F5EEDC;   /* お便りのテーマ欄と同じ */
  --fmp-sel: #FFF1AC;     /* 選んだ公演と同じ黄色 */
  --fmp-yellow: #F0D670;
  --fmp-red: #C8452B;
}
#reservation-form .fmp-dessert[hidden],
#reservation-form .fmp-dessert-qty[hidden],
#reservation-form .fmp-dessert__desc[hidden] { display: none !important; }

/* 1. SOLD OUT（満席の公演の選択肢の右端） */
#reservation-form .fmp-option-soldout {
  flex-shrink: 0; margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border: 1px solid var(--fmp-red); border-radius: 12px;
  background: #FFFDF6; color: var(--fmp-red);
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; line-height: 1; white-space: nowrap;
}
#reservation-form .fmp-option-soldout::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 2. コラボデザートの箱（公演の選択肢のすぐ下） */
#reservation-form .fmp-dessert {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0 0 24px; padding: 24px 26px;
  border-radius: 8px; background: var(--fmp-beige); color: var(--fmp-ink);
}
#reservation-form .fmp-dessert__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#reservation-form .fmp-dessert__tag {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px;
  border-radius: 15px; background: var(--fmp-ink); color: var(--fmp-yellow);
  font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; line-height: 1; white-space: nowrap;
}
#reservation-form .fmp-dessert__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#reservation-form .fmp-dessert__venue { font-size: 13px; font-weight: 500; }
#reservation-form .fmp-dessert__body { display: flex; align-items: flex-start; gap: 16px; }
#reservation-form .fmp-dessert-icon { display: block; flex-shrink: 0; width: 52px; height: 52px; fill: currentColor; }
#reservation-form .fmp-dessert__texts { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#reservation-form .fmp-dessert__name { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; }
#reservation-form .fmp-dessert__desc { margin: 0; font-size: 13.5px; font-weight: 400; line-height: 1.9; letter-spacing: 0.04em; }

/* 「コラボデザートも予約する」：公演の選択肢と同じ形のカード。押すと黄色になる */
#reservation-form .fmp-dessert__check {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 0;
  padding: 16px 18px; border: 1px solid var(--fmp-line); border-radius: 7px;
  background: #FFFFFF; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.5;
}
#reservation-form .fmp-dessert__check.is-checked { border-color: var(--fmp-ink); background: var(--fmp-sel); }
#reservation-form .fmp-dessert__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
#reservation-form .fmp-dessert__box {
  flex-shrink: 0; width: 22px; height: 22px; box-sizing: border-box;
  border: 1.5px solid var(--fmp-ink); border-radius: 5px; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
#reservation-form .fmp-dessert__input:checked + .fmp-dessert__box { background: var(--fmp-ink); }
#reservation-form .fmp-dessert__input:checked + .fmp-dessert__box::after {
  content: ""; width: 10px; height: 5px; margin-top: -3px;
  border-left: 2.5px solid var(--fmp-yellow); border-bottom: 2.5px solid var(--fmp-yellow); transform: rotate(-45deg);
}
#reservation-form .fmp-dessert__input:focus-visible + .fmp-dessert__box { outline: 2px solid var(--fmp-ink); outline-offset: 3px; }

/* 3. デザートの数（ご予約人数のすぐ下・2名以上でデザートを希望したときだけ） */
#reservation-form .fmp-dessert-qty {
  display: flex; flex-direction: column; gap: 10px;
  margin: 16px 0 6px; padding: 18px 22px;
  border-left: 4px solid var(--fmp-ink); border-radius: 8px; background: var(--fmp-beige); color: var(--fmp-ink);
}
#reservation-form .fmp-dessert-qty__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
#reservation-form .fmp-dessert-qty__title .fmp-dessert-icon { width: 22px; height: 22px; }
#reservation-form .fmp-dessert-qty__lead { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.7; }
#reservation-form .fmp-dessert-qty__note { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.6; opacity: 0.75; }
/* ご予約人数と同じ − 2つ ＋ の枠（.fmp-stepper の見た目を使う）。少し小さめ */
#reservation-form .fmp-dessert-qty__stepper { --fmp-stepper-h: 52px; --fmp-stepper-w: 240px; margin-top: 0; }

@media (max-width: 700px) {
  #reservation-form .fmp-dessert { padding: 20px 18px; }
  #reservation-form .fmp-dessert__body { gap: 12px; }
  #reservation-form .fmp-dessert-icon { width: 40px; height: 40px; }
  #reservation-form .fmp-dessert__name { font-size: 17px; }
  #reservation-form .fmp-dessert-qty { padding: 16px; }
  #reservation-form .fmp-dessert-qty__stepper { --fmp-stepper-w: 100%; }
}

/* 以前の「満席」の札（.fmp-option-full）が出る実装が残っている場合は、SOLD OUT と二重にならないよう隠す */
#reservation-form .fmp-option-full { display: none !important; }

#reservation-form .fmp-dessert, #reservation-form .fmp-dessert-qty { box-sizing:border-box; min-width:0; max-width:100%; }
@media(max-width:700px){#reservation-form .is-soldout > label {flex-wrap:wrap;} #reservation-form .fmp-option-soldout {margin-left:auto;} }

/* Cake at the upper right; keep the full body width for dessert copy. */
#reservation-form .fmp-dessert { position: relative; }
#reservation-form .fmp-dessert__head { padding-right: 64px; min-height: 52px; box-sizing: border-box; }
#reservation-form .fmp-dessert__body { display: block; }
#reservation-form .fmp-dessert__body > .fmp-dessert-icon { position: absolute; top: 24px; right: 26px; width: 52px; height: 52px; }
#reservation-form .fmp-dessert__texts { width: 100%; }
@media (max-width: 700px) {
  #reservation-form .fmp-dessert__head { padding-right: 52px; min-height: 40px; }
  #reservation-form .fmp-dessert__body > .fmp-dessert-icon { top: 20px; right: 18px; width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  #reservation-form .fmp-dessert__tag { font-size: 10px; letter-spacing: .12em; padding-inline: 10px; }
}
