/*
 * NexaLance Product Purchase Card
 * Frontend styles.
 */

.elementor-widget-nexalance-product-purchase-card {
	width: 100%;
}

.nlppc-widget,
.nlppc-widget * {
	box-sizing: border-box;
}

.nlppc-widget {
	--nlppc-media-width: 50%;
	--nlppc-divider-width: 0px;
	--nlppc-divider-color: rgba(45, 42, 40, 0.08);
	--nlppc-image-scale: 1.025;
	--nlppc-card-lift: 4px;
	width: 100%;
	position: relative;
}

.nlppc-card {
	display: grid;
	grid-template-columns: minmax(0, var(--nlppc-media-width)) minmax(0, 1fr);
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	overflow: hidden;
	position: relative;
	isolation: isolate;
	background: #fbfaf7;
	border: 1px solid #dfddd7;
	border-radius: 24px;
	box-shadow: 0 18px 45px -28px rgba(35, 31, 28, 0.28);
	transform: translateZ(0);
	transition:
		transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nlppc-align-left .nlppc-card {
	margin-inline-start: 0;
	margin-inline-end: auto;
}

.nlppc-align-center .nlppc-card {
	margin-inline: auto;
}

.nlppc-align-right .nlppc-card {
	margin-inline-start: auto;
	margin-inline-end: 0;
}

.nlppc-widget.has-card-lift:hover .nlppc-card {
	transform: translateY(calc(var(--nlppc-card-lift) * -1));
}

.nlppc-media {
	min-width: 0;
	min-height: 680px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background: #e9edeb;
}

.nlppc-media::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.42), transparent 38%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
	opacity: 0.55;
	z-index: 0;
}

.nlppc-media-left .nlppc-media {
	order: 1;
	border-inline-end: var(--nlppc-divider-width) solid var(--nlppc-divider-color);
}

.nlppc-media-left .nlppc-content {
	order: 2;
}

.nlppc-media-right .nlppc-media {
	order: 2;
	border-inline-start: var(--nlppc-divider-width) solid var(--nlppc-divider-color);
}

.nlppc-media-right .nlppc-content {
	order: 1;
}

.nlppc-media-inner {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	overflow: hidden;
	border: 0;
	outline: 0;
	line-height: 0;
}

.nlppc-product-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	border: 0;
	outline: 0;
	vertical-align: middle;
	background: transparent;
	transform: translateZ(0);
	transform-origin: center;
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nlppc-widget img.nlppc-product-image {
	border-width: 0;
	border-style: none;
}

.nlppc-widget.has-image-motion:hover .nlppc-product-image {
	transform: scale(var(--nlppc-image-scale));
}

.nlppc-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	background: #fbfaf7;
}

.nlppc-content-inner {
	width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nlppc-title {
	padding: 0;
	margin: 0 0 18px;
	color: #2d2a28;
	font-size: clamp(2rem, 3vw, 2.35rem);
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

.nlppc-overview {
	min-width: 0;
}

.nlppc-popular-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	max-width: 100%;
	padding: 8px 14px;
	border-radius: 999px;
	background: #2d2a28;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.nlppc-popular-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 12px;
	line-height: 1;
}

.nlppc-popular-badge__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.nlppc-description {
	margin: 10px 0 4px;
	color: #706d69;
	font-size: 16px;
	line-height: 1.52;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.nlppc-description > :first-child {
	margin-top: 0;
}

.nlppc-description > :last-child {
	margin-bottom: 0;
}

.nlppc-description p {
	margin-block: 0 0.35em;
}

.nlppc-features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.nlppc-feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.nlppc-feature__icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ecebe8;
	color: #2f2d2a;
	font-size: 12px;
	line-height: 1;
	margin-top: 0.02em;
}

.nlppc-feature__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.nlppc-feature__text {
	min-width: 0;
	color: #353230;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.nlppc-purchase {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.nlppc-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding-top: 10px;
	min-width: 0;
}

.nlppc-option {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	min-height: 96px;
	padding: 14px 16px;
	border: 1.5px solid #d9d6d0;
	border-radius: 12px;
	background: #fbfaf7;
	color: inherit;
	font: inherit;
	text-align: start;
	cursor: pointer;
	overflow: visible;
	transition:
		border-color 180ms ease,
		background-color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.nlppc-option.has-discount {
	padding-block-start: 19px;
}

.nlppc-option:hover {
	border-color: #9b9690;
	background: #f7f4f0;
	transform: translateY(-1px);
}

.nlppc-option.is-active {
	border-color: #d1492d;
	background: #fbf7f4;
	box-shadow: inset 0 0 0 0.5px currentColor;
}

.nlppc-option:focus-visible {
	outline: 3px solid color-mix(in srgb, #d1492d 35%, transparent);
	outline-offset: 3px;
}

.nlppc-option__discount {
	position: absolute;
	inset-block-start: -11px;
	inset-inline-end: 12px;
	z-index: 2;
	max-width: calc(100% - 24px);
	padding: 3px 9px;
	border-radius: 999px;
	background: #d1492d;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nlppc-option__label-row {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-width: 0;
}

.nlppc-option__radio {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #b7b2ac;
	border-radius: 50%;
	transition: border-color 180ms ease;
}

.nlppc-option__radio-fill {
	width: 50%;
	height: 50%;
	border-radius: 50%;
	background: #d1492d;
	opacity: 0;
	transform: scale(0.35);
	transition:
		opacity 180ms ease,
		transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nlppc-option.is-active .nlppc-option__radio {
	border-color: #d1492d;
}

.nlppc-option.is-active .nlppc-option__radio-fill {
	opacity: 1;
	transform: scale(1);
}

.nlppc-option__label {
	min-width: 0;
	color: #34312f;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.nlppc-option__price {
	display: block;
	padding-inline-start: 24px;
	color: #171616;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.nlppc-option__price .price,
.nlppc-option__price .woocommerce-Price-amount {
	color: inherit;
	font: inherit;
}

.nlppc-option__price ins {
	text-decoration: none;
}

.nlppc-option__price del {
	opacity: 0.55;
	font-size: 0.68em;
	font-weight: 400;
}

.nlppc-option__compare {
	display: block;
	padding-inline-start: 24px;
	color: #8c8883;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.25;
	text-decoration: line-through;
	overflow-wrap: anywhere;
}

.nlppc-option-info[hidden] {
	display: none !important;
}

.nlppc-option-info {
	min-width: 0;
	padding: 11px 14px;
	border-radius: 8px;
	background: #f0efec;
	color: #5c5955;
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.nlppc-option-info__panel {
	display: none;
}

.nlppc-option-info__panel.is-active {
	display: block;
}

.nlppc-option-info__panel[hidden] {
	display: none !important;
}

.nlppc-option-info p {
	margin: 0;
}

.nlppc-status {
	margin: 0;
	min-width: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.nlppc-status:empty {
	display: none;
}

.nlppc-status.is-success {
	color: #277a43;
}

.nlppc-status.is-error {
	color: #b3261e;
}

.nlppc-add-to-cart {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border: 1px solid #c94b2d;
	border-radius: 999px;
	background: #df5a36;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition:
		background-color 180ms ease,
		color 180ms ease,
		border-color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.nlppc-add-to-cart::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.18) 48%, transparent 72%);
	transform: translateX(-120%);
	transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nlppc-add-to-cart:hover {
	background: #c94629;
	transform: translateY(-1px);
}

.nlppc-add-to-cart:hover::before {
	transform: translateX(120%);
}

.nlppc-add-to-cart:focus-visible {
	outline: 3px solid color-mix(in srgb, #d1492d 35%, transparent);
	outline-offset: 3px;
}

.nlppc-add-to-cart:disabled,
.nlppc-add-to-cart.is-loading {
	cursor: wait;
	opacity: 0.82;
	transform: none;
}

.nlppc-add-to-cart__inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.nlppc-add-to-cart__text {
	min-width: 0;
	overflow-wrap: anywhere;
}

.nlppc-add-to-cart__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1;
}

.nlppc-add-to-cart__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.nlppc-add-to-cart__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.42);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: nlppc-spin 700ms linear infinite;
}

.nlppc-add-to-cart.is-loading .nlppc-add-to-cart__icon {
	display: none;
}

.nlppc-add-to-cart.is-loading .nlppc-add-to-cart__spinner {
	display: inline-block;
}

.nlppc-add-to-cart.is-added {
	animation: nlppc-added 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nlppc-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes nlppc-added {
	0%,
	100% {
		transform: scale(1);
	}
	48% {
		transform: scale(1.018);
	}
}

/* Container-aware responsive layout. */
.nlppc-widget.is-stacked .nlppc-card {
	grid-template-columns: minmax(0, 1fr);
}

.nlppc-widget.is-stacked .nlppc-media,
.nlppc-widget.is-stacked .nlppc-content {
	border-inline: 0;
}

.nlppc-widget.is-stacked.nlppc-mobile-media-top .nlppc-media {
	order: 1;
	border-block-end: var(--nlppc-divider-width) solid var(--nlppc-divider-color);
}

.nlppc-widget.is-stacked.nlppc-mobile-media-top .nlppc-content {
	order: 2;
}

.nlppc-widget.is-stacked.nlppc-mobile-media-bottom .nlppc-content {
	order: 1;
}

.nlppc-widget.is-stacked.nlppc-mobile-media-bottom .nlppc-media {
	order: 2;
	border-block-start: var(--nlppc-divider-width) solid var(--nlppc-divider-color);
}

.nlppc-widget.is-stacked .nlppc-media {
	min-height: 360px;
}

.nlppc-widget.is-stacked .nlppc-content {
	padding: 28px;
}

.nlppc-widget.is-stacked .nlppc-title {
	font-size: clamp(1.8rem, 7vw, 2.3rem);
}

.nlppc-widget.is-narrow .nlppc-options {
	grid-template-columns: minmax(0, 1fr) !important;
}

.nlppc-widget.is-narrow .nlppc-option {
	min-height: 88px;
}

.nlppc-widget.is-narrow .nlppc-content {
	padding: 24px 20px;
}

.nlppc-widget.is-narrow .nlppc-title {
	font-size: clamp(1.65rem, 8.8vw, 2.1rem);
}

.nlppc-widget.is-narrow .nlppc-description {
	font-size: 15px;
}

.nlppc-widget.is-narrow .nlppc-option__price {
	font-size: 20px;
}

/* Reveal only after JavaScript marks the component as ready. */
.nlppc-widget.has-reveal.nlppc-js-ready:not(.is-visible) .nlppc-card {
	opacity: 0;
	transform: translateY(18px);
}

.nlppc-widget.has-reveal.nlppc-js-ready .nlppc-card {
	transition:
		opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nlppc-widget.has-reveal.nlppc-js-ready.is-visible .nlppc-card {
	opacity: 1;
}

@media (max-width: 767px) {
	.nlppc-card {
		border-radius: 18px;
	}

	.nlppc-content {
		padding: 24px 20px;
	}

	.nlppc-media {
		min-height: 360px;
	}

	.nlppc-title {
		font-size: clamp(1.7rem, 8vw, 2.15rem);
	}

	.nlppc-options {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 420px) {
	.nlppc-media {
		min-height: 310px;
	}

	.nlppc-content {
		padding: 22px 17px;
	}

	.nlppc-popular-badge {
		white-space: normal;
		text-align: center;
	}

	.nlppc-option {
		padding-inline: 14px;
	}

	.nlppc-option__discount {
		inset-inline-end: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nlppc-widget *,
	.nlppc-widget *::before,
	.nlppc-widget *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.nlppc-widget.has-reveal.nlppc-js-ready:not(.is-visible) .nlppc-card {
		opacity: 1;
		transform: none;
	}
}

@supports not (color: color-mix(in srgb, black, white)) {
	.nlppc-option:focus-visible,
	.nlppc-add-to-cart:focus-visible {
		outline-color: rgba(209, 73, 45, 0.42);
	}
}
