/**
 * BBQ予約 フロントエンドスタイル
 */
.woocommerce-content {
    border-color:var(--border-color);
    --border-color:#ddd;
    --input-border-color:#ccc;
    --layer-color:#d3f5ffa0;
    --input-border-radius: 4px;
}

.woocommerce-message, .woocommerce-error, .woocommerce-info { font-size:1em; }

.bbq-term-wrapper {
    margin:1em 0 0;
    font-size:.875em;
    max-height:480px;
    overflow-y:auto;
    border-radius:8px; border-width:1px;
    padding:16px;
    background-color:white;
}
.bbq-res-confirm-link {
     text-align:right;
}
/* フォームセクション */
.bbq-form-section {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 8px;
}

.bbq-form-section h2 {
    font-size: 1.1em;
    margin: 0 0 1em 0;
    padding-bottom: .5em;
    border-bottom-width: 1px;
}

/* フォーム行 */
* + .bbq-form-row {
    margin-top: 1em;
}

.bbq-form-row > label {
    display: block;
}

.bbq-label {
    display: block;
    font-weight: 500;
    margin-bottom: .5em;
}

.bbq-label .required {
    color: #c00;
}

.bbq-form-row input[type="text"],
.bbq-form-row input[type="email"],
.bbq-form-row input[type="tel"],
.bbq-form-row input[type="date"],
.bbq-form-row input[type="number"],
.bbq-form-row textarea {
    width: 400px;
    max-width: 100%;
    display:block;
}
  .bbq-form-row input[type="date"] {
      height: calc(var(--input-font-size) + 2 * (var(--input-padding) + var(--input-border-width)));
  }

/* 配送先住所: 入力内容に応じて幅にメリハリをつける */
.bbq-input-postcode {
    width: 160px !important;
}
.bbq-input-state {
    width: 160px !important;
}
.bbq-input-city {
    width: 280px !important;
}

/* datepicker テキスト入力 */
.bbq-date-display {
    cursor: pointer;
    caret-color: transparent;
}

/* datepicker ポップアップ 空き状況カラー */
.ui-datepicker {
    --theme-color:#333
}
.ui-datepicker .bbq-dp-closed a,
.ui-datepicker .bbq-dp-closed span,
.ui-datepicker .bbq-dp-full a,
.ui-datepicker .bbq-dp-full span {
}
.ui-datepicker .bbq-dp-limited a {
    color: #e07800;
}

.bbq-form-row input[type="number"] {
    width: 100px;
}

.bbq-suffix {
    margin-left: .5em;
}

/* タイプ選択（BBQ予約 / テイクアウト / 配送） */
.bbq-type-selector {
    display: flex;
    gap: .75em;
}


.bbq-date-form { 
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
}
.bbq-date-form label { 
    max-width:100%;
}

/* 時間帯選択 */
.bbq-slot-options {
    display: flex;
    flex-direction: column;
    gap: .5em;
}
.bbq-slot-options.is-loading {
    opacity: .5;
    pointer-events: none;
}
.bbq-slot-options.is-loading .bbq-slot-availability::after {
    content: '…';
    color: #999;
    font-size: .875em;
}

.bbq-slot-option, .bbq-type-option {
    display: flex;
    align-items: center;
    padding: .75em 1em;
    background: #fff;
    border-width: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.bbq-slot-option:hover, .bbq-type-option:hover {
    border-color: var(--gray-color);
}

.bbq-slot-option input[type="radio"], .bbq-type-option input[type="radio"] {
    margin: 0;
}

.bbq-slot-option input[type="radio"]:checked + .bbq-slot-label, .bbq-type-option input[type="radio"]:checked + .bbq-type-label {
    font-weight: 600;
}

.bbq-slot-label, .bbq-type-selector .bbq-type-option {
    flex: 1;
}

.bbq-type-selector .bbq-type-option .bbq-type-label {
    margin:0;
}

.bbq-slot-availability {
    font-size: .875em;
    color: #090;
}

.bbq-slot-availability.few {
    color:orange;
}

.bbq-slot-availability.full {
    color: #c00;
}

.bbq-slot-option:has(input:disabled) {
    pointer-events: none;
    cursor: not-allowed;
}

.bbq-slot-option:has(input:disabled) .bbq-slot-label {
    opacity: 0.5;
}

.bbq-guest-counts .bbq-guest-count-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap:1em;

}
.bbq-guest-counts .bbq-guest-count-item {
    display: flex;
    align-items: center;
    gap:0;
    overflow:hidden;
    position: relative;
    background-color:var(--input-field-color);
    border-color:var(--input-border-color);
    border-radius:var(--input-border-radius);
    border-width:1px;
}
.bbq-guest-counts span.bbq-guest-type {
    background-color:#f9f9f9;
    min-width:6em;
    padding:.25em;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    align-self:stretch;
}
.bbq-guest-counts span.bbq-guest-type small {
    display:block;
    word-break:keep-all;
    font-size:10px;
}

.bbq-guest-counts input.bbq-guest-input {
    width:6em;
    border-width:0;
    text-align:center;
    border-top-left-radius:0;
    border-bottom-left-radius:0;
}

.bbq-guest-type {
    display:block;
    word-break: keep-all;
    line-height:1.4;
}


/* フォームアクション */

.woocommerce-message, .woocommerce-error, .woocommerce-info { 
    border-radius: 4px;
    margin:1.5em 0;
}

.bbq-form-actions {
    display: flex;
    align-items: center;
    gap:.5em;
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top-width: 1px ;
}

.bbq-form-actions .button { flex:1; }

.bbq-form-notice {
    flex: 1;
    font-weight: 500;
    padding: 1em;
    margin-bottom: 1.5em;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bbq-form-notice.success {
    color: #090;
    background: #f0fef6;
    border: 1px solid #c6f5dd;
}

.bbq-form-notice.error {
    color: #c00;
    background: #fef0f0;
    border: 1px solid #f5c6c6;
}

.bbq-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* 予約サマリー */
.bbq-summary {
    margin-bottom: 2em;
}

.woocommerce-content h2 {
    font-size: 1.1em;
    margin: 0 0 1em 0;
}

.bbq-summary-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5em 1em;
    padding:1em 1.5em;
    border-width:1px;
    margin: 1em 0;
    border-radius: 4px;
}

.bbq-summary-list dt {
    font-weight: 500;
    color: var(--gray-color);
}

.bbq-summary-list dd {
    margin: 0;
}

.bbq-description {
    color: var(--gray-color);
    margin-bottom: 1.5em;
}

.bbq-product-cat {
    margin:0;
    border-top-width:1px;
}
.bbq-product-cat-heading {
    margin:0;
    padding:16px 84px;
    min-height:96px;
    display:flex;
    flex-direction:column;
    position: relative;
    justify-content:center;
    cursor: pointer;
}

.bbq-product-cat-heading:hover::after {
    color:var(--hover-color);
}
.bbq-product-cat-heading img.bbq-product-cat-img { 
    width:64px; height:64px; object-fit:cover; position:absolute; left:0; top:0; bottom:0; margin: auto 8px; border-radius: 50%;}

.bbq-product-cat-heading h3.bbq-product-cat-h3 {
    font-size: 1.3em;
    margin:0;
    padding: 0;
    background:transparent;
    color:var(--font-color);
}

.bbq-product-cat-heading p { 
    margin:0;
}
.bbq-product-cat-heading::after { transition:transform .25s; content:'▼'; font-size:16px; line-height:1; padding:16px; width:48px; height:48px; display:block; margin: auto 0; position:absolute; right:0; top:0; bottom:0; }

.bbq-product-cat.open .bbq-product-cat-heading::after { color:var(--gray-color); transform:rotate(-180deg);}

.bbq-category-description {
    font-size: .875em;
    line-height:1.5;
    color: var(--gray-color);
    margin: .5em 0 0;
}


.bbq-product-list {
    display:none;
    position:relative;
    background-color:var(--border-color);
    padding:1em;
}

.bbq-product-item {
    display: flex;
    align-items: flex-start;
    background-color:#fff;
    border-radius:4px;
    margin:1em 0 0;
    gap: 1em;
    padding:1em;
    position: relative;
}

.bbq-product-item:first-child {
    margin-top:0;
}

.bbq-product-item.in-cart {
    background: var(--focus-color);
}

.bbq-product-item.bbq-product-disabled {
    overflow:hidden;
    pointer-events: none;
    cursor: not-allowed;
}

.bbq-product-item.bbq-product-disabled::before {
    content:''; display:block; z-index:2; background-color:rgba(255,255,255,.8); position:absolute;
    left:0; top:0; bottom:0; right:0;
}

.bbq-product-item.bbq-product-disabled::after{
    content:'Not Available'; display:block; z-index:3; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
}

.bbq-product-item.bbq-product-disabled .bbq-qty-btn,
.bbq-product-item.bbq-product-disabled .bbq-qty-select {
    background: #eee;
    border-color:var(--input-border-color);
    color: #999;
}

.bbq-product-thumbnail {
    flex-shrink: 0;
    width:160px;
    height:160px;
}

.bbq-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.bbq-product-info {
    flex: 1;
    min-width: 0;
    display:flex;
    flex-wrap:wrap;
    gap:0 1em;
}

p.shop-name {
    display: block;
    font-weight:700;
    color:var(--pickup-color);
    font-size:.875em;
    line-height:1.2;
    margin:0 0 .25em;
}

p.subtitle {
    display: flex;
    font-size: .875em;
    margin:0 0 .25em;
    line-height:1.4;
}

h4.bbq-product-name {
    display: block;
    width:100%;
    font-weight: 600!important;
    font-size:1.1em;
    margin:0 0 .25em;
    line-height:1.4;
}

h4.bbq-product-name::before { 
    display:none!important;
}

p.bbq-product-price {
    display: block;
    width:100%;
    font-size: 1em;
    margin:0 0 .25em;
    line-height:1.4;
    color:var(--strong-color);
}

div.bbq-product-content {
    display: block;
    font-size: .875em;
    color: var(--gray-color);
    margin:.25em 0 0;
    line-height:1.6;
    width:100%;
}
div.bbq-product-content p {
    margin:.25em 0;
}

.bbq-extra-product-list .bbq-product-thumbnail {
    display:none;
}

.bbq-extra-product-list h4.bbq-product-name, .bbq-extra-product-list p.bbq-product-price  {
    width:auto;
}
p.bbq-product-sku {
    display: inline-block;
    font-size: .75em;
    color: var(--gray-color);
    margin:.25em 0 0;
    line-height:1.4;
}

a.bbq-product-url {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .75em;
    color: var(--gray-color);
    margin:.25em 0 0;
    line-height:1.4;
}

a.bbq-product-edit-url {
    font-size: 12px;
    position:absolute;
    left:0; top:0;
    background-color:orange;
    color:#fff;
    line-height:1;
     z-index:999;
    padding:.5em;
}

.bbq-product-qty {
    display: flex;
    align-items: center;
    gap: .5em;
    flex-shrink: 0;
    margin-left: auto;
}

/* 「カートに追加」ボタン + カート内数量表示（.bbq-popup 内。michinoeki ショップ・front-page.php の人気メニューで共通） */
.bbq-product-add-to-cart { flex:none; --button-border-radius:4px; }
.bbq-product-cart-qty { display:inline-flex; align-items:center; gap:.3em; flex:none; margin:0; font-size:.8em; font-weight:700; color:var(--pickup-color); }
.bbq-product-cart-qty .icon-cart { font-size:1.2em; }

.bbq-qty-select {
    height: 36px;
    padding: 0 4px;
    width:36px;
    text-align:center;
    border: 1px solid var(--input-border-color);
    font-size: 1em;
    background-color: #fff;
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    --focus-color: #fff;
}

.bbq-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    padding:0;
    color:inherit;
}

.bbq-qty-btn:hover {
    background: #f5f5f5;
    color:inherit;
}

/* カートサマリー */
.bbq-cart-summary {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 8px;
}

.bbq-buttons { margin:var(--wc-padding) 0 0; display:flex; flex-wrap:wrap; gap:8px; }

.bbq-buttons .buttton {
    flex:1
}

.bbq-cart-empty {
    color: var(--gray-color);
    text-align: center;
    padding: 1em;
    background-color:#fff;
}

.bbq-cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color:#fff;
    text-align: left;
}

.bbq-cart-table th {
    color:var(--gray-color);
}

.bbq-cart-table th, .bbq-cart-table td {
    padding: .5em;
}

.bbq-cart-table .bbq-cart-name {
    width:auto;
}

.bbq-cart-table .bbq-cart-qty {
    width:5em;
    text-align:center;
}

.bbq-cart-table .bbq-cart-total {
    width:8em;
    text-align:center;
}

.bbq-cart-menu .bbq-cart-row-menu {
    cursor: pointer;
    transition: background-color .2s;
}

.bbq-cart-grand-total {
     display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: .5em;
}
.bbq-cart-grand-total .price {
    font-size:1.4em;
}
.bbq-cart-grand-total .amount {
    color:var(--strong-color);
}
.bbq-cart-grand-total .woocommerce-price-suffix {
    font-size:.666em;
}

.bbq-cart-row-menu:hover {
    background-color: var(--focus-color);
}

.bbq-cart-table tfoot th,
.bbq-cart-table tfoot td {
    border-bottom: none;
    font-weight: 600;
}

.bbq-cart-table tfoot .bbq-cart-qty,
.bbq-cart-table tfoot .bbq-cart-total {
    font-size: 1.2em;
}

.bbq-order-comments { 
    width:100%;
}


.bbq-remove-item {
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--link-color);
    cursor: pointer;
    font-size: .75em;
}

/* この画面で選択できない商品（guestカテゴリ・display未対応等） */
.bbq-cart-excluded {
    margin-top: 1em;
    padding: 1em 1.25em;
    background: #fef8f0;
    border: 1px solid #f0dfc0;
    border-radius: 4px;
}
.bbq-cart-excluded h3 {
    margin: 0 0 .5em;
    font-size: 1em;
}
.bbq-cart-excluded .bbq-description {
    margin: 0 0 .75em;
    font-size: .8em;
}
.bbq-cart-excluded-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bbq-cart-excluded-item {
    display: flex;
    align-items: center;
    gap: .75em;
    padding: .5em 0;
    border-top: 1px solid #f0dfc0;
}
.bbq-cart-excluded-item:first-child {
    border-top: none;
    padding-top: 0;
}
.bbq-cart-excluded-name {
    flex: 1;
}
.bbq-cart-excluded-qty {
    color: var(--gray-color);
    font-size: .875em;
}

/* 商品詳細ポップアップ */
.bbq-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.6);
    overflow-y: auto;
    padding: 2em 1em;
}

/* 中身が揃うまでポップアップ自体は開かず、これだけ即座に表示する軽量ローディング */
.bbq-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
}

.bbq-loading-overlay.active {
    display: flex;
}

.bbq-spinner {
    width: 2.5em;
    height: 2.5em;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bbq-spin .8s linear infinite;
}

@keyframes bbq-spin {
    to { transform: rotate(360deg); }
}

.bbq-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--bbq-popup-fade-duration, .5s) ease;
}

.bbq-popup-overlay.active.is-closing {
    opacity: 0;
}

.bbq-popup-success-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .2s ease;
}

.bbq-popup-success-cover.is-visible {
    opacity: 1;
}

.bbq-popup-success {
    margin: 0;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--strong-color);
}

body.bbq-popup-open {
    overflow: hidden;
}

.bbq-popup {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
    display: flex;
    flex-direction: column;
}

.bbq-popup-body {
    min-height: 0;
    overflow-y: auto;
}

/* ポップアップ商品アイテム */
.bbq-popup .bbq-product-item {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    border: none;
    cursor: default;
    background: none;
}

.bbq-popup .bbq-product-item:hover {
    background: none;
}

.bbq-popup .bbq-product-thumbnail {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 1em;
    border-radius: 8px 8px 0 0;
    overflow:hidden;
}

.bbq-popup .bbq-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.bbq-popup .bbq-product-info {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 1em;
    display:block;
}

.bbq-popup p.shop-name, .bbq-product-item p.shop-name {
    background-color:var(--pickup-color);
    color:inherit;
    padding: .15em .6em;
    border-radius: 1em;
}

.bbq-popup h4.bbq-product-name {
    font-size: 1.2em;
}

.bbq-popup p.bbq-product-price {
    font-size: 1.2em;
    margin-bottom: .5em;
}

.bbq-popup div.bbq-product-content {
    display: block !important;
    font-size: .875em;
}
.bbq-popup p.bbq-product-sku {
    display: inline-block !important;
    font-size: .875em;
}
.bbq-popup a.bbq-product-url {
    display: block !important;
    width: 100%;
    font-size: .875em;
}
.bbq-popup a.bbq-product-edit-url{
    display:none;
}

.bbq-popup .bbq-product-qty {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    margin: 0;
}

.bbq-popup .bbq-qty-select {
    height: 44px;
    width: auto;
    min-width: 80px;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.bbq-popup .bbq-qty-btn {
    display: none;
}

.bbq-popup .bbq-product-add-to-cart {
    height: 44px;
}

button.bbq-popup-delete {
    display: block;
    height: 44px;
    padding: 0 1em;
    font-size:1em;
    border: 1px solid currentColor;
    cursor: pointer;
    transition: background .2s;
    color: var(--caution-color);
    background: #fff;
    margin-left:auto;
}

.bbq-popup-close {
    position: absolute;
    top: -.75em;
    right: -.75em;
    padding:0;
    width: 2em;
    height: 2em;
    z-index:999;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    font-size: 1.4em;
    color: var(--gray-color);
    cursor: pointer;
}
.bbq-popup-close:hover {
    background: var(--button-hover-color);
    color: #fff;
}

@media (max-width: 900px) {
    .bbq-product-thumbnail {
        width:120px;
    }
}

@media (min-width: 900.1px) {

    .bbq-popup {
        max-width: 740px;
    }

    /* grid の 1fr/auto 行計算が不安定だったため絶対配置に変更（qtyを下端固定、infoを内部スクロール） */
    .bbq-popup .bbq-product-item {
        position: relative;
        width: 100%;
        min-height: 0;
    }

    /* 商品詳細ポップアップ */
    .bbq-popup:has(.bbq-product-item) {
        width: 100%;
        max-width: 1000px;
        height: 480px;
        max-height: 480px;
        padding: 1.5em 1.5em 1.5em 0;
        display: flex;
        flex-direction: row;
    }

    .bbq-popup:has(.bbq-product-item) .bbq-popup-body {
        display: flex;
        width: 100%;
        min-height: 0;
        overflow: visible;
    }

    .bbq-popup .bbq-product-thumbnail {
        position: absolute;
        left: 0;
        top: -1.5em;
        bottom: -1.5em;
        width: 480px;
        height: auto;
        aspect-ratio: auto;
        border-radius:8px 0 0 8px ;
        margin: 0;
    }

    .bbq-popup .bbq-product-thumbnail img {
        border-radius: 0;
    }

    /* 数量バー(44px)+ 余白の分だけ bottom を空ける */
    .bbq-popup .bbq-product-info {
        position: absolute;
        left: calc(480px + 1.5em);
        right: 0;
        top: 0;
        bottom: 60px;
        overflow-y: auto;
        margin-bottom: 0;
    }

    .bbq-popup .bbq-product-qty {
        position: absolute;
        left: calc(480px + 1.5em);
        right: 0;
        bottom: 0;
        justify-content: flex-start;
        background: #fff;
    }

    .bbq-form-actions .button {
        max-width:16em;
    }
}
/* レスポンシブ */
@media (max-width: 600px) {
    .bbq-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bbq-summary-list {
        gap:.25em .5em;
        padding:.5em 1em;
    }
    .bbq-form-notice {
        text-align: center;
        margin-bottom: .5em;
    }

    .bbq-btn {
        text-align: center;
    }

    /* モバイル: +/-ボタンを非表示 */
    .bbq-qty-btn {
        display: none;
    }

    /* 商品一覧モバイル対応 */
    .bbq-product-cat {
        width:100vw;
        margin:0 calc(var(--column-gap) * -1);
    }
    .bbq-product-cat-heading {
        padding: 0 calc( 48px + var(--column-gap) ) 0 calc( 56px + var(--column-gap) );
    }
    .bbq-product-cat-heading img.bbq-product-cat-img {
        width:48px; height:48px; left:var(--column-gap); margin: auto 0;
    }
    .bbq-product-cat-heading::after {
        right:var(--column-gap);
    }
    .bbq-product-cat h3 {
        position: sticky;
        top: 0;
        z-index: 10;
        margin: 0 -1px;
        padding: .75em 1em;
        background: #333;
        color: #fff;
        font-size: .875em;
    }

    .bbq-product-list {
        border: none;
        border-radius: 0;
        padding:1em var(--column-gap);
    }

    .bbq-product-item {
        align-items:center;
        padding:.75em;
        border-bottom-width: 1px;
        cursor: pointer;
        border-width:0;
    }

    .bbq-qty-select { 
        border-width:2px;
    }

    .bbq-product-item.in-cart .bbq-qty-select {
        border-color:var(--strong-color);
    }

    .bbq-product-thumbnail {
        grid-row: 1 / 3;
        width: 72px;
        height: 72px;
    }

    .bbq-product-info {
        grid-column: 2;
        grid-row: 1;
    }

    p.shop-name {
        font-size: .75em;
        margin: 0 0 .15em;
    }

    p.subtitle {
        font-size: .75em;
        margin: 0 0 .15em;
    }

    h4.bbq-product-name {
        font-size:1em;
        margin: 0 0 .15em;
    }

    p.bbq-product-price {
        font-size:1em;
        margin: 0;
    }

    div.bbq-product-content {
        display: none;
    }

    p.bbq-product-sku {
        display: none;
    }

    a.bbq-product-url, a.bbq-product-url {
        display: none;
    }

    .bbq-product-qty {
        grid-column: 2;
        grid-row: 2;
        margin-left: 0;
        justify-content: flex-start;
    }

    .bbq-qty-select {
        height: 32px;
        min-width: 60px;
        font-size: .875em;
        -webkit-appearance: auto;
        -moz-appearance: auto;
        appearance: auto;
    }

    /* サムネなし時のレイアウト調整 */
    .bbq-product-item:not(:has(.bbq-product-thumbnail)) {
        grid-template-columns: 1fr;
    }

    .bbq-product-item:not(:has(.bbq-product-thumbnail)) .bbq-product-info,
    .bbq-product-item:not(:has(.bbq-product-thumbnail)) .bbq-product-qty {
        grid-column: 1;
    }

    /* カートサマリーモバイル */
    .bbq-cart-summary {
        padding: 1em;
    }
    .bbq-cart-table {
        display:block;
    }
    .bbq-cart-table tbody {
        display:block;
    }
    .bbq-cart-table th,
    .bbq-cart-table td {
        display:inline;
        margin:0 .5em 0 0;
        padding:0;
    }

    .bbq-cart-table thead, .bbq-cart-table tfoot {
        display: none;
    }

    .bbq-cart-table tbody tr {
        display:block;
        padding: .5em;
        line-height:1.5;
        border-bottom-width: 1px;
    }
    .bbq-cart-table tbody tr:last-child {
        border-bottom-width: 0;
    }
    .bbq-cart-table .bbq-cart-qty {
        width:auto; color:var(--strong-color);
    }

    .bbq-cart-table .bbq-cart-qty::before {
        content:"×";
    }
    .bbq-cart-table .bbq-cart-total {
        width:auto; font-size:1.1em;
    }
    .bbq-cart-table tbody td {
        border: none;
        padding: 0;
    }
    .bbq-cart-table tfoot tr {
        justify-content:flex-end;
        border-width:0;
    }
    .bbq-cart-table tfoot .bbq-cart-name {
        display:none
    }


    .bbq-cart-table tfoot th, .bbq-cart-table tfoot td {
        border-width:0;
    }
    /* ポップアップモバイル */
    .bbq-popup-overlay {
        padding: 1em;
        align-items: center;
    }

    .bbq-popup {
        max-width: 100%;
        max-height: 90vh;
    }

    .bbq-popup .bbq-product-thumbnail {
        max-width:320px;
        margin: 0 auto;
    }
}

/* =============================================
   チェックアウト確認画面
   ============================================= */

#customer_details {
    display:none;
}

/* チェックアウトの見出しを他ページと統一（WC標準のh3もh2相当の見た目に揃える） */
.woocommerce-checkout h2,
.woocommerce-checkout #order_review_heading {
    font-size: 1.1em;
    margin: 2em 0 1em 0;
    padding:0 0 .5em;
    display:block;
    border-bottom-width: 1px;
    background-color:transparent;
}
.woocommerce-checkout-review-order-table{
    padding:1em 1.5em;
    border-width:1px;
    border-radius: 4px;
    margin: 1em 0;
}

.wc_payment_methods {
    background-color:white;
    padding:1em 1.5em;
    border-width:1px;
    border-radius: 4px;
    margin: 1em 0;
}
.woocommerce-checkout-payment .form-row.place-order {
    margin:0;
    padding:0;
}

.bbq-checkout-summary {
    display:block;
    margin-bottom:2em;
}

.bbq-change-link {
    display: inline-block;
    padding: .5em 1em;
    font-size: .875em;
    text-decoration: none;
    border-width: 1px;
    border-radius: 4px;
    border-color: currentColor;
    transition: all .2s;
    color:var(--link-color);
}

.bbq-change-link:hover {
    color:var(--hover-color);
    background: #fff;
}

/* ご要望・備考（order_review後） */
.bbq-checkout-request {
    margin-top: 1.5em;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}

.bbq-checkout-request strong {
    display: block;
    font-size: .875em;
    color: var(--gray-color);
    margin-bottom: .5em;
}

.bbq-checkout-request p {
    margin: 0;
    white-space: pre-wrap;
}
.payment_methods .payment_box p, 
.payment_methods .payment_box p label {
    font-size:inherit!important;
}
.payment_cash_agreement { font-weight:600; color:var(--strong-color)}
/* order_review 後の変更リンク */
.bbq-checkout-request + .bbq-change-link,
.woocommerce-checkout-review-order + .bbq-change-link,
#order_review + .bbq-change-link {
    margin-top: 1em;
}

/* 右下フロートのカートボタン + カート確認ポップアップ（wc/front/cart-float.php と共通）
 * bbq本体・michinoeki 双方から読み込む共有パーツ。配色は body.michinoeki 側の
 * --strong-color 等の上書き（wc/michinoeki/templates/style.css）で自動的に切り替わる。 */
.shop-cart-float { font-size:1em; position:fixed; right:16px; bottom:16px; z-index:150; width:auto; height:2em; padding:.5em; border:none; border-radius:100px; gap:.25em; background-color:var(--strong-color); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background-color .2s ease, transform .2s ease; }
.shop-cart-float:hover { background-color:var(--hover-color); }
.shop-cart-float i { font-size:1em; }
.shop-cart-float-text { font-size:.875em; }
.shop-cart-float-count { padding:0; color:var(--strong-color); background-color:#fff; border-radius:100%; font-size:.75em; line-height:1em; padding:.5em 0; text-align:center; width:2em; height:2em; margin:0 -.25em 0 0; }
.shop-cart-float:hover .shop-cart-float-count { color:var(--hover-color); }

/* カート確認ポップアップの中身（外枠は .bbq-popup を共用） */
.bbq-popup-body h3 { margin:0 0 1em; font-size:1.2em; font-weight:700; color:var(--strong-color); }
.shop-cart-popup-loading { margin:2em 0; text-align:center; color:var(--gray-color); }
.shop-cart-popup-empty { color:var(--gray-color); }
.shop-cart-popup-table { width:100%; border-collapse:collapse; font-size:.9em; }
.shop-cart-popup-table th, .shop-cart-popup-table td { padding:.6em .3em; border-bottom:1px solid var(--border-color); text-align:left; vertical-align:middle; }
.shop-cart-popup-table .shop-cart-popup-name { line-height:1.5; }
.shop-cart-popup-name-inner { display:flex; align-items:center; gap:.75em; }
.shop-cart-popup-name-inner img { display:block; flex:none; width:2.75em; height:2.75em; object-fit:cover; border-radius:4px; }
.shop-cart-popup-table .shop-cart-popup-subtotal { white-space:nowrap; }
.shop-cart-popup-table tfoot th, .shop-cart-popup-table tfoot td { border-bottom:none; font-weight:700; }
.shop-cart-popup-footer { margin:1em 0; text-align:center; }
.shop-cart-popup-footer .button { margin:0 auto; }
.shop-cart-popup-remove { color:inherit; text-decoration:underline; padding:0; background-color:transparent; font-size:12px; word-break:keep-all; }
.shop-cart-popup-remove:hover { color:var(--hover-color); background-color:transparent; }
@media (max-width: 782px) {
    .shop-cart-float svg { width:1.25em; height:1.25em; }
}
