/* ==========================================================================
   ĐIỂM CHẠM (Touchpoint tabs) — [idn_touch] / [idn_touchtab]
   Font kế thừa Lexend từ body. Màu nhấn = --primary-color của theme.
   ========================================================================== */

.idn-touch {
	--idn-touch-accent: var(--primary-color, #1463ff);
	position: relative;
	padding: 56px 0 64px;
	overflow: hidden;
}
button.idn-touch__tab {
    margin: 0px;
    margin-bottom: 0px;
}
.idn-touch__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	z-index: 1;
}

/* Hoa văn chấm bi trang trí góc phải (giống ảnh) */
.idn-touch::after {
	content: "";
	position: absolute;
	top: 120px;
	right: -10px;
	width: 180px;
	height: 320px;
	background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
	background-size: 18px 18px;
	color: color-mix(in srgb, var(--idn-touch-accent) 15%, #fff);
	opacity: .8;
	pointer-events: none;
	z-index: 0;
}

/* ----- Tiêu đề ----- */
.idn-touch__head {
	text-align: center;
	margin-bottom: 30px;
}
.idn-touch__title {
	margin: 0 0 8px;
	font-size: 34px;
	line-height: 1.25;
	font-weight: 800;
	color: #1f2a37;
}
.idn-touch__hl {
	color: var(--idn-touch-accent);
}
.idn-touch__subtitle {
	margin: 0;
	font-size: 16px;
	color: #8a94a6;
	font-weight: 500;
}

/* ----- Thanh tab ----- */
.idn-touch__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
}
.idn-touch__tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: #4a5568;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 13px 22px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.idn-touch__tab:hover {
	color: var(--idn-touch-accent);
	background: color-mix(in srgb, var(--idn-touch-accent) 8%, #fff);
}
.idn-touch__tab.is-active {
	color: #fff;
	background: var(--idn-touch-accent);
	box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--idn-touch-accent) 45%, transparent);
}

/* ----- Panel ----- */
.idn-touch__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}
.idn-touch__panel[hidden] { display: none; }

.idn-touch__media {
	min-width: 0;
}
.idn-touch__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.idn-touch__body {
	min-width: 0;
}

/* Icon tròn */
.idn-touch__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--idn-touch-accent);
	margin-bottom: 16px;
}
.idn-touch__icon img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: brightness(0) invert(1); /* icon trắng trên nền xanh */
}

.idn-touch__heading {
	margin: 0 0 20px;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
	color: #1f2a37;
}

/* Nội dung — danh sách gạch đầu dòng dạng vòng tròn viền */
.idn-touch__content {
	color: #4a5568;
	font-size: 16px;
	line-height: 1.7;
	max-height: 300px;          /* dài quá thì cuộn để tối ưu trải nghiệm */
	overflow-y: auto;
	padding-right: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--idn-touch-accent) #eef1f4;
}
.idn-touch__content::-webkit-scrollbar { width: 6px; }
.idn-touch__content::-webkit-scrollbar-track { background: #eef1f4; border-radius: 4px; }
.idn-touch__content::-webkit-scrollbar-thumb { background: var(--idn-touch-accent); border-radius: 4px; }
.idn-touch__content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.idn-touch__content ul li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 16px;
}
.idn-touch__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 4px solid var(--idn-touch-accent);
	background: #fff;
	box-sizing: border-box;
}
.idn-touch__content p { margin: 0 0 12px; }
.idn-touch__content > *:last-child { margin-bottom: 0; }

/* Nút */
.idn-touch__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	padding: 12px 26px;
	border: 1px solid var(--idn-touch-accent);
	border-radius: 8px;
	color: var(--idn-touch-accent);
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.idn-touch__btn:hover {
	background: var(--idn-touch-accent);
	color: #fff;
}
.idn-touch__arrow {
	font-style: normal;
	font-size: 17px;
	line-height: 1;
}

/* ----- Responsive ----- */
@media (max-width: 850px) {
	.idn-touch__title { font-size: 26px; }
	.idn-touch__heading { font-size: 22px; }
	.idn-touch__panel {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.idn-touch__media { order: 2; }
	.idn-touch__body { order: 1; }
	.idn-touch__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -20px 30px;
		padding: 4px 20px 10px;
	}
	.idn-touch__tabs::-webkit-scrollbar { display: none; }
	.idn-touch__tab { flex: 0 0 auto; }
	.idn-touch::after { display: none; }
}

/* ==========================================================================
   UX Builder — gợi ý & chip viền cho con
   ========================================================================== */
.idn-touch--builder {
	padding: 24px 16px;
}
.idn-touch__builderhint {
	background: color-mix(in srgb, var(--idn-touch-accent) 8%, #fff);
	border: 1px dashed var(--idn-touch-accent);
	color: var(--idn-touch-accent);
	font-size: 13px;
	line-height: 1.5;
	padding: 10px 14px;
	border-radius: 6px;
	margin: 0 auto 16px;
	max-width: 760px;
	text-align: center;
}
.idn-touch__buildertabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.idn-tchip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	background: #fff;
	border-radius: 8px;
	min-width: 220px;
}
.idn-tchip__img {
	width: 46px;
	height: 46px;
	border-radius: 6px;
	object-fit: cover;
	flex: 0 0 auto;
	background: #f1f4f9;
}
.idn-tchip__img--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #9aa5b5;
	text-align: center;
}
.idn-tchip__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.idn-tchip__meta strong {
	font-size: 14px;
	color: #1f2a37;
}
.idn-tchip__hint {
	font-size: 12px;
	color: #8a94a6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}
