.khs-popup-open {
	overflow: hidden;
}

.khs-order-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.khs-order-popup.is-active {
	display: block;
}

.khs-order-overlay {
	position: absolute;
	inset: 0;
	background: rgba(40, 18, 2, 0.45);
	backdrop-filter: blur(4px);
}

.khs-order-modal {
	position: relative;
	max-width: 980px;
	margin: 4vh auto;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(44, 21, 3, 0.3);
	display: grid;
	grid-template-columns: 0.95fr 1.25fr;
	overflow: hidden;
}

.khs-order-close {
	position: absolute;
	right: 16px;
	top: 16px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: #ffede4;
	color: #9e3c00;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.khs-order-media {
	background: #ffe3d3;
	padding: 24px;
}

.khs-order-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 630px;
	object-fit: cover;
	border-radius: 20px;
	border: 3px solid #fff;
}

.khs-order-form-wrap {
	padding: 32px 28px;
}

.khs-order-product-name {
	margin: 0 0 6px;
	font-size: 42px;
	line-height: 1.08;
	color: #4a2507;
	font-weight: 800;
}

.khs-order-price-row {
	margin-bottom: 14px;
}

.khs-order-product-price {
	font-size: 36px;
	line-height: 1.1;
	color: #9e3c00;
	font-weight: 800;
}

.khs-order-form {
	display: grid;
	gap: 12px;
}

.khs-order-label {
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 700;
	color: #805030;
	letter-spacing: 0.05em;
}

.khs-order-variations {
	display: flex;
	gap: 10px;
}

.khs-pill-option input {
	display: none;
}

.khs-pill-option span {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	border: 2px solid #dca079;
	font-weight: 700;
	color: #805030;
	cursor: pointer;
}

.khs-pill-option input:checked + span {
	background: #9e3c00;
	border-color: #9e3c00;
	color: #fff0ea;
}

.khs-qty-control {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffede4;
	padding: 6px;
	border-radius: 999px;
}

.khs-qty-control button {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #9e3c00;
	font-size: 20px;
	cursor: pointer;
}

.khs-qty-control input {
	width: 58px;
	text-align: center;
	border: 0;
	background: transparent;
	font-size: 18px;
	font-weight: 700;
	color: #4a2507;
}

.khs-order-form input[type="text"],
.khs-order-form input[type="tel"],
.khs-order-form textarea {
	width: 100%;
	border: 2px solid #ffe3d3;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 16px;
	outline: none;
}

.khs-order-form textarea {
	resize: vertical;
}

.khs-order-submit {
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 14px 18px;
	background: linear-gradient(90deg, #9e3c00, #ff7a36);
	color: #fff0ea;
	font-size: 22px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}

.khs-order-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.khs-order-note {
	margin: 2px 0 0;
	font-size: 13px;
	color: #805030;
	text-align: center;
	font-style: italic;
}

.khs-order-result {
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.khs-order-result.is-success {
	color: #0a7d35;
}

.khs-order-result.is-error {
	color: #b31b25;
}

@media (max-width: 980px) {
	.khs-order-modal {
		grid-template-columns: 1fr;
		max-width: 640px;
		margin: 2vh auto;
		max-height: 96vh;
		overflow: auto;
	}

	.khs-order-media img {
		max-height: 320px;
	}

	.khs-order-product-name {
		font-size: 30px;
	}

	.khs-order-product-price {
		font-size: 28px;
	}
}
