/**
 * Storefront — grup widget Single Produk (title, thumbnail, excerpt,
 * tombol demo, iFrame demo, riwayat). Selector di-scope ke .stfr-sp-*.
 */

.stfr-sp-note {
	padding: 12px 16px;
	border: 1px dashed #b8c4be;
	border-radius: 8px;
	font-size: 13px;
	color: #55645d;
}

.stfr-sp-title {
	margin: 0;
}

.stfr-sp-thumb {
	display: block;
	line-height: 0;
}

.stfr-sp-thumb img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4 / 5;
}

.stfr-sp-excerpt {
	margin: 0;
}

.stfr-sp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	background: #1d3b32;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.stfr-sp-btn:hover {
	background: #2b5546;
	color: #fff;
}

.stfr-sp-btn svg,
.stfr-sp-btn i {
	width: 1em;
	height: 1em;
}

.stfr-sp-frame {
	overflow: hidden;
	background: #f4f8f4;
	border-radius: 16px;
}

.stfr-sp-iframe {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #fff;
}

.stfr-sp-iframe iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.stfr-sp-iframe--ratio iframe {
	position: absolute;
	inset: 0;
}

.stfr-sp-history {
	margin: 0;
	padding: 0;
	list-style: none;
}

.stfr-sp-history__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(29, 59, 50, .1);
}

.stfr-sp-history__item:last-child {
	border-bottom: 0;
}

.stfr-sp-history__version {
	font-weight: 700;
	color: #1d3b32;
}

.stfr-sp-history__date {
	font-size: .875em;
	color: #6b7a73;
	align-self: center;
}

.stfr-sp-history__note {
	grid-column: 1 / -1;
	margin: 0;
	color: #55645d;
}

.stfr-sp-history__more > summary {
	cursor: pointer;
	padding: 12px 0;
	font-weight: 600;
	color: #1d3b32;
}

.stfr-sp-history__more[open] > summary {
	display: none;
}

/* ---- Bezel Mac ---- */
.stfr-sp-mac {
	background: #e8eaed;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 60px -24px rgba(29, 59, 50, .45);
}

.stfr-sp-mac__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: #f1f3f4;
	border-bottom: 1px solid #dadce0;
}

.stfr-sp-mac__dots {
	display: inline-flex;
	gap: 8px;
	flex: none;
	width: 52px;
}

.stfr-sp-mac__dots i {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ff5f57;
}

.stfr-sp-mac__dots i:nth-child(2) { background: #febc2e; }
.stfr-sp-mac__dots i:nth-child(3) { background: #28c840; }

.stfr-sp-mac__url {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 1 1 auto;
	max-width: 520px;
	min-width: 0;
	margin: 0 auto;
	padding: 5px 12px;
	background: #fff;
	border-radius: 8px;
	color: #5f6368;
}

.stfr-sp-mac__lock {
	flex: none;
}

.stfr-sp-mac__host {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	color: #5f6368;
}

.stfr-sp-mac__gap {
	flex: none;
	width: 52px;
}

@media (max-width: 520px) {
	.stfr-sp-mac__dots,
	.stfr-sp-mac__gap { width: 0; display: none; }
}

/* ---- Tombol: varian & mode salin ---- */
.stfr-sp-btn--outline {
	background: transparent;
	color: #1d3b32;
	border: 1.5px solid #1d3b32;
}

.stfr-sp-btn--outline:hover {
	background: #1d3b32;
	color: #fff;
}

.stfr-sp-btn.is-copied {
	background: #28775a;
	color: #fff;
}

/* ---- Label Produk ---- */
.stfr-sp-labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.stfr-sp-labels .stfr-sp-label {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eef2ef;
	color: #1d3b32;
	font-size: 13px;
	line-height: 1.5;
}

.stfr-sp-labels--eyebrow {
	gap: 8px;
}

.stfr-sp-labels--eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d4b038;
	flex: none;
}

.stfr-sp-labels--eyebrow .stfr-sp-label {
	padding: 0;
	background: transparent;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #1d3b32;
}

.stfr-sp-labels__sep {
	color: #8a9a92;
}

/* ---- Spesifikasi ---- */
.stfr-sp-specs {
	margin: 0;
	padding: 0;
}

.stfr-sp-specs__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(29, 59, 50, .1);
}

.stfr-sp-specs__label {
	margin: 0;
	color: #6b7a73;
}

.stfr-sp-specs__value {
	margin: 0;
	font-weight: 500;
	color: #17241f;
	text-align: right;
}

/* ---- Lisensi Tier ---- */
.stfr-sp-tiers__title {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #1d3b32;
}

.stfr-sp-tiers__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.stfr-sp-tier {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 6px;
	border: 1px solid transparent;
	border-radius: 14px;
	font-size: 13px;
	text-align: center;
}

.stfr-sp-tier.is-on {
	background: #e8f5ee;
	border-color: #bfe0cd;
	color: #1d6b47;
}

.stfr-sp-tier.is-on span:first-child {
	color: #17241f;
}

.stfr-sp-tier.is-off {
	background: #f1f2f1;
	border-color: #e3e5e3;
	color: #9aa39e;
}

.stfr-sp-tiers__notice {
	margin: 16px 0 0;
	padding: 14px 16px;
	border: 1px dashed #d4b038;
	border-radius: 12px;
	background: #fffbea;
	font-size: 14px;
	line-height: 1.6;
	color: #3e4a44;
}

.stfr-sp-tiers__notice a {
	color: #1d3b32;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.stfr-sp-tiers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Tab Detail ---- */
.stfr-sp-tabs {
	--stfr-sp-accent: #d4b038;
}

.stfr-sp-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	border-bottom: 1px solid rgba(29, 59, 50, .14);
}

.stfr-sp-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 -1px;
	padding: 12px 2px;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #55645d;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
}

:where(.stfr-sp-tabs) .stfr-sp-tabs__tab:hover {
	color: #1d3b32;
}

.stfr-sp-tabs__tab:focus-visible {
	outline: 2px solid var(--stfr-sp-accent);
	outline-offset: 2px;
}

.stfr-sp-tabs__tab.is-active {
	color: #1d3b32;
	border-bottom-color: var(--stfr-sp-accent);
}

.stfr-sp-tabs__badge {
	padding: 2px 10px;
	border-radius: 999px;
	background: #e8f0eb;
	color: #1d3b32;
	font-size: 12px;
	font-weight: 500;
}

.stfr-sp-tabs__panel {
	padding-top: 28px;
	color: #55645d;
	line-height: 1.75;
}

.stfr-sp-tabs__panel[hidden] {
	display: none;
}

.stfr-sp-tabs__heading {
	margin: 0 0 16px;
	color: #1d3b32;
}

.stfr-sp-tabs__sub {
	margin: -4px 0 28px;
}

.stfr-sp-tabs__subheading {
	margin: 32px 0 14px;
	padding-top: 28px;
	border-top: 1px solid rgba(29, 59, 50, .12);
	color: #1d3b32;
}

.stfr-sp-tabs__panel p {
	margin: 0 0 16px;
}

.stfr-sp-hl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 28px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.stfr-sp-hl li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.stfr-sp-hl__ico {
	flex: none;
	box-sizing: content-box;
	margin-top: 2px;
	padding: 6px;
	border-radius: 50%;
	background: #e8f0eb;
	color: #1d6b47;
}

.stfr-sp-hl strong {
	color: #17241f;
}

.stfr-sp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stfr-sp-chips li {
	padding: 8px 20px;
	border: 1px solid rgba(29, 59, 50, .16);
	border-radius: 999px;
	background: #fff;
	color: #17241f;
}

@media (max-width: 640px) {
	.stfr-sp-hl { grid-template-columns: 1fr; }
}

/* ---- Garis waktu riwayat ---- */
.stfr-sp-tl {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stfr-sp-tl::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 14px;
	bottom: 14px;
	width: 2px;
	background: rgba(29, 59, 50, .14);
}

.stfr-sp-tl__item {
	position: relative;
	margin: 0 0 18px;
	padding-left: 48px;
}

.stfr-sp-tl__dot {
	position: absolute;
	left: 0;
	top: 8px;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(29, 59, 50, .2);
	background: #fff;
}

.stfr-sp-tl__item.is-latest .stfr-sp-tl__dot {
	border-color: var(--stfr-sp-accent);
	background: var(--stfr-sp-accent);
	box-shadow: 0 0 0 6px rgba(212, 176, 56, .22);
}

.stfr-sp-tl__head,
.stfr-sp-tl__more > summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	min-height: 36px;
}

.stfr-sp-tl__version {
	font-size: 28px;
	line-height: 1.2;
	color: #1d3b32;
}

.stfr-sp-tl__more .stfr-sp-tl__version {
	font-size: 24px;
}

.stfr-sp-tl__latest {
	padding: 3px 14px;
	border-radius: 999px;
	background: #e3f3ea;
	color: #1d6b47;
	font-size: 13px;
	font-weight: 500;
}

.stfr-sp-tl__date,
.stfr-sp-tl__count {
	font-size: 14px;
	color: #7a8a82;
}

.stfr-sp-tl__more > summary {
	cursor: pointer;
	list-style: none;
}

.stfr-sp-tl__more > summary::-webkit-details-marker {
	display: none;
}

.stfr-sp-tl__plus {
	position: relative;
	margin-left: auto;
	width: 14px;
	height: 14px;
}

.stfr-sp-tl__plus::before,
.stfr-sp-tl__plus::after {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: #1d3b32;
}

.stfr-sp-tl__plus::after {
	transform: rotate(90deg);
	transition: transform .2s;
}

.stfr-sp-tl__more[open] .stfr-sp-tl__plus::after {
	transform: rotate(0);
}

.stfr-sp-tl__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 10px;
	padding: 20px 24px;
	border: 1px solid rgba(29, 59, 50, .12);
	border-radius: 20px;
	background: #fff;
}

.stfr-sp-tl__group {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 8px 16px;
	align-items: start;
}

.stfr-sp-tl__group ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stfr-sp-tl__group li {
	position: relative;
	margin: 0;
	padding-left: 18px;
	color: #3e4a44;
	line-height: 1.55;
}

.stfr-sp-tl__group li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--stfr-sp-accent);
}

.stfr-sp-tl__badge {
	justify-self: start;
	padding: 4px 16px;
	border-radius: 999px;
	background: #eef0ee;
	color: #55645d;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.stfr-sp-tl__badge--new { background: #e3f3ea; color: #1d6b47; }
.stfr-sp-tl__badge--chg { background: #e8efec; color: #3c5a4f; }
.stfr-sp-tl__badge--fix { background: #fdf1cc; color: #8a6a12; }
.stfr-sp-tl__badge--sec { background: #fde7e4; color: #a43a2f; }

@media (max-width: 560px) {
	.stfr-sp-tl__group { grid-template-columns: 1fr; }
	.stfr-sp-tl__item { padding-left: 36px; }
	.stfr-sp-tl__version { font-size: 24px; }
}

/* ---- Palet & Font ---- */
.stfr-sp-pf__title {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #1d3b32;
}

.stfr-sp-pf__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.stfr-sp-pf__swatches li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.stfr-sp-pf__dot {
	flex: none;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .1);
}

.stfr-sp-pf__name {
	color: #3e4a44;
}

.stfr-sp-pf__font {
	margin: 0 0 8px;
	color: #3e4a44;
}

.stfr-sp-pf__fvalue {
	color: #17241f;
}

/* ---- Breadcrumb ---- */
.stfr-sp-bc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 15px;
}

.stfr-sp-bc__item {
	color: #55645d;
}

.stfr-sp-bc__item a {
	color: inherit;
	text-decoration: none;
}

.stfr-sp-bc__item a:hover {
	color: #1d3b32;
	text-decoration: underline;
}

.stfr-sp-bc__item[aria-current] {
	color: #17241f;
	font-weight: 500;
}

.stfr-sp-bc__sep {
	flex: none;
	color: #9aa39e;
}
