﻿/**
 * Subscription sim-plan PDP — critical layout (hero, swatches, purchase stack).
 * Loaded in addition to single-product.css; use filemtime for cache busting.
 * Keep in sync with single-product.css block starting at line ~8164.
 */
/* ── 訂閱 dingyue PDP（sim-plan-pdp）hero / 限時惠價 / 天數角標 ── */
body.sim-plan-pdp .vs-subscription-hero-gallery {
	width: 100%;
	max-width: 480px;
}

body.sim-plan-pdp .vs-subscription-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: 513px;
	padding: 106px 24px 48px;
	border-radius: 29px;
	background: linear-gradient(45deg, #eff6ff 0%, #eef2ff 100%);
	box-sizing: border-box;
}

body.sim-plan-pdp .vs-subscription-hero__favorite {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

body.sim-plan-pdp .vs-subscription-hero__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-top: 0;
	border-radius: 25px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

body.sim-plan-pdp .vs-subscription-hero__icon {
	width: 51px;
	height: 51px;
	object-fit: contain;
}

body.sim-plan-pdp .vs-subscription-hero__region {
	margin: 20px 0 0;
	font-size: 25px;
	line-height: 1.4;
	color: #4a5565;
	text-align: center;
	letter-spacing: -0.27px;
}

body.sim-plan-pdp .vs-subscription-hero__plan {
	margin: 8px 0 0;
	font-size: clamp(28px, 4vw, 43px);
	line-height: 1.2;
	font-weight: 900;
	color: #101828;
	text-align: center;
	letter-spacing: 0.13px;
}

body.sim-plan-pdp .vs-subscription-hero__savings {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 28px;
	min-width: 204px;
	height: 48px;
	padding: 0 20px;
	border: 1px solid #eb5c63;
	border-radius: 6px;
	background: #fef2f2;
	box-sizing: border-box;
}

body.sim-plan-pdp .vs-subscription-hero__daily {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	min-width: 148px;
	height: 36px;
	padding: 0 14px;
	border-radius: 8px;
	background: #eb5c63;
	box-sizing: border-box;
}

body.sim-plan-pdp .vs-subscription-hero__daily[hidden] {
	display: none !important;
}

body.sim-plan-pdp .vs-subscription-hero__daily span {
	font-size: 14px;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

body.sim-plan-pdp .vs-subscription-hero__savings[hidden] {
	display: none !important;
}

body.sim-plan-pdp .vs-subscription-hero__savings span {
	font-size: 25px;
	line-height: 1.2;
	color: #e7000b;
	text-align: center;
	letter-spacing: -0.27px;
}

body.sim-plan-pdp .vs-product-rating--subscription {
	margin-top: 8px;
}

body.sim-plan-pdp .vs-subscription-promo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 102px;
	height: 28px;
	padding: 0 16px;
	border-radius: 6px;
	background: #edfff4;
}

body.sim-plan-pdp .vs-subscription-promo-badge span {
	font-size: 14px;
	line-height: 1;
	color: #448361;
	letter-spacing: 0.3px;
}

body.sim-plan-pdp .vs-product-container {
	padding-top: 32px;
}

@media (max-width: 768px) {
	body.sim-plan-pdp .vs-product-container {
		padding-top: 20px;
	}
}

body.sim-plan-pdp .vs-product-detail-standalone {
	margin: 16px 0 24px;
}

body.sim-plan-pdp .vs-product-tabs--sim-plan:not(:has(.vs-tabs-nav)) {
	margin-top: 0;
}

body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-plan-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	grid-template-columns: none !important;
	gap: 16px !important;
	max-width: 100% !important;
	width: 100% !important;
	margin-bottom: 24px !important;
}

/* 訂閱 PDP：不論 vs-days / vs-plan（EN/TW 屬性 slug 不同），色票尺寸統一 */
body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .variable-item,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .variable-item,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-plan-wrapper .variable-item {
	position: relative !important;
	overflow: visible !important;
	flex: 0 0 250px !important;
	width: 250px !important;
	max-width: 100% !important;
	height: 100px !important;
	min-height: 100px !important;
	max-height: 100px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 8px !important;
	background: #fff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
}

body.sim-plan-pdp.vs-sub-region-global .vs-dingyue-pdp-purchase-notice {
	display: none !important;
}

body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .variable-item.selected,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .variable-item.selected,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-plan-wrapper .variable-item.selected {
	border: 2px solid #01488c !important;
	background: #eef6ff !important;
}

body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .variable-item.selected .vs-days-num,
body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .variable-item.selected .vs-swatch-name,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .variable-item.selected .vs-days-num,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .variable-item.selected .vs-swatch-name {
	color: #1f2937 !important;
}

body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .vs-swatch-inner,
body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .vs-days-inner,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .vs-days-inner,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-plan-wrapper .vs-swatch-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .vs-days-num,
body.sim-plan-pdp .vs-variations .woo-variation-swatches .variable-items-wrapper .vs-swatch-name,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .vs-days-num,
body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-plan-wrapper .vs-swatch-name {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

body.sim-plan-pdp .vs-day-daily-badge {
	display: none !important;
}

/* 訂閱 PDP：購買區（查看覆蓋地區 + 支付信任 + 立即購買） */
body.sim-plan-pdp .vs-sim-plan-purchase-stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	max-width: 797px;
	margin: 0 0 16px;
}

body.sim-plan-pdp .vs-sim-plan-coverage-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	padding: 0 24px;
	border: 2px solid #01488c;
	border-radius: 11px;
	background: #fff;
	color: #01488c;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.2s ease, color 0.2s ease;
}

body.sim-plan-pdp .vs-sim-plan-coverage-btn:hover {
	background: #eef6ff;
}

body.sim-plan-pdp .vs-sim-plan-payment-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	min-height: 28px;
}

body.sim-plan-pdp .vs-sim-plan-payment-trust__left {
	display: none;
}

body.sim-plan-pdp .vs-sim-plan-payment-trust__shield {
	display: none;
}

body.sim-plan-pdp .vs-sim-plan-payment-trust__label {
	display: none;
}

body.sim-plan-pdp .vs-sim-plan-payment-trust__logo {
	flex-shrink: 0;
	width: 149px;
	height: 29px;
	max-width: 100%;
	object-fit: contain;
}

body.sim-plan-pdp .vs-product-container.sim-plan-buy-only .vs-btn-buy-now {
	width: 100% !important;
	max-width: 797px;
	border-radius: 11px !important;
}

@media (max-width: 900px) {
	body.sim-plan-pdp .vs-subscription-hero {
		min-height: 420px;
		padding-top: 72px;
	}

	body.sim-plan-pdp .vs-subscription-hero-gallery {
		max-width: 100%;
	}

	body.sim-plan-pdp .vs-subscription-hero__region {
		font-size: clamp(18px, 4vw, 25px);
	}

	body.sim-plan-pdp .vs-subscription-hero__savings {
		min-width: 0;
		max-width: 100%;
		padding: 0 16px;
	}

	body.sim-plan-pdp .vs-subscription-hero__savings span {
		font-size: clamp(18px, 4.5vw, 25px);
	}

	body.sim-plan-pdp .vs-subscription-hero__daily {
		min-width: 0;
		max-width: 100%;
	}

	body.sim-plan-pdp .vs-subscription-hero__daily span {
		white-space: normal;
		text-align: center;
	}

	body.sim-plan-pdp .vs-sim-plan-purchase-stack {
		padding-left: 0;
		padding-right: 0;
	}

	body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .variable-item,
	body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-plan-wrapper .variable-item {
		flex: 1 1 calc(50% - 8px);
		width: auto !important;
		min-width: 0;
		height: 100px !important;
	}
}

@media (max-width: 768px) {
	body.sim-plan-pdp .vs-subscription-hero {
		min-height: 360px;
		padding: 64px 16px 40px;
		border-radius: 20px;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo__inner {
		padding: 0 20px;
	}
}

@media (max-width: 480px) {
	body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-days-wrapper .variable-item,
	body.sim-plan-pdp .woo-variation-swatches .variable-items-wrapper.vs-plan-wrapper .variable-item {
		flex: 1 1 100%;
		width: 100% !important;
		max-width: 100%;
	}
}
/* ── 訂閱 PDP 行銷區塊（主題設置 → 訂閱設置；獨立於產品模板）── */
body.sim-plan-pdp .vs-sub-pdp-promo {
	box-sizing: border-box;
	width: 100%;
	margin: 55px auto 0;
	padding: 0 24px;
}

body.sim-plan-pdp .vs-sub-pdp-promo--global {
	margin-top: 120px;
}

body.sim-plan-pdp .vs-sub-pdp-promo__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1318px;
	margin: 0 auto;
}

body.sim-plan-pdp .vs-sub-pdp-promo--why .vs-sub-pdp-promo__header {
	margin: 0 0 48px;
	text-align: center;
}

body.sim-plan-pdp .vs-sub-pdp-promo--why .vs-sub-pdp-promo__title.vs-section-title {
	margin: 0 0 12px;
	padding: 0;
	color: #101828;
	font-family: Inter, "Inter", sans-serif;
	font-size: 36px;
	font-weight: 800 !important;
	line-height: 1.25;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo--why .vs-sub-pdp-promo__subtitle {
	margin: 0 auto;
	padding: 0;
	max-width: 640px;
	color: #4a5565;
	font-family: Inter, "Inter Regular", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

body.sim-plan-pdp .vs-sub-pdp-promo--global .vs-sub-pdp-promo__title.vs-section-title {
	margin: 12px 0;
	padding: 0;
	color: #101828;
	font-family: Inter, "Inter", sans-serif;
	font-size: 36px;
	font-weight: 800 !important;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo--global .vs-sub-pdp-promo__eyebrow {
	margin: 0;
	padding: 0;
	color: #01488c;
	font-family: Inter, "Inter Medium", sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 32px;
	text-align: left;
}

body.sim-plan-pdp .vs-sub-pdp-promo--global .vs-sub-pdp-promo__subtitle {
	margin: 0;
	padding: 0;
	max-width: none;
	color: #4a5565;
	font-family: Inter, "Inter Regular", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
}

body.sim-plan-pdp .vs-sub-pdp-promo--global .vs-sub-pdp-promo__title + .vs-sub-pdp-promo__subtitle {
	margin-top: 12px;
}

body.sim-plan-pdp .vs-sub-pdp-promo__row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
}

body.sim-plan-pdp .vs-sub-pdp-promo__row--why {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 629px;
	gap: 48px 64px;
	align-items: center;
	min-height: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo__row--global {
	display: grid;
	grid-template-columns: 629px minmax(0, 1fr);
	gap: 48px 64px;
	align-items: center;
	min-height: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo__content--global {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: center;
	max-width: 538px;
	min-height: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo__content--why {
	flex: none;
	width: auto;
	max-width: none;
	min-height: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo__features {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.sim-plan-pdp .vs-sub-pdp-promo__feature {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo__feature + .vs-sub-pdp-promo__feature,
body.sim-plan-pdp .vs-sub-pdp-promo__feature:nth-child(2) {
	margin-top: 0;
}

body.sim-plan-pdp .vs-sub-pdp-promo__feature-title {
	margin: 0;
	padding: 0;
	color: #292b2e;
	font-family: Inter, "Inter", sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
}

body.sim-plan-pdp .vs-sub-pdp-promo__feature-desc {
	margin: 8px 0 0;
	padding: 0;
	color: #4a5565;
	font-family: Inter, "Inter Regular", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: -0.01em;
	text-align: left;
}

body.sim-plan-pdp .vs-sub-pdp-promo__media {
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 42px;
}

body.sim-plan-pdp .vs-sub-pdp-promo__media--why,
body.sim-plan-pdp .vs-sub-pdp-promo__media--global {
	width: 629px;
	max-width: 100%;
	height: 520px;
	background: #eef2f7;
}

body.sim-plan-pdp .vs-sub-pdp-promo__media--why {
	margin-top: 0;
	justify-self: end;
}

body.sim-plan-pdp .vs-sub-pdp-promo__media--why img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.sim-plan-pdp .vs-sub-pdp-promo__media--global {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

@media (max-width: 1320px) {
	body.sim-plan-pdp .vs-sub-pdp-promo__row--why {
		grid-template-columns: minmax(0, 1fr) minmax(240px, 46%);
		gap: 40px 48px;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo__row--global {
		grid-template-columns: minmax(240px, 46%) minmax(0, 1fr);
		gap: 40px 48px;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo__media--why,
	body.sim-plan-pdp .vs-sub-pdp-promo__media--global {
		width: 100%;
		max-width: 520px;
		height: auto;
		aspect-ratio: 629 / 520;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo__content--global {
		max-width: none;
	}
}

@media (max-width: 900px) {
	body.sim-plan-pdp .vs-sub-pdp-promo__row--why,
	body.sim-plan-pdp .vs-sub-pdp-promo__row--global {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo__row {
		flex-direction: column;
		min-height: 0 !important;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo__media--why {
		justify-self: stretch;
		max-width: 100%;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo__media--why,
	body.sim-plan-pdp .vs-sub-pdp-promo__media--global {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 280px;
		aspect-ratio: 629 / 520;
	}

	body.sim-plan-pdp .vs-sub-pdp-promo--why .vs-sub-pdp-promo__title.vs-section-title,
	body.sim-plan-pdp .vs-sub-pdp-promo--global .vs-sub-pdp-promo__title.vs-section-title {
		font-size: clamp(28px, 7vw, 36px);
	}

	body.sim-plan-pdp .vs-sub-pdp-promo--global {
		margin-top: 72px;
	}
}

/* 訂閱 PDP：不顯示產品模板區塊（PHP 已略過輸出，此為兜底） */
body.sim-plan-pdp #vs-pdp-important.vs-product-template-extend,
body.sim-plan-pdp .vs-dro-tech-section,
body.sim-plan-pdp .vs-why-choose-us-section,
body.sim-plan-pdp .vs-video-tutorial-section,
body.sim-plan-pdp #vs-pdp-video-tutorial,
body.sim-plan-pdp .vs-product-template-extend.vs-product-template-video-before-faq {
	display: none !important;
}

/* Hide duplicate variation price above swatches (price lives in 小计 row). */
body.sim-plan-pdp .vs-product-summary > .woocommerce-variation-price {
	display: none !important;
}
