.izven-bon-form,
.izven-bon-fields {
	display: grid;
	gap: 0.9rem;
	max-width: 34rem;
}

.izven-bon-heading {
	margin: 0;
	font-size: 1.4rem;
}

.izven-bon-price {
	margin: 0;
	font-size: 1.15rem;
}

.izven-bon-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.izven-bon-help,
.izven-bon-warning {
	display: block;
	font-weight: 400;
	font-size: 0.85em;
	margin-top: 0.15rem;
}

.izven-bon-help {
	opacity: 0.75;
}

.izven-bon-warning {
	color: #8a4b12;
	font-weight: 600;
}

.izven-bon-form input[type="text"],
.izven-bon-form input[type="number"],
.izven-bon-form select,
.izven-bon-form textarea,
.izven-bon-fields input[type="text"],
.izven-bon-fields textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
}

.izven-bon-count {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8em;
	opacity: 0.65;
	text-align: right;
}

.izven-bon-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.izven-bon-preview {
	display: grid;
	gap: 0.75rem;
}

.izven-bon-preview[hidden] {
	display: none;
}

.izven-bon-preview img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.izven-bon-missing {
	margin: 0;
}

.izven-bon-form {
	max-width: 42rem;
	gap: 1.15rem;
}

.izven-bon-panel {
	margin: 0;
	padding: 1rem 1rem 1.1rem;
	border: 1.5px solid #e4d3bc;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(255, 248, 239, 0.96), rgba(250, 241, 228, 0.96));
}

.izven-bon-panel legend {
	padding: 0 0.4rem;
	font-weight: 700;
	color: #6b3a28;
}

.izven-bon-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.7rem;
}

.izven-bon-choice {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 4.4rem;
	margin: 0;
	padding: 0.75rem 0.85rem 0.75rem 2.35rem;
	border: 1.5px solid #eadcc8;
	border-radius: 14px;
	background: #fffdf9;
	color: #3a2418;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(90, 48, 28, 0.04);
}

.izven-bon-choice input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.izven-bon-choice span {
	position: relative;
	font-weight: 650;
	line-height: 1.3;
}

.izven-bon-choice span::before {
	content: "";
	position: absolute;
	left: -1.45rem;
	top: 0.15rem;
	width: 0.95rem;
	height: 0.95rem;
	border: 1.5px solid #c4a27a;
	border-radius: 999px;
	background: #fff;
}

.izven-bon-choice:has(input:checked) {
	border-color: #a45233;
	background: #fff4e8;
	box-shadow: 0 0 0 3px rgba(164, 82, 51, 0.16);
}

.izven-bon-choice:has(input:checked) span::before {
	border-color: #a45233;
	background: radial-gradient(circle at center, #a45233 0 45%, #fff 48% 100%);
}

.izven-bon-amount input {
	max-width: 10rem;
	border: 1.5px solid #e4d3bc;
	border-radius: 12px;
	background: #fffdf9;
}

@media (max-width: 640px) {
	.izven-bon-choices {
		grid-template-columns: 1fr;
	}
}
