/* Splinter product experience. Scoped so Elementor pages stay untouched. */

.sd {
	--sd-bg: oklch(0.965 0.006 100);
	--sd-card: #fff;
	--sd-green: oklch(0.55 0.07 140);
	--sd-green-2: oklch(0.72 0.06 140);
	--sd-accent: oklch(0.68 0.17 50);
	--sd-ink: oklch(0.25 0.01 140);
	--sd-muted: oklch(0.45 0.01 140);
	--sd-line: oklch(0.9 0.005 100);
	--sd-band: oklch(0.929 0.013 255.508);
	--sd-bas: oklch(0.955 0.005 100);
	--sd-shadow: 0 2px 10px -2px oklch(0 0 0 / 0.12);
	box-sizing: border-box;
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	color: var(--sd-ink);
	padding-bottom: 3rem;
}

body.sd-product,
body.sd-quote-page,
body.sd-quote-cart {
	background: oklch(0.965 0.006 100);
	overflow-x: hidden;
}

body.sd-product #content.site-content {
	padding-top: 11.5rem;
}

body.sd-product .elementor-popup-modal {
	display: none !important;
}

.sd h1,
.sd h2,
.sd h3 {
	font-weight: 500;
	letter-spacing: 0;
	color: var(--sd-ink);
}

.sd-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sd-muted);
}

.sd-sub,
.sd-lead,
.sd-price-note,
.sd-note,
.sd-reassure,
.sd-legal,
.sd-call {
	color: var(--sd-muted);
}

.sd-hero {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
	gap: 2rem 2.5rem;
	align-items: start;
	margin-top: 1rem;
}

.sd-photo {
	background: #fff;
	border-radius: 0;
	box-shadow: var(--sd-shadow);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 280px;
}

.sd-photo-main {
	width: auto;
	max-width: 100%;
	max-height: 640px;
	object-fit: contain;
}

.sd-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.sd-thumb {
	border: 1px solid var(--sd-line);
	background: #fff;
	padding: 0;
	border-radius: 8px;
	cursor: pointer;
}

.sd-thumb img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	display: block;
}

.sd-card {
	background: var(--sd-card);
	border-radius: 0;
	box-shadow: var(--sd-shadow);
	padding: 1.4rem 1.5rem 1.5rem;
}

.sd-title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.7rem, 2.4vw, 2.3rem);
	line-height: 1.15;
}

.sd-price {
	margin: 0;
	font-size: clamp(2rem, 3vw, 2.8rem);
	line-height: 1.1;
	font-weight: 500;
}

.sd-price-note {
	margin: 0.2rem 0 1rem;
}

.sd-lead {
	margin: 0 0 1rem;
}

.sd-checks {
	list-style: none;
	margin: 0 0 1.2rem;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem 1rem;
}

.sd-checks li {
	position: relative;
	padding-left: 1.3rem;
}

.sd-checks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--sd-green);
	font-weight: 700;
}

.sd-cta-row {
	display: flex;
	align-items: center;
	gap: 1rem 1.25rem;
	flex-wrap: wrap;
}

.sd-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sd-btn-primary {
	background: var(--sd-green);
	color: #fff;
	padding: 0.75rem 1.3rem 0.65rem;
}

.sd-btn-primary:hover,
.sd-btn-primary:focus-visible {
	background: oklch(0.48 0.07 140);
}

.sd-btn-label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
}

.sd-btn-reviews {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.78rem;
	font-weight: 500;
}

.sd-btn-compact {
	padding: 0.8rem 1.3rem;
}

.sd-btn-ghost {
	background: transparent;
	color: var(--sd-ink);
	border: 1px solid var(--sd-line);
	padding: 0.7rem 1rem;
}

.sd-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.sd-text-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.22em;
	cursor: pointer;
}

.sd-faq {
	margin-top: 1.25rem;
}

.sd-acc + .sd-acc {
	border-top: 1px solid var(--sd-line);
}

.sd-acc-btn {
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	font: inherit;
	padding: 0.8rem 1.5rem 0.8rem 0;
	cursor: pointer;
	position: relative;
	color: inherit;
}

.sd-acc-btn::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0.7rem;
	color: var(--sd-muted);
}

.sd-acc-btn[aria-expanded="true"]::after {
	content: "–";
}

.sd-acc-panel {
	padding: 0 0 0.9rem;
}

.sd-acc-panel p:first-child {
	margin-top: 0;
}

.sd-why {
	margin: 0;
	padding-left: 1.1rem;
}

.sd-why li + li {
	margin-top: 0.45rem;
}

.sd-hall-wrap,
.sd-related-wrap {
	margin-top: 3rem;
}

.sd-description {
	margin-top: 3rem;
	padding: 2.5rem 0;
	background: #fff;
	box-shadow: 0 0 0 100vw #fff;
	border-top: 1px solid var(--sd-band);
	border-bottom: 1px solid var(--sd-band);
}

.sd-intro {
	max-width: 66%;
}

.sd-acc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 2.5rem;
	align-items: end;
	margin-top: 1.5rem;
}

.sd-description table {
	border-collapse: collapse;
	width: auto;
}

.sd-description td,
.sd-description th {
	border: 1px solid var(--sd-line);
	padding: 0.35rem 0.6rem;
	text-align: left;
}

.sd-hall {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	grid-auto-rows: 88px;
	gap: 0.5rem;
	margin-top: 1rem;
}

.sd-hall figure {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	grid-column: span 2;
}

.sd-hall figure:nth-child(3n + 1) {
	grid-row: span 2;
}

.sd-hall img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sd-bas {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 2rem;
	align-items: center;
	background: var(--sd-bas);
	box-shadow: 0 0 0 100vw var(--sd-bas);
	border-radius: 0;
	margin-top: 3rem;
	padding: 2.5rem 0;
}

.sd-bas-photo img {
	width: 100%;
	height: auto;
	border-radius: 0;
	object-fit: cover;
	display: block;
	background: #fff;
}

.sd-form {
	display: grid;
	gap: 0.8rem;
}

.sd-field {
	display: grid;
	gap: 0.25rem;
}

.sd-field label {
	font-size: 0.92rem;
}

.sd-field label span {
	color: var(--sd-muted);
	font-weight: 400;
}

.sd-field input,
.sd-field select,
.sd-field textarea {
	font: inherit;
	width: 100%;
	border: 1px solid var(--sd-line);
	border-radius: 8px;
	padding: 0.65rem 0.75rem;
	background: #fff;
	color: inherit;
}

.sd-field input:focus,
.sd-field select:focus,
.sd-field textarea:focus,
.sd-btn:focus-visible,
.sd-acc-btn:focus-visible,
.sd-text-link:focus-visible,
.sd-choice:focus-within,
.sd-thumb:focus-visible,
.sd-segment:focus-visible,
.sd-close:focus-visible {
	outline: 2px solid var(--sd-green);
	outline-offset: 2px;
}

.sd-field input[aria-invalid="true"],
.sd-field select[aria-invalid="true"],
.sd-field textarea[aria-invalid="true"] {
	border-color: var(--sd-accent);
}

.sd-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.sd-form-error {
	color: oklch(0.45 0.14 30);
	margin: 0;
}

.sd-form-ok {
	margin: 0;
}

.sd-related {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
}

.sd-tile {
	background: #fff;
	box-shadow: var(--sd-shadow);
	padding: 0.75rem;
}

.sd-tile-link {
	display: grid;
	gap: 0.25rem;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.sd-tile img {
	width: 100%;
	height: 140px;
	object-fit: contain;
	background: #fff;
	border-radius: 0;
}

.sd-tile h3 {
	margin: 0;
	font-size: 1rem;
}

.sd-tile-price {
	margin: 0;
	font-weight: 600;
}

.sd-more {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sd-dialog {
	border: 0;
	padding: 0;
	width: min(880px, calc(100vw - 1.25rem));
	max-height: 90vh;
	border-radius: 16px;
	color: var(--sd-ink);
	box-shadow: var(--sd-shadow);
}

.sd-dialog-small {
	width: min(520px, calc(100vw - 1.25rem));
}

.sd-dialog::backdrop {
	background: oklch(0 0 0 / 0.46);
}

.sd-dialog form,
.sd-dialog {
	max-height: 90vh;
}

.sd-dialog form {
	display: flex;
	flex-direction: column;
	max-height: 90vh;
}

.sd-dialog-head,
.sd-dialog-foot,
.sd-progress {
	padding: 1rem 1.2rem;
	background: #fff;
}

.sd-dialog-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
}

.sd-dialog-head h2,
.sd-dialog-head p {
	margin: 0.15rem 0;
}

.sd-dialog-body {
	overflow: auto;
	padding: 0 1.2rem 1rem;
	background: #fff;
}

.sd-dialog-foot {
	border-top: 1px solid var(--sd-line);
	display: grid;
	gap: 0.7rem;
}

.sd-close {
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.1rem 0.3rem;
}

.sd-segments {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 0.35rem;
}

.sd-segment {
	height: 0.45rem;
	border: 0;
	border-radius: 99px;
	background: var(--sd-line);
	padding: 0;
	cursor: pointer;
}

.sd-segment.is-done,
.sd-segment.is-current {
	background: var(--sd-green);
}

.sd-step h3 {
	margin: 0 0 0.25rem;
}

.sd-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.7rem;
}

.sd-choices-models {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sd-choice {
	position: relative;
	border: 1px solid var(--sd-line);
	border-radius: 12px;
	padding: 0.75rem;
	display: grid;
	gap: 0.25rem;
	cursor: pointer;
	background: #fff;
}

.sd-choice input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.sd-choice:has(input:checked) {
	border-color: var(--sd-green);
	box-shadow: inset 0 0 0 1px var(--sd-green);
}

.sd-choice:has(input:checked)::after {
	content: "✓";
	position: absolute;
	top: 0.4rem;
	right: 0.5rem;
	color: var(--sd-green);
	font-weight: 700;
}

.sd-choice-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	background: oklch(0.98 0.002 100);
	border-radius: 8px;
}

.sd-choice-photo img {
	max-width: 100%;
	max-height: 100px;
	object-fit: contain;
}

.sd-swatch {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-size: cover;
	border: 1px solid var(--sd-line);
}

.sd-choice-price {
	color: var(--sd-muted);
	font-size: 0.88rem;
}

.sd-price-foot p,
.sd-totals p,
.sd-cart-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.25rem 0;
}

.sd-total strong {
	font-size: 1.15rem;
}

.sd-pending {
	color: var(--sd-accent);
}

.sd-nav {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.sd-cart,
.sd-quote {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
	gap: 1.5rem;
	align-items: start;
	margin: 1rem 0 2rem;
	background: #fff;
	box-shadow: 0 0 0 100vw #fff;
	border-top: 1px solid var(--sd-band);
	border-bottom: 1px solid var(--sd-band);
	padding: 1.5rem 0 2rem;
}

.sd-totals,
.sd-quote > .sd-card {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.sd-quote {
	grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
}

.sd-lines,
.sd-included {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.sd-lines li,
.sd-included li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--sd-line);
}

.sd-cart-head {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.sd-cart-head img {
	width: 96px;
	height: auto;
	background: #fff;
	border-radius: 8px;
}

.sd-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
}

.sd-span-2 {
	grid-column: 1 / -1;
}

.sd-pay {
	border: 1px solid var(--sd-green);
	border-radius: 12px;
	padding: 0.9rem 1rem;
}

.sd-form.is-sent > :not(.sd-form-ok) {
	display: none;
}

.sd-form.is-sent .sd-form-ok {
	display: block;
}

body.sd-quote-cart .woocommerce-cart-form,
body.sd-quote-cart .cart-collaterals {
	display: none;
}

.sd-legacy-cart .quantity {
	margin-right: 0.5rem;
}

@media (max-width: 1100px) {
	.sd-related {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body.sd-product #content.site-content {
		padding-top: 6.5rem;
	}

	.sd-hero,
	.sd-bas,
	.sd-acc-grid,
	.sd-cart,
	.sd-quote,
	.sd-grid-2,
	.sd-choices,
	.sd-choices-models,
	.sd-checks {
		grid-template-columns: 1fr;
	}

	.sd-intro {
		max-width: none;
	}

	.sd-span-2 {
		grid-column: auto;
	}

	.sd-hall {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 72px;
	}

	.sd-hall figure:nth-child(n + 7) {
		display: none;
	}
}

@media (max-width: 640px) {
	.sd-related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.sd *,
	.sd-dialog {
		scroll-behavior: auto;
		transition: none;
		animation: none;
	}
}
