/* Lexulife × SnappPay Black Friday promo */
.lxsp {
	--lxsp-ink: #0f1115;
	--lxsp-ink-2: #1c2130;
	--lxsp-blue: #008efa;
	--lxsp-yellow: #f6b23c;
	--lxsp-red: #e0313f;
	--lxsp-green: #15803d;
	--lxsp-muted: #5b6170;
	font-family: inherit;
	line-height: 1.6;
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
}
.lxsp *, .lxsp *::before, .lxsp *::after { box-sizing: border-box; }
.lxsp[hidden], .lxsp [hidden] { display: none !important; }

/* Neutralise theme button styles inside our components. */
.lxsp button {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}
.lxsp button:focus-visible,
.lxsp a:focus-visible,
.lxsp summary:focus-visible {
	outline: 2px solid var(--lxsp-blue);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Pills */
.lxsp .lxsp-tag {
	display: inline-block;
	background: var(--lxsp-red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.lxsp .lxsp-tag--sm { font-size: 11px; padding: 5px 8px; }
.lxsp .lxsp-snapp {
	display: inline-flex;
	align-items: center;
	background: rgba(0, 142, 250, .16);
	color: #7cc4ff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

/* Code chip with copy action */
.lxsp .lxsp-code {
	display: inline-flex;
	align-items: stretch;
	border: 1.5px dashed var(--lxsp-yellow);
	border-radius: 9px;
	background: rgba(246, 178, 60, .1);
	overflow: hidden;
	white-space: nowrap;
	line-height: 1;
	transition: transform .15s ease;
}
.lxsp .lxsp-code:active { transform: scale(.97); }
.lxsp .lxsp-code__val {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 1.5px;
	color: inherit;
}
.lxsp .lxsp-code__act {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	background: var(--lxsp-yellow);
	color: #1a1300;
	font-size: 12px;
	font-weight: 800;
}
.lxsp .lxsp-code.is-copied { border-style: solid; border-color: #22c55e; }
.lxsp .lxsp-code.is-copied .lxsp-code__act { background: #22c55e; color: #fff; }

.lxsp .lxsp-link {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--lxsp-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lxsp .lxsp-link--light { color: #9fd2ff; }

/* ---------------------------------------------------------------- Top bar */
.lxsp-bar {
	position: relative;
	z-index: 5;
	background: linear-gradient(90deg, #0f1115 0%, #1c2130 55%, #0f1115 100%);
	color: #fff;
	font-size: 13px;
}
.lxsp-bar .lxsp-bar__inner {
	max-width: 1222px;
	margin: 0 auto;
	min-height: 46px;
	padding: 7px 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 14px;
}
.lxsp-bar .lxsp-bar__text {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 10px;
	color: #fff;
}
.lxsp-bar .lxsp-bar__text strong { font-weight: 800; font-size: 14px; color: var(--lxsp-yellow); }
.lxsp-bar .lxsp-bar__sub { color: #c9cfdb; font-size: 12.5px; }
.lxsp-bar .lxsp-bar__more { color: #9fd2ff; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.lxsp-bar .lxsp-code { color: var(--lxsp-yellow); }
.lxsp-bar .lxsp-code__val, .lxsp-bar .lxsp-code__act { padding: 5px 9px; }
.lxsp-bar .lxsp-bar__preview {
	font-size: 11px;
	color: #1a1300;
	background: #fde68a;
	border-radius: 4px;
	padding: 2px 6px;
}
.lxsp-bar .lxsp-bar__close {
	position: absolute;
	inset-inline-end: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	color: #c9cfdb;
	border-radius: 50%;
}
.lxsp-bar .lxsp-bar__close:hover { background: rgba(255, 255, 255, .08); color: #fff; }

@media (max-width: 767px) {
	.lxsp-bar .lxsp-bar__inner { padding: 7px 12px 8px; padding-inline-end: 40px; gap: 6px 10px; justify-content: flex-start; }
	.lxsp-bar .lxsp-bar__tag, .lxsp-bar .lxsp-bar__more { display: none; }
	.lxsp-bar .lxsp-bar__text { flex-direction: column; gap: 0; flex: 1 1 auto; min-width: 0; }
	.lxsp-bar .lxsp-bar__text strong { font-size: 13.5px; }
	.lxsp-bar .lxsp-bar__sub { font-size: 11.5px; }
	.lxsp-bar .lxsp-code__val { font-size: 12.5px; letter-spacing: 1px; padding: 5px 7px; }
	.lxsp-bar .lxsp-code__act { font-size: 11px; padding: 5px 7px; }
	.lxsp-bar .lxsp-bar__close { inset-inline-end: 4px; }
}

/* ---------------------------------------------------------------- Modal */
html.lxsp-lock, html.lxsp-lock body { overflow: hidden; }
.lxsp-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000; /* above the chat widget (999999) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.lxsp-modal .lxsp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 14, .62);
	opacity: 0;
	transition: opacity .22s ease;
}
.lxsp-modal .lxsp-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 430px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	overscroll-behavior: contain;
	background:
		radial-gradient(110% 70% at 100% 0%, rgba(0, 142, 250, .28) 0%, rgba(0, 142, 250, 0) 60%),
		radial-gradient(90% 60% at 0% 100%, rgba(224, 49, 63, .22) 0%, rgba(224, 49, 63, 0) 60%),
		var(--lxsp-ink);
	color: #fff;
	border-radius: 22px;
	padding: 26px 22px 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
	opacity: 0;
	transform: translateY(14px) scale(.98);
	transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
	outline: none;
}
.lxsp-modal.is-open .lxsp-modal__backdrop { opacity: 1; }
.lxsp-modal.is-open .lxsp-modal__dialog { opacity: 1; transform: none; }

.lxsp-modal .lxsp-modal__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #dfe3ea;
	font-size: 22px;
	line-height: 1;
}
.lxsp-modal .lxsp-modal__close:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.lxsp .lxsp-modal__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

.lxsp .lxsp-amount {
	margin: 0 0 4px;
	padding: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
}
.lxsp .lxsp-amount__num { color: var(--lxsp-yellow); font-size: 38px; font-weight: 900; letter-spacing: -.5px; }
.lxsp .lxsp-cond { margin: 0 0 16px; color: #c9cfdb; font-size: 14px; }

.lxsp .lxsp-codebox {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1.5px dashed var(--lxsp-yellow);
	border-radius: 14px;
	background: rgba(246, 178, 60, .08);
	margin-bottom: 12px;
}
.lxsp .lxsp-codebox__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lxsp .lxsp-codebox__label { font-size: 12px; color: #c9cfdb; }
.lxsp .lxsp-codebox__val {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 3px;
	color: var(--lxsp-yellow);
	text-align: left;
	user-select: all;
}

.lxsp .lxsp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, transform .15s ease;
}
.lxsp .lxsp-btn:active { transform: scale(.98); }
.lxsp .lxsp-btn--copy { background: var(--lxsp-yellow); color: #1a1300; }
.lxsp .lxsp-btn--copy.is-copied { background: #22c55e; color: #fff; }
.lxsp .lxsp-btn--primary { background: var(--lxsp-blue); color: #fff; flex: 1 1 auto; }
.lxsp .lxsp-btn--primary:hover { background: #0079d6; color: #fff; }
.lxsp .lxsp-btn--ghost { color: #c9cfdb; padding: 0 14px; }
.lxsp .lxsp-btn--ghost:hover { color: #fff; }

.lxsp .lxsp-countdown {
	margin: 0 0 12px;
	font-size: 13px;
	color: #fecaca;
	font-weight: 700;
}

.lxsp .lxsp-how {
	margin: 0 0 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	padding: 2px 14px;
}
.lxsp .lxsp-how summary {
	cursor: pointer;
	list-style: none;
	padding: 10px 0;
	font-size: 13.5px;
	font-weight: 700;
	color: #fff;
}
.lxsp .lxsp-how summary::-webkit-details-marker { display: none; }
.lxsp .lxsp-how summary::after { content: '+'; float: left; color: #9fd2ff; font-weight: 800; }
.lxsp .lxsp-how[open] summary::after { content: '−'; }
.lxsp .lxsp-steps {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	counter-reset: lxsp;
	display: grid;
	gap: 8px;
}
.lxsp .lxsp-steps li {
	counter-increment: lxsp;
	position: relative;
	padding-inline-start: 32px;
	font-size: 13px;
	color: #dfe3ea;
	margin: 0;
}
.lxsp .lxsp-steps li::before {
	content: counter(lxsp, persian);
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--lxsp-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lxsp .lxsp-note { margin: 0 0 16px; font-size: 12px; color: #9aa3b2; }
.lxsp .lxsp-actions { display: flex; gap: 8px; align-items: center; }

@media (max-width: 600px) {
	.lxsp-modal { align-items: flex-end; padding: 0; }
	.lxsp-modal .lxsp-modal__dialog {
		max-width: none;
		max-height: 90vh;
		border-radius: 22px 22px 0 0;
		padding: 22px 18px calc(16px + env(safe-area-inset-bottom));
		transform: translateY(100%);
	}
	.lxsp-modal .lxsp-modal__dialog::before {
		content: '';
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 4px;
		background: rgba(255, 255, 255, .25);
	}
	.lxsp .lxsp-amount__num { font-size: 32px; }
	.lxsp .lxsp-codebox__val { font-size: 21px; letter-spacing: 2px; }
}

/* ---------------------------------------------------------------- Toast */
.lxsp-toast {
	position: fixed;
	left: 50%;
	bottom: 84px;
	z-index: 1000010;
	transform: translate(-50%, 10px);
	background: #0f1115;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	opacity: 0;
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
	direction: rtl;
	white-space: nowrap;
}
.lxsp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- Product box */
.lxsp-pbox {
	margin: 10px 0;
	padding: 12px 14px;
	border: 1.5px dashed var(--lxsp-yellow);
	border-radius: 12px;
	background: #fff8ea;
	color: var(--lxsp-ink);
	display: grid;
	gap: 8px;
}
.lxsp-pbox .lxsp-pbox__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lxsp-pbox .lxsp-pbox__title { font-size: 13.5px; font-weight: 800; color: var(--lxsp-ink); }
.lxsp-pbox .lxsp-pbox__line { font-size: 13px; color: #3c4250; }
.lxsp-pbox .lxsp-pbox__line b { color: var(--lxsp-ink); font-weight: 800; }
.lxsp-pbox.is-ok .lxsp-pbox__line b { color: var(--lxsp-green); }
.lxsp-pbox .lxsp-pbox__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lxsp-pbox .lxsp-code { color: #7a4d00; background: #fff; }

/* ---------------------------------------------------------------- Cart / checkout box */
.lxsp-cbox {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #fde3b0;
	background: #fff8ea;
	color: var(--lxsp-ink);
	font-size: 13px;
}
.lxsp-cbox.is-ok { border-color: #bbe5c8; background: #effaf3; }
.lxsp-cbox .lxsp-cbox__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; margin-bottom: 6px; color: var(--lxsp-ink); }
.lxsp-cbox .lxsp-cbox__text { margin: 0 0 8px; color: #3c4250; font-size: 12.5px; line-height: 1.7; }
.lxsp-cbox .lxsp-cbox__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lxsp-cbox .lxsp-code { color: #7a4d00; background: #fff; }
.lxsp-cbox .lxsp-inline-link { color: var(--lxsp-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lxsp .lxsp-check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #22c55e;
	position: relative;
}
.lxsp .lxsp-check::after {
	content: '';
	position: absolute;
	left: 7px;
	top: 4px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.lxsp .lxsp-progress {
	height: 8px;
	border-radius: 8px;
	background: #f1e6cf;
	overflow: hidden;
	margin: 4px 0 8px;
}
.lxsp .lxsp-progress span {
	display: block;
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--lxsp-yellow), #f59e0b);
	margin-inline-start: 0;
}
.lxsp-cbox--mini { margin: 10px 0; padding: 10px 12px; }
.lxsp-cbox--mini .lxsp-cbox__title { font-size: 12.5px; }
.lxsp-cbox--gateway { margin: 10px 0 0; background: #fff; }
.lxsp-cbox--gateway.is-ok { background: #effaf3; }

.lxsp-gw-badge {
	display: inline-block;
	margin-inline-start: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--lxsp-yellow, #f6b23c);
	color: #1a1300;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.4;
	vertical-align: middle;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Shortcode banner */
.lxsp-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 22px 24px;
	border-radius: 20px;
	color: #fff;
	background:
		radial-gradient(70% 120% at 100% 0%, rgba(0, 142, 250, .35) 0%, rgba(0, 142, 250, 0) 60%),
		radial-gradient(60% 120% at 0% 100%, rgba(224, 49, 63, .25) 0%, rgba(224, 49, 63, 0) 60%),
		var(--lxsp-ink);
}
.lxsp-banner .lxsp-cond { margin: 0; }
.lxsp-banner .lxsp-banner__side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lxsp-banner .lxsp-code { color: var(--lxsp-yellow); }
.lxsp .lxsp-code--lg .lxsp-code__val { font-size: 20px; padding: 10px 14px; letter-spacing: 2.5px; }
.lxsp .lxsp-code--lg .lxsp-code__act { font-size: 13px; padding: 10px 14px; }
.lxsp-amount--banner .lxsp-amount__num { font-size: 34px; }

@media (prefers-reduced-motion: reduce) {
	.lxsp-modal .lxsp-modal__dialog,
	.lxsp-modal .lxsp-modal__backdrop,
	.lxsp-toast,
	.lxsp .lxsp-code,
	.lxsp .lxsp-btn { transition: none; }
}

/* ---------------------------------------------------------------- v1.0.1 */
/* Woodmart sticky header: once "prepared" it pins .whb-main-header to the top of
   .website-wrapper, which is where the promo bar sits. Push it below the bar. */
html.lxsp-bar-on .website-wrapper > .whb-header.whb-sticky-prepared:not(.whb-sticked) .whb-main-header {
	top: var(--lxsp-bar-h, 0px);
}

/* The sheet can't be dismissed for its first 2 seconds. */
.lxsp-modal .lxsp-modal__close,
.lxsp-modal .lxsp-btn--ghost { transition: opacity .3s ease; }
.lxsp-modal.is-locked .lxsp-modal__close,
.lxsp-modal.is-locked .lxsp-btn--ghost { opacity: .3; cursor: default; }

/* Mobile: keep the bar to one row (text + code chip side by side). */
@media (max-width: 767px) {
	.lxsp-bar .lxsp-bar__inner { flex-wrap: nowrap; }
	.lxsp-bar .lxsp-bar__text { flex: 1 1 0; }
	.lxsp-bar .lxsp-bar__only,
	.lxsp-bar .lxsp-bar__preview { display: none; }
}
