/*
 * Jota Shape Finder for Elementor
 * Developed by Zoon11 — https://zoon11.com
 *
 * Structural styles only. Colours, spacing and typography are controlled
 * from the Elementor panel (and have sensible defaults there).
 */

.elementor-widget-jota_shape_finder,
.elementor-widget-jota_shape_finder > .elementor-widget-container {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.jsf {
	display: block;
	opacity: 1;
	visibility: visible;
	--jsf-picker-w: 46%;
	--jsf-anim: 350ms;
	box-sizing: border-box;
	width: 100%;
}

.jsf *,
.jsf *::before,
.jsf *::after {
	box-sizing: border-box;
}

/* ---------- Layout ---------- */
.jsf-wrap {
	display: grid;
	gap: 56px;
	align-items: stretch;
	grid-template-columns: var(--jsf-picker-w) minmax(0, 1fr);
}

/* tabs left / detail right (default) */
.jsf-picker { order: 1; }
.jsf-detail { order: 2; }

/* detail left / tabs right */
.jsf-layout-picker-right .jsf-wrap {
	grid-template-columns: minmax(0, 1fr) var(--jsf-picker-w);
}
.jsf-layout-picker-right .jsf-detail { order: 1; }
.jsf-layout-picker-right .jsf-picker { order: 2; }

/* stacked layouts */
.jsf-layout-picker-top .jsf-wrap,
.jsf-layout-picker-bottom .jsf-wrap {
	grid-template-columns: minmax(0, 1fr);
}
.jsf-layout-picker-bottom .jsf-detail { order: 1; }
.jsf-layout-picker-bottom .jsf-picker { order: 2; }

/* auto-stack side layouts */
@media (max-width: 1024px) {
	.jsf-stack-tablet.jsf-layout-picker-left .jsf-wrap,
	.jsf-stack-tablet.jsf-layout-picker-right .jsf-wrap {
		grid-template-columns: minmax(0, 1fr);
	}
	.jsf-stack-tablet.jsf-layout-picker-right .jsf-picker { order: 1; }
	.jsf-stack-tablet.jsf-layout-picker-right .jsf-detail { order: 2; }
}
@media (max-width: 767px) {
	.jsf-stack-mobile.jsf-layout-picker-left .jsf-wrap,
	.jsf-stack-mobile.jsf-layout-picker-right .jsf-wrap {
		grid-template-columns: minmax(0, 1fr);
	}
	.jsf-stack-mobile.jsf-layout-picker-right .jsf-picker { order: 1; }
	.jsf-stack-mobile.jsf-layout-picker-right .jsf-detail { order: 2; }
}

/* ---------- Picker (tabs) ---------- */
.jsf-picker {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-content: start;
}

.jsf-btn {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 18px 8px 12px;
	background: #fff;
	border: 1.5px solid #dde6cc;
	border-radius: 20px;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .22s, border-color .22s, transform .22s, box-shadow .22s, color .22s;
	min-width: 0;
}

.jsf-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.jsf-btn-img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 110px;
}

.jsf-btn-img img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: 100%;
	object-fit: contain;
}

.jsf-btn-label {
	display: block;
	font-size: .72rem;
	font-weight: 700;
	color: #667058;
	transition: color .22s;
}

/* ---------- Detail ---------- */
.jsf-detail {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 420px;
	padding: 44px;
	border-radius: 28px;
	overflow: hidden;
	background-color: #0e1a06;
}

.jsf-detail::after {
	content: '';
	display: none;
	position: absolute;
	right: -80px;
	bottom: -80px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(163, 214, 63, .2), transparent 65%);
	pointer-events: none;
}
.jsf-glow-on .jsf-detail::after { display: block; }

.jsf-panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
}
.jsf-panel[hidden] { display: none !important; }

.jsf-art {
	flex-shrink: 0;
	width: 100px;
}
.jsf-art img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45));
}

.jsf-text-col {
	flex: 1 1 0;
	min-width: 0;
}

.jsf-title {
	margin: 0 0 10px;
	color: #a3d63f;
	font-size: 2rem;
	font-weight: 900;
	letter-spacing: -.05em;
	line-height: 1.1;
}

.jsf-text {
	color: rgba(255, 255, 255, .55);
	font-size: .93rem;
	line-height: 1.8;
}
.jsf-text > *:first-child { margin-top: 0; }
.jsf-text > *:last-child { margin-bottom: 0; }

.jsf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.jsf-tag {
	margin: 0;
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 100px;
	background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .75);
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.3;
}

.jsf-cta {
	display: inline-block;
	margin-top: 28px;
	padding: 12px 24px;
	border-radius: 100px;
	background: #a3d63f;
	color: #0e1a06;
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .2s;
}
.jsf-cta:hover { transform: translateY(-2px); }

.jsf-empty {
	padding: 40px;
	border: 2px dashed #c7d3b2;
	border-radius: 16px;
	text-align: center;
	color: #667058;
}

/* ---------- Animations ---------- */
@keyframes jsf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jsf-up   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes jsf-zoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.jsf-anim-fade .jsf-panel.is-active { animation: jsf-fade var(--jsf-anim) ease; }
.jsf-anim-up   .jsf-panel.is-active { animation: jsf-up   var(--jsf-anim) cubic-bezier(.2, .8, .2, 1); }
.jsf-anim-zoom .jsf-panel.is-active { animation: jsf-zoom var(--jsf-anim) cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
	.jsf-panel.is-active { animation: none !important; }
	.jsf-btn, .jsf-cta { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.jsf-panel { flex-wrap: wrap; }
}
