/*
 * Stone Concept slab calculator: runtime states only. Layout and look of the page and the
 * calculator popups are set in Elementor (global classes sc-*).
 */

/* Templates the script copies: the first item card and the stone card in the picker popup. */
.sc-calc-item-template:not(.scx-item),
.sc-calc-stone-card:not(.scx-stone),
.DUP_sc-calc-item-template:not(.scx-item),
.DUP_sc-calc-stone-card:not(.scx-stone),
[data-id="1e79b42"]:not(.scx-item),
[data-id="6390480b"]:not(.scx-stone) {
	display: none !important;
}

/* Alternative texts and rows the script switches off. */
/* Room for the site's fixed header when a row is scrolled to (the cart's "Módosítás" link). */
.scx-item {
	scroll-margin-top: 120px;
}

.scx-item [hidden],
.elementor-location-popup [hidden] {
	display: none !important;
}

/*
 * The site's custom CSS sets `html, body { overflow-x: hidden !important }`. On body that makes it a scroll
 * container that never scrolls, so the sticky summary box never sticks. `clip` stops sideways scrolling the
 * same way without creating a scroll container. Applies on the calculator page only (this file loads there).
 */
:root,
:root body {
	overflow-x: clip !important;
}

/* Page scroll lock while a calculator popup is open (keeps the scroll position). */
html.scx-lock {
	overflow: hidden !important;
}

html.scx-lock body {
	padding-right: var(--scx-scrollbar, 0px);
}

/* Number fields: no native up/down arrows; the −/+ buttons do that job. */
.scx-item input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.scx-item input[type="number"]::-webkit-outer-spin-button,
.scx-item input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.scx-item button:disabled {
	opacity: 0.35;
	cursor: default;
	background-color: transparent;
}

/* Edge-preparation / drip-edge toggle rows (sc-toggle-row with an sc-check-box inside). */
.sc-toggle-row[aria-pressed="true"] .sc-check-box {
	border-color: #1b3a29;
	background: #1b3a29 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat;
}

.sc-toggle-row:focus-visible .sc-check-box {
	outline: 2px solid #1b3a29;
	outline-offset: 2px;
}

/*
 * Top view in the edge-preparation popup: invisible click areas over the sides and drip edges.
 * Doubled class: the theme's reset.css styles every button (pink border and hover) and loads after this file.
 * Position and size come from inline styles, which `all: unset` does not touch.
 */
button.scx-hotspot.scx-hotspot,
button.scx-hotspot.scx-hotspot:hover,
button.scx-hotspot.scx-hotspot:focus {
	all: unset;
	position: absolute;
	z-index: 2;
	box-sizing: border-box;
	cursor: pointer;
}

button.scx-hotspot.scx-hotspot:focus-visible {
	outline: 2px solid #1b3a29;
	outline-offset: 1px;
	box-shadow: none;
}

/* 3D view: the drawing's iframe fills the stage; the cross-section card (z-index 2) sits on top. */
.scx-view-frame {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #f3f1ec;
}

/* Message under "Kosárba teszem" (missing material, failed cart update). */
.scx-cart-message {
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #a9761c;
	background: #f8f0df;
	color: #a9761c;
	font-family: "Source Sans 3", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

/* Stone currently used by the item being changed. */
.scx-stone[aria-current="true"] {
	border-color: #1b3a29;
}
