/* =============================================================
   How to Consume – Planner styles
   Faithful port of bloomlab.id carakonsumsi-styles.css
   Uses ck2- prefix; scoped to body.ck2-page / .ck2-main
   ============================================================= */

body.ck2-page {
	--ck2-ink: #153f43;
	--ck2-muted: #60767a;
	--ck2-line: rgba(21, 63, 67, 0.14);
	--ck2-paper: #ffffff;
	--ck2-soft: #f4faf7;
	--ck2-mint: #e9f5ef;
	--ck2-green: #18705f;
	--ck2-green-dark: #0f514d;
	--ck2-coral: #d97859;
	--ck2-gold: #f0b94e;
	--ck2-shadow: 0 18px 42px rgba(21, 63, 67, 0.1);
	--ck2-radius: 8px;
	margin: 0;
	background: var(--ck2-paper);
	color: var(--ck2-ink);
	font-family: var(--tb-font-sans, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-weight: 600;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* hide popup overlays on this page */
body.ck2-page [id*="popup"],
body.ck2-page [class*="popup-promo"] {
	display: none !important;
}

.ck2-main,
.ck2-main * {
	box-sizing: border-box;
}

.ck2-main [hidden] {
	display: none !important;
}

.ck2-main img {
	max-width: 100%;
	height: auto;
}

/* ── Shell / wrap ─────────────────────────────────────────── */

.ck2-shell {
	min-height: 100vh;
	padding: 52px 0 72px;
	background:
		linear-gradient(180deg, rgba(244, 250, 247, 0.96), rgba(255, 255, 255, 0.98) 44%),
		radial-gradient(circle at top right, rgba(240, 185, 78, 0.16), transparent 32%);
}

.ck2-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-inline: 24px;
}

/* ── Top bar ──────────────────────────────────────────────── */

.ck2-topbar {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.ck2-back-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid var(--ck2-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.84);
	color: var(--ck2-green-dark);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────── */

.ck2-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	gap: 28px;
	align-items: end;
	margin-bottom: 28px;
}

.ck2-eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ck2-green-dark);
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 850;
	letter-spacing: 0;
}

.ck2-hero h1,
.ck2-panel h2,
.ck2-preview h2,
.ck2-result h2,
.ck2-result h3,
.ck2-result-product h4 {
	margin: 0;
	color: var(--ck2-ink);
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.08;
}

.ck2-hero h1 {
	max-width: 780px;
	margin-top: 16px;
	font-size: clamp(2.1rem, 4.6vw, 4.15rem);
}

.ck2-hero p {
	max-width: 700px;
	margin: 18px 0 0;
	color: var(--ck2-muted);
	font-size: 1.08rem;
}

.ck2-hero-aside {
	display: grid;
	gap: 10px;
}

.ck2-hero-aside span {
	display: block;
	padding: 13px 14px;
	border: 1px solid var(--ck2-line);
	border-left: 4px solid var(--ck2-coral);
	border-radius: var(--ck2-radius);
	background: rgba(255, 255, 255, 0.88);
	color: var(--ck2-green-dark);
	font-size: 0.94rem;
	font-weight: 850;
}

/* ── Grid (form + preview aside) ─────────────────────────── */

.ck2-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 22px;
	align-items: start;
}

.ck2-form {
	display: grid;
	gap: 16px;
}

/* ── Panels ───────────────────────────────────────────────── */

.ck2-panel,
.ck2-preview,
.ck2-result,
.ck2-result-box,
.ck2-result-product {
	border: 1px solid var(--ck2-line);
	border-radius: var(--ck2-radius);
	background: var(--ck2-paper);
	box-shadow: 0 8px 22px rgba(21, 63, 67, 0.05);
}

.ck2-panel,
.ck2-preview {
	padding: 20px;
}

.ck2-panel-head {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.ck2-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--ck2-green-dark);
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 850;
}

.ck2-panel h2 {
	font-size: 1.25rem;
}

.ck2-panel p,
.ck2-preview p {
	margin: 5px 0 0;
	color: var(--ck2-muted);
}

/* ── Product picker ───────────────────────────────────────── */

.ck2-product-picker {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ck2-product-option,
.ck2-radio {
	display: block;
	cursor: pointer;
}

.ck2-product-option input,
.ck2-radio input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.ck2-product-card,
.ck2-radio span {
	display: flex;
	align-items: center;
	min-height: 78px;
	border: 1px solid var(--ck2-line);
	border-radius: var(--ck2-radius);
	background: #ffffff;
	transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ck2-product-card {
	gap: 12px;
	padding: 10px;
}

.ck2-product-card img {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.ck2-product-card strong,
.ck2-product-card em {
	display: block;
	font-style: normal;
}

.ck2-product-card strong {
	font-size: 1rem;
	color: var(--ck2-ink);
	line-height: 1.2;
}

.ck2-product-card em {
	margin-top: 3px;
	color: var(--ck2-muted);
	font-size: 0.83rem;
	line-height: 1.3;
}

/* ── Radio choices ────────────────────────────────────────── */

.ck2-choice-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ck2-radio span {
	justify-content: center;
	padding: 13px 12px;
	color: var(--ck2-ink);
	font-weight: 850;
	text-align: center;
}

/* hover / checked / focus states */

.ck2-product-option:hover .ck2-product-card,
.ck2-radio:hover span {
	transform: translateY(-1px);
	border-color: rgba(24, 112, 95, 0.34);
}

.ck2-product-option input:checked + .ck2-product-card,
.ck2-radio input:checked + span {
	border-color: var(--ck2-green);
	background: var(--ck2-mint);
	box-shadow: inset 0 0 0 1px rgba(24, 112, 95, 0.28);
}

.ck2-product-option input:focus-visible + .ck2-product-card,
.ck2-radio input:focus-visible + span,
.ck2-submit:focus-visible,
.ck2-btn:focus-visible,
.ck2-back-link:focus-visible,
.ck2-inline-actions a:focus-visible {
	outline: 3px solid rgba(24, 112, 95, 0.24);
	outline-offset: 3px;
}

/* ── Conditional panels ───────────────────────────────────── */

.ck2-conditional {
	border-color: rgba(24, 112, 95, 0.22);
	background: var(--ck2-soft);
}

/* ── Form actions ─────────────────────────────────────────── */

.ck2-form-actions {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.ck2-submit,
.ck2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 18px;
	border: 1px solid transparent;
	border-radius: var(--ck2-radius);
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 850;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.ck2-submit,
.ck2-btn-primary {
	background: var(--ck2-green);
	color: #ffffff;
	box-shadow: 0 12px 22px rgba(24, 112, 95, 0.2);
}

.ck2-submit:hover,
.ck2-btn-primary:hover {
	background: var(--ck2-green-dark);
}

.ck2-btn-secondary {
	border-color: var(--ck2-line);
	background: #ffffff;
	color: var(--ck2-green-dark);
}

.ck2-error {
	flex: 1 1 260px;
	margin: 0;
	color: #9b2f26;
	font-weight: 850;
}

/* ── Preview aside ────────────────────────────────────────── */

.ck2-preview {
	position: sticky;
	top: 18px;
	background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.ck2-preview h2 {
	font-size: 1.1rem;
}

.ck2-preview ul {
	display: grid;
	gap: 11px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.ck2-preview li {
	position: relative;
	padding-left: 17px;
	color: var(--ck2-muted);
	font-size: 0.95rem;
}

.ck2-preview li::before,
.ck2-result-box li::before,
.ck2-result-product li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--ck2-gold);
}

/* ── Result ───────────────────────────────────────────────── */

.ck2-result {
	margin-top: 24px;
	padding: 22px;
	scroll-margin-top: 24px;
}

.ck2-result-head {
	padding-bottom: 14px;
}

.ck2-result h2 {
	margin-top: 10px;
	font-size: clamp(1.55rem, 2.7vw, 2.2rem);
}

.ck2-result-head p {
	max-width: 780px;
	margin: 10px 0 0;
	color: var(--ck2-muted);
}

.ck2-result-head small {
	display: block;
	margin-top: 10px;
	color: var(--ck2-green-dark);
	font-weight: 850;
}

/* ── Context + safety chips ───────────────────────────────── */

.ck2-context-chips,
.ck2-safety-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ck2-context-chips {
	margin-top: 12px;
}

.ck2-context-chips span,
.ck2-safety-chips span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 10px;
	border: 1px solid rgba(24, 112, 95, 0.18);
	border-radius: 999px;
	background: var(--ck2-soft);
	color: var(--ck2-green-dark);
	font-size: 0.86rem;
	font-weight: 850;
	line-height: 1.2;
}

.ck2-safety-chips {
	margin-top: 12px;
}

.ck2-safety-chips span {
	border-color: rgba(240, 185, 78, 0.34);
	background: rgba(240, 185, 78, 0.12);
	color: #7a4b11;
}

/* ── Result actions ───────────────────────────────────────── */

.ck2-result-actions,
.ck2-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ck2-result-actions {
	justify-content: flex-start;
}

.ck2-result-actions-compact {
	margin-top: 14px;
}

/* ── Result columns ───────────────────────────────────────── */

.ck2-result-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.ck2-result-box {
	padding: 16px;
}

.ck2-result h3 {
	font-size: 1.05rem;
}

.ck2-result-box ul,
.ck2-result-product ul {
	display: grid;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.ck2-result-box li,
.ck2-result-product li {
	position: relative;
	padding-left: 17px;
	color: var(--ck2-muted);
}

/* ── Schedule card ────────────────────────────────────────── */

.ck2-schedule-card {
	margin-top: 6px;
	background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.ck2-schedule-rows {
	display: grid;
	gap: 9px;
	margin-top: 12px;
}

.ck2-schedule-row {
	display: grid;
	grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 11px 12px;
	border: 1px solid rgba(21, 63, 67, 0.1);
	border-radius: var(--ck2-radius);
	background: #ffffff;
}

.ck2-schedule-row span {
	color: var(--ck2-green-dark);
	font-size: 0.86rem;
	font-weight: 900;
	line-height: 1.25;
}

.ck2-schedule-row p {
	margin: 0;
	color: var(--ck2-muted);
	font-size: 0.94rem;
	line-height: 1.45;
}

/* ── Product result cards ─────────────────────────────────── */

.ck2-product-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 0;
}

.ck2-result-product {
	padding: 14px;
}

.ck2-result-product > span {
	display: inline-flex;
	margin-bottom: 9px;
	color: var(--ck2-coral);
	font-size: 0.82rem;
	font-weight: 850;
}

.ck2-result-product h4 {
	font-size: 1.24rem;
}

.ck2-inline-actions {
	margin-top: 12px;
}

.ck2-inline-actions a,
.ck2-inline-actions span {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	padding: 8px 11px;
	border: 1px solid var(--ck2-line);
	border-radius: var(--ck2-radius);
	color: var(--ck2-green-dark);
	font-size: 0.9rem;
	font-weight: 850;
	text-decoration: none;
	cursor: pointer;
}

/* ── Notes / safe section ─────────────────────────────────── */

.ck2-notes {
	margin-top: 14px;
	background: var(--ck2-soft);
}

/* ── Detail accordion stack ───────────────────────────────── */

.ck2-detail-stack {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.ck2-detail {
	border: 1px solid var(--ck2-line);
	border-radius: var(--ck2-radius);
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(21, 63, 67, 0.04);
	overflow: hidden;
}

.ck2-detail summary {
	position: relative;
	min-height: 48px;
	padding: 13px 46px 13px 15px;
	color: var(--ck2-ink);
	cursor: pointer;
	font-weight: 900;
	list-style: none;
}

.ck2-detail summary::-webkit-details-marker {
	display: none;
}

.ck2-detail summary::after {
	content: "+";
	position: absolute;
	right: 15px;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(24, 112, 95, 0.2);
	border-radius: 999px;
	color: var(--ck2-green);
	transform: translateY(-50%);
}

.ck2-detail[open] summary {
	border-bottom: 1px solid var(--ck2-line);
}

.ck2-detail[open] summary::after {
	content: "-";
}

.ck2-detail-body {
	padding: 14px;
}

.ck2-detail-body > ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ck2-detail-body > ul li {
	position: relative;
	padding-left: 17px;
	color: var(--ck2-muted);
}

.ck2-detail-body > ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--ck2-gold);
}

/* ── Shopee CTA in result cards ───────────────────────────── */

.ck2-main .tb-shopee-cta {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	padding: 8px 11px;
	border: 1px solid var(--ck2-green);
	border-radius: var(--ck2-radius);
	background: var(--ck2-green);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 850;
	text-decoration: none;
	cursor: pointer;
}

.ck2-main .tb-shopee-cta:hover {
	background: var(--ck2-green-dark);
	border-color: var(--ck2-green-dark);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 980px) {
	.ck2-shell {
		padding: 36px 0 56px;
	}

	.ck2-hero,
	.ck2-grid {
		grid-template-columns: 1fr;
	}

	.ck2-preview {
		position: static;
	}

	.ck2-result-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	.ck2-wrap {
		padding-inline: 16px;
	}

	.ck2-topbar {
		justify-content: flex-start;
	}

	.ck2-hero h1 {
		font-size: 2.25rem;
	}

	.ck2-product-picker,
	.ck2-choice-row,
	.ck2-result-columns,
	.ck2-product-results,
	.ck2-schedule-row {
		grid-template-columns: 1fr;
	}

	.ck2-panel,
	.ck2-preview,
	.ck2-result,
	.ck2-result-box,
	.ck2-result-product {
		padding: 16px;
	}

	.ck2-product-card,
	.ck2-radio span {
		min-height: 68px;
	}

	.ck2-result h2 {
		font-size: 1.85rem;
	}

	.ck2-form-actions,
	.ck2-submit,
	.ck2-btn {
		width: 100%;
	}

	.ck2-context-chips span,
	.ck2-safety-chips span {
		font-size: 0.82rem;
	}
}
