/**
 * IDN — Bảng giá dịch vụ (element [idn_pricing]).
 * Mỗi gói dùng biến --accent để đổi màu giá / nút / nền mô tả / nhãn nổi bật.
 */

.idn-pricing { width: 100%; }
.idn-pricing__inner { max-width: 1120px; margin: 0 auto; padding: 12px 15px; }

/* ---------- Tiêu đề ---------- */
.idn-pricing__head { text-align: center; margin-bottom: 22px; }
.idn-pricing__title {
	font-size: 30px; font-weight: 800; color: #2a2f3a;
	text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px;
}
button.idn-pricing__period {
    margin-bottom: 0px;
}
.idn-pricing__subtitle { color: var(--primary-color, #2496ea); font-size: 16px; font-weight: 600; margin: 0; }

/* ---------- Công tắc kỳ hạn ---------- */
.idn-pricing__togglewrap { text-align: center; margin-bottom: 36px; }
.idn-pricing__togglelabel { display: block; font-size: 18px; font-weight: 700; color: #2a2f3a; margin-bottom: 14px; }
.idn-pricing__toggle {
	display: inline-flex; gap: 4px; padding: 5px; background: #fff;
	border: 1px solid #e3e6eb; border-radius: 12px;
}
.idn-pricing__period {
	position: relative; border: 0; background: none; cursor: pointer;
	padding: 10px 22px; border-radius: 8px; font-size: 15px; font-weight: 600;
	color: #3a4654; transition: background .2s, color .2s;
}
.idn-pricing[data-period="1"] .idn-pricing__period[data-period="1"],
.idn-pricing[data-period="2"] .idn-pricing__period[data-period="2"] {
	background: var(--primary-color, #2496ea); color: #fff;
	box-shadow: 0 4px 10px color-mix(in srgb, var(--primary-color, #2496ea) 30%, transparent);
}
/* Nhãn đỏ "TIẾT KIỆM HƠN" */
.idn-pricing__hot {
	position: absolute; top: -20px; right: -16px; z-index: 2;
	background: #e8392a; color: #fff; font-size: 10px; font-weight: 700;
	line-height: 1.15; padding: 4px 7px; border-radius: 6px; white-space: nowrap;
}
.idn-pricing__hot::after {
	content: ""; position: absolute; left: 12px; bottom: -5px;
	border: 6px solid transparent; border-top-color: #e8392a; border-bottom: 0;
}

/* ---------- Lưới thẻ ---------- */
.idn-pricing__grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch;
}

/* ---------- Thẻ gói ---------- */
.idn-pl {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid #e8ebf0; border-radius: 14px;
	padding: 26px 22px 24px; transition: box-shadow .2s, transform .2s;
}
.idn-pl:hover { box-shadow: 0 14px 30px rgba(20, 40, 80, .1); transform: translateY(-2px); }
.idn-pl.is-popular { border-color: var(--accent); box-shadow: 0 14px 30px rgba(20, 40, 80, .12); }

.idn-pl__ribbon {
	position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
	background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
	padding: 7px 20px; border-radius: 8px; white-space: nowrap;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

.idn-pl__name { text-align: center; font-size: 20px; font-weight: 700; color: #2a2f3a; margin: 6px 0 16px; }

.idn-pl__desc {
	font-size: 13.5px; line-height: 1.55; color: #6b7280; text-align: center;
	padding: 14px; border-radius: 8px; margin-bottom: 18px;
}

/* Giá */
.idn-pl__prices { margin-bottom: 18px; }
.idn-pl__amountrow { display: flex; align-items: flex-start; gap: 6px; }
.idn-pl__amount { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.idn-pl__unit { font-size: 14px; color: #6b7280; font-weight: 600; margin-top: 4px; white-space: nowrap; }
.idn-pl__sub { margin-top: 10px; font-size: 13px; color: #8a929c; }
.idn-pl__save { color: #2fb344; font-weight: 700; }

/* Tính năng */
.idn-pl__features { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.idn-pl__feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: #3a4654; }
.idn-pl__ficon { flex: 0 0 18px; margin-top: 1px; }
.idn-pl__ficon--check { color: #2fb344; }
.idn-pl__ficon--user { color: #9aa3ad; }

/* Nút */
.idn-pl__btn {
	margin-top: auto; display: block; text-align: center; text-decoration: none;
	background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
	padding: 13px 16px; border-radius: 8px; transition: filter .2s, transform .15s;
}
.idn-pl__btn:hover { filter: brightness(.92); color: #fff; transform: translateY(-1px); }

/* Ẩn/hiện giá theo kỳ hạn đang chọn của cha */
.idn-pricing[data-period="1"] .idn-pl__price--p2 { display: none; }
.idn-pricing[data-period="2"] .idn-pl__price--p1 { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.idn-pricing__grid { grid-template-columns: 1fr; gap: 30px; max-width: 430px; margin: 0 auto; }
	.idn-pl.is-popular { margin-top: 8px; }
}
@media (max-width: 480px) {
	.idn-pricing__title { font-size: 23px; }
	.idn-pl__amount { font-size: 34px; }
	.idn-pricing__period { padding: 10px 16px; font-size: 14px; }
}

/* ---------- Chip builder (chỉ trong UX Builder) ---------- */
.idn-plchip { display: block; padding: 22px 10px 10px; margin: 8px 0; }
.idn-plchip__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.idn-plchip__price { color: var(--primary-color, #2496ea); font-weight: 700; }
.idn-plchip__items { display: flex; flex-wrap: wrap; gap: 6px; }
.idn-plfeat { display: inline-block; padding: 18px 8px 6px; font-size: 12px; }
