/* J&E Ring Widgets — all rules scoped under .je-rw
 * Theme green: #2e443c
 * Filled button: bg #2e443c, text white, hover opacity .65
 * Outline button: text/border #2e443c, hover bg + border #2e443c, text white
 */

.je-rw {
	--je-green: #2e443c;
	--je-rw-slider-fill: var(--je-green);
	--je-rw-slider-track: #d9dddb;
	--je-rw-slider-thumb: var(--je-green);
	--je-rw-slider-thumb-border: #fff;
	--je-rw-slider-track-height: 8px;
	--je-rw-slider-thumb-size: 26px;
	--je-rw-fill: 0%;
}

.je-rw,
.je-rw * {
	box-sizing: border-box;
}

.je-rw-launch {
	font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
	text-align: center;
	margin: 0 0 24px;
}

.je-rw-open {
	font: inherit;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--je-green);
	background: #fff;
	border: 1px solid var(--je-green);
	padding: 11px 18px;
	cursor: pointer;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.je-rw-open:hover,
.je-rw-open:focus {
	background: var(--je-green);
	border-color: var(--je-green);
	color: #fff;
}

.je-rw-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 10px;
	font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
}

.je-rw-modal.is-open {
	display: flex;
}

.je-rw-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 22, 0.55);
}

.je-rw-dialog {
	position: relative;
	background: #fff;
	border-radius: 0;
	max-width: 380px;
	width: 100%;
	max-height: 96dvh;
	overflow: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
	padding: 6px;
	display: flex;
	flex-direction: column;
}

.je-rw-x {
	position: absolute;
	top: 6px;
	right: 10px;
	border: none;
	background: transparent;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	color: #6a726e;
	z-index: 3;
}

.je-rw-body {
	color: #2b3632;
	text-align: center;
	padding: 6px 14px 10px;
	width: 100%;
}

.je-rw-title {
	font-family: "Playfair Display";
	font-size: 23px;
	font-weight: 500;
	color: #2b3632;
	margin: 0 0 2px;
}

.je-rw-sub {
	font-size: 13px;
	color: #7b7b72;
	margin: 0 0 8px;
}

.je-rw-label {
	display: block;
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9aa19d;
	margin: 2px 0 3px;
}

.je-rw-select {
	width: 100%;
	font: inherit;
	font-size: 0.85rem;
	padding: 7px;
	border: 1px solid #ccc;
	border-radius: 9px;
	margin: 0 0 6px;
	background: #fff;
	color: #2b3632;
}

.je-rw-stage {
	position: relative;
	width: 100%;
}

.je-rw-stage svg {
	height: 42dvh;
	width: auto;
	max-width: 100%;
	display: block;
	margin: 0 auto;
}

@media (min-width: 992px) {
	.je-rw-dialog {
		max-width: 460px;
	}

	.je-rw-stage svg {
		height: min(58dvh, 620px);
	}

	.je-rw-band .je-rw-stage svg {
		height: min(68dvh, 720px);
	}

	.je-rw-dialog:has(.je-rw-band) {
		max-width: 500px;
	}
}

.je-rw-caption {
	font-size: 1.4rem;
	color: #2b3632;
	margin: 6px 0 2px;
}

/*
 * Range slider — customise via CSS variables on .je-rw (or a child):
 *   --je-rw-slider-fill          filled track
 *   --je-rw-slider-track          unfilled track
 *   --je-rw-slider-thumb          thumb fill
 *   --je-rw-slider-thumb-border   thumb outline
 *   --je-rw-slider-track-height
 *   --je-rw-slider-thumb-size
 * --je-rw-fill is set by JS (% along the track).
 */

.je-rw input.je-rw-slider,
.single-proudct-section .wcpa_row .je-rw input.je-rw-slider {
	width: 100%;
	touch-action: none;
	height: 40px;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent;
	-webkit-appearance: none !important;
	appearance: none;
	border: none !important;
	cursor: pointer;
}

/* WebKit — filled + unfilled via gradient on the track */
.je-rw input.je-rw-slider::-webkit-slider-runnable-track {
	height: var(--je-rw-slider-track-height);
	border-radius: 999px;
	background: linear-gradient(
		to right,
		var(--je-rw-slider-fill) 0%,
		var(--je-rw-slider-fill) var(--je-rw-fill),
		var(--je-rw-slider-track) var(--je-rw-fill),
		var(--je-rw-slider-track) 100%
	);
}

.je-rw input.je-rw-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: var(--je-rw-slider-thumb-size);
	height: var(--je-rw-slider-thumb-size);
	margin-top: calc((var(--je-rw-slider-track-height) - var(--je-rw-slider-thumb-size)) / 2);
	border-radius: 50%;
	background: var(--je-rw-slider-thumb);
	border: 2px solid var(--je-rw-slider-thumb-border);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Firefox — ::-moz-range-progress is the filled portion */
.je-rw input.je-rw-slider::-moz-range-track {
	height: var(--je-rw-slider-track-height);
	border-radius: 999px;
	background: var(--je-rw-slider-track);
	border: none;
}

.je-rw input.je-rw-slider::-moz-range-progress {
	height: var(--je-rw-slider-track-height);
	border-radius: 999px 0 0 999px;
	background: var(--je-rw-slider-fill);
}

.je-rw input.je-rw-slider::-moz-range-thumb {
	width: var(--je-rw-slider-thumb-size);
	height: var(--je-rw-slider-thumb-size);
	border: 2px solid var(--je-rw-slider-thumb-border);
	border-radius: 50%;
	background: var(--je-rw-slider-thumb);
	box-sizing: border-box;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.je-rw-toggle {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 8px;
}

.je-rw-pill {
	border: 1px solid var(--je-green);
	background: #fff;
	font: inherit;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 8px 16px;
	cursor: pointer;
	color: var(--je-green);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.je-rw-pill:hover,
.je-rw-pill:focus {
	background: var(--je-green);
	border-color: var(--je-green);
	color: #fff;
}

.je-rw-pill.is-on {
	background: var(--je-green);
	color: #fff;
	border-color: var(--je-green);
}

.je-rw-pill.is-on:hover,
.je-rw-pill.is-on:focus {
	background: var(--je-green);
	border-color: var(--je-green);
	color: #fff;
	opacity: 0.65;
}

.je-rw-stone.is-fixed .je-rw-caption {
	margin-bottom: 10px;
}

.je-rw-bespoke-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.je-rw-bespoke-actions .je-rw-slider {
	width: 100%;
	max-width: 280px;
}

.je-rw-bespoke-actions .je-rw-slider[hidden],
.je-rw-bespoke-actions a.je-rw-bespoke[hidden],
.je-rw-bespoke-actions button.je-rw-bespoke[hidden] {
	display: none;
}

.je-rw-bespoke,
button.je-rw-bespoke,
a.je-rw-bespoke {
	display: inline-block;
	margin: 4px 0 8px;
	background: var(--je-green);
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 12px 18px;
	border: 1px solid var(--je-green);
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.2s ease;
}

.je-rw-bespoke:hover,
.je-rw-bespoke:focus,
button.je-rw-bespoke:hover,
button.je-rw-bespoke:focus,
a.je-rw-bespoke:hover,
a.je-rw-bespoke:focus {
	color: #fff;
	background: var(--je-green);
	border-color: var(--je-green);
	opacity: 0.65;
}
