/*
Theme Name: online-order
Description: custom-MFP
Version: 1.9.3
Template:

*/

/* ================================================================
   example.css 代替スタイル（必要部分のみ移植・カスタム）
   ================================================================ */

/* ===== グローバルヘッダー ===== */
.oo-global-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.oo-global-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 16px;
}

.oo-global-header__title {
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.oo-global-header__title span,
.oo-global-header__title small {
  white-space: nowrap;
}
.oo-global-header__title small {
  font-size: 14px;
  font-weight: 400;
  opacity: .75;
  letter-spacing: .03em;
}

@media (max-width: 599px) {
  #globalTotalBar .oo-totalbar__total { font-size: 15px; }
  #globalTotalBar .oo-totalbar__label { font-size: 9px; }
}

/* 極小端末（360px未満）保険：タイトル縮小 */
@media (max-width: 359px) {
  .oo-global-header__title { font-size: 14px; }
}

/* スマホ：サブタイトル非表示 */
@media (max-width: 767px) {
  .oo-global-header__title small { display: none; }
}

@media (min-width: 768px) {
  .oo-global-header__title { font-size: 24px; }
}

@media (min-width: 1024px) {
  .oo-global-header__title { font-size: 32px; }
}

#globalTotalBar {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ヘッダー内の合計バーはfixedではなく通常配置 */
#globalTotalBar .oo-totalbar {
  position: static;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,.12);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#globalTotalBar .oo-totalbar__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

#globalTotalBar .oo-totalbar__label {
  font-size: 10px;
  font-weight: 400;
  opacity: .65;
  line-height: 1;
}

#globalTotalBar .oo-totalbar__total {
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

/* ===== ハンバーガーボタン ===== */
.oo-hamburger {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  box-shadow: none !important;
}

.oo-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.oo-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.oo-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.oo-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== ドロワーナビ ===== */
.oo-global-nav {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  z-index: 10001;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0,0,0,.15);
  padding: 64px 0 24px;
  transition: right .25s ease;
}

.oo-global-nav.is-open {
  right: 0;
}

/* 閉じるボタン */
.oo-global-nav__close {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  text-align: left;
  box-shadow: none !important;
}

.oo-global-nav__close:hover {
  background: #f5f5f5;
  color: #333;
}

.oo-global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oo-global-nav ul li {
  border-bottom: 1px solid #eee;
}

.oo-global-nav ul li a {
  display: block;
  padding: 16px 24px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
}

.oo-global-nav ul li a:hover {
  background: #f5f5f5;
  color: #00a497;
}

/* オーバーレイ */
.oo-global-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.4);
}

.oo-global-nav__overlay.is-open {
  display: block;
}

/* 基本リセット */
* {
  font-family: sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  text-align: center;
}

/* PC のみ背景パターンを適用 */
@media (min-width: 1024px) {
  body {
    background-size: 168px 96px;
    background-image: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f8f8f8' fill-opacity='0.3' d='M0,0 L12,0 L12,6 L0,6 L0,0 Z M28,8 L40,8 L40,14 L28,14 L28,8 Z M42,0 L54,0 L54,6 L42,6 L42,0 Z M56,0 L68,0 L68,6 L56,6 L56,0 Z M56,8 L68,8 L68,14 L56,14 L56,8 Z M42,8 L54,8 L54,14 L42,14 L42,8 Z M42,24 L54,24 L54,30 L42,30 L42,24 Z M56,16 L68,16 L68,22 L56,22 L56,16 Z M70,16 L82,16 L82,22 L70,22 L70,16 Z M70,0 L82,0 L82,6 L70,6 L70,0 Z M28,32 L40,32 L40,38 L28,38 L28,32 Z M14,16 L26,16 L26,22 L14,22 L14,16 Z M0,24 L12,24 L12,30 L0,30 L0,24 Z M0,32 L12,32 L12,38 L0,38 L0,32 Z M14,32 L26,32 L26,38 L14,38 L14,32 Z M28,40 L40,40 L40,46 L28,46 L28,40 Z M14,40 L26,40 L26,46 L14,46 L14,40 Z M42,40 L54,40 L54,46 L42,46 L42,40 Z M56,32 L68,32 L68,38 L56,38 L56,32 Z M56,24 L68,24 L68,30 L56,30 L56,24 Z M70,32 L82,32 L82,38 L70,38 L70,32 Z M70,40 L82,40 L82,46 L70,46 L70,40 Z M14,24 L26,24 L26,30 L14,30 L14,24 Z M28,16 L40,16 L40,22 L28,22 L28,16 Z M14,8 L26,8 L26,14 L14,14 L14,8 Z M0,8 L12,8 L12,14 L0,14 L0,8 Z'/%3E%3C/svg%3E");
  }
}

/* ラッパー：レスポンシブ横幅 */
#wrapper {
  text-align: left;
  margin: 0 auto;
  width: 100%;
  max-width: 1440px;
  padding: 10px 16px 16px;
}

@media (min-width: 768px) {
  #wrapper { padding: 10px 24px 24px; }
}

@media (min-width: 1200px) {
  #wrapper { padding: 10px 40px 40px; }
}

/* コンテナ */
#wrapper #container {
  margin: 0 auto;
  padding: 15px;
  background: #fff;
}

/* フッター */
#wrapper #footer { text-align: center; }
#wrapper #footer p { font-size: 12px; color: #666; }

/* 確認画面テーブル */
#wrapper table {
  border-spacing: 0;
  border-collapse: collapse;
}
#wrapper table tr th,
#wrapper table tr td {
  background: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid #ccc;
}

/* 送信完了メッセージ */
#wrapper #container .mfp_thanks { padding: 10px; max-width: 900px; margin: 0 auto; }
#wrapper #container .mfp_thanks p { font-size: 12px; line-height: 1.7em; }
#wrapper #container .mfp_thanks ul.mfp_caution { list-style-type: disc; }
#wrapper #container .mfp_thanks ul.mfp_caution li {
  font-size: 12px;
  margin: 0 1.5em;
  font-weight: bolder;
}

/* .mfp_rows カラムシステム */
.mfp_rows { clear: both; }
.mfp_rows::after {
  content: "";
  clear: both;
  height: 0;
  display: block;
  visibility: hidden;
}
.mfp_rows input[type="text"],
.mfp_rows input[type="email"],
.mfp_rows input[type="tel"],
.mfp_rows input[type="number"],
.mfp_rows input[type="date"],
.mfp_rows input[type="file"],
.mfp_rows select,
.mfp_rows button,
form#mailformpro .mfp_rows label {
  width: 100%;
  min-width: 100%;
  word-break: break-all;
  white-space: normal;
}
.mfp_rows textarea { width: 100%; min-width: 100%; }
.mfp_rows .mfp_col1,
.mfp_rows .mfp_col2,
.mfp_rows .mfp_col3,
.mfp_rows .mfp_col4,
.mfp_rows .mfp_col5,
.mfp_rows .mfp_col6,
.mfp_rows .mfp_col7,
.mfp_rows .mfp_col8,
.mfp_rows .mfp_col9,
.mfp_rows .mfp_col10,
.mfp_rows .mfp_col25 {
  float: left;
  padding: 0 1.5%;
}
.mfp_rows .mfp_col1  { width: 10%; }
.mfp_rows .mfp_col2  { width: 20%; }
.mfp_rows .mfp_col3  { width: 30%; }
.mfp_rows .mfp_col4  { width: 40%; }
.mfp_rows .mfp_col5  { width: 50%; }
.mfp_rows .mfp_col6  { width: 60%; }
.mfp_rows .mfp_col7  { width: 70%; }
.mfp_rows .mfp_col8  { width: 80%; }
.mfp_rows .mfp_col9  { width: 90%; }
.mfp_rows .mfp_col10 { width: 100%; }
.mfp_rows .mfp_col25 { width: 25%; }

/* スマホ */
@media screen and (max-width: 767px) {
  #wrapper *, form#mailformpro * { word-break: break-all; white-space: normal; }
  body { padding: 0; margin: 0; }
  #wrapper {
    border-radius: 0;
    padding: 12px 16px;
    margin: 0;
    width: 100%;
    box-shadow: none;
    border: none;
  }
}


/* ================================================================
   フォーム 2カラムレイアウト（PC）/ 1カラム（スマホ）
   Grid を使うことで dt→列1 / dd→列2 が確実に対応する
   ================================================================ */

/* フォーム全体の幅：グリッドとは独立して読みやすい幅に抑える */
form#mailformpro {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

form#mailformpro dl.mailform {
  display: grid !important;
  grid-template-columns: 240px 1fr;
  column-gap: 0 !important;
  border-bottom: 1px solid #ccc;
  margin: 0;
}

/* 項目名（左カラム） */
form#mailformpro dl.mailform dt.mfp {
  width: 100%;
  padding: 14px 12px 14px 10px;
  border-top: 1px solid #ccc;
  font-size: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 0;
}


/* 必須バッジ：block→inline-block に戻して横並びを維持 */
form#mailformpro dl.mailform dt.mfp .must {
  display: inline-block;
  float: none;
}

/* 任意バッジ */
#shipping_new_block dt.mfp .mustno {
  display: block;
  background-color: #656565;
  padding: 4px 6px;
  font-size: 12px;
  text-shadow: 0px 1px 2px #933;
  color: #FFF;
  float: left;
  margin: 0px 5px;
  border-radius: 4px;
}

/* 入力欄（右カラム） */
form#mailformpro dl.mailform dd.mfp {
  padding: 12px 12px 14px 16px;
  border-top: 1px solid #ccc;
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}

/* スマホ：1カラムに戻す */
@media (max-width: 767px) {
  form#mailformpro dl.mailform {
    grid-template-columns: 1fr;
  }
  form#mailformpro dl.mailform dt.mfp {
    padding: 12px 10px 4px;
    border-top: 1px solid #ccc;
  }
  form#mailformpro dl.mailform dd.mfp {
    padding: 6px 10px 14px;
    border-top: none;
  }
}


/* 住所入力エリア */

/* 郵便番号：ラベル上・入力欄下（縦積み） */
.oo-addr-zip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.oo-addr-zip input {
  width: 180px;
}

/* 都道府県?番地建物名：ラベル左・入力欄右（横並び） */
.oo-addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.oo-addr-row:last-child {
  margin-bottom: 0;
}
.oo-addr-row .oo-addr-label {
  flex: 0 0 80px;
  font-size: 14px;
  white-space: nowrap;
}
.oo-addr-row input {
  flex: 1;
  min-width: 0;
}

/* ラベル共通 */
.oo-addr-label {
  display: block;
  font-size: 14px;
}
.oo-addr-label small {
  font-size: 12px;
  color: #c00; /* #00a497（テーマカラー）から警告色（赤）に変更 */
  margin-left: 4px;
}

/* フォーム内セクション見出し */
.oo-form-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  padding: 0;
}

/* 注意事項リストの番号を表示（mailformpro.css の list-style:none を上書き） */
ol.oo-notes-text {
  list-style: decimal !important;
  padding-left: 1.5em !important;
  margin: 12px 0 !important;
}
ol.oo-notes-text li {
  list-style: decimal !important;
  padding: 4px 0 !important;
  margin-bottom: 10px;
}

/* フォーム行ストライプ無効化（MFPが自動付与する .mfp_colored / .mfp_achroma） */
form#mailformpro .mfp_colored,
form#mailformpro .mfp_achroma {
  background-color: transparent !important;
}

/* Custom
------------------------------------- */

/* コントロール：スマホで2行折返しOK */
#productGrid .oo-controls{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}
#productGrid .oo-control{ display:flex; gap:8px; align-items:center; font-weight:600; }
#productGrid .oo-select{
  padding:6px 10px;
  border:1px solid #ddd;
  border-radius:10px;
}

/* カテゴリ見出し */
#productGrid .oo-section{ margin:12px 0 0; }
#productGrid .oo-section__title{
  margin:0 0 6px;
  font-size:18px;
  font-weight:800;
}

/* カテゴリ周り：折返しOK */
#productGrid .oo-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* カテゴリのプルダウン：内容に応じて自動的に広がる */
#productGrid .oo-toolbar select,
#productGrid select{
  min-width: 200px;
  width: auto;
  max-width: 100%;
}

/* スマホ：ツールバーを全幅に展開 */
@media (max-width: 767px) {
  #productGrid .oo-toolbar {
    width: 100%;
  }
  #productGrid .oo-toolbar select,
  #productGrid select {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
}

/* 入力欄：シャドウ除去・角丸・文字サイズ・padding調整
   チェックボックス・ラジオ・ボタン系は除外 */
form#mailformpro input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
form#mailformpro textarea,
form#mailformpro select,
#productGrid input:not([type="checkbox"]):not([type="radio"]),
#productGrid select {
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 32px;
  font-size: 16px;
  padding: 8px 16px;
  border: 1px solid #ccc;
  line-height: 1.6;
}

/* MFPフォーム内のselectがはみ出さないように */
form#mailformpro select{
  max-width: 100%;
  box-sizing: border-box;
}

/* スマホ：MFPフォーム内 select に余白（右端詰まり防止） */
@media (max-width: 479px){
  form#mailformpro select{
    width: calc(100% - 8px) !important;
  }
}

/* タイトルラベルがあるなら固定幅にして詰まり防止 */
#productGrid .oo-toolbar label,
#productGrid .oo-toolbar .oo-label{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* =========================
   商品一覧：レスポンシブグリッド
   ========================= */

/* 一覧全体の横幅（1620px想定） */
#productGrid .oo-root{
  max-width: 1620px;
  margin-inline: auto;
}

/* 1) 一覧をGridに */
#productGrid .oo-items{
  display: grid;
  gap: 14px;
  /* まずは「最小カード幅」で自動段組（小画面で破綻しにくい） */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* 2) カードを縦積みに（画像→商品名→価格→数量） */
#productGrid .oo-item{
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 14px;
  transition: border-color .15s, background .15s;
  position: relative;
}

/* カード右上：チェックバッジ（未選択：薄いグレー丸） */
#productGrid .oo-item::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  transition: background .15s, border-color .15s;
  box-sizing: border-box;
}

/* 未選択カード：ホバー */
#productGrid .oo-item:not(:has(.oo-check:checked)):hover {
  background: #f5fafa;
}

/* 選択中カード */
#productGrid .oo-item:has(.oo-check:checked){
  border: 2px solid #5CB1B1;
  background: #eef8f8;
}

/* 選択中カード：ホバー */
#productGrid .oo-item:has(.oo-check:checked):hover {
  background: #ddf2f2;
}

/* 選択中：バッジをテーマカラーで塗りつぶし＋チェックマーク */
#productGrid .oo-item:has(.oo-check:checked)::after {
  content: '\2713';
  background: #5CB1B1;
  border-color: #5CB1B1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 3) メイン部も縦に */
#productGrid .oo-item__main{
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  flex: 1 1 auto;
}

/* チェックボックス本体を非表示 */
#productGrid .oo-check{
  display: none;
}

/* 4) 画像：基本250×250、ただし列が細いときは縮む */
#productGrid .oo-img{
  width: min(250px, 100%);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  transition: transform .2s;
  border-radius: 12px;
  align-self: center;
  pointer-events: none;
  -webkit-user-drag: none;
}
#productGrid .oo-img.is-active{
  filter: none;
  transform: scale(1.02);
}

/* 5) 情報（label内：商品名のみ。価格はfooterに移動） */
#productGrid .oo-info{ display:flex; flex-direction:column; gap:6px; }
#productGrid .oo-name{ font-weight:700; line-height:1.35; }

/* 6) フッターエリア：価格（左）＋数量（右）を横並び */
#productGrid .oo-item__footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* 価格 */
#productGrid .oo-price{ font-size:18px; font-weight:600; opacity:.85; }

/* 7) 数量エリア：縦積み（ラベル上・入力欄下） */
#productGrid .oo-item__side{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* 「数量」ラベル：小さめ文字で横書き固定 */
#productGrid .oo-qtylabel{
  font-size: 11px;
  opacity: .75;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

/* 数量入力：常に大きいサイズで固定（年配ユーザー配慮） */
#productGrid .oo-qty{
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  font-size: 18px !important;
  font-weight: 700;
  padding: 4px 4px 4px 10px !important;
}

/* 選択中（enabled）：色だけ切り替え */
#productGrid .oo-qty:not(:disabled){
  color: #5CB1B1;
  border-color: #5CB1B1;
  background: #fff;
}

/* =========================
   列数の“明示”版（好みで）
   auto-fillだけでも動くが、
   「PCは6列固定」を優先するなら下を有効化
   ========================= */

/* スマホ：1列＋上半分が横長カード（label）＋下半分がフッター（価格・数量） */
@media (max-width: 479px){
  #productGrid .oo-items{ grid-template-columns: 1fr; }

  /* カードは縦積み（label上・footer下）に維持。paddingのみ調整 */
  #productGrid .oo-item{
    padding: 10px;
    gap: 8px;
  }

  /* labelを横長に：チェック・画像・商品名を横並びに */
  #productGrid .oo-item__main{
    flex-direction: row;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    align-items: center;
  }

  /* 画像サイズ */
  #productGrid .oo-img{
    width: 100px !important;
    min-width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }

  /* 商品名エリア（label内）：残りの幅を使い切る */
  #productGrid .oo-info{
    flex: 1;
    min-width: 0;
  }

  /* フッター（価格＋数量）：カードの下部に配置。基本スタイルをそのまま使用 */
  /* oo-item__footer は justify-content: space-between で価格左・数量右 */
  /* oo-item__side は flex-direction: column で縦積み（基本スタイルのまま） */
}
@media (min-width: 480px) and (max-width: 767px){
  #productGrid .oo-items{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* タブ：3列 */
@media (min-width: 768px) and (max-width: 1023px){
  #productGrid .oo-items{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* PC：4列（ノート想定） */
@media (min-width: 1024px) and (max-width: 1399px){
  #productGrid .oo-items{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 大きめPC：6列（最大横幅1620px想定） */
@media (min-width: 1400px){
  #productGrid .oo-items{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


/* 合計バー */

/* カートアイコン＋数字を横並び・縦中央 */
#productGrid .oo-totalbar__left,
#globalTotalBar .oo-totalbar__left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

#productGrid .oo-totalbar__cart-icon,
#globalTotalBar .oo-totalbar__cart-icon {
  display: block;
  flex-shrink: 0;
}

#globalTotalBar .oo-totalbar__count {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #5CB1B1;
  padding: 0;
}



/* ===== 擬似カート表示（案C） ===== */

/* 送信用テキストエリアは隠す（値はJSで入るので送信はされる） */
textarea[name="注文内容"],
#order_summary{
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 表示用カート */
.oo-cartview{
  border: 1px solid #ddd;
  border-radius: 14px;
  background: rgba(0,0,0,.02);
  padding: 12px;
  margin: 6px 0 24px; /* カート部分上下の余白調整 */
}


/* 一覧：常に縦1列 */
.oo-cartview__list{
  list-style: none;
  margin: 0 !important;
  padding: 4px 0 0 !important;
  box-sizing: border-box;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* テーマ側の ul/li 装飾を無効化 */
.oo-cartview__list > li{
  margin: 0 !important;
}

/* 行本体：横一列レイアウト */
.oo-cartview__item{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 4px !important;
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-sizing: border-box;
  min-width: 0;
}

/* カテゴリ：枠囲みバッジ */
.oo-cartview__category{
  flex-shrink: 0;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
  color: #555;
}

/* 商品名：余白を埋めて長い場合は省略 */
.oo-cartview__name{
  flex: 1 1 0;
  min-width: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 数量 */
.oo-cartview__qty{
  flex-shrink: 0;
  font-size: 13px;
  white-space: nowrap;
  color: #666;
}

/* 価格 */
.oo-cartview__price{
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.oo-cartview__empty{
  padding: 12px 2px;
  opacity: .7;
}

/* スマホ：2行レイアウト（上：カテゴリ＋商品名 / 下：数量＋価格） */
@media (max-width: 599px) {
  .oo-cartview__item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    column-gap: 8px;
    row-gap: 4px;
    align-items: center;
  }
  .oo-cartview__category {
    grid-column: 1;
    grid-row: 1;
  }
  .oo-cartview__name {
    grid-column: 2 / 5;
    grid-row: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .oo-cartview__qty {
    grid-column: 3;
    grid-row: 2;
  }
  .oo-cartview__price {
    grid-column: 4;
    grid-row: 2;
  }
}


/* 確認画面ラッパー：幅を900pxに制限 */
div#mfp_phase_confirm {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* エラーメッセージ（0件送信防止） */
/* 送信ボタン */
.mfp_buttons button[type="submit"] {
  padding: 14px 48px;
  background: #00a497;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: none;
}

.mfp_buttons button[type="submit"]:hover {
  opacity: .85;
}

/* 確認画面：ボタン共通（padding・文字サイズのみ） */
.mfp_buttons button#mfp_button_send,
.mfp_buttons button#mfp_button_cancel {
  padding: 14px 48px;
  font-size: 16px;
}

/* 確認画面：キャンセルボタンは一回り小さく */
.mfp_buttons button#mfp_button_cancel {
  padding: 10px 32px;
  font-size: 14px;
}

/* 確認画面：送信するボタン */
.mfp_buttons button#mfp_button_send {
  padding: 14px 48px;
  background: #00a497;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: none;
}

.mfp_buttons button#mfp_button_send:hover {
  opacity: .85;
}

/* JS無効時の警告 */
.oo-noscript {
  text-align: center;
  padding: 16px 20px;
  background: #fff3cd;
  border: 1px solid #f0ad4e;
  border-radius: 8px;
  color: #856404;
  font-weight: 700;
  line-height: 1.8;
  margin: 16px auto;
  max-width: 800px;
}

/* お客様情報選択の注釈テキスト */
.oo-shipping-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.oo-error {
  color: #c00;
  font-weight: 700;
  margin: 8px 0 4px;
}

/* ===== 同意チェックボックス ===== */
.oo-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.6;
  cursor: pointer;
}

.oo-agree input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}


/* ===== 前回入力の保存・復元UI ===== */
.oo-remember{
  margin: 12px auto 36px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  max-width: 648px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 767px) {
  .oo-remember { max-width: 100%; }
}

.oo-remember__check{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 8px;
  font-size: 14px;
  min-width: 0;
}

.oo-remember__check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}

.oo-remember__btns{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.oo-remember__btn{
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.oo-remember__btn:hover {
  background: #00a497;
  color: #fff;
  border-color: #00a497;
}

.oo-remember__btn--sub{
  opacity: .85;
}

.oo-remember__btn--sub:hover {
  background: #fff5f5;
  color: #c00;
  border-color: #c00;
}

.oo-remember__note{
  margin-top: 6px;
  font-size: 12px;
  opacity: .8;
}

.oo-remember__msg {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 10px;
  border-radius: 6px;
}

.oo-remember__msg--ok {
  color: #1a7a3c;
  background: #f0faf4;
  border: 1px solid #a8d5b5;
}

.oo-remember__msg--err {
  color: #c00;
  background: #fff5f5;
  border: 1px solid #f5b0b0;
}


/* ===== サンクスページ ===== */
.oo-thanks-body {
  max-width: 640px;
  margin: 24px auto;
  padding: 24px 28px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.oo-thanks-body p {
  font-size: 16px !important;
  line-height: 1.8;
  margin: 0 0 16px;
}

.oo-thanks-body p:last-child {
  margin-bottom: 0;
}

.oo-thanks-home {
  margin-top: 28px;
  text-align: center;
}

.oo-thanks-home a {
  display: inline-block;
  padding: 14px 48px;
  background: #00a497;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 32px;
  transition: opacity .2s;
}

.oo-thanks-home a:hover {
  opacity: .85;
}
