.l2cm-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 56px);
	background: rgba(6, 10, 7, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	opacity: 0;
	transition: opacity 320ms ease;
	overflow: auto;
}

.l2cm-overlay.is-open {
	display: flex;
}

.l2cm-overlay.is-visible {
	opacity: 1;
}

.l2cm-panel {
	width: 100%;
	max-width: 560px;
	max-height: 100%;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: clamp(24px, 4vw, 42px);
	background: linear-gradient(160deg, rgba(26, 35, 21, 0.98), rgba(15, 23, 16, 0.99));
	border: 1px solid #3f4a33;
	border-top: 3px solid #6fbf73;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(111, 191, 115, 0.06);
	font-family: Spectral, Georgia, serif;
	color: #f5e6d3;
}

.l2cm-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.l2cm-eyebrow {
	font-family: Cinzel, Georgia, serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.6px;
	text-transform: uppercase;
	color: #6fbf73;
}

.l2cm-title {
	font-family: Cinzel, Georgia, serif;
	font-size: clamp(26px, 4vw, 36px);
	line-height: 1.15;
	font-weight: 700;
	margin: 12px 0 0;
	color: #f5e6d3;
}

.l2cm-desc {
	font-size: 15px;
	line-height: 1.7;
	color: #a99c82;
	margin: 14px 0 0;
	max-width: 40em;
}

.l2cm-panel .l2cm-close {
	flex: none;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #5c6b4a;
	border-radius: 8px;
	background: rgba(28, 38, 23, 0.72);
	cursor: pointer;
	font-family: 'Fira Code', monospace;
	font-size: 14px;
	color: #bfa98a;
	padding: 0;
	transition: border-color 160ms ease, color 160ms ease;
}

.l2cm-panel .l2cm-close:hover {
	border-color: #ca8a04;
	color: #f5e6d3;
}

.l2cm-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.l2cm-label {
	font-family: 'Fira Code', monospace;
	font-size: 10px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #8fa57c;
}

.l2cm-stepper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.l2cm-panel .l2cm-step {
	flex: none;
	width: 56px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #5c6b4a;
	border-radius: 10px;
	background: rgba(28, 38, 23, 0.66);
	cursor: pointer;
	font-family: 'Fira Code', monospace;
	font-size: 20px;
	color: #bfa98a;
	padding: 0;
	transition: border-color 160ms ease, color 160ms ease;
}

.l2cm-panel .l2cm-step:hover {
	border-color: #ca8a04;
	color: #f5e6d3;
}

.l2cm-panel .l2cm-qty {
	flex: 1;
	min-width: 0;
	height: 60px;
	padding: 0 16px;
	text-align: center;
	background: rgba(12, 17, 11, 0.78);
	border: 1px solid #3f4a33;
	border-radius: 10px;
	color: #f5e6d3;
	font-family: Cinzel, Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 1px;
	outline: none;
	-moz-appearance: textfield;
}

.l2cm-panel .l2cm-qty::-webkit-outer-spin-button,
.l2cm-panel .l2cm-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.l2cm-panel .l2cm-qty:focus {
	border-color: #ca8a04;
}

.l2cm-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2px;
}

.l2cm-panel .l2cm-preset {
	padding: 8px 16px;
	border: 1px solid #3f4a33;
	border-radius: 8px;
	background: rgba(28, 38, 23, 0.7);
	cursor: pointer;
	font-family: Cinzel, Georgia, serif;
	font-size: 11.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #bfa98a;
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.l2cm-panel .l2cm-preset:hover {
	border-color: #ca8a04;
	color: #f5e6d3;
}

.l2cm-panel .l2cm-preset.is-active {
	border-color: #ca8a04;
	background: rgba(202, 138, 4, 0.14);
	color: #f5e6d3;
}

.l2cm-summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 20px;
	background: rgba(12, 17, 11, 0.55);
	border: 1px solid #26301f;
	border-radius: 12px;
}

.l2cm-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 8px 0;
}

.l2cm-summary-row span:first-child {
	font-size: 14.5px;
	color: #a99c82;
}

.l2cm-area {
	font-family: Cinzel, Georgia, serif;
	font-size: 16px;
	color: #f5e6d3;
}

.l2cm-summary-row-price {
	border-top: 1px solid #1f2a19;
}

.l2cm-total {
	font-family: Cinzel, Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	color: #e3c46a;
}

.l2cm-panel .l2cm-buy {
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ca8a04;
	border: 1.5px solid #daa520;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(202, 138, 4, 0.3);
	font-family: Cinzel, Georgia, serif;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #1a0f0a;
	transition: background 160ms ease, opacity 160ms ease;
}

.l2cm-panel .l2cm-buy:hover {
	background: #b8780a;
}

.l2cm-panel .l2cm-buy[disabled] {
	cursor: default;
	opacity: 0.7;
}

.l2cm-note {
	font-size: 13px;
	line-height: 1.6;
	color: #7c8a6c;
	margin: 0;
	text-align: center;
}

.l2cm-note.is-error {
	color: #e07a5f;
}

.l2cm-panel button {
	appearance: none;
	-webkit-appearance: none;
}

.l2cm-panel button:focus-visible,
.l2cm-panel .l2cm-qty:focus-visible {
	outline: 2px solid #ca8a04;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.l2cm-panel .l2cm-step {
		width: 48px;
		height: 52px;
	}
	.l2cm-panel .l2cm-qty {
		height: 52px;
		font-size: 22px;
	}
}
