/* KNOWHOWBAKE Course Card — scoped ด้วย .khb- prefix ทั้งหมด */

.khb-course-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(1, 1fr);
	margin: 24px 0;
}
.khb-course-grid.khb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.khb-course-grid.khb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.khb-course-grid.khb-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.khb-course-grid.khb-cols-3,
	.khb-course-grid.khb-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.khb-course-grid.khb-cols-2,
	.khb-course-grid.khb-cols-3,
	.khb-course-grid.khb-cols-4 { grid-template-columns: 1fr; }
}

.khb-course-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e6e0d8;
	border-radius: var(--khb-radius, 12px);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	transition: transform .2s ease, box-shadow .2s ease;
}
.khb-course-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.khb-card-media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
.khb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.khb-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	left: auto;
	background: #b5652f;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}
.khb-badge-level { background: #4a7c59; }
.khb-badge-cert { background: #a8813f; }

.khb-badge-discount {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #a32d2d;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	z-index: 3;
}

.khb-card-desc-accent {
	color: var(--khb-desc-color, #2f7a6b);
}

.khb-review-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.khb-rating-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 38px;
	box-sizing: border-box;
	padding: 4px 8px;
	background: var(--khb-rating-bg, #1b5fc4);
	color: var(--khb-rating-text, #ffffff);
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .2px;
	flex-shrink: 0;
}
.khb-rating-star {
	color: var(--khb-rating-star, #ffd24a);
	font-size: .85em;
	line-height: 1;
}
.khb-size-small .khb-rating-badge { font-size: 14px; min-width: 34px; padding: 3px 7px; }
.khb-size-large .khb-rating-badge { font-size: 18px; min-width: 42px; padding: 5px 9px; }
.khb-review-text {
	font-size: 13.5px;
	color: #444;
}
.khb-chef-badge {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	background: #f1e6d6;
	color: #7a4a20 !important;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	text-decoration: none;
}
.khb-chef-badge:hover {
	background: #e6d7bd;
}

.khb-card-meta-row {
	font-size: 13.5px;
	color: #555;
	margin: 0 0 12px;
}

.khb-price-original {
	text-decoration: line-through;
	color: #999;
	font-size: 14px;
	margin-left: 8px;
}

.khb-schedule-field {
	margin-bottom: 12px;
	font-size: 13.5px;
}
.khb-schedule-field label {
	display: block;
	font-weight: 600;
	color: #7a4a20;
	margin-bottom: 4px;
}
.khb-schedule-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #e6e0d8;
	border-radius: 8px;
	font-size: 13.5px;
	color: #444;
	background: #fff;
}
.khb-schedule-contact-btn:hover {
	background: #000 !important;
	color: #fff !important;
}

.khb-card-divider {
	border: none;
	border-top: 1px solid #ece7de;
	margin: 4px 0 12px;
}

.khb-card-updated {
	font-size: 12px;
	color: #999;
	margin: 4px 0 12px;
}

.khb-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.khb-card-title {
	font-size: var(--khb-title-size, 18px);
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.4;
	color: var(--khb-title-color, #1a1a1a);
}

.khb-card-desc {
	font-size: var(--khb-desc-size, 14px);
	color: #555;
	margin: 0 0 12px;
	line-height: 1.6;
}

.khb-card-meta {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13.5px;
	color: #333;
}
.khb-card-meta li { margin-bottom: 4px; }
.khb-meta-label { font-weight: 600; color: #7a4a20; }
.khb-icon-check { color: #4a7c59; }

.khb-card-highlights {
	margin: 0 0 12px;
	padding-left: 18px;
	font-size: 13.5px;
	color: #444;
}
.khb-card-highlights li { margin-bottom: 3px; }

.khb-card-curriculum {
	font-size: 13.5px;
	margin-bottom: 12px;
}
.khb-card-curriculum ul {
	margin: 6px 0 0;
	padding-left: 18px;
	color: #444;
}

.khb-card-price {
	font-size: var(--khb-price-size, 20px);
	color: var(--khb-price-color, #b5652f);
	margin: auto 0 14px;
	padding-top: 8px;
}
.khb-price-line { display: block; font-size: 14px; color: #333; margin-bottom: 2px; }
.khb-price-line strong { color: var(--khb-price-color, #b5652f); }

.khb-card-cta {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	background: var(--khb-cta-bg, #cdb68a);
	color: var(--khb-cta-text, #4a3a1f) !important;
	text-decoration: none;
	font-weight: 600;
	padding: 12px 18px;
	border-radius: 8px;
	transition: background .2s ease;
}
.khb-card-cta:hover { background: var(--khb-cta-hover, #bda274); }

.khb-card-media-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.khb-no-course {
	color: #777;
	font-style: italic;
}

.khb-category-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.khb-filter-btn {
	cursor: pointer;
	border: 1px solid #e6e0d8;
	background: #fff;
	color: #444;
	font-size: 13.5px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.khb-filter-btn:hover {
	border-color: #cdb68a;
}
.khb-filter-btn.is-active {
	background: #7a4a20;
	border-color: #7a4a20;
	color: #fff;
}

/* สวิตช์เปิด/ปิดข้อมูลบนการ์ด: สไตล์ฝัง inline ใน KHB_CC_Shortcodes::build_field_toggle_bar() (กัน RUCSS ตัด class) */

/* v1.9.6 มือถือ: ปุ่มกรองหมวดขนม 3 ปุ่มต่อบรรทัด */
@media (max-width: 600px) {
	.khb-category-filter-bar {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}
	.khb-category-filter-bar .khb-filter-btn {
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 9px 4px !important;
		font-size: 12.5px !important;
		line-height: 1.25 !important;
		text-align: center !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}
	.khb-category-filter-bar .khb-filter-count {
		display: block !important;
		margin: 2px 0 0 !important;
		font-size: 11.5px !important;
	}
}

.khb-card-wrap { display: block; }

/* ---------------- ขนาดการ์ด: small / medium (ค่าเริ่มต้น ไม่ต้อง override) / large ---------------- */
.khb-size-small .khb-card-body { padding: 12px 14px 14px; }
.khb-size-small .khb-card-title { font-size: 15px; }
.khb-size-small .khb-card-desc,
.khb-size-small .khb-card-meta-row,
.khb-size-small .khb-review-text,
.khb-size-small .khb-card-highlights,
.khb-size-small .khb-card-meta,
.khb-size-small .khb-price-line { font-size: 12.5px; }
.khb-size-small .khb-card-price { font-size: 15px; }
.khb-size-small .khb-card-cta { padding: 9px 14px; font-size: 13px; }

.khb-size-large .khb-card-body { padding: 24px 26px 26px; }
.khb-size-large .khb-card-title { font-size: 21px; }
.khb-size-large .khb-card-desc,
.khb-size-large .khb-card-meta-row,
.khb-size-large .khb-review-text,
.khb-size-large .khb-card-highlights,
.khb-size-large .khb-card-meta,
.khb-size-large .khb-price-line { font-size: 15.5px; }
.khb-size-large .khb-card-price { font-size: 19px; }
.khb-size-large .khb-card-cta { padding: 14px 20px; font-size: 16px; }

/* ---------------- Admin meta box ---------------- */
.khb-type-radio-group { margin-bottom: 8px; }
.khb-type-radio { display: block; padding: 4px 0; cursor: pointer; }
.khb-fieldset h4 { margin-top: 0; }
.khb-meta-table th { width: 220px; }

/* ================================================================
   v1.6.0 — Private Select (compact tile + panel), ชิปนับจำนวน, ปุ่มดูเพิ่ม
   ทุก selector ขึ้นต้นด้วย .khb- เพื่อไม่ชนกับ Flatsome
   ================================================================ */

.khb-grid-wrap { display: block; }

/* คอลัมน์ 5-6 สำหรับ tile ที่เล็กกว่าการ์ดคอร์สปกติ */
.khb-course-grid.khb-cols-5 { grid-template-columns: repeat(5, 1fr); }
.khb-course-grid.khb-cols-6 { grid-template-columns: repeat(6, 1fr); }

.khb-pselect-grid { gap: 12px; }
.khb-pselect-grid > .khb-filter-item { display: flex; flex-direction: column; }
.khb-pselect-grid.khb-cols-4,
.khb-pselect-grid.khb-cols-5,
.khb-pselect-grid.khb-cols-6 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

@media (max-width: 849px) {
	.khb-course-grid.khb-cols-5,
	.khb-course-grid.khb-cols-6 { grid-template-columns: repeat(3, 1fr); }
	.khb-pselect-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 549px) {
	/* มือถือให้เหลือ 2 คอลัมน์ ไม่ใช่ 1 — tile เล็กพออยู่แล้ว และเลื่อนดู 100 เมนูแบบคอลัมน์เดียวนานเกินไป */
	.khb-pselect-grid,
	.khb-course-grid.khb-cols-5,
	.khb-course-grid.khb-cols-6 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------------- Tile ---------------- */
.khb-pselect-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ece6dd;
	border-radius: var(--khb-radius, 12px);
	overflow: hidden;
	height: 100%;
	transition: border-color .15s ease, transform .15s ease;
}
.khb-pselect-tile:hover,
.khb-pselect-tile:focus-within {
	border-color: #cdb68a;
	transform: translateY(-2px);
}
.khb-pselect-tile-media { line-height: 0; background: #f6f2ec; }
.khb-pselect-tile-media img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.khb-pselect-tile-time {
	background: rgba(255, 255, 255, .92);
	color: #4a3a1f;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	padding: 3px 8px;
	border-radius: 5px;
}
.khb-pselect-tile-discount { font-size: 11px; padding: 3px 8px; }
.khb-pselect-tile-body {
	padding: 9px 11px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}
.khb-pselect-tile-title {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
}
.khb-pselect-tile-price { margin: 0; font-size: 13.5px; font-weight: 600; }

/* ปุ่มโปร่งใสคลุมทั้ง tile — เก็บ focus ring ไว้เพื่อการใช้งานด้วยคีย์บอร์ด */
.khb-pselect-tile-hit {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	border-radius: inherit;
}
.khb-pselect-tile-hit:focus-visible { outline: 2px solid #7a4a20; outline-offset: 2px; }

/* ---------------- Panel ---------------- */
.khb-pselect-panel-host { grid-column: 1 / -1; }
.khb-pselect-panel-inner {
	border: 1px solid #cdb68a;
	border-radius: 12px;
	padding: 18px 20px 20px;
	margin: 4px 0 8px;
}
.khb-pselect-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
}
.khb-pselect-panel-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.khb-pselect-panel-desc { margin: 0; font-size: 14px; color: #5a5347; line-height: 1.6; }
.khb-pselect-panel-close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #8a8276;
	cursor: pointer;
	padding: 0 4px;
}
.khb-pselect-panel-close:hover { color: #3a342b; }

.khb-pselect-panel-specs {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.khb-pselect-panel-specs li {
	background: var(--khb-spec-bg, rgba(0, 0, 0, .04));
	border-radius: 8px;
	padding: 9px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}
.khb-pselect-spec-label { font-size: 12px; color: #7d7568; }
.khb-pselect-spec-value { font-size: 14.5px; font-weight: 600; color: #2f2a22; }
.khb-pselect-panel-output { margin: 0 0 16px; font-size: 14px; color: #4a4338; line-height: 1.65; }
.khb-pselect-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.khb-pselect-panel-cta { margin: 0; }
.khb-pselect-panel-more {
	font-size: 13.5px;
	font-weight: 600;
	color: #7a4a20;
	text-decoration: underline;
}

/* ---------------- ชิปนับจำนวน + ปุ่มดูเพิ่ม ---------------- */
.khb-filter-count {
	display: inline-block;
	margin-left: 5px;
	font-size: 11.5px;
	font-weight: 600;
	opacity: .65;
}
.khb-filter-empty {
	margin: 24px 0;
	text-align: center;
	color: #777;
	font-size: 14.5px;
}
.khb-load-more-wrap { text-align: center; margin-top: 22px; }
.khb-load-more {
	cursor: pointer;
	border: 1px solid #cdb68a;
	background: #fff;
	color: #7a4a20;
	font-size: 14.5px;
	font-weight: 600;
	padding: 11px 26px;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
}
.khb-load-more:hover { background: #7a4a20; border-color: #7a4a20; color: #fff; }
.khb-load-more-count { font-weight: 400; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
	.khb-pselect-tile { transition: none; }
	.khb-pselect-tile:hover { transform: none; }
}

/* ---------------- v1.6.2 ช่องค้นหา ---------------- */
.khb-grid-search-wrap { margin: 0 0 12px; }
.khb-grid-search {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.5;
	padding: 11px 16px;
	border: 1px solid #ddd3c4;
	border-radius: 999px;
	background: #fff;
	color: #2f2a22;
	-webkit-appearance: none;
	appearance: none;
}
.khb-grid-search::placeholder { color: #a39a8c; }
.khb-grid-search:focus {
	outline: none;
	border-color: #7a4a20;
	box-shadow: 0 0 0 3px rgba(122, 74, 32, .12);
}
/* ปุ่มกากบาทของ input[type=search] บน Chrome/Safari — ให้เห็นชัดขึ้น */
.khb-grid-search::-webkit-search-cancel-button { cursor: pointer; opacity: .55; }
.khb-grid-search::-webkit-search-cancel-button:hover { opacity: 1; }

@media (max-width: 549px) {
	.khb-grid-search { max-width: 100%; font-size: 16px; } /* 16px กัน iOS ซูมอัตโนมัติตอนโฟกัส */
}

/* ---------------- v1.6.3 หัวข้อการ์ดเป็นลิงก์ ---------------- */
.khb-card-title-link { color: inherit; text-decoration: none; }
.khb-card-title-link:hover,
.khb-card-title-link:focus { text-decoration: underline; }
/* การ์ดที่ไม่มีปุ่ม CTA ต้องไม่ทิ้งช่องว่างก้นการ์ดผิดจังหวะ */
.khb-card-body > *:last-child { margin-bottom: 0 !important; }

/* ---------------------------------------------------------------------
 * [khb_related_courses] — v1.8.0
 * โหมด grid / carousel ตั้งค่าได้ที่ Course Card > ตั้งค่า > คอร์สที่เกี่ยวข้อง
 * auto = grid บนจอกว้าง แล้วสลับเป็นเลื่อนแนวนอนบนจอแคบกว่า 600px
 * ------------------------------------------------------------------- */
.khb-related-wrap {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin: 24px 0;
}
.khb-related-wrap .khb-related-item { min-width: 0; }

.khb-related-wrap.khb-related-carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}
.khb-related-carousel .khb-related-item {
	flex: 0 0 220px;
	scroll-snap-align: start;
}

@media (max-width: 600px) {
	.khb-related-wrap.khb-related-auto {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}
	.khb-related-auto .khb-related-item {
		flex: 0 0 220px;
		scroll-snap-align: start;
	}
}

/* ================================================================
   v1.10.0 — Promotion Countdown (5 สไตล์)
   สี: --khb-promo-bg / --khb-promo-text / --khb-promo-num ตั้งบนตัวการ์ดจากหน้าตั้งค่า
   ================================================================ */
.khb-promo-num { font-variant-numeric: tabular-nums; }

/* A — แถบโปร่งแสงทับรูป */
.khb-promo-bar-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; }
.khb-promo-bar {
	display: flex; justify-content: center; align-items: center; gap: 8px;
	padding: 8px; background: rgba(20,20,20,.78);
	color: var(--khb-promo-text, #fff); font-size: 14px;
}
.khb-promo-bar .khb-promo-num { color: var(--khb-promo-num, #ffd24a); font-size: 15px; }

/* C — แถบสีเหนือรูป (อยู่ในกรอบการ์ด) */
.khb-promo-top {
	display: flex; justify-content: space-between; align-items: center; gap: 8px;
	padding: 9px 14px; background: var(--khb-promo-bg, #c62828);
	color: var(--khb-promo-text, #fff); font-size: 13.5px; line-height: 1.35;
}
.khb-promo-top .khb-promo-num {
	flex-shrink: 0; white-space: nowrap; padding: 2px 8px; border-radius: 6px;
	background: rgba(0,0,0,.25); color: var(--khb-promo-num, #ffd24a);
}

/* B — กล่องตัวเลข */
.khb-promo-boxes { margin: 0 0 12px; }
.khb-promo-boxes-label { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--khb-promo-bg, #c62828); }
.khb-promo-boxes-grid { display: grid; gap: 8px; }
.khb-promo-box {
	text-align: center; padding: 6px 0; border-radius: 8px;
	background: #fff3f0; border: 1px solid #f3c9bf;
	background: color-mix(in srgb, var(--khb-promo-bg, #c62828) 8%, #fff);
	border-color: color-mix(in srgb, var(--khb-promo-bg, #c62828) 28%, #fff);
}
.khb-promo-box .khb-promo-num { display: block; font-size: 20px; line-height: 1.2; color: var(--khb-promo-bg, #c62828); }
.khb-promo-box small { font-size: 11px; color: #8a6a62; }

/* D — ป้ายเล็กข้างราคา */
.khb-promo-pill {
	margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
	color: var(--khb-promo-bg, #c62828); background: #fdecea; border: 1px solid #f3c9bf;
	background: color-mix(in srgb, var(--khb-promo-bg, #c62828) 9%, #fff);
	border-color: color-mix(in srgb, var(--khb-promo-bg, #c62828) 30%, #fff);
}

/* E — แถบเวลาที่เหลือ */
.khb-promo-progress { margin: 0 0 12px; }
.khb-promo-progress-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 13px; color: var(--khb-promo-bg, #c62828); }
.khb-promo-pct { color: #777; flex-shrink: 0; }
.khb-promo-track { height: 8px; border-radius: 999px; overflow: hidden; background: #f1e6d6; }
.khb-promo-fill { height: 100%; border-radius: 999px; background: var(--khb-promo-bg, #c62828); transition: width 1s linear; }

.khb-promo-ended { margin: 0 0 12px; font-size: 13px; color: #888; text-align: center; }

/* โหมดเร่งด่วน — JS เติม class นี้ให้ตัวการ์ดเมื่อเวลาเหลือน้อยกว่าที่ตั้งไว้ */
@keyframes khb-promo-blink { 50% { opacity: .35; } }
.khb-promo-urgent .khb-promo-num { animation: khb-promo-blink 1s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) {
	.khb-promo-urgent .khb-promo-num { animation: none; }
	.khb-promo-fill { transition: none; }
}

.khb-size-small .khb-promo-bar,
.khb-size-small .khb-promo-top { font-size: 12.5px; }
.khb-size-small .khb-promo-box .khb-promo-num { font-size: 17px; }
.khb-size-large .khb-promo-top { font-size: 15px; }
.khb-size-large .khb-promo-box .khb-promo-num { font-size: 23px; }

/* ================================================================
   v1.11.0 — พรีวิว Promotion Countdown ในหน้าแก้ไขคอร์ส (แถบข้าง)
   ================================================================ */
.khb-pp-tabs { display: flex; gap: 4px; margin: 0 0 8px; border-bottom: 1px solid #dcdcde; }
.khb-pp-tab { border: 0; background: none; padding: 6px 8px; cursor: pointer; border-bottom: 3px solid transparent; color: #50575e; font: inherit; }
.khb-pp-tab.is-on { border-bottom-color: #2271b1; color: #2271b1; font-weight: 600; }
.khb-pp-sim { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.khb-pp-chip { border: 1px solid #c3c4c7; background: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; cursor: pointer; font-family: inherit; }
.khb-pp-chip.is-on { background: #2271b1; border-color: #2271b1; color: #fff; }
.khb-pp-stage { background: #f6f3ee; border: 1px dashed #c3c4c7; padding: 10px; }
.khb-pp-stage .khb-course-card { max-width: 300px; margin: 0 auto; box-shadow: none; transform: none; }
.khb-pp-stage .khb-card-body { padding: 12px 14px 14px; }
.khb-pp-stage .khb-card-title { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.khb-pp-stage .khb-card-media { aspect-ratio: 3 / 2; }
.khb-pp-stage .khb-card-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; font-size: 18px; color: #b5652f; }
.khb-pp-stage .khb-price-original { margin-left: 0; }
.khb-pp-stage .khb-card-cta { display: block; text-align: center; padding: 10px; border-radius: 8px; background: #cdb68a; color: #4a3a1f; font-weight: 600; text-decoration: none; }
.khb-pp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.khb-pp-cmp { cursor: pointer; border: 2px solid transparent; border-radius: 8px; padding: 3px; }
.khb-pp-cmp.is-on { border-color: #2271b1; }
.khb-pp-cmp p { margin: 0 0 3px; font-size: 11px; font-weight: 600; text-align: center; }
.khb-pp-cmp .khb-course-card { zoom: .42; pointer-events: none; }
.khb-pp-note { margin-top: 8px; }
.khb-pp-sticky { position: sticky; top: 40px; max-width: 320px; }
.khb-pp-title { display: block; margin: 0 0 6px; font-size: 13px; }
@media (max-width: 1100px) {
	.khb-pp-cell { display: block; width: auto !important; padding: 8px 0 0 !important; }
}
