/* パティスリー（旧 EC-CUBE 3.0.16 のデザイン）で使う 4 系の部品の見た目（#628。4 系の style.css から移した） */
.bg-load-overlay {
  background: rgba(255, 255, 255, 0.4);
  box-sizing: border-box;
  position: fixed;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: space-around;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647;
  opacity: 1;
}

/* UniCube の予約販売（Cart/add_deliverable_date.twig）: お届け予定日の無い商品の札は行へ移されずにページの末尾へ残る。
   枠線付きの空の札が見えないよう隠す（予定日のある札は行へ移されるので、この指定は効かない） */
#front_product_extension__deliverableDate {
  display: none;
}

/* ご注文手続き・確認（Shopping/index.twig・confirm.twig）: UniCube のギフト梱包が行を探す目印の枠。
   3.0 系の表の組み方を崩さないよう .td.table の内側に置き、枠そのものは箱を作らない（写真と商品名は .td.table の表のセルのまま並ぶ） */
.ec-imageGrid {
  display: contents;
}

/* 決済プラグイン・UniCube が足す欄の見出し（4 系の .ec-rectHeading）を、3.0 系の購入画面の見出し（#shopping_confirm .heading02）にそろえる */
#shopping_confirm .ec-rectHeading h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: bold;
  background: #EFEFEF;
  padding: 8px 12px;
}

/* UniCube のギフト梱包・予約販売の部品は 4 系のテーマ（1rem = 16px）を前提に rem で文字の大きさを決めている。
   3.0 系のテーマは html { font-size: 62.5% }（1rem = 10px）なので、そのままでは小さくなる。4 系と同じ大きさ（px）に戻す。
   部品の <style> はこのファイルより後に読まれるため、html body を付けて優先させる */
html body .unicube-gift-fee-row { font-size: 13.6px; }
html body .unicube-gift-setting-row { font-size: 12.8px; }
html body .unicube-gift-edit-btn { font-size: 12.8px; }
html body .unicube-gift-inline__label { font-size: 14.4px; }
html body .unicube-gift-inline__radio-label { font-size: 14.4px; }
html body .unicube-gift-inline__select,
html body .unicube-gift-inline__input { font-size: 15.2px; }
html body .unicube-gift-inline__description { font-size: 12.8px; }
html body .unicube-gift-dialog__title { font-size: 17.6px; }
html body .unicube-gift-dialog__close { font-size: 24px; }
html body .unicube-gift-dialog__field-description { font-size: 12.8px; }
html body .unicube-gift-dialog__label { font-size: 14.4px; }
html body .unicube-gift-dialog__select,
html body .unicube-gift-dialog__input { font-size: 16px; }
html body .unicube-gift-dialog__radio-label { font-size: 15.2px; }
html body .unicube-gift-dialog__fee-note { font-size: 13.6px; }
html body .unicube-gift-dialog__btn { font-size: 15.2px; }
html body .ec-cartRow__deliverableDate { font-size: 12.8px; margin-bottom: 3.2px; }

/* 4 系は郵便番号・電話番号が 1 つの入力欄。3.0 系の 3 分割用の幅（max-width: 5em）では 7 桁・11 桁が入りきらないため広げる
   （会員登録・会員情報編集・お届け先・お問い合わせ・購入の流れのお客様情報とお届け先） */
.form-group.input_zip input {
  max-width: 9em;
  width: 50%;
}
.input_tel input {
  max-width: 13em;
  width: 70%;
}

/* 決済プラグインがマイページ（お届け先一覧・会員情報編集の完了）に出すお知らせ（4 系の .ec-cartRole__error > .ec-alert-warning）を、
   3.0 系のお知らせ（.message > .errormsg.bg-danger）と同じ見た目にする */
.ec-cartRole__error {
  text-align: center;
  padding: 16px 0;
}
.ec-alert-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #fff;
  background-color: #F99;
  font-weight: bold;
}
.ec-alert-warning__icon img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

/* 購入時のログイン（Shopping/login.twig）: 決済プラグインが定期商品のときにゲスト購入の枠（.ec-grid3__cell）を display: none にする。
   残ったログインの枠は、旧サイトでゲスト購入を出さないとき（col-sm-offset-2）と同じく中央へ寄せる */
@media (min-width: 768px) {
  #login_box:has(> #guest_box[style*="none"]) > #customer_box {
    margin-left: 16.66666667%;
  }
}
