/* お問い合わせ (Contact Form 7 + Multi-Step Forms) 用の補助スタイル。既存の style.css の .contact__form を前提とする */
.contact__form .wpcf7-form-control-wrap {
  display: block;
}
.contact__form .half .wpcf7-form-control-wrap {
  display: inline-block;
}
.contact__form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  color: #d00;
  font-size: 13px;
}
.contact__form .wpcf7-list-item {
  margin: 0;
}
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  font-size: 14px;
}
.wpcf7-spinner {
  display: none !important;
}

/* 確認ページ: 入力値は文字として表示。改行を保持する */
.contact__form--confirm table td {
  line-height: 1.8;
}
.contact__form--confirm .confirm-message {
  white-space: pre-wrap;
  word-break: break-all;
}
.contact__form--confirm .contact__form__bottom input[type="submit"] {
  margin-right: 5px;
}

/* 「戻る」(プラグイン生成のボタン) を既存の .back ボタンと同じ見た目にする */
.contact__form--confirm .contact__form__bottom .back,
.contact__form--confirm .contact__form__bottom .wpcf7-previous {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-sizing: border-box;
  width: 200px;
  background: #9a9ea9;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  font-family: inherit;
  padding: 15px 0 17px 0;  
  transition: 0.5s;
}
.contact__form--confirm .contact__form__bottom input[type="submit"],
.contact__form--confirm .contact__form__bottom input[type="button"] {
	margin-top: 0 !important;
	margin: 0 5px 10px 0;
}
@media only all and (min-width: 961px) {
  .contact__form--confirm .contact__form__bottom .back:hover,
  .contact__form--confirm .contact__form__bottom .wpcf7-previous:hover {
    opacity: 0.5;
  }
}
.l-contents .contact__contents .contact__form table td .postal {
    margin-right: 5px;
}
.wpcf7 .wpcf7-submit:disabled {
	cursor: not-allowed !important;
	pointer-events: none !important;
}
/* 郵便番号・電話番号: 元の MW WP Form 版と同じく「〒」「入力欄」「※半角にて…」を横並びにし、
   入力欄は元の分割欄 (90px × 2 / 90px × 3) 相当の幅にする。エラーは行の下に1つだけ出す */
.contact__form .tri-group { display: flex; flex-wrap: wrap; align-items: center; }
.contact__form .tri-group .wpcf7-form-control-wrap { display: contents; }
.contact__form .tri-group .wpcf7-not-valid-tip { order: 99; flex: 0 0 100%; }
.l-contents .contact__contents .contact__form table td .tri-group input.zip { width: 200px; max-width: 100%; }
.l-contents .contact__contents .contact__form table td .tri-group input.tel { width: 300px; max-width: 100%; }
@media only screen and (max-width: 960px) {
	.l-contents .contact__contents .contact__form table td .tri-group .atte { flex: 0 0 100%; }
}
