/**
 * Oddays Price Tables — 前台樣式
 * 獨立 class 命名（全 div-based），避免與測試站主題（palette/stockholm）的元素選擇器
 * （h1-h6、ul/li、p、a）重疊污染，因此不需依賴 !important 對抗。
 * 樣式值對齊正式站 Elementor Pro price-table（post-647 computed 實測）。
 */

.oddays-price-tables {
	display: flex;
	flex-wrap: wrap;
	margin-left: -10px;
	margin-right: -10px;
	align-items: flex-start; /* 客製（思誠 2026-08-06）：卡片按內容高度，不被拉伸，桌機無按鈕卡底部留白才一致 */
}

.oddays-price-table {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 35px;
	overflow: hidden;
	box-sizing: border-box;
	padding: 0;
	margin: 0 10px 20px;
	flex: 1 1 100%;
	max-width: 100%;
	text-align: center;
}

/* ---------- 標題欄（正式站 portrait 頁實測：紫色 #CEBEE6、白字、padding 12px） ---------- */
.oddays-price-table__header {
	background: #CEBEE6; /* rgb(206,190,230) 正式站 portrait 頁實際值 */
	padding: 12px;
}

.oddays-price-table__heading {
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #ffffff; /* 正式站 portrait 頁 heading 白字 */
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
}

.oddays-price-table__subheading {
	margin: 0;
	font-family: 'Mulish', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 28px;
	color: #ffffff; /* 正式站 portrait 頁 subheading 白字 */
	text-align: center;
}

/* ---------- 價格區（正式站 portrait 頁實測：price 容器 #555、currency/integer #6F6F6F） ---------- */
.oddays-price-table__price {
	background: #ffffff;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding: 30px 0; /* 客製（思誠 2026-08-06）：原價&特價區塊上下各減 10px（原 40px，先減5px後再-5px） */
	color: #555555; /* rgb(85,85,85) 正式站 portrait 頁 price 容器實際值 */
	font-family: 'Mulish', sans-serif;
	font-size: 40px; /* Pro：price 容器本身 40px，currency/original 用 em 相對此值 */
	font-weight: 700; /* 正式站 price 容器 font-weight:700 */
}

.oddays-price-table__original-price {
	/* 客製（思誠 2026-08-06）：原價顯示在優惠價下方，位置/間距完全參考 period（/組） */
	order: 3;
	align-self: auto;
	width: 100%;
	text-align: center;
	font-size: 15px; /* 比 period 大 2px（思誠指示）；widget 另有「原價字型」控制項可調 */
	font-weight: 400;
	color: #999999;
	margin: 6px 0 0; /* 同 .oddays-price-table__period */
	/* 不設 line-height：繼承 price 容器（32px），與 period 一致，避免文字貼特價 */
}

.oddays-price-table__original-price del {
	text-decoration: line-through;
	color: inherit;
}

.oddays-price-table__currency {
	align-self: flex-start;
	font-size: 0.3em;
	font-weight: 700;
	line-height: 1;
	margin-right: 3px;
	color: #6f6f6f;
}

.oddays-price-table__integer-part {
	line-height: 0.8;
	font-family: 'Mulish', sans-serif;
	font-size: 40px;
	font-weight: 700;
	color: #6f6f6f;
}

.oddays-price-table__period {
	font-size: 13px;
	font-weight: 400;
	width: 100%;
	color: #999999;
	margin-top: 6px;
}

/* ---------- 特色清單（正式站 portrait 頁實測：15px Montserrat、分隔線 margin 10px 12.5%） ---------- */
.oddays-price-table__features-list {
	margin: 0;
	padding: 0;
	background: #ffffff;
	line-height: 1;
	color: #7a7a7a;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 400; /* 正式站 features-list 容器 font-weight:400 */
}

.oddays-price-table__features-item {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	margin: 0;
	padding: 0;
	text-align: center;
}

.oddays-price-table__features-item .oddays-price-table__feature-inner {
	margin-left: 15px;
	margin-right: 15px;
	padding: 0;
}

.oddays-price-table__features-item:not(:first-child):before {
	border: 0 solid #ddd;
	border-top-width: 2px;
	content: "";
	display: block;
	margin: 10px 12.5%;
}

/* ---------- Ribbon（照抄正式站 Pro：容器透明、inner 斜帶上色） ---------- */
.oddays-price-table__ribbon {
	position: absolute;
	top: 0;
	left: auto;
	right: 0;
	height: 150px;
	width: 150px;
	overflow: hidden;
	transform: rotate(90deg);
	z-index: 1;
	background: transparent; /* 關鍵：容器透明，背景只在 inner 斜帶，避免方塊遮字 */
}

.oddays-price-table__ribbon span {
	background: #ECCC5F;	color: #ffffff;
	display: block;
	font-size: 13px;
	font-weight: 500;
	left: 0;
	line-height: 2;
	margin-top: 35px;
	text-align: center;
	transform: translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);
	width: 200%;
}

/* ---------- 按鈕（footer 貼底；按鈕下方 30px；上方 20px+features 分隔線 margin 10px=30px 對稱） ---------- */
.oddays-price-table__footer {
	padding: 20px 0 30px; /* 上方20px + features 末項分隔線 margin-bottom 10px = 30px 與下方 30px 對稱（思誠 2026-08-06） */
	margin-top: auto;
	background: #ffffff;
}

/* 有按鈕卡：末尾空項目只保留「最後一項下線」，不佔空行高度（避免 list→按鈕 過遠） */
.oddays-price-table:has(.oddays-price-table__footer) .oddays-price-table__features-item:last-child .oddays-price-table__feature-inner {
	display: none;
}
/* 無按鈕卡：空項目正常顯示（對齊正式站 portrait 頁：最後空項目 26px 貼底留白）＋底部留白 25px（思誠 2026-08-06 客製，原30→25） */
.oddays-price-table:not(:has(.oddays-price-table__footer)) .oddays-price-table__features-list {
	padding-bottom: 25px;
}

/* specificity (0,3,0) 高於 general.css body:not(.elementor-editor-active) .story a（0,2,2），覆蓋按鈕文字 underline */
.oddays-price-table .oddays-price-table__footer .oddays-price-table__button {
	display: inline-block;
	background: #f7e8e4;
	color: #ac8978;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	padding: 12px 30px;
	border: 1px solid #ac8978;
	border-radius: 5px;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
}

.oddays-price-table .oddays-price-table__footer .oddays-price-table__button:hover {
	background: #ac8978;
	color: #ffffff;
	text-decoration: none;
}

/* ---------- Responsive（對齊正式站 Elementor 行為：≤767px 堆疊單欄） ---------- */

/* 單欄：≥768px 單欄（1 張卡） */
@media (min-width: 768px) {
	.oddays-price-tables--one .oddays-price-table {
		flex: 0 0 calc(100% - 20px);
		max-width: calc(100% - 20px);
	}
}

/* 三欄：≥768px 三欄、≤767px 單欄 */
@media (min-width: 768px) {
	.oddays-price-tables--three .oddays-price-table {
		flex: 0 0 calc(33.333% - 20px);
		max-width: calc(33.333% - 20px);
	}
}

/* 二欄：≥768px 二欄、≤767px 單欄 */
@media (min-width: 768px) {
	.oddays-price-tables--two .oddays-price-table {
		flex: 0 0 calc(50% - 20px);
		max-width: calc(50% - 20px);
	}
}

/* 四欄：≥1201px 四欄、768-1200px 兩欄、≤767px 單欄 */
@media (min-width: 1201px) {
	.oddays-price-tables--four .oddays-price-table {
		flex: 0 0 calc(25% - 20px);
		max-width: calc(25% - 20px);
	}
}

@media (min-width: 768px) and (max-width: 1200px) {
	.oddays-price-tables--four .oddays-price-table {
		flex: 0 0 calc(50% - 20px);
		max-width: calc(50% - 20px);
	}
}

/* ≤767px：全部單欄堆疊 */
@media (max-width: 767px) {
	.oddays-price-tables--one .oddays-price-table,
	.oddays-price-tables--two .oddays-price-table,
	.oddays-price-tables--three .oddays-price-table,
	.oddays-price-tables--four .oddays-price-table {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ---------- clearfix 備援 ---------- */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}
