/**
 * 登入頁。
 *
 * 一張置中白卡，只有一個欄位：信箱 → 驗證碼 → 進去。
 * 顏色、圓角、字級照 igo-design 規範，全部鎖在 .igo-login 底下，不污染全站。
 *
 * 社群按鈕的樣子原本是外掛決定的（Google 直角白底、Facebook 圓角 4 藍底、
 * LINE 圓角 12 綠底，三顆長得都不一樣），這裡統一成同一種白底藥丸。
 * 外掛那些規則沒有 !important，選擇器比它精準就蓋得掉。
 */

.igo-login {
	--igo-surface: #fff;
	--igo-line: #e5e5e7;
	--igo-ink: #1f1f22;
	--igo-ink-2: #4b4b52;
	--igo-muted: #85858e;
	--igo-brand: #b81820;
	--igo-brand-deep: #8e1319;
	--igo-amber: #e8a317;
	--igo-amber-bg: #fdf3de;
	--igo-rose: #e0577a;
	--igo-rose-bg: #fdecf1;
	--igo-green: #3fa35c;
	--igo-green-bg: #e8f5ec;
	--igo-blue: #3f8bd6;
	--igo-blue-bg: #e9f1fb;

	max-width: 440px;
	margin: 0 auto;
	padding: 8px 0 40px;
	color: var(--igo-ink);
	font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	line-height: 1.75;
}

.igo-login-card {
	padding: 28px 24px 24px;
	border: 1px solid var(--igo-line);
	border-radius: 14px;
	background-color: var(--igo-surface);
}

/* ── 標題 ───────────────────────────────────────────── */

.igo-login-head {
	margin-bottom: 18px;
	text-align: center;
}

.igo-login .igo-login-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.4;
	color: var(--igo-ink);
}

/* 招呼語是英文的單字，當成招牌來排：大一點、字距收緊一點。
   中文標題（「輸入驗證碼」）不套這個 —— 中文加寬或收緊都會變醜。 */
.igo-login .igo-login-title.is-welcome {
	font-size: 34px;
	line-height: 1.25;
	letter-spacing: -.02em;
}

.igo-login .igo-login-lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--igo-muted);
}

.igo-login .igo-login-lead b {
	color: var(--igo-ink);
	font-weight: 700;
}

/* ── 加入會員有什麼好處 ─────────────────────────────── */

/* 兩欄兩列，不要讓登入頁被四行字撐長 */
.igo-login .igo-login-perks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 10px;
	margin: 0 0 20px;
	padding: 14px 14px;
	list-style: none;
	border-radius: 12px;
	background-color: #fafafb;
}

.igo-login .igo-login-perks li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--igo-ink-2);
}

.igo-login .igo-login-perk-icon {
	display: block;
	flex: none;
	width: 28px;
	height: 28px;
	padding: 5px;
	border-radius: 9px;
}

.igo-login .igo-login-perk-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.igo-login .igo-login-perk-icon.is-green {
	background-color: var(--igo-green-bg);
	color: var(--igo-green);
}

.igo-login .igo-login-perk-icon.is-blue {
	background-color: var(--igo-blue-bg);
	color: var(--igo-blue);
}

.igo-login .igo-login-perk-icon.is-amber {
	background-color: var(--igo-amber-bg);
	color: var(--igo-amber);
}

.igo-login .igo-login-perk-icon.is-rose {
	background-color: var(--igo-rose-bg);
	color: var(--igo-rose);
}

/* ── 欄位 ───────────────────────────────────────────── */

.igo-login .igo-login-field {
	position: relative;
	margin: 0 0 14px;
}

.igo-login .igo-login-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--igo-ink-2);
}

.igo-login input[type="text"],
.igo-login input[type="email"],
.igo-login input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--igo-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--igo-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 46px;
}

.igo-login input:focus {
	outline: 0;
	border-color: var(--igo-brand);
	box-shadow: 0 0 0 3px rgba(184, 24, 32, .12);
}

/* 出錯的欄位：紅框 ＋ 下面一行紅字（不要只丟一句話在頁面最上面） */
.igo-login .igo-login-field.has-error input {
	border-color: var(--igo-brand);
	background-color: #fffafa;
}

.igo-login .igo-login-err {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 7px;
	color: var(--igo-brand);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
}

.igo-login .igo-login-err svg {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 3px;
}

/* 驗證碼：數字大一點、間距拉開，對著信裡那組號碼一個一個打 */
.igo-login .igo-login-field-code input {
	height: 58px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 12px;
	text-align: center;
	text-indent: 12px;
	font-variant-numeric: tabular-nums;
}

/* ── 主按鈕 ─────────────────────────────────────────── */

.igo-login .igo-login-submit {
	display: block;
	width: 100%;
	height: 50px;
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: var(--igo-brand);
	box-shadow: 0 3px 0 var(--igo-brand-deep);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 50px;
	text-align: center;
	cursor: pointer;
}

.igo-login .igo-login-submit:hover {
	opacity: .94;
}

.igo-login .igo-login-submit:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 var(--igo-brand-deep);
}

/* ── 重寄 / 換信箱 ──────────────────────────────────── */

.igo-login .igo-login-again {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 14px;
}

.igo-login .igo-login-again form {
	margin: 0;
}

.igo-login .igo-login-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--igo-ink-2);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.igo-login .igo-login-link:hover {
	color: var(--igo-brand);
}

.igo-login .igo-login-link[disabled] {
	color: var(--igo-muted);
	text-decoration: none;
	cursor: default;
}

/* ── 分隔線 ─────────────────────────────────────────── */

.igo-login .igo-login-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 14px;
	font-size: 12px;
	color: var(--igo-muted);
}

.igo-login .igo-login-or::before,
.igo-login .igo-login-or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background-color: var(--igo-line);
}

/* ── 社群登入：三顆長得一模一樣 ─────────────────────── */

.igo-login-social {
	display: grid;
	gap: 10px;
}

.igo-login .igo-login-social a.wpg-guideline-button,
.igo-login .igo-login-social a.wpg-guideline-button:link,
.igo-login .igo-login-social a.wpg-guideline-button:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--igo-line);
	border-radius: 999px;
	background-color: #fff;
	background-image: none;
	box-shadow: none;
	color: var(--igo-ink);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	opacity: 1;
}

.igo-login .igo-login-social a.wpg-guideline-button:hover {
	border-color: #d5d5da;
	background-color: #fafafb;
	opacity: 1;
}

.igo-login .igo-login-social a.wpg-guideline-button:active {
	transform: translateY(1px);
	background-color: #f3f3f5;
}

/* 圖示本來是絕對定位釘在左邊、三個品牌還不一樣大，改成跟文字排在一起 */
.igo-login .igo-login-social a.wpg-guideline-button svg,
.igo-login .igo-login-social a.wpg-guideline-button .wpg-icon {
	position: static;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	transform: none;
}

/* ── 頁尾 ───────────────────────────────────────────── */

.igo-login .igo-login-foot {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
	color: var(--igo-muted);
}

/* ── 手機 ───────────────────────────────────────────── */

@media (max-width: 767px) {
	.igo-login {
		padding: 4px 0 28px;
	}

	.igo-login-card {
		padding: 22px 16px 20px;
	}

	.igo-login .igo-login-title {
		font-size: 22px;
	}

	.igo-login .igo-login-title.is-welcome {
		font-size: 28px;
	}

	.igo-login .igo-login-field-code input {
		font-size: 22px;
		letter-spacing: 8px;
		text-indent: 8px;
	}

	/* 窄螢幕還是兩欄，字縮一點就好 —— 排成四行會把按鈕推到摺線下面 */
	.igo-login .igo-login-perks {
		gap: 10px 8px;
		padding: 12px 12px;
	}

	.igo-login .igo-login-perks li {
		font-size: 12px;
		gap: 6px;
	}

	.igo-login .igo-login-perk-icon {
		width: 26px;
		height: 26px;
	}
}

/* ==================================================================
   側邊登入彈窗
   ==================================================================
   點站上任何「我的帳戶」都從左邊滑出來，客人留在原本那一頁，
   登入完成才重新整理當頁。卡片跟登入頁是同一份，樣式直接沿用。 */

.igo-login-drawer {
	position: fixed;
	inset: 0;
	z-index: 100200;
}

.igo-login-drawer-bg {
	position: absolute;
	inset: 0;
	background-color: rgba(31, 31, 34, .45);
	opacity: 0;
	transition: opacity .25s ease;
}

.igo-login-drawer.is-on .igo-login-drawer-bg {
	opacity: 1;
}

.igo-login-drawer-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 400px;
	max-width: 92vw;
	max-height: 100%;
	margin: 0;
	padding: 20px 20px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background-color: #fff;
	box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
	transform: translateX(-100%);
	transition: transform .25s ease;
}

.igo-login-drawer.is-on .igo-login-drawer-panel {
	transform: translateX(0);
}

/* 彈窗裡的卡片不用再一層外框，旁邊那片白就是卡片 */
.igo-login-drawer-panel .igo-login-card {
	padding: 0;
	border: 0;
	border-radius: 0;
}

.igo-login-drawer-x {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0 0 6px auto;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: #f0f0f2;
	color: var(--igo-ink-2);
	cursor: pointer;
}

.igo-login-drawer-x:hover {
	background-color: #e5e5e7;
	color: var(--igo-ink);
}

.igo-login-drawer-x svg {
	width: 18px;
	height: 18px;
}

/* 送出中：整張卡片變淡並且不給再按 */
.igo-login-drawer-panel.is-busy .igo-login-drawer-body {
	opacity: .5;
	pointer-events: none;
}

/* 彈窗開著的時候底下那一頁不要跟著捲 */
body.igo-login-drawer-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	/* 手機不占満整個畫面：右邊留一條看到底下那一頁，
	   客人就知道往左滑或點旁邊那一條就關掉，
	   所以右上角那顆 X 在手機不出現。 */
	.igo-login-drawer-panel {
		width: calc(100% - 48px);
		max-width: none;
		padding: 16px 16px 24px;
	}

	.igo-login-drawer-x {
		display: none;
	}
}

/* ==================================================================
   會員面板（已登入時的側邊抽屜）
   ================================================================== */

.igo-member-loading {
	margin: 40px 0;
	text-align: center;
	color: var(--igo-muted);
	font-size: 13px;
}

/* ── 招呼區 ─────────────────────────────────────────── */

.igo-member-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--igo-line);
}

.igo-member-avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--igo-line);
	border-radius: 999px;
	background-color: #fff;
	color: var(--igo-ink-2);
}

.igo-member-avatar:hover {
	border-color: var(--igo-brand);
	color: var(--igo-brand);
}

.igo-member-avatar svg {
	width: 24px;
	height: 24px;
}

a.igo-member-who {
	color: var(--igo-ink);
	text-decoration: none;
}

a.igo-member-who:hover b {
	color: var(--igo-brand);
}

.igo-member-who {
	flex: 1 1 auto;
	min-width: 0;
}

.igo-member-who b {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.igo-member-who small {
	display: block;
	overflow: hidden;
	font-size: 12px;
	color: var(--igo-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.igo-member-gear {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--igo-line);
	border-radius: 999px;
	background-color: #fff;
	color: var(--igo-ink-2);
}

.igo-member-gear:hover {
	border-color: var(--igo-brand);
	color: var(--igo-brand);
}

.igo-member-gear svg {
	width: 20px;
	height: 20px;
}

/* ── 三個分頁 ───────────────────────────────────────── */

.igo-member-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin: 14px 0;
}

.igo-member-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 10px 4px 8px;
	border: 1px solid var(--igo-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--igo-ink-2);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

.igo-member-tab:hover {
	border-color: #d5d5da;
	background-color: #fafafb;
}

.igo-member-tab.is-on {
	border-color: var(--igo-brand);
	background-color: #fffafa;
	color: var(--igo-ink);
}

.igo-member-tab-icon {
	display: block;
	width: 32px;
	height: 32px;
	padding: 6px;
	border-radius: 10px;
}

.igo-member-tab-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.igo-member-tab-icon.is-blue { background-color: var(--igo-blue-bg); color: var(--igo-blue); }
.igo-member-tab-icon.is-green { background-color: var(--igo-green-bg); color: var(--igo-green); }
.igo-member-tab-icon.is-amber { background-color: var(--igo-amber-bg); color: var(--igo-amber); }

.igo-member-tab b {
	font-size: 11px;
	font-weight: 700;
	color: var(--igo-muted);
	font-variant-numeric: tabular-nums;
}

.igo-member-tab.is-on b {
	color: var(--igo-brand);
}

/* ── 清單 ───────────────────────────────────────────── */

.igo-member-body.is-busy {
	opacity: .45;
	pointer-events: none;
}

.igo-member-rows {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--igo-line);
	border-radius: 12px;
	overflow: hidden;
}

.igo-member-rows li + li {
	border-top: 1px solid var(--igo-line);
}

.igo-member-rows a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	color: var(--igo-ink);
	text-decoration: none;
}

.igo-member-rows a:hover {
	background-color: #fafafb;
}

.igo-member-thumb {
	flex: none;
	width: 42px;
	height: 42px;
	object-fit: cover;
	border: 1px solid var(--igo-line);
	border-radius: 8px;
	background-color: #fff;
}

.igo-member-row-main {
	flex: 1 1 auto;
	min-width: 0;
}

.igo-member-row-main b {
	display: block;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.igo-member-row-main small,
.igo-member-row-side small {
	display: block;
	font-size: 12px;
	color: var(--igo-muted);
}

.igo-member-row-side {
	flex: none;
	text-align: right;
}

.igo-member-badge {
	display: inline-block;
	margin-bottom: 3px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.7;
}

.igo-member-badge.is-green { background-color: var(--igo-green-bg); color: var(--igo-green); }
.igo-member-badge.is-blue { background-color: var(--igo-blue-bg); color: var(--igo-blue); }
.igo-member-badge.is-amber { background-color: var(--igo-amber-bg); color: var(--igo-amber); }
.igo-member-badge.is-grey { background-color: #f0f0f2; color: var(--igo-muted); }

.igo-member-all {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	color: var(--igo-ink-2);
	text-decoration: underline;
}

.igo-member-all:hover {
	color: var(--igo-brand);
}

/* ── 空狀態 ─────────────────────────────────────────── */

.igo-member-empty {
	padding: 26px 16px;
	border: 1px solid var(--igo-line);
	border-radius: 12px;
	text-align: center;
}

.igo-member-empty-icon {
	display: inline-block;
	width: 46px;
	height: 46px;
	padding: 10px;
	border-radius: 999px;
	background-color: var(--igo-amber-bg);
	color: var(--igo-amber);
}

.igo-member-empty-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.igo-member-empty b {
	display: block;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 700;
}

.igo-member-empty p {
	margin: 4px 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--igo-muted);
}

.igo-member-empty a {
	display: inline-block;
	height: 40px;
	padding: 0 20px;
	border-radius: 999px;
	background-color: var(--igo-brand);
	box-shadow: 0 3px 0 var(--igo-brand-deep);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	text-decoration: none;
}

/* ── 訂單列：單號＋日期當標題 ───────────────────────── */

.igo-member-row-main b i {
	margin-left: 6px;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	color: var(--igo-muted);
}

.igo-member-price {
	font-size: 14px;
	font-weight: 700;
}

.igo-member-off {
	color: var(--igo-green);
	font-weight: 700;
}

.igo-member-row-side del {
	color: var(--igo-muted);
	font-weight: 400;
}

/* ── 區塊（購物車、熱門商品） ───────────────────────── */

.igo-member-sec {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--igo-line);
}

/* 區塊標題跟「折扣碼」那個小標同一套：小字、灰色、字距拉開。
   ⚠️ 它是 <h3>，佈景主題會給標題套自己的英文字體（Urbanist），
   要 font-family: inherit 才會跟旁邊的字一樣。 */
.igo-member-sec-title {
	font-family: inherit;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--igo-muted);
}

.igo-member-sec-title span {
	font-size: 12px;
	font-weight: 400;
	color: var(--igo-muted);
}

.igo-member-cart-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	font-size: 13px;
	color: var(--igo-ink-2);
}

.igo-member-cart-foot b {
	font-size: 15px;
	font-weight: 900;
	color: var(--igo-ink);
}

.igo-member-cart-foot a {
	height: 40px;
	padding: 0 20px;
	border-radius: 999px;
	background-color: var(--igo-brand);
	box-shadow: 0 3px 0 var(--igo-brand-deep);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	text-decoration: none;
}

/* 熱門商品：橫向滑，不要把面板拉得很長 */
.igo-member-hot {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
}

.igo-member-hot-item {
	flex: none;
	width: 112px;
	scroll-snap-align: start;
	color: var(--igo-ink);
	text-decoration: none;
}

.igo-member-hot-item img {
	display: block;
	width: 112px;
	height: 112px;
	object-fit: cover;
	border: 1px solid var(--igo-line);
	border-radius: 12px;
	background-color: #fff;
}

.igo-member-hot-item b {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.igo-member-hot-item small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--igo-brand);
	font-weight: 700;
}

.igo-member-hot-item small del {
	color: var(--igo-muted);
	font-weight: 400;
}

/* ── 底下那排連結 ───────────────────────────────────── */

.igo-member-links {
	display: grid;
	gap: 8px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--igo-line);
}

.igo-member-link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--igo-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--igo-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.igo-member-link:hover {
	border-color: #d5d5da;
	background-color: #fafafb;
}

.igo-member-link-icon {
	display: block;
	flex: none;
	width: 30px;
	height: 30px;
	padding: 5px;
	border-radius: 10px;
}

.igo-member-link-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.igo-member-link-icon.is-green { background-color: var(--igo-green-bg); color: #06c755; }
.igo-member-link-icon.is-blue { background-color: var(--igo-blue-bg); color: var(--igo-blue); }
.igo-member-link-icon.is-grey { background-color: #f0f0f2; color: var(--igo-muted); }

/* 中文名稱交給 CSS 收尾（wp_trim_words 對中文是按字數切，8 個字會變成「PETKIT｜1…」） */
.igo-member-row-main small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.igo-member-hot-item b {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

/* ── 訂單列：單號在左、日期靠右對齊 ─────────────────── */

.igo-member-row-main b {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.igo-member-date {
	flex: none;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	color: var(--igo-muted);
	font-variant-numeric: tabular-nums;
}

/* ── 底下兩顆：文字對齊 ─────────────────────────────── */

.igo-member-links {
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.igo-member-link {
	justify-content: flex-start;
}

.igo-member-link-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 登出就是一行字，不要做成按鈕 */
.igo-member-signout {
	display: block;
	margin-top: 16px;
	font-size: 13px;
	text-align: center;
	color: var(--igo-muted);
	text-decoration: underline;
}

.igo-member-signout:hover {
	color: var(--igo-brand);
}

@media (max-width: 767px) {
	.igo-member-links {
		grid-template-columns: 1fr;
	}
}

/* ── 熱門商品：手機用手滑，桌機用左右兩塊 ───────────── */

.igo-member-rail {
	position: relative;
}

.igo-member-hot {
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
}

.igo-member-hot::-webkit-scrollbar {
	display: none;
}

.igo-member-rail-btn {
	position: absolute;
	top: 0;
	bottom: 26px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background-color: rgba(31, 31, 34, .35);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s ease, background-color .15s ease;
}

.igo-member-rail-btn.is-left {
	left: 0;
}

.igo-member-rail-btn.is-right {
	right: 0;
}

.igo-member-rail-btn svg {
	width: 20px;
	height: 20px;
}

.igo-member-rail-btn:hover {
	background-color: rgba(31, 31, 34, .55);
}

/* 有滑鼠才出現；觸控裝置直接用手指滑，不要擋住商品 */
@media (hover: hover) and (pointer: fine) {
	.igo-member-rail-btn:not([hidden]) {
		display: flex;
	}

	.igo-member-rail:hover .igo-member-rail-btn:not([hidden]) {
		opacity: 1;
	}
}

/* ── 可以用的優惠 ───────────────────────────────────── */

.igo-member-wallet {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--igo-line);
	border-radius: 12px;
	background-color: #fffdf7;
	color: var(--igo-ink);
	text-decoration: none;
}

.igo-member-wallet:hover {
	border-color: var(--igo-amber);
}

.igo-member-wallet-main {
	flex: 1 1 auto;
	min-width: 0;
}

.igo-member-wallet-main small {
	display: block;
	font-size: 12px;
	color: var(--igo-muted);
}

.igo-member-wallet-main b {
	display: block;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.35;
}

.igo-member-wallet-go {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	color: var(--igo-muted);
}

.igo-member-coupons {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.igo-member-coupons li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px dashed var(--igo-brand);
	border-radius: 12px;
	background-color: #fffafa;
}

.igo-member-coupon-main {
	flex: 1 1 auto;
	min-width: 0;
}

.igo-member-coupon-main b {
	display: block;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .04em;
	color: var(--igo-brand);
}

.igo-member-coupon-main small {
	display: block;
	overflow: hidden;
	font-size: 12px;
	color: var(--igo-ink-2);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.igo-member-copy {
	flex: none;
	height: 32px;
	padding: 0 14px;
	border: 1px solid var(--igo-brand);
	border-radius: 999px;
	background-color: #fff;
	color: var(--igo-brand);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.igo-member-copy:hover {
	background-color: var(--igo-brand);
	color: #fff;
}

.igo-member-copy.is-done {
	border-color: var(--igo-green);
	background-color: var(--igo-green);
	color: #fff;
}

/* 最近入帳（購物金怎麼來的） */
.igo-member-credits {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.igo-member-credits li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 10px;
	background-color: #fafafb;
	font-size: 13px;
	color: var(--igo-ink-2);
}

.igo-member-credits li span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.igo-member-credits li b {
	flex: none;
	font-weight: 700;
	color: var(--igo-green);
}

.igo-member-credits li small {
	flex: none;
	font-size: 11px;
	color: var(--igo-muted);
}

/* 四個分頁，字要縮一點才排得下 */
.igo-member-tabs {
	grid-template-columns: repeat(4, 1fr);
	gap: 5px;
}

.igo-member-tab {
	padding: 9px 2px 7px;
	font-size: 11px;
	letter-spacing: 0;
}

.igo-member-tab-icon {
	width: 28px;
	height: 28px;
	padding: 5px;
}

/* ── 購物車：就地改數量 ─────────────────────────────── */

.igo-member-cartrows li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
}

.igo-member-cart-name {
	display: block;
	color: var(--igo-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none;
	/* 品名要看得完整，不要切掉 */
	white-space: normal;
	word-break: break-word;
}

.igo-member-cart-name:hover {
	color: var(--igo-brand);
}

/* 加減數量做成一顆膠囊：左減、中間數字置中、右加 */
.igo-member-qty {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	border: 1px solid var(--igo-line);
	border-radius: 999px;
	background-color: #fff;
	overflow: hidden;
}

/* 數字格：外觀跟原本那個 <b> 一模一樣，只是可以點進去打字 */
.igo-member-qty-input {
	box-sizing: border-box;
	width: 34px;
	height: 30px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: var(--igo-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 30px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.igo-member-qty-input:focus {
	outline: 0;
	box-shadow: none;
	background-color: #fff;
}

.igo-member-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background-color: #fff;
	color: var(--igo-ink-2);
	font-family: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.igo-member-qty-btn:hover {
	background-color: var(--igo-brand);
	color: #fff;
}

/* 省多少那段從膠囊裡搬出來，接在後面 */
.igo-member-qty .igo-member-off {
	display: none;
}

.igo-member-row-main .igo-member-off {
	display: block;
	margin-top: 4px;
	font-size: 12px;
}

.igo-member-sec.is-busy,
.igo-member-sheet-in.is-busy {
	opacity: .45;
	pointer-events: none;
}

/* 專屬優惠標題旁邊那行小字 */
.igo-member-sec-title span {
	font-size: 12px;
	font-weight: 400;
	color: var(--igo-muted);
}


/* ==================================================================
   右側彈窗（購物金明細、保固政策）
   ==================================================================
   從右邊滑進來、上下一定是整頁。
   ⚠️ 曾經被改成「置中的對話窗」（max-height: 88vh ＋ columns: 2），
   結果就是窗沒有到底、內文被切成左右兩欄。要改版面前先看這段。 */

.igo-modal {
	position: fixed;
	inset: 0;
	z-index: 100300;

	/* 這個元素也掛了 .igo-login（為了共用字體顏色），把它的
	   max-width / margin / padding 蓋掉，不然整個容器會被縮小置中。 */
	max-width: none;
	margin: 0;
	padding: 0;
}

.igo-modal-bg {
	position: absolute;
	inset: 0;
	background-color: rgba(31, 31, 34, .45);
	opacity: 0;
	transition: opacity .25s ease;
}

.igo-modal.is-on .igo-modal-bg {
	opacity: 1;
}

.igo-modal-box {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 460px;
	max-width: 94vw;
	height: auto;
	max-height: none;
	border-radius: 0;
	background-color: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, .18);
	transform: translateX(100%);
	transition: transform .25s ease;
}

.igo-modal.is-on .igo-modal-box {
	transform: translateX(0);
}

.igo-modal-x {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: #f0f0f2;
	color: var(--igo-ink-2);
	cursor: pointer;
}

.igo-modal-x:hover {
	background-color: #e5e5e7;
	color: var(--igo-ink);
}

.igo-modal-x svg {
	width: 18px;
	height: 18px;
}

.igo-modal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 26px 20px 30px;
	overscroll-behavior: contain;
}

/* 內文一條從上到下，不分欄 */
.igo-modal .igo-member-sheet-in,
.igo-modal .igo-member-sheet-in * {
	columns: auto;
	column-count: 1;
	float: none;
}

.igo-modal .igo-member-sheet-in h3 {
	margin: 0 0 12px;
	padding-right: 44px;
	font-size: 19px;
	font-weight: 900;
}

.igo-modal .igo-member-sheet-in h3:not(:first-child),
.igo-modal .igo-member-sheet-in h4 {
	margin-top: 20px;
}

.igo-modal .igo-member-sheet-in p,
.igo-modal .igo-member-sheet-in li {
	font-size: 14px;
	line-height: 1.85;
	color: var(--igo-ink-2);
}

.igo-modal .igo-member-sheet-in ul:not(.igo-member-credits) {
	margin: 0 0 12px;
	padding-left: 20px;
}

.igo-modal .igo-member-sheet-in table {
	display: block;
	width: 100%;
	margin: 10px 0 14px;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 13px;
	white-space: nowrap;
}

.igo-modal .igo-member-sheet-in th,
.igo-modal .igo-member-sheet-in td {
	padding: 8px 10px;
	border: 1px solid var(--igo-line);
	text-align: left;
	line-height: 1.6;
}

.igo-modal .igo-member-sheet-in th {
	background-color: #fafafb;
	font-weight: 700;
}

@media (min-width: 1100px) {
	.igo-modal-box {
		width: 520px;
	}
}

@media (max-width: 767px) {
	.igo-modal-box {
		width: 100%;
		max-width: 100%;
	}

	.igo-modal-body {
		padding: 24px 16px 28px;
	}
}

/* ── 購物金那張卡是按鈕，外觀要跟原本一模一樣 ─────────
   （<button> 有自己的預設樣式，不指定就會變成灰底、置中、字體也不一樣） */
button.igo-member-wallet {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}

/* ── 「查看全部」也是按鈕 ───────────────────────────── */
button.igo-member-all {
	width: 100%;
	border: 0;
	background: none;
	font-family: inherit;
	cursor: pointer;
}





/* ==================================================================
   補回來的樣式
   ==================================================================
   這些在一次清理彈窗樣式時被連坐刪掉了（折扣碼小標、折扣標、
   後台提示、購物金明細）。刪大段之前要先確認裡面沒有別人的東西。 */

/* 購物金與折扣碼中間的分隔與小標 */
.igo-member-subtitle {
	margin: 16px 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--igo-muted);
}

.igo-member-subtitle::before {
	content: "";
	display: block;
	margin-bottom: 12px;
	border-top: 1px solid var(--igo-line);
}

/* 只有後台看得到的提示 */
.igo-member-hint {
	margin: 0;
	padding: 12px 14px;
	border: 1px dashed var(--igo-line);
	border-radius: 12px;
	background-color: #fafafb;
	font-size: 12px;
	line-height: 1.7;
	color: var(--igo-muted);
}

/* 專屬優惠／我的收藏：圖片右上角的折扣標 */
.igo-member-hot-img {
	position: relative;
	display: block;
}

.igo-member-off-tag {
	position: absolute;
	top: 6px;
	right: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background-color: var(--igo-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.6;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* 購物金明細（右側彈窗裡） */
.igo-member-sheet-sum {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background-color: #fffdf7;
	font-size: 13px;
	color: var(--igo-ink-2);
}

.igo-member-sheet-sum b {
	font-size: 20px;
	font-weight: 900;
	color: var(--igo-ink);
}

.igo-member-credits.is-full li {
	padding: 9px 12px;
	border-bottom: 1px solid var(--igo-line);
	border-radius: 0;
	background: none;
}

.igo-member-credits li b.is-out {
	color: var(--igo-ink-2);
}

.igo-member-credits li b.is-in {
	color: var(--igo-green);
}



/* ==================================================================
   購物車側欄（右上角購物車打開的那個）
   ==================================================================
   目標是「乾淨、字小、資訊清楚」：
   品名 13px、價格才用粗體、留白收緊，整體跟會員面板同一套語彙。
   只鎖在 .cart-widget-side 裡，不影響購物車頁與結帳頁。 */

.cart-widget-side {
	--igo-line: #ececee;
	--igo-ink: #1f1f22;
	--igo-ink-2: #4b4b52;
	--igo-muted: #8c8c95;
	--igo-brand: #b81820;
	font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 13px;
	color: var(--igo-ink-2);
}

/* ── 標題列 ─────────────────────────────────────────── */

.cart-widget-side .wd-heading {
	padding: 18px 18px 14px;
	border-bottom: 1px solid var(--igo-line);
}

.cart-widget-side .wd-heading .title {
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--igo-ink);
	text-transform: none;
}

.cart-widget-side .close-side-widget a {
	font-size: 0;
}

.cart-widget-side .close-side-widget a::before {
	content: "×";
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background-color: #f3f3f5;
	color: var(--igo-ink-2);
	font-family: inherit;
	font-size: 17px;
	font-weight: 400;
	line-height: 30px;
	text-align: center;
}

.cart-widget-side .close-side-widget a::after {
	content: none;
}

/* ── 商品列 ─────────────────────────────────────────── */

.cart-widget-side .woocommerce-mini-cart-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 14px 18px;
	border-bottom: 1px solid var(--igo-line);
}

.cart-widget-side .cart-item-image {
	flex: none;
	width: 56px;
}

.cart-widget-side .woocommerce-mini-cart-item img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px;
	object-fit: cover;
	border: 1px solid var(--igo-line);
	border-radius: 10px;
	background-color: #fff;
}

.cart-widget-side .cart-info {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 24px;
}

.cart-widget-side .wd-entities-title {
	display: block;
	margin: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--igo-ink);
	white-space: normal;
	word-break: break-word;
}

/* 刪除鈕：一顆小灰圓 ×（主題的 ::after 也有一個，關掉） */
.cart-widget-side .woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background-color: transparent;
	color: #b9b9c0;
	font-size: 0;
}

.cart-widget-side .woocommerce-mini-cart-item .remove::before {
	content: "×";
	display: block;
	font-family: inherit;
	font-size: 16px;
	line-height: 22px;
	text-align: center;
}

.cart-widget-side .woocommerce-mini-cart-item .remove::after {
	content: none;
}

.cart-widget-side .woocommerce-mini-cart-item .remove:hover {
	background-color: #f3f3f5;
	color: var(--igo-brand);
}

/* ── 數量：一顆膠囊，數字在中間 ─────────────────────── */

.cart-widget-side .quantity {
	display: inline-flex !important;
	align-items: center;
	margin: 8px 0 0;
	padding: 0;
	border: 1px solid var(--igo-line);
	border-radius: 999px;
	background-color: #fff;
	overflow: hidden;
}

.cart-widget-side .quantity .screen-reader-text {
	display: none;
}

.cart-widget-side .quantity input.qty {
	box-sizing: border-box;
	width: 34px;
	height: 28px;
	padding: 0;
	border: 0;
	background-color: #fff;
	color: var(--igo-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.cart-widget-side .quantity .wd-qty-btn,
.cart-widget-side .quantity > a,
.cart-widget-side .quantity button,
.cart-widget-side .quantity input.plus,
.cart-widget-side .quantity input.minus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: var(--igo-ink-2);
	font-size: 14px;
	line-height: 1;
}

.cart-widget-side .quantity .wd-qty-btn:hover,
.cart-widget-side .quantity > a:hover,
.cart-widget-side .quantity button:hover,
.cart-widget-side .quantity input.plus:hover,
.cart-widget-side .quantity input.minus:hover {
	background-color: var(--igo-brand);
	color: #fff;
}

/* 單列小計：金額才用粗體，字級壓小 */
.cart-widget-side .igo-mini-total {
	display: block;
	margin-top: 7px;
	font-size: 11px;
	color: var(--igo-muted);
}

.cart-widget-side .igo-mini-total .amount {
	margin-left: 4px;
	font-size: 13px;
	font-weight: 800;
	color: var(--igo-ink);
}

/* ── 底部 ───────────────────────────────────────────── */

.cart-widget-side .shopping-cart-widget-footer {
	padding: 14px 18px 18px;
	border-top: 1px solid var(--igo-line);
	background-color: #fff;
}

.cart-widget-side .woocommerce-mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--igo-ink-2);
}

.cart-widget-side .woocommerce-mini-cart__total .amount {
	font-size: 18px;
	font-weight: 900;
	color: var(--igo-ink);
}

.cart-widget-side .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.cart-widget-side .woocommerce-mini-cart__buttons .button {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 42px;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
}

.cart-widget-side .woocommerce-mini-cart__buttons .checkout {
	border: 0;
	background-color: var(--igo-brand);
	box-shadow: 0 3px 0 #8e1319;
	color: #fff;
	line-height: 44px;
}

.cart-widget-side .woocommerce-mini-cart__buttons .checkout:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #8e1319;
}

.cart-widget-side .woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
	border: 1px solid var(--igo-line);
	background-color: #fff;
	color: var(--igo-ink-2);
}

/* 免運提示與進度條：小字、細條 */
.cart-widget-side .wd-free-progress-bar,
.cart-widget-side [class*="free-progress"] {
	margin-bottom: 12px;
	font-size: 11px;
	line-height: 1.7;
	color: var(--igo-muted);
}

.cart-widget-side [class*="free-progress"] .amount {
	font-weight: 700;
	color: var(--igo-brand);
}

/* 空車 */
.cart-widget-side .wd-empty-mini-cart {
	padding: 44px 24px;
	text-align: center;
	color: var(--igo-muted);
}

.cart-widget-side .wd-empty-mini-cart .title {
	font-size: 14px;
	color: var(--igo-ink-2);
}

/* 送出中：整顆膠囊淡一點，但數字已經先變了，不擋操作 */
.igo-member-qty.is-saving,
.cart-widget-side .quantity.is-saving {
	opacity: .65;
}

/* ==================================================================
   購物車側欄（右上角打開的那個）
   ==================================================================
   排法：縮圖｜品名＋數量膠囊｜右邊價格。價格靠右對齊成一直線，
   眼睛掃一次就知道每列多少錢、總共多少。
   字級壓小，只有金額與總計用粗體，其餘都是安靜的灰。 */

.cart-widget-side {
	--igo-line: #eeeef0;
	--igo-ink: #1f1f22;
	--igo-ink-2: #55555e;
	--igo-muted: #92929b;
	--igo-brand: #b81820;
	font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 13px;
	color: var(--igo-ink-2);
	background-color: #fff;
}

/* ── 標題 ───────────────────────────────────────────── */

.cart-widget-side .wd-heading {
	padding: 20px 20px 14px;
	border-bottom: 1px solid var(--igo-line);
}

.cart-widget-side .wd-heading .title {
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--igo-ink);
	text-transform: none;
}

.cart-widget-side .close-side-widget a {
	font-size: 0;
}

.cart-widget-side .close-side-widget a::before {
	content: "×";
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	color: var(--igo-muted);
	font-family: inherit;
	font-size: 20px;
	font-weight: 300;
	line-height: 30px;
	text-align: center;
}

.cart-widget-side .close-side-widget a:hover::before {
	background-color: #f3f3f5;
	color: var(--igo-ink);
}

.cart-widget-side .close-side-widget a::after {
	content: none;
}

/* ── 商品列 ─────────────────────────────────────────── */

.cart-widget-side .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid var(--igo-line);
}

.cart-widget-side .cart-item-image {
	width: 56px;
}

.cart-widget-side .woocommerce-mini-cart-item img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px;
	object-fit: cover;
	border-radius: 10px;
	background-color: #f7f7f8;
}

.cart-widget-side .cart-info {
	min-width: 0;
	padding: 0;
}

.cart-widget-side .wd-entities-title {
	display: block;
	margin: 0 0 8px;
	padding-right: 26px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--igo-ink);
	white-space: normal;
	word-break: break-word;
}

/* 價格靠右，跟數量膠囊同一行 */
.cart-widget-side .igo-mini-total {
	position: absolute;
	right: 20px;
	bottom: 18px;
	font-size: 0;
	text-align: right;
}

.cart-widget-side .igo-mini-total .amount {
	font-size: 14px;
	font-weight: 800;
	color: var(--igo-ink);
}

/* 刪除鈕：右上角淡灰 ×（主題的 ::after 也放了一個，要關掉） */
.cart-widget-side .woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background-color: transparent;
	color: #c2c2c9;
	font-size: 0;
}

.cart-widget-side .woocommerce-mini-cart-item .remove::before {
	content: "×";
	display: block;
	font-family: inherit;
	font-size: 17px;
	font-weight: 300;
	line-height: 22px;
	text-align: center;
}

.cart-widget-side .woocommerce-mini-cart-item .remove::after {
	content: none;
}

.cart-widget-side .woocommerce-mini-cart-item .remove:hover {
	background-color: #f7f7f8;
	color: var(--igo-brand);
}

/* ── 數量膠囊 ───────────────────────────────────────── */

.cart-widget-side .quantity {
	display: inline-flex !important;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid #e2e2e6;
	border-radius: 999px;
	background-color: #fff;
	overflow: hidden;
}

.cart-widget-side .quantity .screen-reader-text {
	display: none;
}

.cart-widget-side .quantity input.qty {
	box-sizing: border-box;
	width: 34px;
	height: 28px;
	padding: 0;
	border: 0;
	background-color: #fff;
	color: var(--igo-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}

.cart-widget-side .quantity input.qty:focus {
	outline: 0;
	box-shadow: none;
	background-color: #fffafa;
}

.cart-widget-side .quantity .wd-qty-btn,
.cart-widget-side .quantity > a,
.cart-widget-side .quantity button,
.cart-widget-side .quantity input.plus,
.cart-widget-side .quantity input.minus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: var(--igo-muted);
	font-size: 14px;
	line-height: 1;
}

.cart-widget-side .quantity .wd-qty-btn:hover,
.cart-widget-side .quantity > a:hover,
.cart-widget-side .quantity button:hover,
.cart-widget-side .quantity input.plus:hover,
.cart-widget-side .quantity input.minus:hover {
	background-color: #f3f3f5;
	color: var(--igo-ink);
}

/* ── 底部 ───────────────────────────────────────────── */

.cart-widget-side .shopping-cart-widget-footer {
	padding: 16px 20px 20px;
	border-top: 1px solid var(--igo-line);
	background-color: #fff;
}

.cart-widget-side .woocommerce-mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--igo-ink-2);
}

.cart-widget-side .woocommerce-mini-cart__total strong {
	font-weight: 600;
}

.cart-widget-side .woocommerce-mini-cart__total .amount {
	font-size: 19px;
	font-weight: 900;
	color: var(--igo-ink);
}

.cart-widget-side .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.cart-widget-side .woocommerce-mini-cart__buttons .button {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 42px;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
}

.cart-widget-side .woocommerce-mini-cart__buttons .checkout {
	border: 0;
	background-color: var(--igo-brand);
	box-shadow: 0 3px 0 #8e1319;
	color: #fff;
	line-height: 44px;
}

.cart-widget-side .woocommerce-mini-cart__buttons .checkout:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #8e1319;
}

.cart-widget-side .woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
	border: 1px solid #e2e2e6;
	background-color: #fff;
	color: var(--igo-ink-2);
}

/* 免運提示：一行小字＋細進度條 */
.cart-widget-side [class*="free-progress"],
.cart-widget-side .wd-free-progress-bar {
	margin-bottom: 14px;
	font-size: 11px;
	line-height: 1.7;
	color: var(--igo-muted);
}

.cart-widget-side [class*="free-progress"] .amount {
	font-weight: 700;
	color: var(--igo-brand);
}

.cart-widget-side [class*="progress-bar"] {
	height: 4px !important;
	border-radius: 999px;
	overflow: hidden;
}

/* 空車 */
.cart-widget-side .wd-empty-mini-cart {
	padding: 48px 24px;
	text-align: center;
}

.cart-widget-side .wd-empty-mini-cart .title {
	font-size: 14px;
	color: var(--igo-ink-2);
}

/* 空車時不放「返回商店」按鈕 —— 抽屜關掉就回到原本在逛的頁面了，
   多一顆按鈕只是把人推離現在這一頁。按鈕是佈景主題的樣板印的
   （woodmart/woocommerce/cart/mini-cart.php），不動樣板，在這裡收掉。 */
.cart-widget-side .wd-empty-mini-cart .btn {
	display: none;
}

/* ==================================================================
   購物車側欄的數量與價格：照蝦皮那套做法
   ==================================================================
   蝦皮的做法很克制，也很好認：
   - 數量是一個**方形**的三格小盒（− ｜數字｜＋），細灰框、幾乎沒有圓角，
     高度只有 26px，按鈕是灰字不是彩色，不搶戲。
   - 價格才是彩色：單列金額與最後的總計用品牌色，其餘全是灰字。
   - 數字用一般字重，價格才加粗。
   這一段刻意放在檔案最後面，蓋掉上面那版膠囊式的寫法。 */

.cart-widget-side .quantity {
	display: inline-flex !important;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid #e0e0e3;
	border-radius: 2px;
	background-color: #fff;
	overflow: hidden;
}

.cart-widget-side .quantity input.qty {
	box-sizing: border-box;
	width: 42px;
	height: 26px;
	padding: 0;
	border: 0;
	border-right: 1px solid #e0e0e3;
	border-left: 1px solid #e0e0e3;
	border-radius: 0;
	background-color: #fff;
	color: var(--igo-ink);
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 26px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.cart-widget-side .quantity input.qty:focus {
	outline: 0;
	box-shadow: none;
	background-color: #fff;
}

.cart-widget-side .quantity .wd-qty-btn,
.cart-widget-side .quantity > a,
.cart-widget-side .quantity button,
.cart-widget-side .quantity input.plus,
.cart-widget-side .quantity input.minus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: #6b6b73;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 26px;
}

.cart-widget-side .quantity .wd-qty-btn:hover,
.cart-widget-side .quantity > a:hover,
.cart-widget-side .quantity button:hover,
.cart-widget-side .quantity input.plus:hover,
.cart-widget-side .quantity input.minus:hover {
	background-color: #f5f5f6;
	color: var(--igo-ink);
}

/* 單列金額：灰標籤＋品牌色數字，靠右對齊 */
.cart-widget-side .igo-mini-total {
	position: absolute;
	right: 20px;
	bottom: 20px;
	font-size: 0;
	text-align: right;
}

.cart-widget-side .igo-mini-total .amount {
	font-size: 14px;
	font-weight: 500;
	color: var(--igo-brand);
}

/* 底部總計：蝦皮那種「左邊灰字、右邊大的品牌色數字」 */
.cart-widget-side .woocommerce-mini-cart__total {
	align-items: baseline;
	font-size: 13px;
	font-weight: 400;
	color: var(--igo-muted);
}

.cart-widget-side .woocommerce-mini-cart__total .amount {
	font-size: 20px;
	font-weight: 700;
	color: var(--igo-brand);
}

/* ==================================================================
   購物車：最後一版視覺（兩邊共用同一套語彙）
   ==================================================================
   參考蝦皮的克制：數量是安靜的方盒、金額才有顏色。
   在這裡統一收尾，前面幾版的零碎設定由這一段蓋掉。 */

/* ── 數量盒（左右兩邊長一樣） ───────────────────────── */

.igo-member-qty,
.cart-widget-side .quantity {
	display: inline-flex !important;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid #dededf;
	border-radius: 6px;
	background-color: #fff;
	overflow: hidden;
}

.igo-member-qty {
	margin-top: 8px;
}

.igo-member-qty-input,
.cart-widget-side .quantity input.qty {
	box-sizing: border-box;
	width: 40px;
	height: 28px;
	padding: 0;
	margin: 0;
	border: 0;
	border-right: 1px solid #ededee;
	border-left: 1px solid #ededee;
	border-radius: 0;
	background-color: #fff;
	color: #1f1f22;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 28px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
}

.igo-member-qty-input:focus,
.cart-widget-side .quantity input.qty:focus {
	outline: 0;
	box-shadow: none;
	background-color: #fffdfd;
}

/* 數字欄的上下小箭頭拿掉，那個東西在小方盒裡很醜 */
.cart-widget-side .quantity input.qty::-webkit-outer-spin-button,
.cart-widget-side .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.igo-member-qty-btn,
.cart-widget-side .quantity .wd-qty-btn,
.cart-widget-side .quantity > a,
.cart-widget-side .quantity button,
.cart-widget-side .quantity input.plus,
.cart-widget-side .quantity input.minus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: #6f6f78;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 28px;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.igo-member-qty-btn:hover,
.cart-widget-side .quantity .wd-qty-btn:hover,
.cart-widget-side .quantity > a:hover,
.cart-widget-side .quantity button:hover,
.cart-widget-side .quantity input.plus:hover,
.cart-widget-side .quantity input.minus:hover {
	background-color: #f6f6f7;
	color: #b81820;
}

.igo-member-qty-btn:focus-visible,
.cart-widget-side .quantity input:focus-visible {
	outline: 2px solid #b81820;
	outline-offset: -2px;
}

/* ── 側欄的一列：縮圖｜內容｜金額，金額對齊同一直線 ── */

.cart-widget-side .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	padding: 16px 20px 16px 20px;
}

/* LOGO 不要被裁掉：整張放得下，留一點白 */
.cart-widget-side .woocommerce-mini-cart-item img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px;
	padding: 4px;
	object-fit: contain;
	background-color: #fff;
	border: 1px solid #f0f0f1;
	border-radius: 8px;
}

.cart-widget-side .cart-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding-right: 96px;
}

.cart-widget-side .wd-entities-title {
	margin: 0 0 8px;
	padding-right: 0;
	cursor: pointer;
}

.cart-widget-side .wd-entities-title:hover {
	color: #b81820;
}

.cart-widget-side .cart-item-image {
	cursor: pointer;
}

/* 金額：每一列都固定在同一個位置，右邊切齊 */
.cart-widget-side .igo-mini-total {
	position: absolute;
	right: 20px;
	bottom: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0;
	line-height: 1;
	text-align: right;
}

.cart-widget-side .igo-mini-total .amount {
	font-size: 14px;
	font-weight: 700;
	color: #b81820;
	font-variant-numeric: tabular-nums;
}

/* ── 免運進度：一條真的進度條 ＋ 一行說明 ───────────── */

.cart-widget-side .wd-progress-bar,
.cart-widget-side .wd-free-progress-bar {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background-color: #fafafb;
}

.cart-widget-side .wd-free-progress-bar .progress-msg {
	margin-bottom: 8px;
	font-size: 12px;
	line-height: 1.6;
	color: #55555e;
}

.cart-widget-side .wd-free-progress-bar .progress-msg .amount {
	font-weight: 700;
	color: #b81820;
}

.cart-widget-side .wd-free-progress-bar .progress-area {
	height: 6px;
	border-radius: 999px;
	background-color: #e8e8ea;
	overflow: hidden;
}

.cart-widget-side .wd-free-progress-bar .progress-bar {
	height: 6px;
	border-radius: 999px;
	background-color: #b81820;
	transition: width .3s ease;
}

/* 已經達標：整條變綠，一眼就知道過了 */
.cart-widget-side .wd-free-progress-bar .progress-bar[style*="100%"] {
	background-color: #3fa35c;
}

/* ── 商品快速預覽 ───────────────────────────────────── */

.igo-peek {
	text-align: center;
}

.igo-peek-img {
	display: block;
	width: 100%;
	max-width: 280px;
	margin: 0 auto 16px;
	border: 1px solid #f0f0f1;
	border-radius: 14px;
	background-color: #fff;
	object-fit: contain;
}

.igo-peek-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	color: #1f1f22;
}

.igo-peek-price {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 900;
	color: #b81820;
}

.igo-peek-price del {
	margin-right: 6px;
	font-size: 14px;
	font-weight: 400;
	color: #92929b;
}

.igo-peek-price ins {
	text-decoration: none;
}

.igo-peek-sku {
	margin: 0 0 14px;
	font-size: 12px;
	color: #92929b;
}

.igo-peek-desc {
	margin: 0 0 18px;
	padding-top: 14px;
	border-top: 1px solid #f0f0f1;
	font-size: 14px;
	line-height: 1.85;
	color: #55555e;
	text-align: left;
}

.igo-peek-go {
	display: inline-block;
	width: 100%;
	height: 46px;
	border-radius: 999px;
	background-color: #b81820;
	box-shadow: 0 3px 0 #8e1319;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 46px;
	text-align: center;
	text-decoration: none;
}

.igo-peek-go:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #8e1319;
}

/* 免運那塊被主題鎖了高度（只露一行、其他被裁掉），放開它 */
.cart-widget-side .wd-progress-bar,
.cart-widget-side .wd-free-progress-bar {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

/* 左側數量格被登入卡片的輸入框規則（.igo-login input[type="text"]：
   寬 100%、高 48px）蓋過去，整顆變得又寬又高。這裡把特異度拉高鎖回來。 */
.igo-login .igo-member-qty .igo-member-qty-input {
	width: 40px;
	height: 28px;
	padding: 0;
	margin: 0;
	border: 0;
	border-right: 1px solid #ededee;
	border-left: 1px solid #ededee;
	border-radius: 0;
	box-shadow: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 28px;
}

.igo-login .igo-member-qty .igo-member-qty-input:focus {
	border-color: #ededee;
	box-shadow: none;
}

/* 側欄小計金額：底邊跟數量盒的「＋」對齊，再低一點點。
   ⚠️ 原本是對整列（li）定位，但整列的高度被 56px 縮圖撐高，
   金額就掉到數量盒下面 27px。改成對「商品資訊那一欄」定位，
   那一欄的底就是數量盒的底。 */
/* 用定位對不準（佈景主題在數量盒下面還塞了一段外距，量出來差 14px），
   改成格線排：上排品名橫跨兩欄，下排左邊數量盒、右邊金額，底邊對齊。 */
.cart-widget-side .woocommerce-mini-cart-item .cart-info {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 10px;
	padding-right: 0 !important;
}

.cart-widget-side .woocommerce-mini-cart-item .cart-info .wd-entities-title {
	grid-column: 1 / -1;
	padding-right: 26px;
}

.cart-widget-side .woocommerce-mini-cart-item .cart-info .quantity {
	grid-column: 1;
	justify-self: start;
	margin: 0 !important;
}

.cart-widget-side .woocommerce-mini-cart-item .cart-info .igo-mini-total {
	position: static !important;
	grid-column: 2;
	align-self: end;
	margin: 0 !important;
	line-height: 1;
	/* 比加號的底再低一點點（實測 -4px 時剛好切齊，改 -2px 讓金額低 2px） */
	transform: translateY(-2px);
}

.cart-widget-side .igo-mini-total .amount {
	line-height: 1;
}

/* ==================================================================
   免運／滿額進度：放在側欄最上面，要一眼看得到
   ================================================================== */

.cart-widget-side .widget_shopping_cart_content > .wd-free-progress-bar {
	margin: 14px 20px 4px;
	padding: 14px 16px 16px;
	border: 1px solid #f3d6d7;
	border-radius: 12px;
	background-color: #fff6f6;
}

.cart-widget-side .wd-free-progress-bar .igo-progress-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #55555e;
}

.cart-widget-side .wd-free-progress-bar .igo-progress-head b {
	font-size: 20px;
	font-weight: 900;
	color: #b81820;
	font-variant-numeric: tabular-nums;
}

.cart-widget-side .wd-free-progress-bar .progress-msg {
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 500;
	color: #1f1f22;
}

.cart-widget-side .wd-free-progress-bar .progress-area {
	height: 10px;
	background-color: #f0dcdd;
}

/* ⚠️ 前面有一條 [class*="progress-bar"] { height: 4px !important }，
   會把填色壓成 4px 細線，看起來像「整條粉紅、沒有進度」。要 !important 蓋回來。 */
.cart-widget-side .wd-free-progress-bar .progress-area {
	position: relative;
	height: 10px !important;
	padding: 0 !important;
	border-radius: 999px;
	overflow: hidden;
}

/* ⚠️ 量出來填色的上緣在軌道「下緣」（軌道 181–191、填色從 191 開始），
   被軌道的 overflow:hidden 整條切掉，所以畫面上只看到一條空的淡紅軌道。
   直接把填色釘在軌道裡面，不管前面佈景主題塞了什麼都對得上。 */
.cart-widget-side .wd-free-progress-bar .progress-area .progress-bar {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
	margin: 0 !important;
}

.cart-widget-side .wd-free-progress-bar .progress-bar {
	height: 10px !important;
	border-radius: 999px;
	background-image: linear-gradient(90deg, #e0577a, #b81820);
	/* 側欄每次改數量都整塊重畫，寬度動畫會從 0 重跑，有時停在沒畫完的樣子，
	   看起來像「整條空的」。進度直接畫到位就好。 */
	transition: none !important;
}

/* 達標：整塊轉綠 */
.cart-widget-side .wd-free-progress-bar.is-done {
	border-color: #cfe8d6;
	background-color: #f2faf4;
}

.cart-widget-side .wd-free-progress-bar.is-done .igo-progress-head b {
	color: #3fa35c;
}

.cart-widget-side .wd-free-progress-bar.is-done .progress-bar {
	background-image: none;
	background-color: #3fa35c;
}

/* ==================================================================
   滿額優惠進度（跨全部階段的一條）
   ==================================================================
   用在：購物車側欄最上面、購物車頁上方。
   佈景主題那條「只算這一階」的進度條在這兩個地方收起來，免得兩條打架。 */

.cart-widget-side .wd-free-progress-bar,
.woocommerce-cart .wd-free-progress-bar {
	display: none !important;
}

.igo-tier-progress {
	--tp-brand: #b81820;
	--tp-green: #3fa35c;
	position: relative;
	margin: 14px 20px 6px;
	padding: 14px 16px 12px;
	border: 1px solid #f3d6d7;
	border-radius: 12px;
	background-color: #fff6f6;
	font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	color: #1f1f22;
	transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.igo-tier-progress-wrap .igo-tier-progress {
	margin: 0 0 20px;
}

.igo-tier-progress__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.igo-tier-progress__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #55555e;
}

.igo-tier-progress__pct {
	font-size: 22px;
	font-weight: 900;
	line-height: 1.1;
	color: var(--tp-brand);
	font-variant-numeric: tabular-nums;
}

.igo-tier-progress__msg {
	margin: 4px 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #1f1f22;
}

.igo-tier-progress__msg b {
	margin: 0 .2em;
	font-weight: 800;
	color: var(--tp-brand);
}

/* 整句都包在 b 裡的（達成、全拿）不要左右留白 */
.igo-tier-progress__msg > b:only-child {
	margin: 0;
}

/* 長條＋各階圓點 */
.igo-tier-progress__track {
	position: relative;
	height: 10px;
	margin: 0 7px;
	border-radius: 999px;
	background-color: #f0dcdd;
}

.igo-tier-progress__fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	border-radius: 999px;
	background-image: linear-gradient(90deg, #e0577a, var(--tp-brand));
	transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.igo-tier-progress__dot {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	border: 2px solid #f0dcdd;
	border-radius: 999px;
	background-color: #fff;
	transform: translate(-50%, -50%);
}

.igo-tier-progress__dot.is-earned {
	border-color: #fff;
	background-color: var(--tp-brand);
}

/* 各階說明：打勾＝已拿到，下一階加粗 */
.igo-tier-progress__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.igo-tier-progress__steps li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px 3px 5px;
	border: 1px solid #ecd0d1;
	border-radius: 999px;
	background-color: #fff;
	font-size: 12px;
	line-height: 1.4;
	color: #6f6f78;
}

.igo-tier-progress__steps li i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background-color: #f0dcdd;
	color: #fff;
	font-size: 10px;
	font-style: normal;
	font-weight: 900;
}

.igo-tier-progress__steps li small {
	font-size: 11px;
	color: #92929b;
}

.igo-tier-progress__steps li.is-earned {
	border-color: #cfe8d6;
	color: #2f7d47;
}

.igo-tier-progress__steps li.is-earned i {
	background-color: var(--tp-green);
}

.igo-tier-progress__steps li.is-next {
	border-color: var(--tp-brand);
	color: #1f1f22;
	font-weight: 700;
}

/* 全部拿到：整塊轉綠 */
.igo-tier-progress.is-done {
	border-color: #cfe8d6;
	background-color: #f2faf4;
}

.igo-tier-progress.is-done .igo-tier-progress__pct,
.igo-tier-progress.is-done .igo-tier-progress__msg b {
	color: var(--tp-green);
}

.igo-tier-progress.is-done .igo-tier-progress__fill {
	background-image: none;
	background-color: var(--tp-green);
}

/* 剛剛解鎖一階：整塊閃一下＋跳一行提示 */
.igo-tier-progress.is-levelup {
	border-color: var(--tp-green);
	box-shadow: 0 0 0 4px rgba(63, 163, 92, .18);
	animation: igo-tier-pop .6s ease;
}

.igo-tier-progress__toast {
	margin: 10px 0 0;
	padding: 8px 12px;
	border-radius: 10px;
	background-color: var(--tp-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	animation: igo-tier-toast .35s ease;
}

@keyframes igo-tier-pop {
	0% { transform: scale(1); }
	35% { transform: scale(1.025); }
	100% { transform: scale(1); }
}

@keyframes igo-tier-toast {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.igo-tier-progress,
	.igo-tier-progress__fill,
	.igo-tier-progress__toast {
		animation: none !important;
		transition: none !important;
	}
}

/* 購物車頁：階梯清單已經併進上方的滿額優惠進度，不重複顯示 */
.woocommerce-cart .igo-tier-ladder {
	display: none !important;
}

/* ── 商品快速預覽 v2：客人想看的都在這一頁 ─────────────── */

.igo-peek-modal .igo-modal-box {
	display: flex;
	flex-direction: column;
}

.igo-peek {
	padding-bottom: 8px;
	text-align: left;
}

.igo-peek-stage {
	position: relative;
	border: 1px solid #f0f0f1;
	border-radius: 14px;
	background-color: #fff;
	overflow: hidden;
}

.igo-peek .igo-peek-img {
	display: block;
	width: 100%;
	max-width: none;
	aspect-ratio: 1 / 1;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: contain;
}

.igo-peek-off {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 8px;
	border-radius: 6px;
	background-color: #b81820;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.igo-peek-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}

.igo-peek-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1px solid #e5e5e7;
	border-radius: 10px;
	background-color: #fff;
	overflow: hidden;
	cursor: pointer;
}

.igo-peek-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.igo-peek-thumb.is-on {
	border: 2px solid #1f1f22;
}

.igo-peek-brand {
	margin: 16px 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #92929b;
}

.igo-peek .igo-peek-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	text-align: left;
}

.igo-peek-brand + .igo-peek-title {
	margin-top: 0;
}

.igo-peek-gallery + .igo-peek-title {
	margin-top: 16px;
}

.igo-peek-priceline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.igo-peek .igo-peek-price {
	margin: 0;
	font-size: 20px;
}

.igo-peek-stock {
	flex: none;
	padding: 3px 9px;
	border-radius: 999px;
	background-color: #eef7f0;
	color: #2f7d47;
	font-size: 12px;
	font-weight: 700;
}

.igo-peek-stock.is-low {
	background-color: #fff3e6;
	color: #b25e00;
}

.igo-peek-stock.is-out {
	background-color: #f2f2f3;
	color: #6f6f78;
}

/* 購物車裡幾件：直接改 */
.igo-peek-cart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid #e5e5e7;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	color: #1f1f22;
}

.igo-peek-cart .igo-member-qty {
	margin-top: 0;
}

.igo-peek-cart .igo-member-qty-input {
	width: 40px;
	height: 28px;
	padding: 0;
	margin: 0;
	border: 0;
	border-right: 1px solid #ededee;
	border-left: 1px solid #ededee;
	border-radius: 0;
	box-shadow: none;
	font-size: 13px;
	text-align: center;
	-moz-appearance: textfield;
}

.igo-peek-cart .igo-member-qty-input::-webkit-inner-spin-button,
.igo-peek-cart .igo-member-qty-input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* 保固／免運：讓人放心的兩件事 */
.igo-peek-promise {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.igo-peek-promise li {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	border-radius: 12px;
	background-color: #f7f7f8;
}

.igo-peek-promise b {
	font-size: 13px;
	font-weight: 800;
	color: #1f1f22;
}

.igo-peek-promise b .amount {
	color: inherit;
}

.igo-peek-promise span {
	font-size: 11px;
	color: #6f6f78;
}

.igo-peek .igo-peek-desc {
	margin: 0 0 14px;
}

.igo-peek-specs {
	margin: 0 0 12px;
	border-top: 1px solid #f0f0f1;
}

.igo-peek-specs div {
	display: flex;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
}

.igo-peek-specs dt {
	flex: 0 0 84px;
	font-weight: 400;
	color: #6f6f78;
}

.igo-peek-specs dd {
	flex: 1 1 auto;
	margin: 0;
	color: #1f1f22;
}

.igo-peek .igo-peek-sku {
	margin: 0;
}

/* 底部按鈕列：固定在視窗最下面 */
.igo-peek-foot {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid #e5e5e7;
	background-color: #fff;
}

.igo-peek-fav {
	display: flex;
	flex: 0 0 46px;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #dededf;
	border-radius: 999px;
	background-color: #fff;
	color: #55555e;
	cursor: pointer;
}

.igo-peek-fav svg {
	width: 22px;
	height: 22px;
	fill: none;
}

.igo-peek-fav.is-on {
	border-color: #f3d6d7;
	color: #b81820;
}

.igo-peek-fav.is-on svg {
	fill: currentColor;
}

.igo-peek-more {
	flex: 1 1 0;
	height: 46px;
	border: 1px solid #1f1f22;
	border-radius: 999px;
	color: #1f1f22;
	font-size: 15px;
	font-weight: 700;
	line-height: 44px;
	text-align: center;
	text-decoration: none;
}

.igo-peek-foot .igo-peek-go {
	flex: 1.3 1 0;
	width: auto;
}

/* ==================================================================
   側邊購物車：小計底下的「省下多少／可得購物金」
   ==================================================================
   老闆要的順序：小計 → 省下多少 → 購物金 → 免運進度 → 按鈕。 */

.igo-cart-sum {
	margin: 2px 20px 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f7f6f2;
	font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.igo-cart-sum__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 2px 0;
	color: #4b5558;
	font-size: 13px;
	line-height: 1.7;
}

.igo-cart-sum__row b,
.igo-cart-sum__row b .amount {
	color: #1f3438;
	font-size: 14px;
	font-weight: 700;
}

.igo-cart-sum__row.is-save b,
.igo-cart-sum__row.is-save b .amount {
	color: #b81820;
}

.igo-cart-sum__row.is-rebate b,
.igo-cart-sum__row.is-rebate b .amount {
	color: #8a5a11;
}

.igo-cart-sum__note {
	margin: 4px 0 0;
	color: #8a8a8a;
	font-size: 11.5px;
	line-height: 1.6;
}

/* 進度條搬到小計底下之後，上下留白重抓 */
.cart-widget-side .igo-tier-progress,
.widget_shopping_cart_content .igo-tier-progress {
	margin: 10px 20px 4px;
}

/* 小計那一行跟底下的方塊對齊（同樣的左右邊界），中間留白拉開一點 */
.cart-widget-side .shopping-cart-widget-footer .woocommerce-mini-cart__total,
.widget_shopping_cart_content .shopping-cart-widget-footer .woocommerce-mini-cart__total {
	margin: 0 20px 14px;
	padding: 0 15px;
}

.igo-cart-sum {
	margin: 0 20px 10px;
}

/* 說明只有一行，不要折行（字級縮一點點，寬度剛好放得下） */
.igo-cart-sum__note {
	overflow: hidden;
	font-size: 10.5px;
	letter-spacing: -.01em;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 解鎖提示整條可以點，點一下就關 */
.igo-tier-progress__toast {
	cursor: pointer;
}
