/* ========================================
   アップセルオプション セレクター
   ======================================== */
.upsell-option-wrapper {
  margin: 16px 0 12px;
  padding: 0;
  width: 100%;
}

.upsell-option-label {
  font-size: 12px;
  font-weight: 550;
  color: #555;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.05em;
}

.upsell-options {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: nowrap;
}

.upsell-option {
  flex: 1;
  max-width: 33.333%;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

.upsell-option:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ヘッダー部 */
.upsell-option__header {
  background: #f5f5f5;
  padding: 8px 6px 6px;
  text-align: center;
  font-size: 10px;
  color: #777;
  line-height: 1.45;
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upsell-option__header-txt {
  display: block;
  padding-right: 12px;
}

.upsell-option__info-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c0c0c0;
  color: #fff;
  font-size: 10px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  line-height: 1;
  padding: 0;
  transition: background 0.2s;
}

.upsell-option__info-btn:hover {
  background: #999;
}

/* タイプ名 */
.upsell-option__type {
  padding: 5px 4px 3px;
  text-align: center;
  font-size: 12px;
  font-weight: 550;
  color: #333;
  line-height: 1.3;
}

.upsell-option[data-upgrade="minimum"] .upsell-option__type {
  color: #4a90d9;
}
.upsell-option[data-upgrade="standard"] .upsell-option__type {
  color: #f9a3a9;
}
.upsell-option[data-upgrade="classical"] .upsell-option__type {
  color: #9b59b6;
}

/* 選択エリア */
.upsell-option__select-area {
  padding: 4px 6px 8px;
  text-align: center;
}

.upsell-option__price {
  font-size: 14px;
  font-weight: 550;
  color: #333;
  margin-bottom: 4px;
}

/* チェックマーク（デフォルト） */
.upsell-option__check {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin: 2px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.upsell-option__check-icon {
  display: none;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.upsell-option.is-selected .upsell-option__check-icon {
  display: block;
}

/* ========================================
   選択時のカラーバリエーション
   ======================================== */

/* --- ミニマム（#4a90d9 / ブルー系） --- */
.upsell-option[data-upgrade="minimum"].is-selected {
  border-color: #4a90d9;
  box-shadow: 0 2px 12px rgba(74, 144, 217, 0.2);
}

.upsell-option[data-upgrade="minimum"].is-selected .upsell-option__header {
  background: #e3eef9;
}

.upsell-option[data-upgrade="minimum"].is-selected .upsell-option__check {
  border-color: #4a90d9;
  background: #4a90d9;
}

/* --- スタンダード（#f9a3a9 / ピンク系） --- */
.upsell-option[data-upgrade="standard"].is-selected {
  border-color: #f9a3a9;
  box-shadow: 0 2px 12px rgba(233, 30, 140, 0.2);
}

.upsell-option[data-upgrade="standard"].is-selected .upsell-option__header {
  background: #fce4f1;
}

.upsell-option[data-upgrade="standard"].is-selected .upsell-option__check {
  border-color: #f9a3a9;
  background: #f9a3a9;
}

/* --- クラシカル（#9b59b6 / パープル系） --- */
.upsell-option[data-upgrade="classical"].is-selected {
  border-color: #9b59b6;
  box-shadow: 0 2px 12px rgba(155, 89, 182, 0.2);
}

.upsell-option[data-upgrade="classical"].is-selected .upsell-option__header {
  background: #f0e6f6;
}

.upsell-option[data-upgrade="classical"].is-selected .upsell-option__check {
  border-color: #9b59b6;
  background: #9b59b6;
}

/* ========================================
   固定フッターバー
   ======================================== */
.upsell-fixed-bar {
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  padding: 25px 40px;
  border-radius: 8px;
  bottom: -100px;
  left: 0;
  right: 0;
  color: #fff;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.upsell-fixed-bar {
  bottom: -70px;
}
.upsell-fixed-bar.is-visible {
  bottom: 10px;
}

.upsell-fixed-bar.is-visible {
  transform: translateY(0);
}

.upsell-fixed-bar__info {
  flex: 1;
  min-width: 0;
}
.upsell-fixed-bar__plan-name {
  font-size: 11px;
  opacity: 0.92;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upsell-fixed-bar__upgrade-name {
  font-size: 10px;
  opacity: 0.8;
}
.upsell-fixed-bar__plan-name,
.upsell-fixed-bar__upgrade-name {
  letter-spacing: 0.06em;
}
.upsell-fixed-bar__total {
  font-size: 10px;
  opacity: 0.85;
  margin-top: 2px;
}
.upsell-fixed-bar__total-price {
  font-size: 20px;
  font-weight: 550;
}

.upsell-fixed-bar__price-note {
  font-size: 10px;
  opacity: 0.8;
  font-weight: normal;
  margin-left: 2px;
}

/* 予約ボタン */
.upsell-fixed-bar__book-btn {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.1s,
    color 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  min-height: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upsell-fixed-bar__book-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.upsell-fixed-bar__book-btn:active {
  transform: scale(0.97);
}

/* ========================================
   固定バーのカラーバリエーション
   ======================================== */

/* ミニマム（ブルー系） */
.upsell-fixed-bar[data-theme="minimum"] {
  background: linear-gradient(135deg, #4a90d9, #2e6db4);
}

.upsell-fixed-bar[data-theme="minimum"] .upsell-fixed-bar__book-btn {
  color: #4a90d9;
}

.upsell-fixed-bar[data-theme="minimum"] .upsell-fixed-bar__book-btn:hover {
  color: #4a90d9;
}

/* スタンダード（ピンク系） */
.upsell-fixed-bar[data-theme="standard"] {
  background: linear-gradient(135deg, #f9a3a9, #ef6c78);
}

.upsell-fixed-bar[data-theme="standard"] .upsell-fixed-bar__book-btn {
  color: #f9a3a9;
}

.upsell-fixed-bar[data-theme="standard"] .upsell-fixed-bar__book-btn:hover {
  color: #f9a3a9;
}

/* クラシカル（パープル系） */
.upsell-fixed-bar[data-theme="classical"] {
  background: linear-gradient(135deg, #9b59b6, #7b3f9e);
}

.upsell-fixed-bar[data-theme="classical"] .upsell-fixed-bar__book-btn {
  color: #9b59b6;
}

.upsell-fixed-bar[data-theme="classical"] .upsell-fixed-bar__book-btn:hover {
  color: #9b59b6;
}
.upsell-fixed-bar__book-btn.is-hidden {
  display: none !important;
}

/* ========================================
   ポップアップモーダル
   ======================================== */
.upsell-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}

.upsell-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.upsell-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 95%;
  max-height: 87vh;
  overflow-y: auto;
  padding: 40px 20px;
  position: relative;
}

.upsell-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: #eee;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  padding: 0;
  line-height: 1;
}

.upsell-modal__close:hover {
  background: #ddd;
}

.upsell-modal__title {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 14px;
  padding-right: 30px;
  color: #333;
  line-height: 165%;
}

.upsell-modal__banner {
  width: 100%;
  /* aspect-ratio: 4 / 5; */
  background: #f0f0f0;
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upsell-modal__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upsell-modal__banner-placeholder {
  color: #bbb;
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

.upsell-modal__body {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.upsell-modal__section-label {
  font-size: 12px;
  font-weight: 550;
  color: #f9a3a9;
  margin: 12px 0 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid #fce4f1;
}

.upsell-modal__body ul {
  /* padding-left: 18px; */
  margin: 6px 0 10px;
}

.upsell-modal__body li {
  margin-bottom: 4px;
}
.upsell-modal__body li::before {
  content: "◎";
  color: #c2185b;
  display: inline-block;
  margin-right: 3px;
}

.upsell-modal__price-tag {
  display: inline-block;
  background: #c2185b;
  color: #fff;
  font-weight: 550;
  padding: 4px 12px;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
/* ================================================================
   予約フォームページ: 選択確認バナー
   ================================================================ */
.upsell-booking-banner {
  margin: 0 0 20px 0;
}

.upsell-booking-banner__inner {
  background: linear-gradient(135deg, #fff5f8, #f0e6ff);
  border: 2px solid #f9a3a9;
  border-radius: 12px;
  padding: 20px 24px;
}

.upsell-booking-banner__title {
  font-size: 16px;
  font-weight: 700;
  color: #f9a3a9;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(233, 30, 140, 0.2);
}

.upsell-booking-banner__plan,
.upsell-booking-banner__upgrade {
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.6;
}

.upsell-booking-banner__note {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
/* ==============================================
     タブ切り替えUI（スタンダードA/B）
     ============================================== */
.upsell-modal__banner-tabs {
  width: 100%;
}

.upsell-modal__tab-buttons {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.upsell-modal__tab-btn {
  flex: 1;
  padding: 11px 0 10px;
  border: 2px solid transparent;
  border-bottom: none;
  background: #f5f0eb;
  color: #8c7b6b;
  border: 0.5px solid #fff;
  border-bottom: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.upsell-modal__tab-btn:last-child {
  margin-right: 0;
}

.upsell-modal__tab-btn.is-active {
  background: #f9a3a9;
  color: #fff;
  border: 1px solid #fff;
  border-bottom: none;
  position: relative;
  z-index: 1;
}

.upsell-modal__tab-panels {
  background: #fff;
}

.upsell-modal__tab-panel img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==============================================
     結び方画像（musubi.webp）
     ============================================== */
.upsell-modal__musubi {
  margin: 0 0 16px 0;
  text-align: center;
}

.upsell-modal__musubi img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 820px) {
  .upsell-options {
    gap: 4px;
  }
  .upsell-option__header {
    font-size: 9.5px;
    padding: 6px 4px 5px;
    min-height: 36px;
  }
  .upsell-option__type {
    font-size: 11px;
    padding: 4px 2px 2px;
  }
  .upsell-option__price {
    font-size: 13px;
  }
  .upsell-option__check {
    width: 18px;
    height: 18px;
  }
  .upsell-option__check-icon {
    width: 4px;
    height: 8px;
  }
  .upsell-fixed-bar.is-visible {
    padding: 8px 10px;
    bottom: 60px;
    border-radius: 0;
  }
  .upsell-fixed-bar__total-price {
    font-size: 17px;
  }
  .upsell-fixed-bar__book-btn {
    padding: 16px 18px;
    font-size: 14px;
    min-height: 46px;
    margin-left: 0;
    border-radius: 32px;
  }
  .upsell-booking-banner__inner {
    padding: 16px;
  }
  .upsell-booking-banner__title {
    font-size: 14px;
  }
  .upsell-booking-banner__plan,
  .upsell-booking-banner__upgrade {
    font-size: 13px;
  }
  .upsell-modal {
    border-radius: 8px;
    max-width: 385px;
    width: 95%;
    max-height: 87vh;
    padding: 30px 15px;
  }
}

@media (min-width: 821px) {
  .upsell-option-wrapper {
    margin: 20px 0 14px;
  }
  .upsell-option__header {
    min-height: 44px;
    font-size: 11px;
  }
  .upsell-option__type {
    font-size: 13px;
  }
  .upsell-option__price {
    font-size: 15px;
  }
}
