/* Widget Template List (TICKET-022b, scope replaced total 2026-08-27) —
   pure showcase/gallery. See assets/js/widgets/template-list-widget.js
   for the AJAX search/filter/sort/pagination + Portfolio modal logic
   this stylesheet supports. */

.akn-tpl-list-widget {
	--akn-tpl-primary: #2D5A4D;
	--akn-tpl-primary-dark: #1D3B32;
	--akn-tpl-primary-light: #3E7A68;
	--akn-tpl-accent: #D4B038;
	--akn-tpl-accent-light: #E6C665;
	--akn-tpl-sage: #EAF0EC;
	--akn-tpl-display: 'Gilda Display', Georgia, 'Times New Roman', serif;
	--akn-tpl-n900: #1A1F1D;
	--akn-tpl-n700: #4A5550;
	--akn-tpl-n500: #8A9490;
	--akn-tpl-n300: #D8DEDB;
	--akn-tpl-n100: #F4F6F5;
	font-family: inherit;
	color: var(--akn-tpl-n900);
	width: 100%;
	box-sizing: border-box;
}

.akn-tpl-list-widget *,
.akn-tpl-list-widget *::before,
.akn-tpl-list-widget *::after {
	box-sizing: border-box;
}

/* ---------- Filter bar ---------- */

/* Filter bar layout — matches admin ".search-box"/tabs pill-group visual
   language (assets/css/admin/admin.css), and fixed to stay usable on
   tablet/mobile (2026-08-27 fix): search always gets its own full-width
   row via `flex-basis:100%` at <=1024px, which pushes categories+sort
   onto the SAME next line together (pure flex-wrap behavior, no extra
   markup needed). */
.akn-tpl-list-widget__filters {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

/* ---------- Filter layouts (chip / compact / sidebar) ---------- */

.akn-tpl-list-widget__layout {
	display: block;
}

/* Keep the whole filter subtree (incl. the open `.akn-tpl-dd__panel`)
   painting above the results grid — the grid otherwise covers the
   dropdown panel (2026-08-28). */
.akn-tpl-list-widget__filters {
	position: relative;
	z-index: 3;
}
.akn-tpl-list-widget__results {
	position: relative;
	z-index: 1;
}
.akn-tpl-dd.is-open {
	position: relative;
	z-index: 40;
}

/* Sticky-on-scroll (Style tab → Filter → "Sticky saat Scroll", Premium+
   — PHP gates data-filter-sticky, this only reacts to it). */
.akn-tpl-list-widget[data-filter-sticky="1"] .akn-tpl-list-widget__filters {
	position: sticky;
	top: var(--akn-tpl-sticky-top, 16px);
	z-index: 5;
}

/* Compact — one no-wrap row. `.akn-tpl-list-widget__filter-group`
   (search + filter dropdowns) sits on the left and grows; `__sort` is a
   sibling pinned to the far right via space-between. Adding a new filter
   later = just drop another `.akn-tpl-dd` inside the group. */
.akn-tpl-list-widget--compact .akn-tpl-list-widget__filters {
	flex-wrap: nowrap;
	justify-content: space-between;
}
.akn-tpl-list-widget--compact .akn-tpl-list-widget__search,
.akn-tpl-list-widget--compact .akn-tpl-dd,
.akn-tpl-list-widget--compact .akn-tpl-list-widget__filter-group,
.akn-tpl-list-widget--compact .akn-tpl-list-widget__sort {
	order: 0;
}
.akn-tpl-list-widget--compact .akn-tpl-list-widget__filter-group {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}
.akn-tpl-list-widget--compact .akn-tpl-list-widget__search {
	max-width: none;
	flex: 1 1 auto;
	min-width: 120px;
}
.akn-tpl-list-widget--compact .akn-tpl-list-widget__sort {
	flex: 0 0 auto;
	margin-left: 12px;
}

@media (max-width: 782px) {
	.akn-tpl-list-widget--compact .akn-tpl-list-widget__filters {
		flex-wrap: wrap;
		row-gap: 10px;
	}
	.akn-tpl-list-widget--compact .akn-tpl-list-widget__search {
		flex: 1 1 100%;
		order: 0;
	}
	/* Row 2 = [ filter-group (Kategori + Paket) | Sort ] — two flex items
	   that both shrink to 0, so they always stay on ONE line; the trigger
	   labels truncate with an ellipsis instead of wrapping the row. */
	.akn-tpl-list-widget--compact .akn-tpl-list-widget__filter-group {
		display: flex;
		flex: 2 1 0;
		min-width: 0;
		gap: 8px;
		order: 1;
	}
	.akn-tpl-list-widget.akn-tpl-list-widget--compact .akn-tpl-list-widget__filter-group .akn-tpl-dd {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
	}
	.akn-tpl-list-widget--compact .akn-tpl-list-widget__sort {
		flex: 1 1 0;
		min-width: 0;
		order: 2;
		margin-left: 0;
		max-width: none;
	}
	.akn-tpl-list-widget--compact .akn-tpl-dd__trigger {
		gap: 6px;
		padding: 0 10px;
	}
	/* Sort trigger is icon-only on this row so the two real filters keep
	   room for their labels. */
	.akn-tpl-list-widget--compact .akn-tpl-list-widget__sort .akn-tpl-dd__label {
		display: none;
	}
	.akn-tpl-list-widget--compact .akn-tpl-list-widget__sort .akn-tpl-dd__trigger {
		justify-content: center;
	}
	.akn-tpl-list-widget.akn-tpl-list-widget--compact .akn-tpl-list-widget__sort .akn-tpl-dd {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
	}
}

/* Sidebar — aside column + results column. */
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__layout {
	display: grid;
	grid-template-columns: var(--akn-tpl-sidebar-w, 260px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__filters {
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	margin-bottom: 0;
}
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__search,
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sidebar-sec,
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort {
	order: 0;
}
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__search {
	max-width: none;
	width: 100%;
}
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort {
	margin-left: 0;
}
.akn-tpl-list-widget__sidebar-sec {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.akn-tpl-list-widget__sidebar-title {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--akn-tpl-n500);
}
.akn-tpl-list-widget__categories--vertical {
	flex-direction: column;
	align-items: stretch;
	background: transparent;
	padding: 0;
	gap: 2px;
	overflow: visible;
}
.akn-tpl-list-widget__categories--vertical .akn-tpl-list-widget__cat {
	text-align: left;
	width: 100%;
}

/* Sidebar "Paket" — same vertical single-select list as the categories. */
.akn-tpl-list-widget__packages--vertical {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
}
.akn-tpl-list-widget__pkg {
	border: none;
	background: transparent;
	border-radius: 7px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--akn-tpl-n700);
	cursor: pointer;
	transition: .12s ease;
	text-align: left;
	width: 100%;
	-webkit-tap-highlight-color: transparent;
}
.akn-tpl-list-widget__pkg:hover {
	color: var(--akn-tpl-n900);
}
.akn-tpl-list-widget__pkg.is-active {
	background: #fff;
	color: var(--akn-tpl-primary);
}
.akn-tpl-list-widget__pkg-count {
	color: var(--akn-tpl-n500);
	font-weight: 600;
	margin-left: 4px;
}
.akn-tpl-list-widget__pkg.is-empty {
	opacity: .45;
}
.akn-tpl-list-widget__cat-more {
	border: none;
	background: none;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	color: var(--akn-tpl-primary);
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 2px;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	-webkit-appearance: none;
}
.akn-tpl-list-widget__cat-more:hover,
.akn-tpl-list-widget__cat-more:focus,
.akn-tpl-list-widget__cat-more:focus-visible,
.akn-tpl-list-widget__cat-more:active {
	background: none;
	outline: none;
	box-shadow: none;
	color: var(--akn-tpl-primary);
}
.akn-tpl-list-widget__price-filter {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.akn-tpl-list-widget__price-opt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--akn-tpl-n700);
	cursor: pointer;
}
.akn-tpl-list-widget__price-opt input {
	width: 16px;
	height: 16px;
	accent-color: var(--akn-tpl-primary);
}

/* Search row (sidebar) — search box + the mobile "Filter" trigger. On
   desktop/tablet the trigger is hidden and this is just the search box. */
.akn-tpl-list-widget__search-row {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}
.akn-tpl-list-widget__search-row .akn-tpl-list-widget__search {
	flex: 1 1 auto;
}
.akn-tpl-list-widget__sheet-toggle {
	display: none;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	padding: 0 16px;
	background: var(--akn-tpl-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
/* Sort trigger is the secondary of the pair. */
.akn-tpl-list-widget__sort-toggle {
	background: transparent;
	color: var(--akn-tpl-n900);
	border: 1px solid var(--akn-tpl-n300);
}
.akn-tpl-list-widget__sheet-toggle svg {
	width: 16px;
	height: 16px;
}
/* Label hidden by default — "Gunakan Label" switcher reveals it. */
.akn-tpl-list-widget__sheet-toggle-label {
	display: none;
}
.akn-tpl-list-widget__filter-toggle-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #fff;
	color: var(--akn-tpl-primary);
	font-size: 11px;
	font-weight: 700;
}

.akn-tpl-list-widget__sheet-overlay,
.akn-tpl-list-widget__sheet-head,
.akn-tpl-list-widget__sheet-foot {
	display: none;
}

/* Desktop default — panels just stack in the aside column. */
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__filter-panels,
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---- Tablet (601–900px): every sidebar section becomes a popover
   dropdown; Sort stays pinned to the far right. ---- */
@media (min-width: 601px) and (max-width: 900px) {
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__filters {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 14px;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__search-row {
		flex: 1 1 auto;
		min-width: 0;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__filter-panels,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
		flex: 0 1 auto;
		gap: 10px;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sidebar-sec {
		position: relative;
		flex: 0 0 auto;
		gap: 0;
	}
	/* Title = the dropdown trigger. */
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__filter-panels .akn-tpl-list-widget__sidebar-title,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels .akn-tpl-list-widget__sidebar-title {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 9px 14px;
		background: #fff;
		border: 1px solid var(--akn-tpl-n300);
		border-radius: 8px;
		font-size: 12px;
		letter-spacing: .02em;
		text-transform: none;
		color: var(--akn-tpl-n900);
		cursor: pointer;
		white-space: nowrap;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__filter-panels .akn-tpl-list-widget__sidebar-title::after,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels .akn-tpl-list-widget__sidebar-title::after {
		content: "";
		width: 7px;
		height: 7px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .15s ease;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sidebar-sec.is-open .akn-tpl-list-widget__sidebar-title::after {
		transform: translateY(1px) rotate(-135deg);
	}
	/* The section body = the floating panel. */
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__categories--vertical,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__packages--vertical,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__price-filter,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort .akn-tpl-dd {
		display: none;
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		z-index: 45;
		min-width: 200px;
		max-height: 320px;
		overflow-y: auto;
		padding: 8px;
		background: #fff;
		border: 1px solid var(--akn-tpl-n300);
		border-radius: 10px;
		box-shadow: 0 12px 32px rgba(26, 31, 29, .16);
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sidebar-sec.is-open .akn-tpl-list-widget__categories--vertical,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sidebar-sec.is-open .akn-tpl-list-widget__packages--vertical,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sidebar-sec.is-open .akn-tpl-list-widget__price-filter,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sidebar-sec.is-open .akn-tpl-dd {
		display: flex;
	}
	/* Sort panel last, hard right. */
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels {
		order: 9;
		margin-left: auto;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels .akn-tpl-list-widget__sort .akn-tpl-dd {
		left: auto;
		right: 0;
	}
}

/* ---- Mobile (<=600px): filters collapse into a bottom sheet opened by
   the "Filter" button beside the search box. ---- */
@media (max-width: 600px) {
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-toggle {
		display: inline-flex;
	}
	/* While the sheet is open the widget root is lifted to the top of the
	   page's stacking order so a sticky theme header can't cover the sheet
	   or its close button (the panels stay a descendant of the root, so all
	   `--akn-tpl-*` custom properties and selectors keep resolving). */
	.akn-tpl-list-widget.is-sheet-active {
		position: relative;
		z-index: 2147483000;
	}
	/* Both sheets (Filter + Urutkan) share these rules. `.sheet-foot` owns
	   the bottom edge incl. the safe-area inset. */
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100000;
		max-height: 85vh;
		overflow-y: auto;
		margin: 0;
		padding: 0 18px;
		background: #fff;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -8px 40px rgba(26, 31, 29, .22);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
		display: flex;
		flex-direction: column;
		gap: 18px;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet.is-sheet-open {
		transform: translateY(0);
		visibility: visible;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: rgba(26, 31, 29, .5);
		opacity: 0;
		pointer-events: none;
		transition: opacity .28s ease;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-overlay.is-active {
		opacity: 1;
		pointer-events: auto;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		/* z-index so the sticky header paints ABOVE the filter list that
		   scrolls beneath it (later DOM siblings otherwise win paint order). */
		z-index: 3;
		margin: 0 -18px;
		padding: 16px 18px 12px;
		background: #fff;
		border-bottom: 1px solid var(--akn-tpl-n100);
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-title {
		font-size: 15px;
		font-weight: 700;
		color: var(--akn-tpl-n900);
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-close {
		display: inline-flex;
		padding: 4px;
		background: none;
		border: none;
		color: var(--akn-tpl-n700);
		cursor: pointer;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-close svg {
		width: 22px;
		height: 22px;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-foot {
		display: flex;
		gap: 10px;
		position: sticky;
		bottom: 0;
		z-index: 3;
		margin: 0 -18px;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--akn-tpl-n100);
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-apply {
		flex: 1 1 auto;
		padding: 13px;
		background: var(--akn-tpl-primary);
		color: #fff;
		border: none;
		border-radius: 10px;
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-apply:hover,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-apply:focus,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-apply:active {
		background: var(--akn-tpl-primary-dark);
		color: #fff;
		outline: none;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-reset {
		flex: 0 0 auto;
		padding: 13px 18px;
		background: transparent;
		color: var(--akn-tpl-primary);
		border: 1px solid var(--akn-tpl-n300);
		border-radius: 10px;
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-reset:hover,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-reset:focus,
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sheet-reset:active {
		background: var(--akn-tpl-n100);
		color: var(--akn-tpl-primary);
		outline: none;
	}
	/* Sort list inline inside its sheet. */
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels .akn-tpl-list-widget__sort {
		order: 0;
		margin-left: 0;
	}
	/* Section title is redundant beside the sheet header. */
	.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__sort-panels .akn-tpl-list-widget__sidebar-title {
		display: none;
	}
}

/* ---------- Custom dropdown (compact / sidebar) ---------- */

.akn-tpl-dd {
	position: relative;
	flex: 0 0 auto;
}
.akn-tpl-list-widget--compact .akn-tpl-dd {
	flex: 0 1 190px;
	min-width: 0;
}
/* Sidebar (2026-08-28) — Sort is NOT a dropdown here: hide the trigger,
   render the option panel inline as a vertical list, same as the
   Kategori & Harga sections above it. */
.akn-tpl-list-widget--sidebar .akn-tpl-dd {
	width: 100%;
	position: static;
}
.akn-tpl-list-widget--sidebar .akn-tpl-dd__trigger {
	display: none;
}
.akn-tpl-list-widget--sidebar .akn-tpl-dd__panel {
	display: flex;
	flex-direction: column;
	position: static;
	min-width: 0;
	max-height: none;
	overflow: visible;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}
.akn-tpl-list-widget--sidebar .akn-tpl-dd__opt {
	padding: 7px 12px;
	border-radius: 7px;
}
.akn-tpl-list-widget--sidebar .akn-tpl-dd__opt.is-selected {
	background: var(--akn-tpl-n100);
	color: var(--akn-tpl-primary);
	font-weight: 600;
}
/* Sidebar category items are a flat vertical list — no raised card look. */
.akn-tpl-list-widget--sidebar .akn-tpl-list-widget__cat.is-active {
	box-shadow: none;
}
.akn-tpl-dd__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	width: 100%;
	box-sizing: border-box;
	min-height: 38px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 8px;
	font-size: 13px;
	color: var(--akn-tpl-n900);
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	font-family: inherit;
	transition: border-color .12s ease;
}
.akn-tpl-dd__trigger:hover,
.akn-tpl-dd__trigger:focus,
.akn-tpl-dd__trigger:active,
.akn-tpl-dd__trigger:focus-visible {
	background: #fff;
	outline: none;
	box-shadow: none;
}
.akn-tpl-dd__trigger:hover,
.akn-tpl-dd.is-open .akn-tpl-dd__trigger {
	border-color: var(--akn-tpl-n500);
}
.akn-tpl-dd__icon {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	color: var(--akn-tpl-n500);
}
.akn-tpl-dd__label {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
}
.akn-tpl-dd__chevron {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	color: var(--akn-tpl-n500);
	transition: transform .15s ease;
}
.akn-tpl-dd.is-open .akn-tpl-dd__chevron {
	transform: rotate(180deg);
}
.akn-tpl-dd__panel {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	min-width: 160px;
	max-height: 280px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(26, 31, 29, .12);
	padding: 4px;
	z-index: 41;
}
.akn-tpl-dd.is-open .akn-tpl-dd__panel {
	display: flex;
	flex-direction: column;
}
.akn-tpl-dd__opt {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	border: 1px solid transparent;
	background: none;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	color: var(--akn-tpl-n700);
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-appearance: none;
	appearance: none;
}
.akn-tpl-dd__opt:hover {
	background: var(--akn-tpl-n100);
	color: var(--akn-tpl-n900);
}
.akn-tpl-dd__opt.is-selected {
	background: var(--akn-tpl-n100);
	color: var(--akn-tpl-primary);
	font-weight: 600;
}

.akn-tpl-list-widget__search {
	display: flex;
	align-items: center;
	gap: 7px;
	box-sizing: border-box;
	height: 38px;
	background: #fff;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 8px;
	padding: 0 12px;
	flex: 1 1 260px;
	max-width: 225px;
	order: 1;
}

.akn-tpl-list-widget__search svg {
	width: 15px;
	height: 15px;
	color: var(--akn-tpl-n500);
	flex: 0 0 auto;
}

/* `border: none !important` (2026-08-27 fix) — some themes/Elementor
   ship a global `input[type="text"]` border rule with higher effective
   specificity than a bare class selector; the search box's OWN border
   already comes from its wrapper `.akn-tpl-list-widget__search`, this
   inner input must never draw a second one. */
.akn-tpl-list-widget__search-input {
	border: none !important;
	outline: none;
	background: transparent !important;
	font-size: 13px;
	width: 100%;
	padding: 0 !important;
	color: var(--akn-tpl-n900);
	box-shadow: none !important;
}
.akn-tpl-list-widget .akn-tpl-list-widget__search-input:focus,
.akn-tpl-list-widget .akn-tpl-list-widget__search-input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}
.akn-tpl-list-widget__categories {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px;
	background: var(--akn-tpl-n100);
	border-radius: 10px;
	padding: 4px;
	order: 2;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.akn-tpl-list-widget__categories::-webkit-scrollbar {
	display: none;
}

.akn-tpl-list-widget__cat {
	border: none;
	background: transparent;
	border-radius: 7px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--akn-tpl-n700);
	cursor: pointer;
	transition: .12s ease;
	white-space: nowrap;
}

/* Sidebar's vertical category list reads better in normal case. */
.akn-tpl-list-widget__categories--vertical .akn-tpl-list-widget__cat {
	text-transform: none;
}

.akn-tpl-list-widget__cat:hover {
	color: var(--akn-tpl-n900);
}

.akn-tpl-list-widget__cat.is-active {
	background: #fff;
	color: var(--akn-tpl-primary);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.akn-tpl-list-widget__cat-count {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	line-height: 1;
	opacity: .7;
	font-weight: 400;
}

.akn-tpl-list-widget__sort {
	order: 3;
	margin-left: auto;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.akn-tpl-list-widget__sort label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--akn-tpl-n700);
}

.akn-tpl-list-widget__sort-select {
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 8px;
	min-height: 34px;
	line-height: normal;
	padding: 0 10px;
	font-size: 13px;
	background: #fff;
	box-sizing: border-box;
	max-width: 100%;
}

/* Chip layout, mobile */
@media (max-width: 782px) {
	.akn-tpl-list-widget--chip .akn-tpl-list-widget__filters {
		flex-wrap: wrap;
		row-gap: 12px;
		justify-content: flex-start;
	}
	.akn-tpl-list-widget--chip .akn-tpl-list-widget__search {
		order: 0;
		flex: 1 1 100%;
		max-width: none;
	}
	.akn-tpl-list-widget--chip .akn-tpl-list-widget__categories {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
	}
	.akn-tpl-list-widget--chip .akn-tpl-list-widget__sort {
		order: 2;
		margin-left: 0;
		flex: 0 0 auto;
	}
	.akn-tpl-list-widget--chip .akn-tpl-list-widget__sort-select {
		height: auto;
	}
}

@media (max-width: 480px) {
	.akn-tpl-list-widget__sort-label {
		display: none;
	}
	.akn-tpl-list-widget__sort-select {
		width: 110px;
	}
}

/* ---------- Grid ---------- */

.akn-tpl-list-widget__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--akn-tpl-columns, 4), minmax(0, 1fr));
}

@media (max-width: 767px) {
	.akn-tpl-list-widget__grid {
		grid-template-columns: repeat(var(--akn-tpl-columns, 1), minmax(0, 1fr));
	}
}

.akn-tpl-list-widget__card {
	background: #fff;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.akn-tpl-list-widget__thumb {
	position: relative;
	aspect-ratio: 3/4;
	background: var(--akn-tpl-n100);
	overflow: hidden;
}

.akn-tpl-list-widget__usage-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: rgba(255, 255, 255, .92);
	color: var(--akn-tpl-primary);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .3px;
	padding: 5px 10px;
	border-radius: 100px;
}

/* "Tipe" (Free/Pro) filter — TICKET-042. Reuses the `__categories` /
   `__cat` visual language; only the chip-layout row needs a top margin
   to sit under the category chips. */
.akn-tpl-list-widget--chip .akn-tpl-list-widget__categories[data-filter-role="tier"] {
	margin-top: 8px;
	order: 2;
}

/* Tier badge (TICKET-042) — FREE / PRO, top-right, opposite usage badge. */
.akn-tpl-list-widget__tier {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 4px 9px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .92);
}
.akn-tpl-list-widget__tier--pro { color: #9a6a12; }
.akn-tpl-list-widget__tier--free { color: #1a7a44; }

.akn-tpl-list-widget__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.akn-tpl-list-widget__thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--akn-tpl-accent);
	font-family: 'Gilda Display', Georgia, 'Times New Roman', serif;
	font-size: 36px;
	font-weight: 400;
	color: var(--akn-tpl-primary-dark);
}

.akn-tpl-list-widget__hover-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transform: translateY(0px);
	transition: transform 1200ms linear, opacity 500ms ease;
}

.akn-tpl-list-widget__thumb--has-hover:hover .akn-tpl-list-widget__hover-img {
	opacity: 1;
}

.akn-tpl-list-widget__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.akn-tpl-list-widget__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.akn-tpl-list-widget__excerpt {
	margin: 0;
	font-size: 13px;
	color: var(--akn-tpl-n700);
	line-height: 1.5;
	flex: 1;
}

.akn-tpl-list-widget__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--akn-tpl-primary-dark);
}

.akn-tpl-list-widget__price-prefix {
	font-weight: 400;
	font-size: 12px;
	color: var(--akn-tpl-n700);
	margin-right: 4px;
}

.akn-tpl-list-widget__actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}
/* Mobile: stack the two card buttons instead of squeezing them side-by-side. */
@media (max-width: 600px) {
	.akn-tpl-list-widget__actions {
		flex-direction: column;
	}
}

.akn-tpl-list-widget__btn {
	text-align: center;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid var(--akn-tpl-n300);
	white-space: nowrap;
}

.akn-tpl-list-widget__btn--portfolio {
	flex: 2;
}

.akn-tpl-list-widget__btn--demo {
	flex: 1;
}

.akn-tpl-list-widget__btn--portfolio {
	background: #fff;
	color: var(--akn-tpl-primary-dark);
}

.akn-tpl-list-widget__btn--demo {
	background: var(--akn-tpl-primary-dark);
	border-color: var(--akn-tpl-primary-dark);
	color: #fff;
}

.akn-tpl-list-widget__empty,
.akn-tpl-list-widget__loading {
	text-align: center;
	padding: 40px 0;
	color: var(--akn-tpl-n500);
	font-size: 14px;
}

.akn-tpl-list-widget__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.akn-tpl-list-widget__empty.hidden {
	display: none !important;
}

.akn-tpl-list-widget__empty-msg {
	margin: 0;
}

.akn-tpl-list-widget__empty-reset {
	border: 1px solid var(--akn-tpl-primary);
	background: #fff;
	color: var(--akn-tpl-primary-dark);
	border-radius: 999px;
	padding: 9px 22px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.akn-tpl-list-widget__empty-reset:hover {
	background: var(--akn-tpl-primary);
	color: #fff;
}

.akn-tpl-list-widget__cat.is-empty,
.akn-tpl-dd__opt.is-empty {
	opacity: .45;
}

.hidden {
	display: none !important;
}

/* ---------- Pagination ---------- */

.akn-tpl-list-widget__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 28px;
}

/* Infinite Load — sentinel harus tetap dalam flow (bukan display:none)
   supaya IntersectionObserver bisa mendeteksinya. */
.akn-tpl-list-widget__pagination--infinite {
	flex-direction: column;
	margin-top: 0;
}
.akn-tpl-list-widget__infinite-sentinel {
	width: 100%;
	height: 1px;
}

.akn-tpl-list-widget__page-btn {
	border: 1px solid var(--akn-tpl-n300);
	background: #fff;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	color: var(--akn-tpl-n700);
}

.akn-tpl-list-widget__page-btn.is-active {
	background: var(--akn-tpl-primary);
	border-color: var(--akn-tpl-primary);
	color: #fff;
}

.akn-tpl-list-widget__page-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.akn-tpl-list-widget__load-more {
	display: block;
	margin: 28px auto 0;
	border: 1px solid var(--akn-tpl-primary);
	background: #fff;
	color: var(--akn-tpl-primary-dark);
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* ============================================================
   Portfolio modal — Galeri / Katalog / Showcase
   ============================================================ */

body.akn-tpl-list-modal-open { overflow: hidden; }

.akn-tpl-list-widget__modal-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(26, 31, 29, .55);
	z-index: 100000;
}
.akn-tpl-list-widget__modal-overlay.is-open { display: flex; }
.akn-tpl-list-widget__modal-overlay[hidden] { display: none; }

.akn-tpl-list-widget__modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1060px;

	max-height: 100%;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .55);
}
.akn-tpl-list-widget__pf-toolbar { position: relative; z-index: 20; }
.akn-tpl-list-widget__modal-head { border-radius: 20px 20px 0 0; }
.akn-tpl-list-widget__modal--fullscreen {
	max-width: none;
	width: 100%;
	min-height: 100%;
}

/* header */
.akn-tpl-list-widget__modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 36px 26px;
	border-bottom: 1px solid var(--akn-tpl-n300);
	flex-wrap: nowrap;
}
.akn-tpl-list-widget__modal-head-left { flex: 1 1 auto; min-width: 0; }
.akn-tpl-list-widget__modal-title {
	margin: 0;
	font-size: 26px;
	font-weight: 400;
	color: var(--akn-tpl-n900);
	letter-spacing: .2px;
}
.akn-tpl-list-widget__modal-sub {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--akn-tpl-n700);
}
.akn-tpl-list-widget__modal-sub b { font-weight: 700; color: inherit; }
.akn-tpl-list-widget__modal-head-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.akn-tpl-list-widget__modal-order {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: none;
	border-radius: 100px;
	background: var(--akn-tpl-primary);
	color: #fff;
	font: 600 14px/1 inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background .16s ease, transform .16s ease;
}
.akn-tpl-list-widget__modal-order svg { width: 16px; height: 16px; flex: 0 0 auto; }
.akn-tpl-list-widget__modal-order-label { display: inline-block; }
.akn-tpl-list-widget__modal-order-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--akn-tpl-accent-light); flex: 0 0 auto; }
.akn-tpl-list-widget__modal-order:hover { background: var(--akn-tpl-primary-dark); transform: translateY(-1px); }
.akn-tpl-list-widget__modal-order[hidden] { display: none; }
.akn-tpl-list-widget__modal-close {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 50%;
	background: #fff;
	color: var(--akn-tpl-n700);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.akn-tpl-list-widget__modal-close:hover { border-color: var(--akn-tpl-n700); color: var(--akn-tpl-n900); }

/* toolbar */
.akn-tpl-list-widget__pf-toolbar { padding: 22px 36px 0; }
.akn-tpl-list-widget__pf-toolbar:empty { display: none; }
.akn-tpl-list-widget__pf-search-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.akn-tpl-list-widget__pf-search-group {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: wrap;
}

.akn-tpl-list-widget__pf-search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 220px;
	padding: 14px 16px;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 12px;
	background: var(--akn-tpl-n100);
	transition: border-color .15s ease, background .15s ease;
}
.akn-tpl-list-widget__pf-search:focus-within { border-color: var(--akn-tpl-primary); background: #fff; }
.akn-tpl-list-widget__pf-search-icon { display: inline-flex; flex: 0 0 auto; color: var(--akn-tpl-n500); }
.akn-tpl-list-widget__pf-search-icon svg { width: 16px; height: 16px; }
.akn-tpl-list-widget__pf-search .akn-tpl-list-widget__pf-search-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0;
	font: 400 14.5px/1.3 inherit;
	color: var(--akn-tpl-n900);
	min-height: 0;
}

.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd { flex: 0 0 auto; position: relative; width: auto; }
.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd__trigger {
	display: inline-flex;
	width: auto;
	min-height: 0;
	padding: 13px 14px;
	border-radius: 12px;
	background: var(--akn-tpl-n100);
	font-size: 14px;
	color: var(--akn-tpl-n700);
}
.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd__label { flex: 0 1 auto; }
.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd.is-open .akn-tpl-dd__trigger,
.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd__trigger:hover { background: #fff; }
.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: auto;
	min-width: 200px;
	width: max-content;
	max-width: 320px;
	max-height: 280px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(26, 31, 29, .12);
	padding: 4px;
	z-index: 41;
}
.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd:not(.is-open) .akn-tpl-dd__panel { display: none; }
.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd.is-open .akn-tpl-dd__panel { display: flex; flex-direction: column; }

.akn-tpl-list-widget__pf-view {
	margin-left: auto;
	display: flex;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 10px;
	overflow: hidden;
}
.akn-tpl-list-widget__pf-view button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: none;
	border-left: 1px solid var(--akn-tpl-n300);
	background: #fff;
	color: var(--akn-tpl-n500);
	cursor: pointer;
}
.akn-tpl-list-widget__pf-view button:first-child { border-left: none; }
.akn-tpl-list-widget__pf-view button.is-active { background: var(--akn-tpl-n900); color: #fff; }
.akn-tpl-list-widget__pf-view svg { width: 16px; height: 16px; }

.akn-tpl-list-widget__pf-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.akn-tpl-list-widget__pf-chips-label { font-size: 12px; font-weight: 600; color: var(--akn-tpl-n500); letter-spacing: .3px; }
.akn-tpl-list-widget__pf-chips-group {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	padding: 4px;
	border-radius: 10px;
	background: var(--akn-tpl-n100);
}
.akn-tpl-list-widget__pf-chip {
	border: none;
	background: transparent;
	border-radius: 7px;
	padding: 7px 14px;
	font: 600 12px/1 inherit;
	letter-spacing: .02em;
	color: var(--akn-tpl-n700);
	cursor: pointer;
	white-space: nowrap;
	transition: color .12s ease, background .12s ease;
}
.akn-tpl-list-widget__pf-chip:hover { color: var(--akn-tpl-n900); }
.akn-tpl-list-widget__pf-chip.is-active {
	background: #fff;
	color: var(--akn-tpl-primary);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.akn-tpl-list-widget__pf-result {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0 6px;
	font-size: 13px;
	color: var(--akn-tpl-n500);
	flex-wrap: wrap;
}
.akn-tpl-list-widget__pf-result b { font-weight: 700; color: inherit; }

/* body + grid */
.akn-tpl-list-widget__modal-body {
	flex: 1;
	min-height: 0;
	padding: 6px 36px 32px;
	overflow-y: auto;
}
.akn-tpl-list-widget__pf-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 16px;
}
.akn-tpl-list-widget__pf-grid.is-list { display: flex; flex-direction: column; gap: 12px; }

.akn-tpl-list-widget__pf-card {
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
}
.akn-tpl-list-widget__pf-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(26, 31, 29, .28); }
.akn-tpl-list-widget__pf-grid.is-list .akn-tpl-list-widget__pf-card { display: flex; align-items: stretch; }

.akn-tpl-list-widget__pf-thumb { position: relative; height: 180px; overflow: hidden; background: var(--akn-tpl-primary-dark); }
.akn-tpl-list-widget__pf-grid.is-list .akn-tpl-list-widget__pf-thumb { width: 150px; height: auto; flex-shrink: 0; }
.akn-tpl-list-widget__pf-frame { position: absolute; inset: 12px; border: 1px solid rgba(230, 198, 101, .4); border-radius: 10px; pointer-events: none; }
.akn-tpl-list-widget__pf-orn { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--akn-tpl-accent); }
.akn-tpl-list-widget__pf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.akn-tpl-list-widget__pf-thumb-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	color: #fff;
}
.akn-tpl-list-widget__pf-thumb-k { font-size: 9.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--akn-tpl-accent-light); margin-bottom: 6px; }
.akn-tpl-list-widget__pf-thumb-nm { font-family: var(--akn-tpl-display, 'Gilda Display', Georgia, serif); font-size: 22px; line-height: 1.15; }
.akn-tpl-list-widget__pf-hover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: rgba(26, 31, 29, .62);
	opacity: 0;
	transition: opacity .2s ease;
	z-index: 3;
}
.akn-tpl-list-widget__pf-card:hover .akn-tpl-list-widget__pf-hover { opacity: 1; }
.akn-tpl-list-widget__pf-hover-main {
	padding: 9px 18px;
	border: none;
	border-radius: 100px;
	background: #fff;
	color: var(--akn-tpl-primary);
	font: 700 12.5px/1 inherit;
	text-decoration: none;
	cursor: pointer;
}
.akn-tpl-list-widget__pf-hover-ghost {
	padding: 6px 4px;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
	background: transparent;
	color: #fff;
	font: 600 11.5px/1 inherit;
	cursor: pointer;
}

.akn-tpl-list-widget__pf-info { padding: 14px 16px 16px; }
.akn-tpl-list-widget__pf-grid.is-list .akn-tpl-list-widget__pf-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.akn-tpl-list-widget__pf-name { font-size: 14.5px; font-weight: 700; color: var(--akn-tpl-n900); }
.akn-tpl-list-widget__pf-meta { margin-top: 5px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--akn-tpl-n500); }
.akn-tpl-list-widget__pf-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.akn-tpl-list-widget__pf-stats { margin-top: 9px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--akn-tpl-primary); }
.akn-tpl-list-widget__pf-stats svg { width: 13px; height: 13px; }

.akn-tpl-list-widget__pf-empty { text-align: center; padding: 60px 20px; color: var(--akn-tpl-n500); }
.akn-tpl-list-widget__pf-empty svg { width: 38px; height: 38px; margin: 0 auto 14px; color: var(--akn-tpl-n300); }
.akn-tpl-list-widget__pf-empty b { display: block; font-size: 15px; color: var(--akn-tpl-n700); margin-bottom: 4px; }
.akn-tpl-list-widget__pf-empty p { font-size: 14px; margin: 0; }

.akn-tpl-list-widget__pf-loadmore { display: flex; justify-content: center; padding-top: 22px; }
.akn-tpl-list-widget__pf-loadmore-btn {
	padding: 11px 24px;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 100px;
	background: #fff;
	color: var(--akn-tpl-n700);
	font: 600 13.5px/1 inherit;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}
.akn-tpl-list-widget__pf-loadmore-btn:hover { border-color: var(--akn-tpl-primary); color: var(--akn-tpl-primary); }

@media (max-width: 900px) {
	.akn-tpl-list-widget__pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Toolbar tetap satu baris di tablet/mobile — item mengecil, tidak wrap. */
	.akn-tpl-list-widget__pf-search-row,
	.akn-tpl-list-widget__pf-search-group { flex-wrap: nowrap; }
	.akn-tpl-list-widget__pf-search { min-width: 0; }
	.akn-tpl-list-widget__pf-toolbar .akn-tpl-dd { flex: 0 1 auto; }
}
@media (max-width: 560px) {
	.akn-tpl-list-widget__pf-grid { grid-template-columns: 1fr; }
	.akn-tpl-list-widget__modal-head { padding: 16px; gap: 32px; align-items: center; }
	.akn-tpl-list-widget__modal-title { font-size: 20px; }
	/* Teks dekoratif thumbnail dikecilkan di mobile (thumb-nya kecil). */
	.akn-tpl-list-widget__pf-thumb-k { font-size: 8px; letter-spacing: 1.4px; margin-bottom: 4px; }
	.akn-tpl-list-widget__pf-thumb-nm { font-size: 15px; }
	.akn-tpl-list-widget__pf-toolbar { padding: 8px 16px; }
	.akn-tpl-list-widget__modal-body { padding: 6px 16px 24px; }
	.akn-tpl-list-widget__pf-view { margin-left: 0; }
	/* Tombol "Pesan" jadi icon-only di mobile — hemat lebar header. Dot
	   dipindah jadi badge pojok (kalau tetap inline ia "melayang" di tepi). */
	.akn-tpl-list-widget__modal-order-label { display: none; }
	.akn-tpl-list-widget__modal-order { position: relative; padding: 11px; gap: 0; }
	.akn-tpl-list-widget__modal-order-dot {
		position: absolute;
		top: 3px;
		right: 3px;
		width: 8px;
		height: 8px;
		box-shadow: 0 0 0 2px var(--akn-tpl-primary);
	}
	.akn-tpl-list-widget__modal-order:hover .akn-tpl-list-widget__modal-order-dot {
		box-shadow: 0 0 0 2px var(--akn-tpl-primary-dark);
	}
}


/* ============ Modal: Order (alur "Pesan Template Ini", Showcase) ============ */
.akn-tpl-list-widget__order {
	position: absolute;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(26, 31, 29, .55);
	border-radius: inherit;
}
.akn-tpl-list-widget__order[hidden] { display: none; }
.akn-tpl-list-widget__order-panel {
	width: 100%;
	max-width: 440px;
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.akn-tpl-list-widget__order-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--akn-tpl-n300);
}
.akn-tpl-list-widget__order-head-main { min-width: 0; }
.akn-tpl-list-widget__order-title { margin: 0; font-size: 18px; color: var(--akn-tpl-n900); }
.akn-tpl-list-widget__order-close {
	flex-shrink: 0;
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--akn-tpl-n500);
}
/* Tanpa background hover (mis. pink bawaan tema/editor). */
.akn-tpl-list-widget__order-close:hover,
.akn-tpl-list-widget__order-close:focus,
.akn-tpl-list-widget__order-close:active {
	background: transparent;
	box-shadow: none;
	color: var(--akn-tpl-n900);
}
/* Harga di header (step form + slug) — prefix "Mulai dari" + nominal terpisah. */
.akn-tpl-list-widget__order-price { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--akn-tpl-primary); }
.akn-tpl-list-widget__order-price[hidden] { display: none; }
.akn-tpl-list-widget__order-price-prefix { font-weight: 600; color: var(--akn-tpl-n500); }
.akn-tpl-list-widget__order-message:empty { display: none; }
.akn-tpl-list-widget__order-message { font-size: 13px; color: var(--akn-tpl-n700); margin: 6px 0; }
.akn-tpl-list-widget__order-prompt { font-size: 13px; color: var(--akn-tpl-n700); margin: 0 0 10px; }
.akn-tpl-list-widget__order-step[hidden] { display: none; }
.akn-tpl-list-widget__order-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--akn-tpl-n700);
	margin-bottom: 12px;
}
.akn-tpl-list-widget__order-input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	font: inherit;
	color: var(--akn-tpl-n900);
	background: var(--akn-tpl-n100);
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 10px;
}
.akn-tpl-list-widget__order-input:focus { outline: none; border-color: var(--akn-tpl-primary); background: #fff; }

/* Tombol global — utama (primary) & ghost — dipakai lintas step. */
.akn-tpl-list-widget__order-primary {
	width: 100%;
	margin-top: 4px;
	padding: 13px 18px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--akn-tpl-primary);
	border: none;
	border-radius: 100px;
	cursor: pointer;
}
.akn-tpl-list-widget__order-primary:hover { background: var(--akn-tpl-primary-dark); }
.akn-tpl-list-widget__order-primary[disabled] { opacity: .6; cursor: default; }
.akn-tpl-list-widget__order-ghost {
	margin-top: 12px;
	padding: 9px 16px;
	font: inherit;
	font-size: 13px;
	color: var(--akn-tpl-n700);
	background: transparent;
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 100px;
	cursor: pointer;
}
.akn-tpl-list-widget__order-ghost:hover { color: var(--akn-tpl-n900); background: var(--akn-tpl-n100); }

/* Baris opsi (slug / paket) — konten kiri + tombol "Pilih" (primary) kanan. */
.akn-tpl-list-widget__order-options { display: flex; flex-direction: column; gap: 8px; }
.akn-tpl-list-widget__order-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	background: var(--akn-tpl-n100);
	border: 1px solid var(--akn-tpl-n300);
	border-radius: 10px;
}
.akn-tpl-list-widget__order-option .akn-tpl-list-widget__order-primary {
	flex-shrink: 0;
	width: auto;
	margin-top: 0;
	padding: 8px 18px;
	font-size: 13px;
}
.akn-tpl-list-widget__order-option-info { min-width: 0; }
.akn-tpl-list-widget__order-option-slug {
	min-width: 0;
	font-size: 13px;
	color: var(--akn-tpl-n700);
	word-break: break-all;
}
.akn-tpl-list-widget__order-option-slug b { color: var(--akn-tpl-n900); }
.akn-tpl-list-widget__order-option-title { font-size: 14px; font-weight: 600; color: var(--akn-tpl-n900); }
.akn-tpl-list-widget__order-option-price { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--akn-tpl-primary); }
