/* =========================================================
   カート・購入手続き・注文完了・マイアカウント（WooCommerce）
   デザイン支給が無いため、元の特商法・プライバシー・記事ページ（sub.css）の
   配色（黒地・金・紅のボタン）と書体に合わせています。
   ========================================================= */
.in.in-shop{max-width:1000px}
.in-shop h2,.in-shop h3{font-size:clamp(16px,2vw,19px);color:var(--gold-hi);margin:2em 0 .8em;padding-left:12px;border-left:3px solid var(--gold);font-weight:700}
.in-shop a{color:var(--gold-hi)}
.in-shop p,.in-shop li,.in-shop td,.in-shop th,.in-shop label{font-size:15px}
.in-shop small{color:var(--sub)}

/* お知らせ（エラー・完了） */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner{list-style:none;margin:0 0 24px;padding:14px 18px;border:1px solid var(--gold);background:rgba(214,178,106,.08);color:var(--fg);font-size:14.5px}
.woocommerce-error{border-color:#c2202c;background:rgba(194,32,44,.12)}
.woocommerce-error li{margin:0}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:12px}

/* 表 */
.in-shop table.shop_table{width:100%;border-collapse:collapse;border:0;margin:0 0 28px;border-top:1px solid var(--line)}
.in-shop table.shop_table th,.in-shop table.shop_table td{padding:14px 8px;border:0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;background:transparent;color:var(--fg)}
.in-shop table.shop_table thead th{color:var(--gold);font-weight:500;font-size:13.5px}
.in-shop table.shop_table td.product-price,.in-shop table.shop_table td.product-subtotal,.in-shop table.shop_table td.product-total,.in-shop .cart_totals td,.in-shop .woocommerce-checkout-review-order-table td:last-child{text-align:right;white-space:nowrap}
.in-shop table.shop_table img{width:64px;height:auto;border:1px solid var(--line)}
.in-shop .product-name{color:var(--gold-hi);font-weight:700}
.in-shop .order-total th,.in-shop .order-total td{color:var(--gold-hi);font-size:17px}
.in-shop .order-total .amount{font-size:20px;font-weight:700}
.in-shop .includes_tax,.in-shop .tax_label{display:block;font-size:12.5px;color:var(--sub);font-weight:400}

/* 商品明細の補足（名入れの内容など） */
.in-shop dl.variation{margin:8px 0 0;font-size:13px;font-weight:400;color:var(--fg)}
.in-shop dl.variation dt{float:left;clear:left;margin:0 .6em 0 0;color:var(--gold);font-weight:400}
.in-shop dl.variation dd{margin:0 0 2px;padding:0}
.in-shop dl.variation dd p{margin:0;font-size:13px}
.in-shop ul.wc-item-meta{list-style:none;margin:8px 0 0;padding:0;font-size:13px;font-weight:400}
.in-shop ul.wc-item-meta li{font-size:13px}
.in-shop ul.wc-item-meta strong{color:var(--gold);font-weight:400}
.in-shop ul.wc-item-meta p{display:inline;margin:0;font-size:13px}

/* 入力欄 */
.in-shop input.input-text,.in-shop textarea,.in-shop select,.in-shop .select2-container .select2-selection,.in-shop input[type=email],.in-shop input[type=tel],.in-shop input[type=text],.in-shop input[type=password]{width:100%;font:inherit;font-size:15px;color:var(--fg);background:#0c0a07;border:1px solid #5a4a2e;border-radius:0;padding:10px 12px;line-height:1.6;min-height:46px}
.in-shop input:focus,.in-shop textarea:focus,.in-shop select:focus{outline:2px solid var(--gold);outline-offset:1px}
.in-shop .select2-container .select2-selection--single{height:46px}
.in-shop .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--fg);line-height:24px;padding:0}
.in-shop .select2-container--default .select2-selection--single .select2-selection__arrow{height:44px}
.select2-dropdown{background:#0c0a07;border-color:#5a4a2e;color:var(--fg)}
.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background:#2a2216;color:var(--gold-hi)}
.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background:#5a4a2e;color:#fff}
.select2-container--default .select2-search--dropdown .select2-search__field{background:#000;color:var(--fg);border-color:#5a4a2e}
.in-shop .form-row{margin:0 0 16px;padding:0}
.in-shop .form-row label{display:block;margin-bottom:4px;color:var(--gold);font-size:14px}
.in-shop .form-row label.checkbox,.in-shop .form-row label.woocommerce-form__label-for-checkbox{color:var(--fg);display:flex;gap:8px;align-items:flex-start}
.in-shop .required{color:#ff8a8a;text-decoration:none;border:0}
.in-shop .optional{color:var(--sub);font-size:12px}
.in-shop .woocommerce-invalid input.input-text{border-color:#c2202c}
/* WooCommerce 本体の入力欄（白背景・黒文字）より優先させる */
.in-shop .woocommerce form .form-row .input-text,.in-shop .woocommerce form .form-row select{font-size:15px;color:var(--fg);background:#0c0a07;border:1px solid #5a4a2e;border-radius:0;padding:10px 12px;line-height:1.6}
.in-shop .woocommerce form .form-row.woocommerce-invalid .input-text{border-color:#c2202c}
.in-shop input::placeholder,.in-shop textarea::placeholder{color:var(--sub);opacity:.75}

/* ボタン：購入に進む操作は紅、その他は金の枠（元サイトの「商品を選ぶ」「名入れ」ボタンと同じ考え方） */
.in-shop .button,.in-shop button.button,.in-shop input.button,.in-shop a.button,.in-shop button[type=submit]{display:inline-block;font:inherit;font-size:14.5px;letter-spacing:.08em;color:var(--gold-hi);background:transparent;border:1px solid var(--gold);border-radius:0;padding:11px 22px;cursor:pointer;text-decoration:none;line-height:1.5}
.in-shop .button:hover{background:rgba(214,178,106,.1)}
.in-shop .button:disabled,.in-shop .button.disabled{opacity:.5;cursor:not-allowed}
.in-shop .checkout-button,.in-shop #place_order,.in-shop .button.alt,.in-shop .single_add_to_cart_button{color:#fff;background:linear-gradient(180deg,#c2202c,#8e0f18);border:1px solid #e8c47a;font-size:16px;padding:15px 30px;font-weight:700}
.in-shop .checkout-button:hover,.in-shop #place_order:hover,.in-shop .button.alt:hover{background:linear-gradient(180deg,#d22a36,#9e1520)}
.in-shop .wc-proceed-to-checkout .checkout-button{display:block;width:100%;text-align:center}
.in-shop #place_order{width:100%}

/* カート */
.in-shop .product-remove a.remove{display:inline-block;width:26px;height:26px;line-height:24px;text-align:center;border:1px solid var(--line);color:var(--sub)!important;text-decoration:none;font-size:18px}
.in-shop .product-remove a.remove:hover{border-color:#c2202c;color:#ff8a8a!important;background:transparent}
.in-shop .quantity .qty{width:72px;min-height:40px;text-align:center;padding:6px}
.in-shop td.actions{text-align:right}
.in-shop td.actions .coupon{float:left;display:flex;gap:8px}
.in-shop td.actions .coupon .input-text{width:180px}
.in-shop .cart-collaterals{display:flex;justify-content:flex-end}
.in-shop .cart_totals{width:min(100%,460px)}
.in-shop .cart_totals h2{margin-top:0}
.in-shop .woocommerce-shipping-methods{list-style:none;margin:0;padding:0}
.in-shop .woocommerce-shipping-destination{font-size:13px;color:var(--sub)}
.in-shop .shipping-calculator-button{font-size:13px}
/* 送料の「住所を変更」フォーム：WooCommerce の左右半分の並び（郵便番号・都道府県）をやめ、1列に左揃え */
.in-shop .shipping-calculator-form{text-align:left;margin:14px 0 0}
.in-shop .shipping-calculator-form .form-row{float:none;width:100%;margin:0 0 12px}
.in-shop .shipping-calculator-form .button{display:block;width:100%;text-align:center}
/* WooCommerce 本体の明るい罫線・枠線を、テーマの線の色に */
.in-shop .cart-collaterals .cart_totals tr td,.in-shop .cart-collaterals .cart_totals tr th{border-top:1px solid var(--line)}
.in-shop table.cart td.actions .coupon .input-text{width:180px;border:1px solid #5a4a2e;padding:10px 12px;margin:0}
.in-shop .cart-empty{text-align:center;margin:20px 0}
.in-shop .return-to-shop{text-align:center}

/* 購入手続き */
.in-shop .col2-set{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}
.in-shop .col2-set .col-1,.in-shop .col2-set .col-2{width:auto;float:none}
.in-shop .col2-set::before,.in-shop .col2-set::after,.in-shop ul.woocommerce-order-overview::before,.in-shop ul.woocommerce-order-overview::after{content:none;display:none}
.in-shop #order_review_heading{margin-top:2.4em}
.in-shop .woocommerce-checkout-payment{background:rgba(214,178,106,.05);border:1px solid var(--line);padding:18px;margin-top:8px}
.in-shop ul.wc_payment_methods{list-style:none;margin:0 0 16px;padding:0}
.in-shop ul.wc_payment_methods li{padding:12px 0;border-bottom:1px solid var(--line)}
.in-shop ul.wc_payment_methods label{color:var(--gold-hi);font-weight:700}
.in-shop .payment_box{margin:10px 0 0;padding:12px 14px;background:#0c0a07;border:1px solid var(--line);font-size:14px;color:var(--fg)}
.in-shop .payment_box p{font-size:14px;margin:0}
.in-shop #payment div.payment_box{margin:10px 0 0;padding:12px 14px;background:#0c0a07;border:1px solid var(--line);border-radius:0;font-size:14px;color:var(--fg)}
.in-shop #payment div.payment_box::before{display:none}
.in-shop .woocommerce-terms-and-conditions-wrapper,.in-shop .woocommerce-privacy-policy-text{font-size:13px;color:var(--sub);margin-bottom:14px}
.in-shop .woocommerce-privacy-policy-text p{font-size:13px}
.in-shop form .form-row .woocommerce-input-wrapper .description{display:block!important;background:none;color:var(--sub);padding:0;margin:6px 0 0;font-size:13px;line-height:1.7;border-radius:0}
.in-shop form .form-row .woocommerce-input-wrapper .description::before{content:none}
.in-shop .woocommerce-form-login-toggle .woocommerce-info,.in-shop .woocommerce-form-coupon-toggle .woocommerce-info{font-size:14px}
.in-shop form.checkout_coupon,.in-shop form.login{border:1px solid var(--line);padding:18px;margin-bottom:24px}

/* 注文完了・注文詳細 */
.in-shop ul.woocommerce-order-overview{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.in-shop ul.woocommerce-order-overview li{background:#0c0a07;padding:12px 14px;font-size:13px;color:var(--sub);text-align:left;margin:0;float:none;border:0}
.in-shop ul.woocommerce-order-overview li strong{display:block;font-size:16px;color:var(--gold-hi);margin-top:2px}
.in-shop .woocommerce-thankyou-order-received{font-size:17px;color:var(--gold-hi);text-align:center;margin:0 0 22px}
.in-shop .woocommerce-bacs-bank-details h2,.in-shop .wc-bacs-bank-details-heading{margin-top:1.6em}
.in-shop ul.wc-bacs-bank-details{list-style:none;padding:0}
.in-shop address{font-style:normal;border:1px solid var(--line);padding:14px;line-height:1.9}

/* マイアカウント */
.in-shop .woocommerce-MyAccount-navigation ul{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.in-shop .woocommerce-MyAccount-navigation a{display:block;padding:6px 14px;border:1px solid var(--line);text-decoration:none;font-size:13.5px}
.in-shop .woocommerce-MyAccount-navigation .is-active a{border-color:var(--gold);color:#1a120a;background:linear-gradient(180deg,#f6e3a8,#c99c4c)}
.in-shop .woocommerce-MyAccount-navigation,.in-shop .woocommerce-MyAccount-content{float:none;width:auto}

/* WooCommerce 標準CSSのクリア・装飾の打ち消し */
.in-shop .woocommerce::after,.in-shop .woocommerce::before{display:none}
.in-shop .clear{clear:both}
.in-shop .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.in-shop .blockUI.blockOverlay{background:rgba(0,0,0,.6)!important}

@media (max-width:768px){
  .in-shop .col2-set{grid-template-columns:minmax(0,1fr);gap:0}
  .in-shop table.shop_table_responsive thead{display:none}
  .in-shop table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--line);padding:8px 0}
  .in-shop table.shop_table_responsive td{display:block;border:0;padding:6px 4px;text-align:right}
  .in-shop table.shop_table_responsive td::before{content:attr(data-title) "：";float:left;color:var(--gold);font-size:13px}
  .in-shop table.shop_table_responsive td.product-remove::before,.in-shop table.shop_table_responsive td.product-thumbnail::before,.in-shop table.shop_table_responsive td.actions::before{content:none}
  .in-shop table.shop_table_responsive td.product-name{text-align:left}
  .in-shop table.shop_table_responsive td.product-name::before{display:none}
  .in-shop td.actions .coupon{float:none;margin-bottom:10px;flex-wrap:wrap}
  .in-shop table.cart td.actions .coupon .input-text,.in-shop td.actions .coupon .button{flex:1 1 100%;width:100%}
  .in-shop .cart_totals{width:100%}
  .woocommerce-message .button,.woocommerce-info .button{float:none;display:block;margin:10px 0 0;text-align:center}
}

/* 2026-11-12 購入手続き：「20歳以上の確認」を見落とされないよう、金の枠で囲んで大きく（弥栄酒造様のご要望）
   WooCommerce 標準の .form-row の余白・label の並びより優先させるため、.woocommerce form から指定 */
.in-shop .woocommerce form .form-row.kotobuki-age-confirm{margin:18px 0 16px;padding:16px 18px 14px;border:2px solid var(--gold);background:rgba(214,178,106,.09);box-shadow:0 0 0 1px rgba(214,178,106,.18),0 0 22px rgba(214,178,106,.12)}
.in-shop .woocommerce form .kotobuki-age-confirm .kac-head{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--gold-hi);letter-spacing:.08em;display:flex;align-items:center;gap:10px}
.in-shop .woocommerce form .kotobuki-age-confirm .kac-req{font-size:11.5px;font-weight:700;letter-spacing:.06em;color:#fff;background:#b3202a;padding:1px 8px;border-radius:2px}
.in-shop .woocommerce form .kotobuki-age-confirm label.kac-label{display:flex;align-items:flex-start;gap:12px;margin:0;font-size:16px;line-height:1.7;color:var(--fg);font-weight:700;cursor:pointer}
.in-shop .woocommerce form .kotobuki-age-confirm label.kac-label input[type=checkbox]{flex:none;width:24px;height:24px;min-height:0;margin:3px 0 0;padding:0;accent-color:#d6b26a;cursor:pointer}
.in-shop .woocommerce form .kotobuki-age-confirm .kac-note{margin:8px 0 0 36px;font-size:13px;color:var(--sub);line-height:1.7}
.in-shop .woocommerce form .form-row.kotobuki-age-confirm.woocommerce-invalid{border-color:#c2202c;background:rgba(194,32,44,.12)}

/* 2026-11-12 カート：数量を変えると自動で更新するため、「お買い物カゴを更新」ボタンは隠す（JavaScript が使えない時は表示） */
.in-shop .woocommerce-cart-form.kotobuki-auto-update button[name="update_cart"]{display:none}

/* 2026-11-13 購入手続き：Amazon Pay の案内「Amazon アカウントをお持ちですか？」（Amazon Pay プラグインがボタンを右寄せ・幅200pxで表示）
   スマホでは横に並べると窮屈で「?」だけが1行に残るため、文字の下に横幅いっぱいのボタンを置く（幅はプラグインが style 属性で入れるので !important） */
@media (max-width:600px){
  .in-shop .wc-amazon-payments-advanced-info{display:flex;flex-direction:column;gap:12px}
  .in-shop .wc-amazon-payments-advanced-info::after{display:none}
  .in-shop .wc-amazon-payments-advanced-info #pay_with_amazon{order:2;float:none;width:100%!important;margin:0}
}
