/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =====================================================================
   i-go 客製（2026-08-28）
   ===================================================================== */

/* --- 願望清單：已加入時改成「填滿的紅色愛心」，不要打勾徽章 ------------
   Woodmart 原本是保留空心愛心，再疊一顆主色的圓形打勾（.wd-added-icon）。
   這裡把 :before 的字型圖示換成內嵌 SVG 實心愛心，並把打勾徽章關掉。      */
.wd-wishlist-btn > a.added:before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0242b'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.wd-wishlist-btn > a.added .wd-added-icon {
	display: none;
}

.wd-wishlist-btn > a.added,
.wd-wishlist-btn > a.added:hover {
	color: #e0242b;
}

/* --- 結帳表單：隱藏「國家/地區」整列（只賣台灣，值固定為 TW） ---------- */
.igo-hidden-row {
	display: none !important;
}

/* =====================================================================
   結帳頁：寄送方式 / 付款方式改成「卡片式選項」
   ---------------------------------------------------------------------
   原本是瀏覽器預設的小圓鈕，點擊區只有那顆圓圈，手機上很難點。
   這裡把每個選項變成整塊可點的卡片，圓鈕自己畫大一點，選中的卡片
   用主色描邊 + 淡底色標示。顏色一律吃 Woodmart 的 CSS 變數，
   之後在佈景主題設定改主色，這裡會自動跟著變。
   ===================================================================== */

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) {
	--igo-choice-border: #e1e1e1;
	--igo-choice-radius: 10px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--igo-choice-border);
	border-radius: var(--igo-choice-radius);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	list-style: none !important;
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li:hover {
	border-color: var(--wd-primary-color, #b81820);
}

/* 整塊卡片都可以點：label 撐滿，圓鈕自己畫 */
:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > label {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 14px 16px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.4;
	color: var(--wd-title-color, #242424);
	font-weight: 500;
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	pointer-events: none;
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > input[type="radio"] + label::before {
	content: "";
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: 2px solid #c9c9c9;
	border-radius: 50%;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > input[type="radio"]:checked + label::before {
	border-color: var(--wd-primary-color, #b81820);
	/* 內圓點用 box-shadow 畫，不用再多一個元素 */
	box-shadow: inset 0 0 0 5px var(--wd-primary-color, #b81820);
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li:has(> input[type="radio"]:checked) {
	border-color: var(--wd-primary-color, #b81820);
	box-shadow: 0 0 0 1px var(--wd-primary-color, #b81820);
	background: #fdf6f6;
	background: color-mix(in srgb, var(--wd-primary-color, #b81820) 5%, #fff);
}

/* 鍵盤操作時看得到焦點 */
:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > input[type="radio"]:focus-visible + label::before {
	box-shadow: 0 0 0 3px rgba(184, 24, 32, .3);
}

/* 付款方式的圖示（LINE Pay、綠界）靠右擺，不要擠在文字中間 */
:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > label img {
	margin: 0 0 0 auto;
	max-height: 24px;
	width: auto;
}

/* 選中後展開的說明區塊 */
:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > .payment_box {
	margin: 0 16px 14px 50px;
	padding: 0;
	background: none;
	color: var(--wd-text-color, #767676);
	font-size: 13px;
	line-height: 1.6;
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > .payment_box::before {
	display: none;
}

:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > .payment_box p:last-child {
	margin-bottom: 0;
}

/* 只有一種寄送方式時 WooCommerce 不出 radio，只有 label —— 別留空位 */
:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > input[type="hidden"] + label {
	padding-left: 16px;
}

/* 超商取貨的「選擇門市」按鈕跟著卡片走 */
:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li .ry-choose-cvs,
:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li .button {
	margin: 0 16px 14px 50px;
}

@media (max-width: 768px) {
	:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > label {
		padding: 16px 14px;
		font-size: 15px;
	}

	:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li > .payment_box,
	:is(#shipping_method, .woocommerce-checkout .wc_payment_methods) > li .button {
		margin-left: 48px;
	}
}

/* =====================================================================
   購物車：會員誘因面板
   ===================================================================== */

.igo-member-panel {
	margin-top: 20px;
	padding: 18px 20px 20px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fafafa;
	font-size: 14px;
	line-height: 1.6;
	color: var(--wd-text-color, #767676);
}

.igo-member-panel--guest {
	border-color: color-mix(in srgb, var(--wd-primary-color, #b81820) 25%, #fff);
	background: color-mix(in srgb, var(--wd-primary-color, #b81820) 4%, #fff);
}

.igo-member-panel__head {
	margin-bottom: 14px;
}

.igo-member-panel__badge {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--wd-primary-color, #b81820);
	color: #fff;
	font-size: 11px;
	letter-spacing: .04em;
	line-height: 1.7;
}

.igo-member-panel__head h4 {
	margin: 0;
	font-size: 17px;
	line-height: 1.35;
	color: var(--wd-title-color, #242424);
}

.igo-member-panel__rows {
	list-style: none !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border-top: 1px solid #e8e8e8;
}

.igo-member-panel__rows > li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 !important;
	padding: 9px 0;
	border-bottom: 1px solid #e8e8e8;
	list-style: none !important;
}

.igo-member-panel__label {
	flex: 0 0 76px;
	color: var(--wd-text-color, #767676);
	font-size: 13px;
}

.igo-member-panel__value {
	flex: 1;
	color: var(--wd-title-color, #242424);
}

.igo-member-panel__value del {
	margin-right: 6px;
	opacity: .55;
	font-weight: 400;
}

.igo-member-panel__value strong {
	color: var(--wd-primary-color, #b81820);
	font-weight: 600;
}

.igo-member-panel__note {
	margin: 0 0 14px;
	font-size: 12.5px;
	color: var(--wd-text-color, #767676);
}

.igo-member-panel__btn {
	display: block;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--wd-primary-color, #b81820);
	color: #fff !important;
	text-align: center;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .15s ease;
}

.igo-member-panel__btn:hover {
	background: var(--wd-alternative-color, #97141a);
}

/* 升級進度 */
.igo-member-panel__next {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px dashed #dcdcdc;
}

.igo-member-panel__next p {
	margin: 0 0 10px;
	font-size: 13.5px;
}

.igo-member-panel__next strong {
	color: var(--wd-primary-color, #b81820);
}

.igo-member-panel__bar {
	height: 6px;
	border-radius: 999px;
	background: #e6e6e6;
	overflow: hidden;
}

.igo-member-panel__bar > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--wd-primary-color, #b81820);
	transition: width .3s ease;
}

/* =====================================================================
   訂單完成頁：會員引導面板
   ===================================================================== */

.igo-thankyou-panel {
	margin: 0 0 30px;
	padding: 24px 26px;
	border: 1px solid color-mix(in srgb, var(--wd-primary-color, #b81820) 25%, #fff);
	border-radius: 12px;
	background: color-mix(in srgb, var(--wd-primary-color, #b81820) 4%, #fff);
	font-size: 14px;
	line-height: 1.6;
	color: var(--wd-text-color, #767676);
}

.igo-thankyou-panel__head h3 {
	margin: 6px 0 8px;
	font-size: 21px;
	line-height: 1.3;
	color: var(--wd-title-color, #242424);
}

.igo-thankyou-panel__head p {
	margin: 0 0 16px;
}

.igo-thankyou-panel__head strong {
	color: var(--wd-title-color, #242424);
}

.igo-thankyou-panel .igo-member-panel__rows {
	margin-bottom: 18px !important;
	border-top-color: color-mix(in srgb, var(--wd-primary-color, #b81820) 15%, #fff);
}

.igo-thankyou-panel .igo-member-panel__rows > li {
	border-bottom-color: color-mix(in srgb, var(--wd-primary-color, #b81820) 15%, #fff);
}

.igo-thankyou-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.igo-thankyou-panel__actions .igo-member-panel__btn {
	flex: 1 1 180px;
}

.igo-member-panel__btn--ghost {
	background: transparent;
	border: 1px solid var(--wd-primary-color, #b81820);
	color: var(--wd-primary-color, #b81820) !important;
}

.igo-member-panel__btn--ghost:hover {
	background: var(--wd-primary-color, #b81820);
	color: #fff !important;
}

.igo-thankyou-panel__social {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed color-mix(in srgb, var(--wd-primary-color, #b81820) 25%, #fff);
}

.igo-thankyou-panel__social > p {
	margin: 0 0 10px;
	font-size: 13.5px;
}

/* 結帳頁：自動建立帳號的告知文字 */
.igo-account-notice {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #f6f6f6;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--wd-text-color, #767676);
}

/* 訂單完成頁：面板下面的補充說明 */
.igo-thankyou-panel__foot {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--wd-text-color, #767676);
}

/* 「我的帳戶」頁：從訂單完成頁過來認領訂單時的提示 */
.igo-claim-notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid color-mix(in srgb, var(--wd-primary-color, #b81820) 25%, #fff);
	border-radius: 12px;
	background: color-mix(in srgb, var(--wd-primary-color, #b81820) 4%, #fff);
	font-size: 14px;
	line-height: 1.6;
	color: var(--wd-text-color, #767676);
}

.igo-claim-notice > strong {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
	color: var(--wd-title-color, #242424);
}

.igo-claim-notice > p {
	margin: 0;
}

/* =====================================================================
   結帳頁：商品加購
   ===================================================================== */

.igo-addons-strip {
	margin: 14px 0 0;
}

.igo-addons-strip__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px dashed color-mix(in srgb, var(--wd-primary-color, #b81820) 40%, #fff);
	border-radius: 10px;
	background: color-mix(in srgb, var(--wd-primary-color, #b81820) 4%, #fff);
	color: inherit;
	text-align: left;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.igo-addons-strip__btn:hover {
	border-style: solid;
	background: color-mix(in srgb, var(--wd-primary-color, #b81820) 8%, #fff);
}

.igo-addons-strip__icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wd-primary-color, #b81820);
	color: #fff;
	font-size: 15px;
	line-height: 26px;
	text-align: center;
}

.igo-addons-strip__text {
	flex: 1 1 auto;
	min-width: 0;
}

/* 那一排小圖：先讓人看到有什麼、多少錢，才有理由點開彈窗。
   窄螢幕整排收起來，不然會把標題擠掉。 */
.igo-addons-strip__preview {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	gap: 10px;
}

.igo-addons-strip__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	width: 52px;
}

.igo-addons-strip__thumb {
	position: relative;
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #f4f2f0;
}

.igo-addons-strip__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.igo-addons-strip__lock {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, .72);
	font-size: 15px;
}

.igo-addons-strip__item.is-locked .igo-addons-strip__price {
	opacity: .55;
}

.igo-addons-strip__price {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
}

.igo-addons-strip__price del {
	display: block;
	font-weight: 400;
	opacity: .5;
	font-size: 10px;
}

.igo-addons-strip__price .woocommerce-Price-currencySymbol {
	font-weight: 400;
}

@media (max-width: 600px) {
	.igo-addons-strip__preview {
		display: none;
	}
}

.igo-addons-strip__text strong {
	display: block;
	font-size: 14px;
	color: var(--wd-title-color, #242424);
}

.igo-addons-strip__text small {
	display: block;
	font-size: 12px;
	color: var(--wd-text-color, #767676);
}

.igo-addons-strip__arrow {
	flex: 0 0 auto;
	font-size: 20px;
	color: var(--wd-primary-color, #b81820);
}

/* --- 彈窗 --------------------------------------------------------------- */

body.igo-addons-open {
	overflow: hidden;
}

.igo-addons-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.igo-addons-modal[hidden] {
	display: none;
}

.igo-addons-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
}

.igo-addons-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 520px;
	max-height: 85vh;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	overflow: hidden;
}

.igo-addons-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	background: none;
	color: var(--wd-text-color, #767676);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.igo-addons-modal__head {
	padding: 20px 54px 14px 22px;
	border-bottom: 1px solid #ececec;
}

.igo-addons-modal__head h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: var(--wd-title-color, #242424);
}

.igo-addons-modal__head p {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--wd-text-color, #767676);
}

.igo-addons-modal__body {
	flex: 1 1 auto;
	padding: 6px 22px 20px;
	overflow-y: auto;
}

.igo-addons-modal__loading,
.igo-addons-modal__empty {
	margin: 18px 0;
	font-size: 13.5px;
	color: var(--wd-text-color, #767676);
}

.igo-addons-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.igo-addons-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
}

.igo-addons-item:last-child {
	border-bottom: 0;
}

.igo-addons-item__img {
	flex: 0 0 64px;
	width: 64px;
	border-radius: 8px;
	overflow: hidden;
}

.igo-addons-item__img img {
	display: block;
	width: 100%;
	height: auto;
}

.igo-addons-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.igo-addons-item__name {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	color: var(--wd-title-color, #242424) !important;
}

.igo-addons-item__price {
	margin-top: 2px;
	font-size: 13.5px;
}

.igo-addons-item__price .amount {
	color: var(--wd-primary-color, #b81820);
	font-weight: 600;
}

.igo-addons-item__btn {
	flex: 0 0 auto;
	padding: 8px 16px;
	border: 1px solid var(--wd-primary-color, #b81820);
	border-radius: 8px;
	background: var(--wd-primary-color, #b81820);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}

.igo-addons-item__btn[disabled] {
	border-color: #d9d9d9;
	background: #f2f2f2;
	color: #999;
	cursor: default;
}

@media (max-width: 480px) {
	.igo-addons-modal {
		padding: 0;
		align-items: flex-end;
	}

	.igo-addons-modal__dialog {
		max-width: none;
		max-height: 88vh;
		border-radius: 14px 14px 0 0;
	}
}

/* =====================================================================
   滿額階梯
   ===================================================================== */

.igo-tier-ladder {
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fafafa;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wd-text-color, #767676);
}

.igo-tier-ladder__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.igo-tier-step {
	display: flex;
	align-items: baseline;
	gap: 5px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 6px 10px;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	background: #fff;
	opacity: .6;
}

.igo-tier-step.is-next {
	border-color: var(--wd-primary-color, #b81820);
	opacity: 1;
}

.igo-tier-step.is-earned {
	border-color: #cfe6cf;
	background: #f4faf4;
	opacity: 1;
}

.igo-tier-step__mark {
	flex: 0 0 auto;
	width: 15px;
	color: #3f9c47;
	font-weight: 700;
}

.igo-tier-step.is-next .igo-tier-step__mark::before {
	content: "▸";
	color: var(--wd-primary-color, #b81820);
}

.igo-tier-step__amount {
	font-weight: 600;
	color: var(--wd-title-color, #242424);
	white-space: nowrap;
}

.igo-tier-step__reward {
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 推薦湊單商品 */
.igo-tier-suggest {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e0e0e0;
}

.igo-tier-suggest__label {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wd-primary-color, #b81820);
	color: #fff;
	font-size: 11px;
	line-height: 1.7;
	white-space: nowrap;
}

.igo-tier-suggest__item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit !important;
}

.igo-tier-suggest__item img {
	width: 34px;
	height: auto;
	border-radius: 5px;
}

.igo-tier-suggest__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--wd-title-color, #242424);
}

.igo-tier-suggest__price {
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--wd-primary-color, #b81820);
}

.igo-tier-suggest__btn {
	flex: 0 0 auto;
	padding: 6px 14px;
	border: 1px solid var(--wd-primary-color, #b81820);
	border-radius: 7px;
	background: var(--wd-primary-color, #b81820);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

/* 贈品／加價購標籤 */
.igo-gift-badge,
.igo-addon-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.7;
	vertical-align: middle;
}

.igo-gift-badge {
	background: #eaf6ea;
	color: #2f7a37;
}

.igo-addon-badge {
	background: #fdf0e6;
	color: #b4661d;
}

.igo-gift-free {
	color: #2f7a37;
	font-weight: 600;
}

.igo-gift-qty {
	color: var(--wd-text-color, #767676);
}

/* 加價購在彈窗裡的樣子 */
.igo-addons-unlock-note {
	margin: 12px 0 0;
	padding: 9px 12px;
	border-radius: 8px;
	background: #fdf0e6;
	font-size: 12.5px;
	line-height: 1.6;
	color: #8a5119;
}

.igo-addons-item.is-locked {
	opacity: .55;
}

.igo-addons-item__tag {
	display: inline-block;
	margin-right: 4px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--wd-primary-color, #b81820);
	color: #fff;
	font-size: 10.5px;
	line-height: 1.7;
	vertical-align: middle;
}

.igo-addons-item__price del {
	margin-right: 4px;
	opacity: .6;
	font-size: 12.5px;
}

.igo-addons-item__price ins {
	text-decoration: none;
	font-weight: 600;
	color: var(--wd-primary-color, #b81820);
}

@media (max-width: 480px) {
	.igo-tier-step {
		flex: 1 1 100%;
	}

	.igo-tier-suggest {
		flex-wrap: wrap;
	}
}

/* 購物金：外掛的「功能被管理員限制」提示框。
   免費版寫死一定會印，文字已在 inc/wallet-guard.php 清成空字串，
   這裡把剩下的空框藏掉，不然會多出一塊空白。 */
.wsfw_show_user_restriction_notice {
	display: none !important;
}

/* 購物金頁：兩塊對客人沒用的東西藏掉。
   1. 「查看交易記錄」—— 底下本來就有「購物金明細」分頁，重複；
      它整塊是 <a>，只刪字會留一個看不見但點得到的連結，所以連框一起藏。
   2. 「wallet id」—— 錢包 ID 是給轉帳/請款找人用的，那些功能已經全關（見
      inc/wallet-guard.php），這個編號對客人沒有任何意義。免費版寫死一定會印。 */
.wps_wcb_wallet_view_transaction,
.wps_wsfw_wallet_user_id {
	display: none !important;
}

/* 訂單明細的商品縮圖（見 woocommerce/order/order-details-item.php）。 */
.igo-order-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.igo-order-item__thumb {
	flex: 0 0 64px;
	width: 64px;
	line-height: 0;
}

.igo-order-item__thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border: 1px solid var(--wd-form-brd-color, #e6e6e6);
	border-radius: 4px;
}

.igo-order-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

/* 規格／備註那幾行預設會有上下留白，擠在縮圖旁邊會歪掉。 */
.igo-order-item__info .wc-item-meta,
.igo-order-item__info .wc-item-meta p {
	margin-bottom: 0;
}

@media (max-width: 480px) {
	.igo-order-item__thumb {
		flex-basis: 48px;
		width: 48px;
	}

	.igo-order-item__thumb img {
		width: 48px;
		height: 48px;
	}
}

/* ──────────────────────────────────────────────
   首頁與會員登入頁：不顯示視窗右側的捲軸
   ──────────────────────────────────────────────
   只是把捲軸「藏起來」，捲動本身完全不受影響 ——
   滑鼠滾輪、觸控滑動、鍵盤上下鍵、Page Up/Down 都照常。

   為什麼要用 :has() —— 視窗捲軸是掛在 html 上的，
   但我們只有 body 才有 .home 這種判斷用的 class，
   所以要從 html 往下看「裡面那個 body 是不是首頁」。
   底下再補一份 body 的規則，給不支援 :has() 的舊瀏覽器兜底。 */

html:has(body.home),
html:has(body.woocommerce-account:not(.logged-in)) {
	scrollbar-width: none;      /* Firefox */
	-ms-overflow-style: none;   /* 舊版 Edge */
}

html:has(body.home)::-webkit-scrollbar,
html:has(body.woocommerce-account:not(.logged-in))::-webkit-scrollbar {
	width: 0;
	height: 0;
}

body.home,
body.woocommerce-account:not(.logged-in) {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body.home::-webkit-scrollbar,
body.woocommerce-account:not(.logged-in)::-webkit-scrollbar {
	width: 0;
	height: 0;
}

/* ==================================================================
   頁首的帳號與購物車圖示
   ==================================================================
   ⚠️ 佈景主題的「圖示樣式 1～7」只換排版，**圖案是同一個**
   （都是 woodmart-font 的 \f105），所以在後台換編號看起來是沒改到。
   要真的換圖案只能把那個字型字符蓋掉，改用自己畫的圖形。
   桌機和手機吃的是同一組規則，兩邊一定一致。 */

.wd-header-my-account .wd-tools-icon:before {
	content: "";
	display: block;
	width: 23px;
	height: 23px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* 人像 */
.wd-header-my-account .wd-tools-icon:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.2' r='3.7'/%3E%3Cpath d='M4.9 20c.9-3.8 3.7-5.8 7.1-5.8s6.2 2 7.1 5.8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.2' r='3.7'/%3E%3Cpath d='M4.9 20c.9-3.8 3.7-5.8 7.1-5.8s6.2 2 7.1 5.8'/%3E%3C/svg%3E");
}


/* 手機版頁首的帳號圖示：跟桌機一樣是淺灰底＋深色線條。
   手機那一欄的元素會被主題套上品牌紅底＋白線（不是元素自己的設定，
   是主題給手機列的規則），所以這裡明確指定一次。 */
.whb-mobile-right .wd-header-my-account .wd-tools-icon,
.whb-mobile-left .wd-header-my-account .wd-tools-icon,
.whb-mobile-center .wd-header-my-account .wd-tools-icon {
	background-color: rgba(16, 16, 16, .05) !important;
	color: rgba(16, 16, 16, .7) !important;
}

/* 購物車圖示：跟帳號一樣大、白底深色線條（老闆挑的 1 號推車） */
.wd-header-cart .wd-tools-icon {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background-color: rgba(16, 16, 16, .05) !important;
	color: rgba(16, 16, 16, .7) !important;
	border-radius: 999px;
}

/* 圖案＝首頁「每週熱銷」商品卡滑過「加入購物車」按鈕時跳出來的那個購物車
   （2026-09-16 老闆指定，取代原本自己畫的 1 號推車）。
   那顆按鈕用的是佈景主題字型 woodmart-font 的 \f123，這裡直接用同一個字符，
   兩邊永遠長一樣；佈景主題升級換圖時頁首會跟著換。
   ⚠️ 選擇器要多帶 .wd-tools-element：主題的 header-el-cart.min.css 比這支檔案晚載入、
   寫的是一模一樣的選擇器（content 是 \f105），份量一樣就是晚到的贏，圖會換不掉。 */
.wd-header-cart.wd-tools-element .wd-tools-icon:before {
	content: "\f123";
	display: block;
	font-family: "woodmart-font";
	font-size: 21px;
	font-weight: 400;
	line-height: 1;
	background: none;
	-webkit-mask-image: none;
	mask-image: none;
}

/* 數量小圓點跟著新的圓形圖示重新定位 */
/* 數字收進圈圈裡（貼右上角），圈圈大小不變。
   主題那組座標很硬（top: -5px; right: -9px），要 !important 才蓋得掉。 */
.wd-header-cart .wd-tools-icon .wd-cart-number {
	position: absolute !important;
	top: 1px !important;
	left: auto !important;
	right: 1px !important;
	bottom: auto !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: 17px !important;
	width: auto !important;
	height: 17px !important;
	padding: 0 4px !important;
	border: 2px solid #f7f7f8;
	border-radius: 999px !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center;
	transform: none !important;
}

.wd-header-cart .wd-tools-icon .wd-cart-number span {
	display: none;
}

/* 右側滑出的購物車不要右上角的關閉叉；點旁邊暗色區或按 Esc 就會關 */
.cart-widget-side .wd-heading .close-side-widget {
	display: none;
}
