/* General public form controls: make editable fields visually obvious. */
body:not(.admin-body) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]),
body:not(.admin-body) textarea,
body:not(.admin-body) select {
  background:#fff !important;
  color:#111 !important;
  border:1px solid #cfcfcf !important;
  border-radius:3px;
  caret-color:#111;
}
body:not(.admin-body) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):focus,
body:not(.admin-body) textarea:focus,
body:not(.admin-body) select:focus {
  border-color:var(--gold,#b99a5b) !important;
  outline:2px solid rgba(216,187,120,.35);
  outline-offset:1px;
}
body:not(.admin-body) input::placeholder,
body:not(.admin-body) textarea::placeholder {color:#777;opacity:1}
body:not(.admin-body) select option {background:#fff;color:#111}

/* style.css の input{width:100%;padding:13px} が checkbox/radio にも効くため明示的に解除する。 */
body:not(.admin-body) input[type="checkbox"],
body:not(.admin-body) input[type="radio"] {
  width:18px !important;
  height:18px !important;
  min-width:18px;
  flex:0 0 18px;
  padding:0 !important;
  margin:0;
  accent-color:var(--gold,#b99a5b);
  vertical-align:middle;
}

/* 発送先選択は少し大きめにして、カード内でサイズを統一する。 */
body:not(.admin-body) .address-card > input[type="checkbox"] {
  width:22px !important;
  height:22px !important;
  min-width:22px;
  flex-basis:22px;
  margin-top:3px;
}

/* オプションの radio/checkbox と文言を横並びに固定する。 */
body:not(.admin-body) .option-box label {
  display:flex !important;
  grid-template-columns:none !important;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  margin:8px 0;
}
body:not(.admin-body) .option-box input[type="checkbox"],
body:not(.admin-body) .option-box input[type="radio"] {
  margin:0;
}

/* 配送先ごとのオプション：配送先単位を枠で明確に区切る */
main > form > section.commerce-panel:last-of-type > h3 {
  margin:22px 0 0;
  padding:15px 18px 10px;
  border:1px solid #6b5a35;
  border-bottom:0;
  background:#0d0d0d;
  color:var(--gold-light,#d8bb78);
}
main > form > section.commerce-panel:last-of-type > h3 + .option-box {
  margin-top:0;
}
main > form > section.commerce-panel:last-of-type > .option-box {
  margin-left:0;
  margin-right:0;
  padding:14px 18px;
  border-left:1px solid #6b5a35;
  border-right:1px solid #6b5a35;
  background:#0d0d0d;
}
main > form > section.commerce-panel:last-of-type > .option-box:has(+ h3),
main > form > section.commerce-panel:last-of-type > .option-box:last-child {
  padding-bottom:18px;
  border-bottom:1px solid #6b5a35;
}
@media(max-width:700px){
  main > form > section.commerce-panel:last-of-type > h3 {padding:12px 13px 8px}
  main > form > section.commerce-panel:last-of-type > .option-box {padding:12px 13px}
}
