/* R022: checkout controls. Native inputs retain keyboard and screen-reader semantics. */
.form-modal .address-tel-btn {
  min-height: 40px;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.35;
}

.form-modal .address-tel-btn input,
.form-modal .form-checkbox input {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
}

.form-modal .address-tel-btn__box,
.form-modal .form-checkbox__box {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #707684;
  border-radius: 6px;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.form-modal .form-checkbox__box { margin-top: 0; }

.form-modal .address-tel-btn__box::after,
.form-modal .form-checkbox__check {
  box-sizing: border-box;
  display: block;
  width: 7px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}

.form-modal .address-tel-btn__box::after { content: ""; }

.form-modal .address-tel-btn input:checked + .address-tel-btn__box,
.form-modal .form-checkbox input:checked + .form-checkbox__box {
  border-color: #d91423;
  background: #d91423;
}

.form-modal .address-tel-btn input:checked + .address-tel-btn__box::after,
.form-modal .form-checkbox input:checked + .form-checkbox__box .form-checkbox__check {
  transform: rotate(45deg) scale(1);
}

.form-modal .address-tel-btn input:focus-visible + .address-tel-btn__box,
.form-modal .form-checkbox input:focus-visible + .form-checkbox__box {
  outline: 2px solid #171820;
  outline-offset: 3px;
}

.form-modal .pay-radio__box {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  top: 50%;
  right: 16px;
  margin: 0;
  transform: translateY(-50%);
}

.form-modal .pay-radio__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
  place-self: center;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .form-modal .address-tel-btn__box,
  .form-modal .form-checkbox__box,
  .form-modal .address-tel-btn__box::after,
  .form-modal .form-checkbox__check { transition: none; }
}
