/**
 * Nias — single-product page, pixel-built to match «Nias Product Page»
 * (claude.ai/design). Namespaced `nias-theme-sp*`; high-specificity selectors
 * rooted at the block class (and `body`) so the design out-ranks Elementor /
 * WooCommerce / Hello-Elementor. Three accent variants: plugin / template /
 * course.
 */

/* Page canvas */
body.single-product { background: #F4F7FC; }
body.single-product .nias-theme-sp-main {
	max-width: calc(var(--nias-max-w) + 56px);
	margin: 0 auto;
	padding: 24px 28px 60px;
}

.nias-theme-sp {
	--sp-accent: #6A4AE6;
	--sp-accent-strong: #573ACB;
	--sp-accent-soft: #EFEBFC;
	--sp-main: linear-gradient(135deg, #6A4AE6, #8B6CF0);
	--sp-ink: #0B1C3D;
	--sp-ink-2: #1B2C4D;
	--sp-text: #41506B;
	--sp-muted: #8593AC;
	--sp-line: #E6ECF6;
	--sp-blue: #0A66FF;
	color: var(--sp-ink);
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}
.nias-theme-sp--plugin   { --sp-accent: #6A4AE6; --sp-accent-strong: #573ACB; --sp-accent-soft: #EFEBFC; --sp-main: linear-gradient(135deg, #6A4AE6, #8B6CF0); }
.nias-theme-sp--template { --sp-accent: #0E8FD6; --sp-accent-strong: #0B79B8; --sp-accent-soft: #E6F3FB; --sp-main: linear-gradient(135deg, #0E8FD6, #36ABEC); }
.nias-theme-sp--course   { --sp-accent: #11A39A; --sp-accent-strong: #0C857E; --sp-accent-soft: #E4F6F4; --sp-main: linear-gradient(135deg, #11A39A, #2FC2B8); }

.nias-theme-sp * { box-sizing: border-box; }
.nias-theme-sp a { text-decoration: none; color: inherit; }

/* Breadcrumb */
.nias-theme-sp .nias-theme-sp__crumbs {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: 13px; color: var(--sp-muted); margin-bottom: 20px;
}
.nias-theme-sp .nias-theme-sp__crumbs a { transition: color .15s; }
.nias-theme-sp .nias-theme-sp__crumbs a:hover { color: var(--sp-blue); }
.nias-theme-sp .nias-theme-sp__crumb-current { color: #33415C; font-weight: 500; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.nias-theme-sp .nias-theme-sp__hero {
	display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 30px; align-items: start;
}
/* left content (row 1) → buy card (right, spanning) → tabs under the left (row 2).
   min-width:0 lets the grid items shrink so nothing forces a horizontal scroll. */
.nias-theme-sp .nias-theme-sp__left { grid-column: 1; grid-row: 1; min-width: 0; }
.nias-theme-sp .nias-theme-sp__buy  { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.nias-theme-sp .nias-theme-sp__tabs { grid-column: 1; grid-row: 2; min-width: 0; }

.nias-theme-sp .nias-theme-sp__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.nias-theme-sp .nias-theme-sp__cat {
	font-size: 12.5px; font-weight: 600; color: var(--sp-accent-strong);
	background: var(--sp-accent-soft); padding: 5px 12px; border-radius: 8px;
}
.nias-theme-sp a.nias-theme-sp__cat { text-decoration: none; transition: filter .2s ease; }
.nias-theme-sp a.nias-theme-sp__cat:hover { filter: brightness(.92); }
.nias-theme-sp .nias-theme-sp__rating { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #5B6B86; }
.nias-theme-sp .nias-theme-sp__rating b { color: var(--sp-ink-2); }
.nias-theme-sp a.nias-theme-sp__rating { text-decoration: none; transition: color .2s ease; }
.nias-theme-sp a.nias-theme-sp__rating:hover,
.nias-theme-sp a.nias-theme-sp__rating:hover b { color: var(--sp-accent-strong); }
.nias-theme-sp .nias-theme-sp__title {
	font-size: 30px; font-weight: 800; line-height: 1.35; margin: 0 0 18px;
	letter-spacing: -.4px; color: var(--sp-ink);
}

/* Gallery — images show at their natural aspect ratio, never cropped/distorted. */
.nias-theme-sp .nias-theme-sp__main {
	position: relative; border-radius: 20px; overflow: hidden;
	border: 1px solid var(--sp-line); background: #fff;
}
.nias-theme-sp .nias-theme-sp__main-img { display: block; width: 100%; height: auto; }
.nias-theme-sp .nias-theme-sp__main-ph { display: block; width: 100%; height: 300px; background: var(--sp-main); }
.nias-theme-sp .nias-theme-sp__off-flag {
	position: absolute; top: 16px; right: 16px;
	background: #fff; color: var(--sp-accent-strong);
	font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 9px;
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .3);
}
.nias-theme-sp .nias-theme-sp__thumbs {
	display: flex; gap: 11px; margin-top: 13px; overflow-x: auto; padding-bottom: 3px;
}
.nias-theme-sp .nias-theme-sp__thumb {
	position: relative; width: 92px; height: 70px; border-radius: 12px; overflow: hidden;
	flex-shrink: 0; padding: 0; cursor: pointer; background: #fff;
	border: 2.5px solid transparent; outline: 1px solid var(--sp-line); transition: .16s;
}
.nias-theme-sp .nias-theme-sp__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nias-theme-sp .nias-theme-sp__thumb.is-active {
	border-color: var(--sp-accent); outline: none;
	box-shadow: 0 6px 16px -8px var(--sp-accent);
}

/* Short + highlights */
.nias-theme-sp .nias-theme-sp__short { font-size: 15.5px; line-height: 2; color: var(--sp-text); margin: 26px 0 18px; }
.nias-theme-sp .nias-theme-sp__short p { margin: 0 0 10px; }
.nias-theme-sp .nias-theme-sp__highlights {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px;
}
.nias-theme-sp .nias-theme-sp__highlight {
	display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid #E9EEF6; border-radius: 13px; padding: 13px 15px;
}
.nias-theme-sp .nias-theme-sp__highlight-tick {
	width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong);
}
.nias-theme-sp .nias-theme-sp__highlight-text { font-size: 13.5px; font-weight: 500; color: #33415C; }

/* ── BUY CARD ─────────────────────────────────────────────────────────── */
.nias-theme-sp .nias-theme-sp__buy { position: sticky; top: 88px; }
.nias-theme-sp .nias-theme-sp__buy-card {
	background: #fff; border: 1px solid var(--sp-line); border-radius: 20px; overflow: hidden;
	box-shadow: 0 14px 40px -22px rgba(13, 40, 90, .3);
}
.nias-theme-sp .nias-theme-sp__buy-accent { height: 5px; background: linear-gradient(90deg, var(--sp-accent), var(--sp-accent-strong)); }
.nias-theme-sp .nias-theme-sp__buy-body { padding: 22px; }

.nias-theme-sp .nias-theme-sp__countdown {
	display: flex; align-items: center; gap: 8px;
	background: #FFF4E9; border: 1px solid #FCE2C4; border-radius: 12px;
	padding: 9px 13px; margin-bottom: 18px; color: #E8810B;
}
.nias-theme-sp .nias-theme-sp__countdown-label { font-size: 12.5px; font-weight: 600; color: #B9650A; }
.nias-theme-sp .nias-theme-sp__countdown-time {
	margin-inline-start: auto; font-family: ui-monospace, monospace;
	font-size: 13.5px; font-weight: 700; color: #9A5408; letter-spacing: .5px; direction: ltr;
}

.nias-theme-sp .nias-theme-sp__price { margin-bottom: 18px; }
.nias-theme-sp .nias-theme-sp__price-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nias-theme-sp .nias-theme-sp__price-old { font-size: 13px; color: #9AA6BD; text-decoration: line-through; }
.nias-theme-sp .nias-theme-sp__price-old .woocommerce-Price-currencySymbol { text-decoration: line-through; }
.nias-theme-sp .nias-theme-sp__price-off {
	font-size: 11.5px; font-weight: 700; color: #fff; background: #E8493B;
	padding: 3px 9px; border-radius: 7px;
}
.nias-theme-sp .nias-theme-sp__price-final { font-size: 30px; font-weight: 800; color: var(--sp-ink); letter-spacing: -.5px; }
.nias-theme-sp .nias-theme-sp__price-final .woocommerce-Price-currencySymbol { font-size: 14px; font-weight: 600; color: #5B6B86; margin-inline-start: 4px; }

.nias-theme-sp .nias-theme-sp__cta {
	width: 100%; height: 52px; border-radius: 14px;
	background: linear-gradient(180deg, #0A66FF, #0a5ae6); color: #fff;
	font-size: 16px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 9px;
	box-shadow: 0 12px 26px -12px rgba(10, 102, 255, .85); transition: .16s; cursor: pointer; border: none;
}
.nias-theme-sp .nias-theme-sp__cta:hover { filter: brightness(1.06); color: #fff; }
.nias-theme-sp .nias-theme-sp__cta:active { transform: translateY(1px); }
.nias-theme-sp .nias-theme-sp__cta--disabled {
	background: #EEF2F8; color: #9AA6BD; box-shadow: none; cursor: not-allowed;
}
.nias-theme-sp .nias-theme-sp__cta-alt {
	width: 100%; height: 50px; margin-top: 11px; border-radius: 14px;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong);
	font-size: 15px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	border: 1.5px solid var(--sp-accent); transition: .16s; cursor: pointer;
}
.nias-theme-sp .nias-theme-sp__cta-alt:hover { background: var(--sp-accent); color: #fff; }
.nias-theme-sp .nias-theme-sp__download {
	width: 100%; height: 52px; border-radius: 14px;
	background: linear-gradient(180deg, #12B76A, #0EA05B);
	color: #fff;
	font-size: 16px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 9px;
	box-shadow: 0 12px 26px -12px rgba(14, 160, 91, .85); transition: .16s; cursor: pointer; border: none;
}
.nias-theme-sp .nias-theme-sp__download:hover { filter: brightness(1.06); color: #fff; }
.nias-theme-sp .nias-theme-sp__download:active { transform: translateY(1px); }
.nias-theme-sp .nias-theme-sp__cta-preview {
	width: 100%; height: 48px; margin-top: 11px; border-radius: 14px;
	background: #fff; color: #33415C;
	font-size: 14.5px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	border: 1.5px solid var(--sp-line); transition: .16s; cursor: pointer;
}
.nias-theme-sp .nias-theme-sp__cta-preview:hover { border-color: var(--sp-accent); color: var(--sp-accent-strong); }
.nias-theme-sp .nias-theme-sp__monthly { text-align: center; font-size: 12px; color: var(--sp-muted); margin-top: 8px; }

.nias-theme-sp .nias-theme-sp__reassure {
	border-top: 1px solid #EEF2F8; margin-top: 18px; padding-top: 16px;
	display: flex; flex-direction: row; gap: 12px;
	flex-wrap: wrap;
    justify-content: space-between;
}
.nias-theme-sp .nias-theme-sp__reassure-row { display: flex; align-items: center; gap: 11px; }
.nias-theme-sp .nias-theme-sp__reassure-icon {
	width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: #EAF2FF; color: var(--sp-blue);
}
.nias-theme-sp .nias-theme-sp__reassure-text { display: flex; flex-direction: column; }
.nias-theme-sp .nias-theme-sp__reassure-text b { font-size: 13px; font-weight: 600; color: var(--sp-ink-2); }
.nias-theme-sp .nias-theme-sp__reassure-text small { font-size: 11.5px; color: var(--sp-muted); }

/* ── STICKY MOBILE BUY BAR (revealed by JS on scroll; mobile only) ─────── */
.nias-theme-sp .nias-theme-sp__bar { display: none; }
.nias-theme-sp .nias-theme-sp__bar-price { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.nias-theme-sp .nias-theme-sp__bar-sub { display: flex; align-items: center; gap: 7px; }
.nias-theme-sp .nias-theme-sp__bar-old { font-size: 11.5px; color: #8FA0BD; text-decoration: line-through; white-space: nowrap; }
.nias-theme-sp .nias-theme-sp__bar-old .woocommerce-Price-currencySymbol { text-decoration: line-through; }
.nias-theme-sp .nias-theme-sp__bar-off {
	font-size: 10.5px; font-weight: 700; color: #fff; background: #E8493B;
	padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.nias-theme-sp .nias-theme-sp__bar-final { color: #fff; font-size: 17px; font-weight: 800; white-space: nowrap; }
.nias-theme-sp .nias-theme-sp__bar-final .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 600; color: #B7C4DC; margin-inline-start: 3px; }
.nias-theme-sp .nias-theme-sp__bar-final del { display: none; }
.nias-theme-sp .nias-theme-sp__bar-cta {
	margin-inline-start: auto; flex-shrink: 0;
	display: inline-flex; align-items: center; gap: 7px;
	height: 46px; padding: 0 22px; border-radius: 12px;
	background: linear-gradient(180deg, #0A66FF, #0a5ae6); color: #fff;
	font-size: 14.5px; font-weight: 700;
}
.nias-theme-sp .nias-theme-sp__bar-cta svg { width: 18px; height: 18px; }
.nias-theme-sp .nias-theme-sp__bar-cta--disabled { background: #33415C; color: #9AA6BD; }
.nias-theme-sp .nias-theme-sp__bar-cta--download { background: linear-gradient(180deg, #12B76A, #0EA05B); }

/* ── TABS ─────────────────────────────────────────────────────────────── */
/* All panels are stacked and always visible; the tab bar is a sticky scroll-spy
   nav. `overflow: visible` is required so the nav can stick to the viewport. */
.nias-theme-sp .nias-theme-sp__tabs {
	margin-top: 12px; background: #fff; border: 1px solid var(--sp-line);
	border-radius: 20px; overflow: visible;
}
.nias-theme-sp .nias-theme-sp__tabnav {
	position: sticky; top: 88px; z-index: 20;
	display: flex; gap: 4px; border-bottom: 1px solid #EEF2F8; padding: 6px 12px; overflow-x: auto;
	background: #fff; border-radius: 20px 20px 0 0;
	box-shadow: 0 8px 16px -14px rgba(13, 40, 90, .35);
}
.nias-theme-sp .nias-theme-sp__tabbtn {
	padding: 13px 18px; border-radius: 11px; font-size: 14.5px; white-space: nowrap;
	font-weight: 500; color: #5B6B86; background: transparent;
	border: none; border-bottom: 2.5px solid transparent; cursor: pointer; transition: .16s;
}
.nias-theme-sp .nias-theme-sp__tabbtn.is-active {
	font-weight: 700; color: var(--sp-accent-strong);
	background: var(--sp-accent-soft); border-bottom-color: var(--sp-accent);
}
.nias-theme-sp .nias-theme-sp__tabbody { padding: 28px 30px; }
/* scroll-margin-top clears the sticky header (68px) + sticky tab bar so a
   scrolled-to section lands just below the nav, not hidden behind it. */
.nias-theme-sp .nias-theme-sp__panel { display: block; scroll-margin-top: 150px; }
/* #reviews is the anchor target of the head rating link — same sticky offset. */
.nias-theme-sp .nias-theme-sp__reviews { scroll-margin-top: 150px; }
.nias-theme-sp .nias-theme-sp__panel + .nias-theme-sp__panel {
	margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--sp-line);
}

/* desc */
.nias-theme-sp .nias-theme-sp__prose { font-size: 15.5px; line-height: 2.15; color: #3A485F; }
.nias-theme-sp .nias-theme-sp__prose p { margin: 0 0 16px; }
.nias-theme-sp .nias-theme-sp__prose img { max-width: 100%; height: auto; border-radius: 12px; }
.nias-theme-sp .nias-theme-sp__prose h2,
.nias-theme-sp .nias-theme-sp__prose h3 { color: var(--sp-ink); font-weight: 800; }

/* specs */
.nias-theme-sp .nias-theme-sp__specs {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 32px;
}
.nias-theme-sp .nias-theme-sp__spec {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 14px 4px; border-bottom: 1px solid #F1F4F9;
}
.nias-theme-sp .nias-theme-sp__spec-k { font-size: 13.5px; color: var(--sp-muted); }
.nias-theme-sp .nias-theme-sp__spec-v { font-size: 13.5px; font-weight: 600; color: var(--sp-ink-2); text-align: left; }

/* reviews */
.nias-theme-sp .nias-theme-sp__rsum {
	display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center;
	background: #F7F9FD; border-radius: 16px; padding: 22px; margin-bottom: 24px;
}
.nias-theme-sp .nias-theme-sp__rsum-avg { text-align: center; border-inline-end: 1px solid var(--sp-line); }
.nias-theme-sp .nias-theme-sp__rsum-num { font-size: 46px; font-weight: 800; color: var(--sp-ink); line-height: 1; }
.nias-theme-sp .nias-theme-sp__rsum-stars { display: flex; justify-content: center; gap: 2px; margin: 8px 0; }
.nias-theme-sp .nias-theme-sp__rsum-count { font-size: 12.5px; color: var(--sp-muted); }
.nias-theme-sp .nias-theme-sp__star { color: #D9DEE8; font-size: 15px; line-height: 1; }
.nias-theme-sp .nias-theme-sp__star.is-on { color: #F5A623; }
.nias-theme-sp .nias-theme-sp__rsum-bars { display: flex; flex-direction: column; gap: 8px; }
.nias-theme-sp .nias-theme-sp__rbar { display: flex; align-items: center; gap: 10px; }
.nias-theme-sp .nias-theme-sp__rbar-star { font-size: 12px; color: #5B6B86; width: 42px; }
.nias-theme-sp .nias-theme-sp__rbar-track { flex: 1; height: 8px; background: #E6ECF3; border-radius: 5px; overflow: hidden; }
.nias-theme-sp .nias-theme-sp__rbar-fill { display: block; height: 100%; background: #F5A623; border-radius: 5px; }
.nias-theme-sp .nias-theme-sp__rbar-pct { font-size: 11.5px; color: #9AA6BD; width: 40px; text-align: left; }

.nias-theme-sp .nias-theme-sp__rlist { display: flex; flex-direction: column; gap: 16px; }
.nias-theme-sp .nias-theme-sp__rcard { border: 1px solid #EDF1F8; border-radius: 15px; padding: 18px; }
.nias-theme-sp .nias-theme-sp__rcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.nias-theme-sp .nias-theme-sp__rcard-avatar {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong);
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.nias-theme-sp .nias-theme-sp__rcard-meta { flex: 1; display: flex; flex-direction: column; }
.nias-theme-sp .nias-theme-sp__rcard-meta b { font-size: 14px; font-weight: 700; color: var(--sp-ink-2); }
.nias-theme-sp .nias-theme-sp__rcard-meta small { font-size: 11.5px; color: #9AA6BD; }
.nias-theme-sp .nias-theme-sp__rcard-stars { display: flex; gap: 1px; }
.nias-theme-sp .nias-theme-sp__rcard-tag {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 11.5px; font-weight: 600; color: #16A34A;
	background: #E9F8EF; padding: 3px 9px; border-radius: 7px; margin-bottom: 10px;
}
.nias-theme-sp .nias-theme-sp__rcard-text { font-size: 14px; line-height: 1.95; color: var(--sp-text); margin: 6px 0 0; }
.nias-theme-sp .nias-theme-sp__rcard-text p { margin: 0 0 10px; }
.nias-theme-sp .nias-theme-sp__rcard-text p:last-child { margin-bottom: 0; }

/* nested replies */
.nias-theme-sp .nias-theme-sp__rreplies {
	display: flex; flex-direction: column; gap: 12px;
	margin: 15px 0 0; padding-inline-start: 18px;
	border-inline-start: 2px solid var(--sp-line);
}
.nias-theme-sp .nias-theme-sp__rcard--reply { background: #F7F9FD; border-color: #E6ECF6; padding: 15px 16px; }
.nias-theme-sp .nias-theme-sp__rcard--reply .nias-theme-sp__rcard-avatar { width: 32px; height: 32px; font-size: 13px; }
.nias-theme-sp .nias-theme-sp__rreply-tag {
	display: inline-flex; align-items: center; vertical-align: middle;
	margin-inline-start: 6px; padding: 2px 8px; border-radius: 7px;
	font-size: 10.5px; font-weight: 700;
	color: var(--sp-blue); background: #EAF2FF;
}

/* write-a-review form (modern) */
.nias-theme-sp .nias-theme-sp__rform {
	background: #F7F9FD; border: 1px solid var(--sp-line); border-radius: 16px;
	padding: 24px; margin-bottom: 26px;
}
.nias-theme-sp .nias-theme-sp__rform-title { margin: 0 0 18px; font-size: 17px; font-weight: 800; color: var(--sp-ink); }
.nias-theme-sp .nias-theme-sp__rform .comment-form,
.nias-theme-sp .nias-theme-sp__rform-form { margin: 0; max-width: none; }
.nias-theme-sp .nias-theme-sp__rform p { margin: 0 0 14px; }
.nias-theme-sp .nias-theme-sp__rform label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--sp-ink-2); }
.nias-theme-sp .nias-theme-sp__rform .required { color: #E5484D; }
.nias-theme-sp .nias-theme-sp__rform input[type="text"],
.nias-theme-sp .nias-theme-sp__rform input[type="email"],
.nias-theme-sp .nias-theme-sp__rform input[type="tel"],
.nias-theme-sp .nias-theme-sp__rform textarea {
	width: 100%; padding: 12px 14px; background: #fff; color: var(--sp-ink);
	font: 14px;
	border: 1.5px solid var(--sp-line); border-radius: 12px; outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.nias-theme-sp .nias-theme-sp__rform input[type="text"]:focus,
.nias-theme-sp .nias-theme-sp__rform input[type="email"]:focus,
.nias-theme-sp .nias-theme-sp__rform input[type="tel"]:focus,
.nias-theme-sp .nias-theme-sp__rform textarea:focus {
	border-color: var(--sp-accent); box-shadow: 0 0 0 3px var(--sp-accent-soft);
}
.nias-theme-sp .nias-theme-sp__rform textarea { resize: vertical; min-height: 120px; line-height: 1.9; }
.nias-theme-sp .nias-theme-sp__rform .comment-form-comment { margin: 0 0 14px; }
.nias-theme-sp .nias-theme-sp__rform .form-submit { display: flex; margin: 4px 0 0; }
.nias-theme-sp .nias-theme-sp__rform .comment-form-rating select {
	min-width: 180px; padding: 11px 14px; background: #fff; color: var(--sp-ink);
	font: 14px;
	border: 1.5px solid var(--sp-line); border-radius: 12px; outline: none; cursor: pointer;
}
.nias-theme-sp .nias-theme-sp__rform .comment-form-rating select:focus { border-color: var(--sp-accent); box-shadow: 0 0 0 3px var(--sp-accent-soft); }
.nias-theme-sp .nias-theme-sp__rform-row { display: flex; gap: 14px; margin: 0 0 14px; }
.nias-theme-sp .nias-theme-sp__rform-row > p { flex: 1 1 0; min-width: 0; margin: 0; }
.nias-theme-sp #commentform #submit,
.nias-theme-sp .nias-theme-sp__rform #commentform #submit {
	display: inline-flex; align-items: center; justify-content: center;
	width: auto; padding: 13px 34px; margin: 0; border: none; border-radius: 12px; cursor: pointer;
	background: var(--sp-main); color: #fff; font: 700 14.5px;
	box-shadow: 0 8px 20px -8px var(--sp-accent); transition: transform .12s, box-shadow .12s;
	-webkit-appearance: none; appearance: none; text-shadow: none; line-height: 1.4;
}
.nias-theme-sp #commentform #submit:hover,
.nias-theme-sp .nias-theme-sp__rform #commentform #submit:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px var(--sp-accent); background: var(--sp-main); color: #fff; }
.nias-theme-sp .nias-theme-sp__rform-note {
	background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412;
	padding: 14px 16px; border-radius: 12px; font-size: 13.5px; margin-bottom: 26px;
}
.nias-theme-sp .nias-theme-sp__rform-errors {
	display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px;
	padding: 13px 16px; border-radius: 12px;
	background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
	font-size: 13px; font-weight: 600; line-height: 1.8;
}
.nias-theme-sp .nias-theme-sp__rform-errors[hidden] { display: none; }
.nias-theme-sp .nias-theme-sp__rform-errors span { position: relative; padding-inline-start: 18px; }
.nias-theme-sp .nias-theme-sp__rform-errors span::before {
	content: "•"; position: absolute; inset-inline-start: 4px; top: -1px; font-size: 16px;
}

/* faq */
.nias-theme-sp .nias-theme-sp__faqs { display: flex; flex-direction: column; gap: 10px; }
.nias-theme-sp .nias-theme-sp__faq { border: 1px solid #EDF1F8; border-radius: 14px; overflow: hidden; background: #fff; transition: .16s; }
.nias-theme-sp .nias-theme-sp__faq.is-open { border-color: var(--sp-accent); background: var(--sp-accent-soft); }
.nias-theme-sp .nias-theme-sp__faq-q {
	width: 100%; display: flex; align-items: center; gap: 13px;
	padding: 16px 18px; text-align: right; background: none; border: none; cursor: pointer;
}
.nias-theme-sp .nias-theme-sp__faq-mark {
	width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong);
	display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.nias-theme-sp .nias-theme-sp__faq.is-open .nias-theme-sp__faq-mark { background: #fff; }
.nias-theme-sp .nias-theme-sp__faq-text { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--sp-ink-2); }
.nias-theme-sp .nias-theme-sp__faq-plus { font-size: 20px; color: var(--sp-accent-strong); transition: transform .2s; }
.nias-theme-sp .nias-theme-sp__faq.is-open .nias-theme-sp__faq-plus { transform: rotate(45deg); }
.nias-theme-sp .nias-theme-sp__faq-a {
	margin: 0; padding: 0 18px 17px 56px;
	font-size: 13.8px; line-height: 2; color: #52617B; display: none;
}
.nias-theme-sp .nias-theme-sp__faq.is-open .nias-theme-sp__faq-a { display: block; animation: niasSpFade .2s; }

/* changelog (update-report roadmap timeline — lives in a tab panel) */
.nias-theme-sp .nias-theme-sp__changelog { padding: 4px 0 6px; }
.nias-theme-sp .nias-theme-sp__cl-head {
	display: flex; align-items: flex-start; justify-content: space-between;
	flex-wrap: wrap; gap: 14px; margin-bottom: 30px;
}
.nias-theme-sp .nias-theme-sp__cl-title { margin: 0; font-size: 23px; font-weight: 800; color: var(--sp-ink); }
.nias-theme-sp .nias-theme-sp__cl-sub { margin: 7px 0 0; font-size: 14px; color: var(--sp-muted); }
.nias-theme-sp .nias-theme-sp__cl-count {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 9px 16px 9px 9px; border-radius: 16px;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong);
	font-size: 13px; font-weight: 700; white-space: nowrap;
}
.nias-theme-sp .nias-theme-sp__cl-count b {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 30px; height: 30px; padding: 0 7px; border-radius: 50%;
	background: var(--sp-main); color: #fff; font-size: 13px; font-weight: 800;
}

/* the centred roadmap: a dashed line down the middle, green check nodes on it */
.nias-theme-sp .nias-theme-sp__cl-line { position: relative; max-width: 720px; margin: 0 auto; }
.nias-theme-sp .nias-theme-sp__cl-line::before {
	content: ""; position: absolute; top: 14px; bottom: 14px; right: 50%;
	transform: translateX(50%); border-right: 2px dashed var(--sp-line);
}
.nias-theme-sp .nias-theme-sp__cl-item { position: relative; display: flex; flex-direction: column; align-items: center; }
.nias-theme-sp .nias-theme-sp__cl-item + .nias-theme-sp__cl-item { margin-top: 22px; }
.nias-theme-sp .nias-theme-sp__cl-node {
	position: relative; z-index: 1; flex: 0 0 auto;
	width: 46px; height: 46px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #fff; border: 3px solid #D5DCE8; color: #9AA6BD;
	box-shadow: 0 0 0 6px #fff;
}
.nias-theme-sp .nias-theme-sp__cl-node svg { width: 20px; height: 20px; }
/* only the latest (top) version gets the green check */
.nias-theme-sp .nias-theme-sp__cl-item.is-latest .nias-theme-sp__cl-node {
	border-color: #16A34A; color: #16A34A;
	box-shadow: 0 0 0 6px #fff, 0 8px 18px -8px rgba(22,163,74,.55);
}
.nias-theme-sp .nias-theme-sp__cl-card {
	width: 100%; max-width: 640px; margin-top: 16px;
	background: #fff; border: 1px solid var(--sp-line); border-radius: 16px;
	padding: 20px 22px; box-shadow: 0 14px 34px -26px rgba(11,28,61,.6);
}
.nias-theme-sp .nias-theme-sp__cl-item.is-latest .nias-theme-sp__cl-card {
	border-color: var(--sp-accent); box-shadow: 0 16px 38px -22px var(--sp-accent);
}
.nias-theme-sp .nias-theme-sp__cl-meta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 8px; margin-bottom: 15px;
}
.nias-theme-sp .nias-theme-sp__cl-ver {
	display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 10px;
	background: var(--sp-main); color: #fff; font-size: 13.5px; font-weight: 700;
}
.nias-theme-sp .nias-theme-sp__cl-date {
	display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 10px;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong); font-size: 12.5px; font-weight: 600;
}
.nias-theme-sp .nias-theme-sp__cl-latest {
	display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 10px;
	background: #E9F8EF; color: #16A34A; font-size: 12px; font-weight: 700;
}
.nias-theme-sp .nias-theme-sp__cl-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.nias-theme-sp .nias-theme-sp__cl-changes li {
	position: relative; padding-inline-start: 18px;
	font-size: 13.8px; line-height: 1.95; color: var(--sp-text); text-align: right;
}
.nias-theme-sp .nias-theme-sp__cl-changes li::before {
	content: ""; position: absolute; inset-inline-start: 4px; top: 11px;
	width: 6px; height: 6px; border-radius: 50%; background: var(--sp-accent);
}

/* ── RELATED ──────────────────────────────────────────────────────────── */
.nias-theme-sp .nias-theme-sp__related { margin-top: 44px; }
.nias-theme-sp .nias-theme-sp__related-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.nias-theme-sp .nias-theme-sp__related-title { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; margin: 0; color: var(--sp-ink); }
.nias-theme-sp .nias-theme-sp__related-bar { width: 5px; height: 24px; border-radius: 3px; background: var(--sp-blue); }
.nias-theme-sp .nias-theme-sp__related-all { font-size: 13.5px; font-weight: 600; color: var(--sp-blue); display: flex; align-items: center; gap: 4px; transition: gap .15s; }
.nias-theme-sp .nias-theme-sp__related-all:hover { gap: 7px; }
.nias-theme-sp .nias-theme-sp__related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.nias-theme-sp .nias-theme-sp__rel-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; overflow: hidden; transition: .18s;
}
.nias-theme-sp .nias-theme-sp__rel-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(13, 40, 90, .4); border-color: #D5E0F2; }
.nias-theme-sp .nias-theme-sp__rel-thumb { position: relative; height: 160px; background: #fff; display: block; }
.nias-theme-sp .nias-theme-sp__rel-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nias-theme-sp .nias-theme-sp__rel-cat {
	position: absolute; top: 11px; right: 11px;
	background: rgba(255, 255, 255, .92); color: var(--sp-accent-strong);
	font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px;
}
.nias-theme-sp .nias-theme-sp__rel-off {
	position: absolute; bottom: 11px; right: 11px;
	background: #E8493B; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.nias-theme-sp .nias-theme-sp__rel-body { padding: 14px 15px; display: flex; flex-direction: column; flex: 1; }
.nias-theme-sp .nias-theme-sp__rel-name { font-size: 14.5px; font-weight: 700; color: var(--sp-ink-2); margin-bottom: 9px; line-height: 1.5; min-height: 44px; }
.nias-theme-sp .nias-theme-sp__rel-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 11px; font-size: 12.5px; font-weight: 600; color: #5B6B86; }
.nias-theme-sp .nias-theme-sp__rel-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.nias-theme-sp .nias-theme-sp__rel-prices { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nias-theme-sp .nias-theme-sp__rel-old { font-size: 12px; color: #9AA6BD; text-decoration: line-through; }
.nias-theme-sp .nias-theme-sp__rel-old .woocommerce-Price-currencySymbol { text-decoration: line-through; }
.nias-theme-sp .nias-theme-sp__rel-price { font-size: 16px; font-weight: 800; color: var(--sp-ink); }
.nias-theme-sp .nias-theme-sp__rel-price .woocommerce-Price-currencySymbol { font-size: 11.5px; font-weight: 400; color: var(--sp-muted); margin-inline-start: 3px; }
.nias-theme-sp .nias-theme-sp__rel-arrow {
	width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
	background: #EAF2FF; color: var(--sp-blue);
	display: flex; align-items: center; justify-content: center; transition: .15s;
}
.nias-theme-sp .nias-theme-sp__rel-card:hover .nias-theme-sp__rel-arrow { background: var(--sp-blue); color: #fff; }

/* ── INSTALLMENT MODAL ────────────────────────────────────────────────── */
.nias-theme-sp__modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; direction: rtl; }
.nias-theme-sp__modal[hidden] { display: none; }
.nias-theme-sp__modal-overlay { position: absolute; inset: 0; background: rgba(11, 28, 61, .55); backdrop-filter: blur(3px); animation: niasSpFade .2s; }
.nias-theme-sp__modal-card {
	position: relative; width: 480px; max-width: 100%; background: #fff; border-radius: 22px; overflow: hidden;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); animation: niasSpPop .26s ease;
}
@keyframes niasSpPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.nias-theme-sp__modal-head { padding: 18px 26px; background: linear-gradient(120deg, #0A66FF, #0850d6); color: #fff; position: relative; }
.nias-theme-sp__modal-close {
	position: absolute; top: 18px; left: 18px; width: 34px; height: 34px; border-radius: 11px;
	background: rgba(255, 255, 255, .18); color: #fff; border: none; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	padding: 5px;
}
.nias-theme-sp__modal-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.nias-theme-sp__modal-icon svg { width: 26px; height: 26px; }
.nias-theme-sp__modal-title { font-size: 20px; font-weight: 800; }
.nias-theme-sp__modal-sub { font-size: 13.5px; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.nias-theme-sp__modal-body { padding: 24px 26px; }
.nias-theme-sp__modal-note { display: flex; gap: 12px; background: #EAF2FF; border: 1px solid #D5E4FB; border-radius: 14px; padding: 15px; margin-bottom: 0; color: #0A66FF; }
.nias-theme-sp__modal-note svg { flex-shrink: 0; margin-top: 1px; }
.nias-theme-sp__modal-note p { margin: 0; font-size: 14px; line-height: 1.9; color: #1B2C4D; font-weight: 500; }
.nias-theme-sp__modal-label { font-size: 12.5px; font-weight: 600; color: #8593AC; margin-bottom: 11px; }
.nias-theme-sp__gateways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.nias-theme-sp__gateway { border: 1.5px solid #F3D4D0; border-radius: 15px; padding: 10px; text-align: center; transition: .16s; }
.nias-theme-sp__gateway-name { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; margin-bottom: 10px; font-size: 17px; font-weight: 800; }
.nias-theme-sp__gateway-desc { font-size: 12px; color: #5B6B86; line-height: 1.7; }
.nias-theme-sp__gateway--digipay { border-color: #F3D4D0; }
.nias-theme-sp__gateway--digipay .nias-theme-sp__gateway-name { color: #E8493B; }
.nias-theme-sp__gateway--digipay:hover { border-color: #E8493B; box-shadow: 0 10px 24px -14px rgba(232, 73, 59, .6); }
.nias-theme-sp__gateway--snapppay { border-color: #CFEEDB; }
.nias-theme-sp__gateway--snapppay .nias-theme-sp__gateway-name { color: #1AA053; }
.nias-theme-sp__gateway--snapppay:hover { border-color: #1AA053; box-shadow: 0 10px 24px -14px rgba(26, 160, 83, .6); }
.nias-theme-sp__modal-ok {
	width: 100%; height: 50px; border-radius: 14px; background: #0A66FF; color: #fff;
	font: 700 15px; border: none; cursor: pointer; transition: .15s;
}
.nias-theme-sp__modal-ok:hover { background: #0850d6; }

/* ── VIDEO PREVIEW MODAL ──────────────────────────────────────────────── */
.nias-theme-sp__modal--preview .nias-theme-sp__modal-card--video {
	width: 860px; max-width: 100%; background: #0B1C3D; border-radius: 18px; overflow: hidden;
}
.nias-theme-sp__modal--preview .nias-theme-sp__modal-head {
	background: #0B1C3D; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
.nias-theme-sp__modal--preview .nias-theme-sp__modal-title { font-size: 15px; font-weight: 700; color: #fff; }
.nias-theme-sp__modal--preview .nias-theme-sp__modal-close {
	position: static; background: rgba(255,255,255,.12);
}
/* ── Affiliate CTA & Modal Form ───────────────────────────── */
.nias-theme-sp__aff-wrap {
	margin-top: 11px; display: flex; flex-direction: column; gap: 7px;
}
.nias-theme-sp .nias-theme-sp__cta-affiliate {
	width: 100%; height: 48px; margin-top: 0; border-radius: 14px;
	background: #FAF5FF; color: #7E22CE;
	font-size: 14px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	border: 1.5px dashed #A855F7; transition: .16s; cursor: pointer; text-decoration: none;
}
.nias-theme-sp .nias-theme-sp__cta-affiliate:hover {
	background: #7E22CE; color: #fff; border-style: solid; filter: brightness(1.05);
}
.nias-theme-sp .nias-theme-sp__cta-affiliate svg { width: 18px; height: 18px; flex-shrink: 0; }

.nias-theme-sp__aff-profit {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	padding: 7px 10px; border-radius: 10px;
	background: #FDF4FF; border: 1px solid #F0ABFC;
	color: #86198F; font-size: 12px; line-height: 1.5; text-align: center;
}
.nias-theme-sp__aff-profit svg { color: #A21CAF; flex-shrink: 0; }
.nias-theme-sp__aff-profit strong { font-weight: 800; color: #701A75; }
.nias-theme-sp__aff-profit .woocommerce-Price-currencySymbol { font-size: 10.5px; }

.nias-theme-sp__aff-modal-profit {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
	background: linear-gradient(135deg, #FAF5FF, #F3E8FF);
	border: 1.5px solid #D8B4FE; color: #581C87; text-align: right;
}
.nias-theme-sp__aff-modal-profit svg {
	color: #9333EA; flex: 0 0 22px; width: 22px; height: 22px;
}
.nias-theme-sp__aff-modal-profit div {
	display: flex; flex-direction: column; gap: 2px;
}
.nias-theme-sp__aff-modal-profit b {
	font-size: 13px; font-weight: 700; color: #581C87;
}
.nias-theme-sp__aff-modal-profit span {
	font-size: 12.5px; color: #7E22CE;
}
.nias-theme-sp__aff-modal-profit strong {
	font-weight: 800; color: #4A044E;
}

.nias-theme-sp__aff-form {
	display: flex; flex-direction: column; gap: 14px; margin-top: 10px;
}
.nias-theme-sp__form-group {
	display: flex; flex-direction: column; gap: 6px; text-align: right;
}
.nias-theme-sp__form-label {
	font-size: 13px; font-weight: 600; color: var(--sp-ink-2);
}
.nias-theme-sp__form-input {
	width: 100%; height: 44px; padding: 0 14px;
	border: 1.5px solid #E2E8F0; border-radius: 10px;
	font-size: 14px; color: var(--sp-ink);
	background: #F8FAFC; transition: .16s; box-sizing: border-box;
}
.nias-theme-sp__form-input:focus {
	outline: none; border-color: #9333EA; background: #fff;
	box-shadow: 0 0 0 3px rgba(147, 51, 234, .15);
}
.nias-theme-sp__aff-feedback {
	padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.6;
}
.nias-theme-sp__aff-feedback--success {
	background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0;
}
.nias-theme-sp__aff-feedback--error {
	background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA;
}
.nias-theme-sp__aff-submit {
	width: 100%; height: 48px; border-radius: 12px;
	background: linear-gradient(180deg, #9333EA, #7E22CE); color: #fff;
	font-size: 15px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	border: none; cursor: pointer; transition: .16s;
	box-shadow: 0 8px 20px -6px rgba(126, 34, 206, .6);
}
.nias-theme-sp__aff-submit:hover { filter: brightness(1.08); }
.nias-theme-sp__aff-submit:disabled { opacity: .7; cursor: not-allowed; }
.nias-theme-sp__aff-spinner {
	animation: nsSpSpin .8s linear infinite;
}
@keyframes nsSpSpin {
	to { transform: rotate(360deg); }
}
.nias-theme-sp__modal-note--success {
	background: #F0FDF4; border-color: #BBF7D0; color: #166534;
}
.nias-theme-sp__modal-note--success svg {
	color: #16A34A;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
	.nias-theme-sp .nias-theme-sp__related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
	.nias-theme-sp .nias-theme-sp__hero { grid-template-columns: 1fr; }
	/* Single column: stack in source order → content, buy card, tabs. The buy
	   card therefore sits right under the short description. */
	.nias-theme-sp .nias-theme-sp__left,
	.nias-theme-sp .nias-theme-sp__buy,
	.nias-theme-sp .nias-theme-sp__tabs { grid-column: 1; grid-row: auto; }
	.nias-theme-sp .nias-theme-sp__buy { position: static; }
	.nias-theme-sp .nias-theme-sp__rsum { grid-template-columns: 1fr; gap: 20px; }
	.nias-theme-sp .nias-theme-sp__rsum-avg { border-inline-end: none; border-bottom: 1px solid var(--sp-line); padding-bottom: 16px; }

	/* sticky purchase bar */
	body.single-product .nias-theme-sp-main { padding-bottom: 84px; }
	.nias-theme-sp .nias-theme-sp__bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		display: flex; align-items: center; gap: 12px;
		padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
		background: #0B1C3D; box-shadow: 0 -12px 30px -14px rgba(0, 0, 0, .5);
		transform: translateY(115%); transition: transform .3s ease; will-change: transform;
	}
	.nias-theme-sp .nias-theme-sp__bar.is-visible { transform: translateY(0); }
}
@media (max-width: 600px) {
	body.single-product .nias-theme-sp-main { padding: 16px 16px 84px; }
	.nias-theme-sp .nias-theme-sp__title { font-size: 23px; }
	.nias-theme-sp .nias-theme-sp__tabbody { padding: 20px 16px; }
	.nias-theme-sp .nias-theme-sp__rform-row { flex-direction: column; gap: 14px; }
	.nias-theme-sp .nias-theme-sp__changelog { padding: 22px 16px 28px; border-radius: 18px; }
	.nias-theme-sp .nias-theme-sp__cl-title { font-size: 20px; }
	.nias-theme-sp .nias-theme-sp__cl-card { padding: 16px 16px; }
	.nias-theme-sp .nias-theme-sp__cl-node { width: 40px; height: 40px; }
	.nias-theme-sp .nias-theme-sp__cl-node svg { width: 17px; height: 17px; }
}
@media (max-width: 440px) {
	.nias-theme-sp .nias-theme-sp__related-grid { grid-template-columns: 1fr; }
}

/* ── Review pagination (AJAX) ─────────────────────────────────────────── */
.nias-theme-sp .nias-theme-sp__rwrap { position: relative; }
.nias-theme-sp .nias-theme-sp__rwrap.is-loading .nias-theme-sp__rlist {
	opacity: .45; pointer-events: none; transition: opacity .15s;
}
.nias-theme-sp .nias-theme-sp__rwrap.is-loading::after {
	content: ''; position: absolute; inset-inline-start: 50%; top: 24px;
	width: 26px; height: 26px; margin-inline-start: -13px;
	border: 2px solid var(--sp-accent-soft); border-top-color: var(--sp-accent);
	border-radius: 50%; animation: ns-sp-rspin .7s linear infinite;
}
@keyframes ns-sp-rspin { to { transform: rotate(360deg); } }

.nias-theme-sp .nias-theme-sp__rpager {
	display: flex; align-items: center; justify-content: center;
	gap: 6px; flex-wrap: wrap; margin-top: 22px;
}
.nias-theme-sp .nias-theme-sp__rpage {
	min-width: 40px; min-height: 40px;
	display: inline-grid; place-items: center; padding: 0 10px;
	background: #fff; border: 1px solid #e4e8f0; border-radius: 10px;
	color: #51607a; font-size: 13px; font-weight: 600; text-decoration: none;
	font-variant-numeric: tabular-nums;
	transition: background .15s, color .15s, border-color .15s;
}
.nias-theme-sp .nias-theme-sp__rpage:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.nias-theme-sp .nias-theme-sp__rpage.is-active,
.nias-theme-sp .nias-theme-sp__rpage[aria-current="page"] {
	background: var(--sp-accent); border-color: var(--sp-accent); color: #fff;
}
.nias-theme-sp .nias-theme-sp__rpage:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 2px; }
.nias-theme-sp__rpage--nav { font-size: 18px; line-height: 1; }
.nias-theme-sp__rgap { color: #9aa3b2; padding: 0 2px; }

@media (max-width: 480px) {
	.nias-theme-sp .nias-theme-sp__rpager { gap: 5px; }
	.nias-theme-sp .nias-theme-sp__rpage { min-width: 36px; min-height: 36px; padding: 0 7px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.nias-theme-sp .nias-theme-sp__rwrap.is-loading::after { animation: none; }
}

/* ── Iconsax inline icons ─────────────────────────────────────────────── */
.nias-theme-sp .ns-isax { display: inline-block; vertical-align: -0.18em; fill: currentColor; }
.nias-theme-sp .nias-theme-sp__star .ns-isax,
.nias-theme-sp .nias-theme-sp__star .ns-star { display: block; }
.nias-theme-sp .nias-theme-sp__rbar-star { display: inline-flex; align-items: center; gap: 3px; }

/* ── Showcase blocks (inc/modules/class-ns-theme-showcase.php) ─────────── */
/* version + compatibility strip under the title */
.nias-theme-sp .nias-theme-sx__strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; font-size: 13px; }
.nias-theme-sp .nias-theme-sx__ver {
	display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong); font-weight: 800; direction: rtl;
}
.nias-theme-sp .nias-theme-sx__ver-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.nias-theme-sp .nias-theme-sx__date { color: var(--sp-text); }
.nias-theme-sp a.nias-theme-sx__log { color: var(--sp-accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nias-theme-sp .nias-theme-sx__chip {
	display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px;
	background: #FFFFFF; border: 1px solid var(--sp-line); color: var(--sp-ink-2); font-weight: 600;
}
.nias-theme-sp .nias-theme-sx__chip svg { color: #16A34A; }

/* shared panel heading */
.nias-theme-sp .nias-theme-sx__h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--sp-ink); }

/* feature cards */
.nias-theme-sp .nias-theme-sx__features { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.nias-theme-sp .nias-theme-sx__feature {
	display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px;
	background: #FFFFFF; border: 1px solid var(--sp-line); transition: border-color .2s ease, box-shadow .2s ease;
}
.nias-theme-sp .nias-theme-sx__feature:hover { border-color: var(--sp-accent); box-shadow: 0 14px 30px -16px rgba(11,28,61,.35); }
.nias-theme-sp .nias-theme-sx__feature-icon {
	width: 46px; height: 46px; border-radius: 14px; margin-bottom: 4px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--sp-accent-soft); color: var(--sp-accent-strong);
}
.nias-theme-sp .nias-theme-sx__feature strong { font-size: 15.5px; color: var(--sp-ink); }
.nias-theme-sp .nias-theme-sx__feature span:last-child:not(.nias-theme-sx__feature-icon) { font-size: 13.5px; line-height: 1.85; color: var(--sp-text); }

/* live demo: browser frame */
.nias-theme-sp .nias-theme-sx__demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nias-theme-sp .nias-theme-sx__demo-head .nias-theme-sx__h2 { margin: 0; }
.nias-theme-sp .nias-theme-sx__devices { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #EEF2F8; }
.nias-theme-sp .nias-theme-sx__devices button {
	height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
	font-family: inherit; font-size: 13px; font-weight: 700; color: var(--sp-text);
}
.nias-theme-sp .nias-theme-sx__devices button.is-on { background: #FFFFFF; color: var(--sp-ink); box-shadow: 0 1px 4px rgba(11,28,61,.14); }
.nias-theme-sp .nias-theme-sx__browser { border-radius: 18px; overflow: hidden; border: 1px solid var(--sp-line); background: #FFFFFF; box-shadow: 0 24px 50px -28px rgba(11,28,61,.45); }
.nias-theme-sp .nias-theme-sx__browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #F3F5F9; border-bottom: 1px solid var(--sp-line); }
.nias-theme-sp .nias-theme-sx__dots { display: inline-flex; gap: 6px; flex: none; }
.nias-theme-sp .nias-theme-sx__dots i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; }
.nias-theme-sp .nias-theme-sx__dots i:nth-child(2) { background: #FBBF24; }
.nias-theme-sp .nias-theme-sx__dots i:nth-child(3) { background: #34D399; }
.nias-theme-sp .nias-theme-sx__url {
	flex: 1; min-width: 0; padding: 4px 12px; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--sp-line);
	font-size: 12.5px; color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.nias-theme-sp a.nias-theme-sx__open { flex: none; font-size: 12.5px; font-weight: 700; color: var(--sp-accent-strong); }
.nias-theme-sp .nias-theme-sx__screen { position: relative; overflow: hidden; background: #0B1C3D; transition: height .3s ease; min-height: 220px; }
.nias-theme-sp .nias-theme-sx__poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.nias-theme-sp .nias-theme-sx__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: blur(1px); }
.nias-theme-sp .nias-theme-sx__load {
	position: relative; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border: 0; border-radius: 14px;
	background: var(--sp-main); color: #FFFFFF; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
	box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); transition: transform .2s ease;
}
.nias-theme-sp .nias-theme-sx__load:hover { transform: translateY(-2px); }
.nias-theme-sp .nias-theme-sx__browser.is-live .nias-theme-sx__poster { display: none; }
.nias-theme-sp .nias-theme-sx__frame { position: absolute; top: 0; border: 0; background: #FFFFFF; transform-origin: top right; }
.nias-theme-sp .nias-theme-sx__browser[data-device="mobile"] .nias-theme-sx__screen,
.nias-theme-sp .nias-theme-sx__browser[data-device="tablet"] .nias-theme-sx__screen { background: #E9EDF5; }
.nias-theme-sp .nias-theme-sx__demo-note { margin: 10px 0 0; font-size: 12.5px; color: var(--sp-muted); }
.nias-theme-sp a.nias-theme-sx__demo-btn { text-decoration: none; }

/* comparison table */
.nias-theme-sp .nias-theme-sx__compare-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--sp-line); background: #FFFFFF; }
.nias-theme-sp .nias-theme-sx__compare { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; }
.nias-theme-sp .nias-theme-sx__compare th,
.nias-theme-sp .nias-theme-sx__compare td { padding: 13px 16px; border-bottom: 1px solid var(--sp-line); text-align: center; }
.nias-theme-sp .nias-theme-sx__compare tbody tr:last-child th,
.nias-theme-sp .nias-theme-sx__compare tbody tr:last-child td { border-bottom: 0; }
.nias-theme-sp .nias-theme-sx__compare thead th { font-size: 13px; font-weight: 800; color: var(--sp-text); background: #F7F9FC; }
.nias-theme-sp .nias-theme-sx__compare thead th.is-ours { background: var(--sp-accent); color: #FFFFFF; }
.nias-theme-sp .nias-theme-sx__compare tbody th { text-align: right; font-weight: 600; color: var(--sp-ink-2); }
.nias-theme-sp .nias-theme-sx__compare td.is-ours { background: var(--sp-accent-soft); font-weight: 700; color: var(--sp-ink); }
.nias-theme-sp .nias-theme-sx__mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; }
.nias-theme-sp .nias-theme-sx__compare td.is-yes .nias-theme-sx__mark { background: #DCFCE7; color: #16A34A; }
.nias-theme-sp .nias-theme-sx__compare td.is-no .nias-theme-sx__mark { background: #FEE2E2; color: #DC2626; }

@media (max-width: 600px) {
	.nias-theme-sp .nias-theme-sx__features { grid-template-columns: 1fr 1fr; gap: 10px; }
	.nias-theme-sp .nias-theme-sx__feature { padding: 14px; }
	.nias-theme-sp a.nias-theme-sx__open { display: none; }
}
/* More panels → the tab bar scrolls; keep it swipeable but hide the scrollbar. */
.nias-theme-sp .nias-theme-sp__tabnav { scrollbar-width: none; }
.nias-theme-sp .nias-theme-sp__tabnav::-webkit-scrollbar { display: none; }

/* ── Long description folds; reviews in masonry (plugin / template pages) ── */
.nias-theme-sp .nias-theme-sp__prose.is-collapsed { position: relative; max-height: 900px; overflow: hidden; }
.nias-theme-sp .nias-theme-sp__prose.is-collapsed::after {
	content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 160px; pointer-events: none;
	background: linear-gradient(to top, #FFFFFF, rgba(255,255,255,0));
}
.nias-theme-sp .nias-theme-sp__more {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; height: 44px; padding: 0 22px;
	border: 1px solid var(--sp-line); border-radius: 12px; background: #FFFFFF; cursor: pointer;
	font-family: inherit; font-size: 14px; font-weight: 800; color: var(--sp-accent-strong);
}
.nias-theme-sp .nias-theme-sp__more:hover { border-color: var(--sp-accent); background: var(--sp-accent-soft); }
.nias-theme-sp .nias-theme-sp__more[hidden] { display: none; }
.nias-theme-sp:not(.nias-theme-cp) .nias-theme-sp__rlist { display: block; columns: 2 280px; column-gap: 14px; }
.nias-theme-sp:not(.nias-theme-cp) .nias-theme-sp__rlist > * {
	display: inline-block; width: 100%; margin: 0 0 14px; break-inside: avoid; -webkit-column-break-inside: avoid;
}

/* ── Buy-card declutter, sales count, gallery video (plugin / kit pages) ── */
.nias-theme-sp .nias-theme-sp__sales { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #5B6B86; }
.nias-theme-sp .nias-theme-sp__sales svg { width: 15px; height: 15px; color: #16A34A; }

/* video preview + live demo: one compact row */
.nias-theme-sp .nias-theme-sp__minor { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.nias-theme-sp .nias-theme-sp__minor.is-two { grid-template-columns: 1fr 1fr; }
.nias-theme-sp .nias-theme-sp__minor .nias-theme-sp__cta-preview { margin: 0; height: 44px; font-size: 13.5px; }

/* what you get */
.nias-theme-sp .nias-theme-sp__reassure { display: grid; grid-template-columns: 1fr; gap: 12px; justify-content: stretch; }
.nias-theme-sp .nias-theme-sp__reassure-title { font-size: 12.5px; font-weight: 800; color: var(--sp-muted); }

/* affiliate: a quieter link at the bottom of the card */
.nias-theme-sp .nias-theme-sp__buy-body .nias-theme-sp__aff-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #E1E7F0; }
.nias-theme-sp .nias-theme-sp__buy-body .nias-theme-sp__cta-affiliate {
	width: 100%; height: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none;
	justify-content: flex-start; font-size: 13px; font-weight: 700; color: var(--sp-accent-strong);
}
.nias-theme-sp .nias-theme-sp__buy-body .nias-theme-sp__cta-affiliate:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.nias-theme-sp .nias-theme-sp__buy-body .nias-theme-sp__aff-profit { margin-top: 6px; padding: 0; background: none; border: 0; font-size: 12px; }

/* play button over the main image + video thumb */
.nias-theme-sp .nias-theme-sp__main-play {
	position: absolute; bottom: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
	height: 46px; padding: 0 8px 0 18px; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(11,28,61,.78); color: #FFFFFF; font-family: inherit; font-size: 14px; font-weight: 700;
	backdrop-filter: blur(6px); transition: transform .2s ease, background-color .2s ease;
}
.nias-theme-sp .nias-theme-sp__main-play:hover { transform: translateY(-2px); background: var(--sp-accent); }
.nias-theme-sp .nias-theme-sp__main-play-icon { width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF; color: var(--sp-ink); display: inline-flex; align-items: center; justify-content: center; }
.nias-theme-sp .nias-theme-sp__thumb--video { position: relative; }
.nias-theme-sp .nias-theme-sp__thumb-play {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(11,28,61,.45); color: #FFFFFF; border-radius: inherit;
}

/* new-in-this-version dropdown on the version chip + docs link */
.nias-theme-sp .nias-theme-sx__new { position: relative; }
.nias-theme-sp .nias-theme-sx__new > summary { list-style: none; cursor: pointer; }
.nias-theme-sp .nias-theme-sx__new > summary::-webkit-details-marker { display: none; }
.nias-theme-sp .nias-theme-sx__new > summary svg { transition: transform .2s ease; }
.nias-theme-sp .nias-theme-sx__new[open] > summary svg { transform: rotate(180deg); }
.nias-theme-sp .nias-theme-sx__new-pop {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(360px, 86vw);
	padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--sp-line);
	box-shadow: 0 20px 44px -18px rgba(11,28,61,.4);
}
.nias-theme-sp .nias-theme-sx__new-pop strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--sp-ink); }
.nias-theme-sp .nias-theme-sx__new-pop ul { margin: 0 0 8px; padding: 0 18px 0 0; font-size: 13px; line-height: 1.9; color: var(--sp-text); }
.nias-theme-sp .nias-theme-sx__new-pop a { font-size: 12.5px; font-weight: 700; color: var(--sp-accent-strong); }
.nias-theme-sp a.nias-theme-sx__docs {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
	background: #FFF7E6; color: #8A4B00; border: 1px solid #F5D48A; font-weight: 700;
}
.nias-theme-sp a.nias-theme-sx__docs:hover { background: #FFEFC7; }

/* screenshots grid */
.nias-theme-sp .nias-theme-sx__shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.nias-theme-sp .nias-theme-sx__shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nias-theme-sp .nias-theme-sx__shot a { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--sp-line); background: #F3F6FA; }
.nias-theme-sp .nias-theme-sx__shot img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.nias-theme-sp .nias-theme-sx__shot a:hover img { transform: scale(1.03); }
.nias-theme-sp .nias-theme-sx__zoom {
	position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center; background: rgba(11,28,61,.7); color: #FFFFFF;
	opacity: 0; transition: opacity .2s ease;
}
.nias-theme-sp .nias-theme-sx__shot a:hover .nias-theme-sx__zoom,
.nias-theme-sp .nias-theme-sx__shot a:focus-visible .nias-theme-sx__zoom { opacity: 1; }
.nias-theme-sp .nias-theme-sx__shot figcaption { font-size: 13.5px; font-weight: 700; color: var(--sp-ink-2); }

/* lightbox (appended to body) */
.nias-theme-sx__lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(6,10,20,.88); direction: rtl; }
.nias-theme-sx__lightbox[hidden] { display: none; }
.nias-theme-sx__lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nias-theme-sx__lightbox img { max-width: 100%; max-height: calc(100vh - 110px); height: auto; border-radius: 12px; background: #FFFFFF; }
.nias-theme-sx__lightbox figcaption { color: #FFFFFF; font-size: 14px; font-weight: 700; }
.nias-theme-sx__lightbox button {
	flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255,255,255,.14); color: #FFFFFF; font-size: 26px; line-height: 1;
}
.nias-theme-sx__lightbox button:hover { background: rgba(255,255,255,.26); }
.nias-theme-sx__lb-close { position: absolute; top: 16px; left: 16px; }
.nias-theme-sx__lightbox.is-single .nias-theme-sx__lb-nav { visibility: hidden; }

/* install steps */
.nias-theme-sp .nias-theme-sx__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nias-theme-sp .nias-theme-sx__steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--sp-line); background: #FFFFFF; }
.nias-theme-sp .nias-theme-sx__steps li:not(:last-child)::after {
	content: ""; position: absolute; right: 33px; top: 54px; bottom: -12px; width: 2px; background: var(--sp-accent-soft);
}
.nias-theme-sp .nias-theme-sx__step-n {
	position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: var(--sp-main); color: #FFFFFF; font-weight: 800;
}
.nias-theme-sp .nias-theme-sx__step-t { padding-top: 6px; font-size: 14.5px; line-height: 1.9; color: var(--sp-ink-2); }

/* bought together */
.nias-theme-sp .nias-theme-sx__pairs { margin-top: 40px; }
.nias-theme-sp .nias-theme-sx__pairs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nias-theme-sp .nias-theme-sx__pairs .ns-pc__title { margin: 0; font-size: 15px; }
@media (max-width: 860px) { .nias-theme-sp .nias-theme-sx__pairs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
	.nias-theme-sp .nias-theme-sx__pairs-grid { grid-template-columns: 1fr; }
	.nias-theme-sp .nias-theme-sp__main-play { bottom: 10px; right: 10px; height: 40px; font-size: 13px; }
	.nias-theme-sp .nias-theme-sx__shots { grid-template-columns: 1fr 1fr; gap: 10px; }
}
