/*
 * ASTRA VAPE 定期便: 申し込み方法の選択（初回50%OFF・3回継続 / 通常の定期）
 * 読み込むのは停止スイッチが true のときの定期便の商品ページだけ。クラスはすべて astra-sub-commit で始める。
 */

.astra-sub-commit {
  --c-line: rgba(255, 255, 255, 0.22);
  --c-glass: rgba(255, 255, 255, 0.06);
  --c-muted: rgba(255, 255, 255, 0.72);
  --c-accent: #ff7ad9;
  box-sizing: border-box;
  border: 0;
  margin: 14px 0 0;
  padding: 0;
  min-width: 0;
  color: #fff;
}

.astra-sub-commit * {
  box-sizing: border-box;
}

.astra-sub-commit--terms {
  margin: 16px 0 12px;
}

.astra-sub-commit--terms[hidden] {
  display: none !important;
}

.astra-sub-commit__legend {
  font-size: 12px;
  color: var(--c-muted);
  padding: 0;
  margin: 0 0 6px;
}

.astra-sub-commit__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-glass);
  padding: 12px 14px;
  margin: 0 0 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.astra-sub-commit__option input[type='radio'] {
  margin: 4px 0 0;
  flex: none;
  accent-color: var(--c-accent);
}

.astra-sub-commit__option.is-active {
  border-color: var(--c-accent);
  background: rgba(255, 122, 217, 0.14);
  box-shadow: 0 0 0 1px var(--c-accent), 0 0 18px rgba(255, 122, 217, 0.4);
}

.astra-sub-commit__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.astra-sub-commit__title {
  font-weight: 700;
  font-size: 15px;
}

.astra-sub-commit__lead {
  font-weight: 700;
  font-size: 13px;
  color: var(--c-accent);
}

/* 購入方式「初回50%OFF」の下の3項目は、そのカードが選ばれたときだけ見える */
.astra-sub-commit__option:not(.is-active) .astra-sub-commit__body {
  display: none;
}

.astra-sub-commit__bullets {
  margin: 4px 0 0;
  padding: 0 0 0 1.2em;
  list-style: disc;
}

.astra-sub-commit__bullets li {
  margin: 0 0 2px;
}

.astra-sub-commit__body {
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-muted);
}

.astra-sub-commit__extra {
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.7;
}

.astra-sub-commit__extra[hidden] {
  display: none !important;
}

.astra-sub-commit__terms {
  margin: 0 0 8px;
  color: var(--c-muted);
}

.astra-sub-commit__terms a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.astra-sub-commit__terms a:hover,
.astra-sub-commit__terms a:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}

.astra-sub-commit__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
}

.astra-sub-commit__consent input {
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--c-accent);
}

/* カート・お会計・マイページの案内 */
.astra-sub-commit-notice {
  line-height: 1.8;
}

.astra-sub-commit-notice__table {
  width: 100%;
  max-width: 420px;
  margin: 8px 0 6px;
  border-collapse: collapse;
  font-size: 13px;
}

.astra-sub-commit-notice__table th,
.astra-sub-commit-notice__table td {
  padding: 4px 8px 4px 0;
  text-align: left;
  font-weight: 400;
  border: 0;
  background: none;
}

.astra-sub-commit-notice__table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.astra-sub-commit-notice p {
  margin: 6px 0 0;
}

/* すでにご利用の方（お一人様1回限り）: 3回継続の選択肢を使えなくする */
.astra-sub-commit__option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.astra-sub-commit__used {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-accent);
}

/* お会計: 注文確定ボタンの直前の必須の同意 */
.astra-sub-commit-agree {
  margin: 12px 0 14px;
}

.astra-sub-commit-agree label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.astra-sub-commit-agree input[type='checkbox'] {
  margin: 4px 0 0;
  flex: none;
}
