/* CALBOMB 商店／購物車／通知／商品頁共用元件：套用 calbomb-pages 首頁的設計數值（2026-11-30，astra-child 1.3.0）
 * 數值出處：plugins/calbomb-pages/assets/home.css 的 .cbp 變數與 .btn。首頁變數只在 .cbp 內載入，這裡以 --cbn-* 同值重新宣告。
 * 範圍：一律排除結帳頁（body:not(.woocommerce-checkout)），不碰我的帳戶／付款／感謝頁（由 functions.php 條件載入＋選擇器雙重限定）。
 * 只改外觀，不隱藏任何功能元件。 */
body:not(.woocommerce-checkout){
	--cbn-bg:#ffffff; --cbn-tile:#f4f4f2; --cbn-line:#dcdbd8; --cbn-ink:#3c3c3c; --cbn-mute:#6f6f6a;
	--cbn-green:#688b38; --cbn-green-d:#4f6c29; --cbn-honey:#c97a00;
	--cbn-font:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
}

/* ───────── 1. 側欄購物車（頁首點購物車圖示滑出的面板，inc/header.php 的 #cb-cart-panel；2026-12-01 由 Elementor 選單購物車 widget 改為子佈景輸出，數值不變） ───────── */
body:not(.woocommerce-checkout) .cb-cart__main{
	border-radius:20px 0 0 20px;
	font-family:var(--cbn-font);
	line-height:1.7;
}
body:not(.woocommerce-checkout) .cb-cart button.cb-cart__close:hover{color:#4f6c29}
body:not(.woocommerce-checkout) .cb-cart .woocommerce-mini-cart__empty-message{color:#6f6f6a;line-height:1.7}
body:not(.woocommerce-checkout) .cb-cart__thumb img{border-radius:14px}
body:not(.woocommerce-checkout) .cb-cart__name a{font-size:16px;font-weight:700;color:#3c3c3c}
body:not(.woocommerce-checkout) .cb-cart__name a:hover{color:#4f6c29}
body:not(.woocommerce-checkout) .cb-cart__price,
body:not(.woocommerce-checkout) .cb-cart__price .product-quantity{font-size:14px;color:#6f6f6a}
body:not(.woocommerce-checkout) .cb-cart__remove a{color:#6f6f6a;border-color:#6f6f6a}
body:not(.woocommerce-checkout) .cb-cart__remove a:hover{color:#c0392b;border-color:#c0392b}
body:not(.woocommerce-checkout) .cb-cart__subtotal{font-size:20px;font-weight:700;color:#3c3c3c}
body:not(.woocommerce-checkout) .cb-cart__buttons a.cb-cart__btn--checkout{
	display:flex;align-items:center;justify-content:center;
	min-height:48px;padding:0 26px;
	border-style:none none solid none;border-width:0 0 3px 0;border-bottom-color:#4f6c29;border-radius:10px;
	background:#688b38;color:#fff;font-size:17px;font-weight:700;line-height:1.4;
	box-shadow:0 2px 6px rgba(60,60,60,.18);
}
body:not(.woocommerce-checkout) .cb-cart__buttons a.cb-cart__btn--checkout:hover{background:#4f6c29;color:#fff}
body:not(.woocommerce-checkout) .cb-cart__buttons a.cb-cart__btn--checkout:active{transform:translateY(2px);border-bottom-width:1px}
body:not(.woocommerce-checkout) .cb-cart__buttons a.cb-cart__btn:focus-visible{outline:3px solid #3c3c3c;outline-offset:3px}

/* ───────── 2. 加入購物車通知（calbomb-checkout 的 #cb-toasts 頁首浮出塊；JS 把 .woocommerce-message 搬進來） ─────────
   1.7.2：內文 14→16、按鈕 17／高 48→14／高 36 並自成一列（原按鈕比內文大太多） */
body.cb-ui:not(.woocommerce-checkout) #cb-toasts{border-radius:0 0 20px 20px;box-shadow:0 2px 6px rgba(60,60,60,.18);font-family:var(--cbn-font)}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast.cb-toast{color:#3c3c3c!important;font-size:16px!important;line-height:1.6!important}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast.cb-toast + .cb-toast{border-top:1px solid #dcdbd8!important}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast.cb-toast::before{color:#688b38!important}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast.cb-toast.woocommerce-error{background:#fbf1ef!important}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast.cb-toast.woocommerce-error::before{color:#c0392b!important}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast .cb-toast-x{color:#6f6f6a}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast .button.button{
	display:flex!important;width:fit-content;align-items:center;min-height:36px;margin:10px 0 0!important;padding:0 16px!important;
	border:0!important;border-bottom:2px solid #4f6c29!important;border-radius:10px!important;
	background:#688b38!important;color:#fff!important;font-size:14px!important;font-weight:700!important;line-height:1.4;
	box-shadow:0 2px 6px rgba(60,60,60,.18);
}
body.cb-ui:not(.woocommerce-checkout) #cb-toasts .cb-toast .button.button:hover{background:#4f6c29!important;border-bottom-color:#4f6c29!important;color:#fff!important}

/* 頁面內的訊息列（原生 .woocommerce-message／-info；購物車頁空購物車、商品頁、商店頁，非 toast 形態時） */
body.cb-ui:not(.woocommerce-checkout) .woocommerce-message,
body.cb-ui:not(.woocommerce-checkout) .woocommerce-info{
	border:0!important;border-radius:14px!important;background:#f4f4f2!important;color:#3c3c3c!important;
	font-size:14px!important;line-height:1.7!important;padding:12px 16px 12px 44px!important;
}
body.cb-ui:not(.woocommerce-checkout) .woocommerce-message::before,
body.cb-ui:not(.woocommerce-checkout) .woocommerce-info::before{color:#688b38!important}
body.cb-ui:not(.woocommerce-checkout) .woocommerce-error{
	border:0!important;border-radius:14px!important;background:#fbf1ef!important;color:#3c3c3c!important;font-size:14px!important;line-height:1.7!important;
}
body.cb-ui:not(.woocommerce-checkout) .woocommerce-error::before{color:#c0392b!important}
body.cb-ui:not(.woocommerce-checkout) .woocommerce-message a.button,
body.cb-ui:not(.woocommerce-checkout) .woocommerce-info a.button{
	min-height:40px;border:1px solid #dcdbd8!important;border-radius:10px!important;background:#fff!important;color:#3c3c3c!important;font-size:14px!important;font-weight:700!important;letter-spacing:0;
}

/* ───────── 3. 購物車頁 /cart/（有商品時 302 到 /checkout/，這頁實際只剩「空購物車」） ───────── */
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) #primary h1,
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .entry-title{font-size:32px!important;font-weight:700;line-height:1.25!important;letter-spacing:0;color:#688b38}
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) div.woocommerce{font-family:var(--cbn-font);font-size:16px;line-height:1.7;color:#3c3c3c}
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .cart-empty.woocommerce-info{
	background:#f4f4f2!important;border-radius:20px 20px 0 0!important;font-size:20px!important;font-weight:700!important;padding:28px 24px 8px!important;
}
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) p.return-to-shop{
	background:#f4f4f2;border:0;border-radius:0 0 20px 20px;padding:12px 24px 28px!important;
}
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce p.return-to-shop a.button.wc-backward,
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce a.button.alt,
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce button.button.alt{
	display:flex!important;align-items:center;justify-content:center;width:100%;height:auto;min-height:48px;padding:0 26px!important;line-height:1.4!important;
	border:0!important;border-bottom:3px solid #4f6c29!important;border-radius:10px!important;
	background:#688b38!important;color:#fff!important;font-size:17px!important;font-weight:700!important;letter-spacing:0;
	box-shadow:0 2px 6px rgba(60,60,60,.18)!important;
}
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce p.return-to-shop a.button.wc-backward:hover,
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce a.button.alt:hover,
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce button.button.alt:hover{background:#4f6c29!important;border-bottom-color:#4f6c29!important;color:#fff!important}
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce a.button:not(.alt):not(.wc-backward),
body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .woocommerce button.button:not(.alt){
	min-height:48px;padding:0 26px!important;border:1px solid #dcdbd8!important;border-radius:10px!important;background:#fff!important;color:#3c3c3c!important;font-size:17px!important;font-weight:700!important;letter-spacing:0;
}
@media(max-width:767px){
	body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) #primary h1,
	body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .entry-title{font-size:24px!important}
	body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) .cart-empty.woocommerce-info{font-size:18px!important;padding:20px 20px 8px!important}
	body.woocommerce-cart.cb-ui:not(.woocommerce-checkout) p.return-to-shop{padding:12px 20px 20px!important}
}

/* ───────── 4. 商品頁共用元件：加入購物車按鈕、數量選擇（訊息列見第 2 節） ───────── */
body.single-product:not(.woocommerce-checkout) form.cart .single_add_to_cart_button.button{
	min-height:48px;padding:0 26px;
	border:0;border-bottom:3px solid #4f6c29;border-radius:10px;
	background:#688b38;color:#fff;font-size:17px;font-weight:700;line-height:1.4;letter-spacing:0;text-transform:none;
	box-shadow:0 2px 6px rgba(60,60,60,.18);
}
body.single-product:not(.woocommerce-checkout) form.cart .single_add_to_cart_button.button:hover{background:#4f6c29;color:#fff}
body.single-product:not(.woocommerce-checkout) form.cart .single_add_to_cart_button.button:active{transform:translateY(2px);border-bottom-width:1px}
body.single-product:not(.woocommerce-checkout) form.cart .single_add_to_cart_button.button:disabled{opacity:.45}
body.single-product:not(.woocommerce-checkout) form.cart .single_add_to_cart_button.button:focus-visible{outline:3px solid #3c3c3c;outline-offset:3px}
/* 數量選擇：一個白底 1px 框、圓角 10 的整體，加減鈕與輸入欄並排 */
body.single-product:not(.woocommerce-checkout) form.cart div.quantity{
	display:inline-flex;align-items:center;overflow:hidden;
	min-height:48px;border:1px solid #dcdbd8;border-radius:10px;background:#fff;color:#3c3c3c;font-size:16px;
}
body.single-product:not(.woocommerce-checkout) form.cart div.quantity .qty{
	min-height:46px;height:46px;width:3.2em;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
	color:#3c3c3c;font-size:16px;font-weight:700;text-align:center;
}
body.single-product:not(.woocommerce-checkout) form.cart div.quantity .minus,
body.single-product:not(.woocommerce-checkout) form.cart div.quantity .plus{
	display:inline-flex;align-items:center;justify-content:center;width:44px;height:46px;margin:0;
	color:#3c3c3c;font-size:20px;font-weight:700;line-height:1;text-decoration:none;background:transparent;border:0;
}
body.single-product:not(.woocommerce-checkout) form.cart div.quantity .minus:hover,
body.single-product:not(.woocommerce-checkout) form.cart div.quantity .plus:hover{background:#f4f4f2}
body.single-product:not(.woocommerce-checkout) form.cart div.quantity:focus-within{border-color:#688b38}
/* 加購選項列（沿用 .cb-pp 的圓鈕）：選取／hover／focus 色改為主色 */
body.single-product:not(.woocommerce-checkout) .cb-pp .variation-radios .radio-list label:hover{border-color:#688b38}
body.single-product:not(.woocommerce-checkout) .cb-pp .variation-radios .radio-list input:checked+label{border-color:#688b38;box-shadow:inset 0 0 0 1px #688b38}
body.single-product:not(.woocommerce-checkout) .cb-pp .variation-radios .radio-list input:focus-visible+label{outline:3px solid #3c3c3c;outline-offset:3px}
