.lso-modal {
	--lso-yellow: #ffc400;
	--lso-yellow-hover: #f2b900;
	--lso-ink: #24272c;
	--lso-muted: #737983;
	--lso-surface: #f3f5f8;
	--lso-line: #e7e9ed;
}

.lso-modal-open {
	overflow: hidden;
}

.lso-modal,
.lso-modal *,
.lso-modal button,
.lso-modal input,
.lso-modal a {
	box-sizing: border-box;
	font-family: inherit !important;
}

.lso-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: var(--lso-ink);
	font-family: inherit;
}

.lso-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 31, .58);
	backdrop-filter: blur(3px);
	animation: lso-fade-in .18s ease-out both;
}

.lso-modal__panel {
	position: relative;
	z-index: 1;
	width: min(1040px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 22px 24px 24px;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 24px;
	background: var(--lso-surface);
	box-shadow: 0 28px 80px rgba(17, 24, 39, .28);
	outline: none;
	animation: lso-pop-in .22s ease-out both;
}

.lso-modal__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.lso-modal__success {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #287a43;
	font-size: 13px;
	font-weight: 700;
}

.lso-modal__success-icon {
	display: grid;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	place-items: center;
	border-radius: 9px;
	background: #e3f4e8;
}

.lso-modal__success-icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lso-modal .lso-modal__close {
	display: grid;
	width: 42px;
	height: 42px;
	min-width: 42px;
	min-height: 42px;
	margin: 0;
	padding: 0;
	place-items: center;
	border: 1px solid var(--lso-line);
	border-radius: 13px;
	background: #fff;
	color: #51565e;
	box-shadow: 0 5px 15px rgba(25, 31, 40, .06);
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.lso-modal .lso-modal__close:hover,
.lso-modal .lso-modal__close:focus-visible {
	border-color: var(--lso-yellow);
	background: var(--lso-yellow);
	color: #1f2328;
	transform: translateY(-1px);
}

.lso-modal__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.lso-modal__heading {
	margin-bottom: 22px;
	text-align: center;
}

.lso-modal__eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff2ba;
	color: #8c6900;
	font-size: 12px;
	font-weight: 800;
}

.lso-modal h2 {
	margin: 0;
	padding: 0;
	color: var(--lso-ink);
	font-size: clamp(21px, 2.4vw, 29px);
	font-weight: 800;
	line-height: 1.5;
}

.lso-modal__heading p {
	margin: 5px 0 0;
	color: var(--lso-muted);
	font-size: 13px;
}

.lso-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.lso-products--1 {
	grid-template-columns: minmax(220px, 260px);
	justify-content: center;
}

.lso-products--2 {
	grid-template-columns: repeat(2, minmax(220px, 260px));
	justify-content: center;
}

.lso-products--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lso-product {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 12px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(28, 35, 45, .055);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.lso-product:hover {
	border-color: #f4da70;
	box-shadow: 0 12px 28px rgba(28, 35, 45, .1);
	transform: translateY(-3px);
}

.lso-product__image {
	display: block;
	margin-bottom: 12px;
	padding: 8px;
	border-radius: 12px;
	background: #fafbfc;
	overflow: hidden;
}

.lso-product__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	transition: transform .25s ease;
}

.lso-product:hover .lso-product__image img {
	transform: scale(1.035);
}

.lso-product h3 {
	display: -webkit-box;
	min-height: 51px;
	margin: 0 2px 9px;
	overflow: hidden;
	color: #353940;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.95;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.lso-product h3 a {
	color: inherit;
	text-decoration: none;
}

.lso-product__price {
	display: flex;
	min-height: 47px;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 7px;
	margin: auto 2px 12px;
	color: #e4a900;
	font-size: 13px;
	font-weight: 800;
}

.lso-product__price del {
	color: #a5a8ae;
	font-size: 11px;
	font-weight: 500;
}

.lso-product__price ins {
	color: #e4a900;
	text-decoration: none;
}

.lso-modal .lso-product > .button {
	display: inline-flex;
	min-height: 42px;
	width: 100%;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 11px;
	background: var(--lso-yellow);
	color: #25282d;
	box-shadow: none;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease;
}

.lso-modal .lso-product > .button:hover {
	background: var(--lso-yellow-hover);
	color: #1d2025;
	transform: translateY(-1px);
}

.lso-modal__footer {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
}

.lso-modal .lso-modal__footer .button {
	display: inline-flex;
	min-height: 45px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 11px 24px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	text-decoration: none;
}

.lso-modal .lso-cart {
	border: 1px solid var(--lso-yellow);
	background: var(--lso-yellow);
	color: #23262b;
}

.lso-modal .lso-cart:hover {
	border-color: var(--lso-yellow-hover);
	background: var(--lso-yellow-hover);
	color: #23262b;
}

.lso-modal .lso-continue {
	border: 1px solid var(--lso-line);
	background: #fff;
	color: #4e535b;
}

.lso-modal .lso-continue:hover {
	border-color: #d6d9de;
	background: #eceff3;
	color: #25282d;
}

@media (max-width: 760px) {
	.lso-modal {
		align-items: flex-end;
		padding: 0;
	}

	.lso-modal__panel {
		max-height: 91vh;
		padding: 16px 14px 0;
		border-radius: 22px 22px 0 0;
	}

	.lso-modal__topbar {
		margin-bottom: 12px;
	}

	.lso-modal__success {
		font-size: 11px;
	}

	.lso-modal__heading {
		margin-bottom: 16px;
	}

	.lso-modal__heading p {
		display: none;
	}

	.lso-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.lso-products--1 {
		grid-template-columns: 1fr;
	}

	.lso-product {
		padding: 9px;
		border-radius: 13px;
	}

	.lso-product h3 {
		min-height: 47px;
		font-size: 12px;
	}

	.lso-modal__footer {
		position: sticky;
		z-index: 2;
		bottom: 0;
		margin: 16px -14px 0;
		padding: 11px 14px max(11px, env(safe-area-inset-bottom));
		background: rgba(243, 245, 248, .96);
		box-shadow: 0 -7px 20px rgba(17, 24, 39, .08);
		backdrop-filter: blur(8px);
	}

	.lso-modal .lso-modal__footer .button {
		min-width: 0;
		flex: 1;
		padding-inline: 10px;
	}
}

@media (max-width: 380px) {
	.lso-products {
		grid-template-columns: 1fr;
	}
}

@keyframes lso-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes lso-pop-in {
	from { opacity: 0; transform: translateY(12px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.lso-modal *,
	.lso-modal *::before,
	.lso-modal *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
