/**
 * Frontend-Styles für Libre Bite
 */

/* Standort-Modal */
.lbite-modal {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Checkout-Bereiche */
.lbite-checkout-selection,
.lbite-tip-selection {
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Produkt-Optionen */
.lbite-product-options label {
	transition: all 0.3s;
}

.lbite-product-options label:hover {
	background: #f9f9f9;
}

.lbite-product-options input[type="checkbox"] {
	margin-right: 8px;
}

/* Nährwerttabelle */
.lbite-nutritional-info {
	transition: all 0.3s;
}

.lbite-nutritional-info:hover {
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Allergene */
.lbite-allergens {
	animation: lbite-fade-in 0.3s ease-out;
}

@keyframes lbite-fade-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media screen and (max-width: 768px) {
	.lbite-modal-content {
		margin: 20px;
		padding: 20px;
		max-height: 90vh;
	}

	.lbite-tip-options {
		flex-direction: column;
	}

	.lbite-tip-option {
		min-width: 100%;
	}
}

/* Loading States */
.lbite-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
}

.lbite-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(0,0,0,0.1);
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: lbite-spin 1s linear infinite;
}

@keyframes lbite-spin {
	to { transform: rotate(360deg); }
}

/* Tisch-Info-Box im Checkout */
.lbite-table-info-box {
	background: #e7f5ff;
	border: 1px solid #b3d7ff;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	color: #004085;
}

.lbite-table-info-flex {
	display: flex;
	align-items: center;
}

.lbite-table-icon {
	margin-right: 10px;
	color: #0073aa;
}

/* Bestelltyp-Auswahl im Checkout */
.lbite-order-type-selector {
	margin: 20px 0;
	padding: 16px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	background: #fafafa;
}

.lbite-order-type-selector h3 {
	margin: 0 0 12px;
	font-size: 15px;
}

.lbite-order-type-options {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.lbite-order-type-option {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: border-color 0.15s, background 0.15s;
}

.lbite-order-type-option:has(input:checked) {
	border-color: currentColor;
	background: #fff;
}

.lbite-order-type-option input[type="radio"] {
	margin: 0;
}

.lbite-table-number-wrap {
	margin-top: 12px;
}

.lbite-table-number-wrap label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
}

.lbite-table-number-wrap .input-text {
	width: 100%;
	max-width: 280px;
}

/* Item notes in checkout cart */
.lbite-item-note-wrap {
	margin-top: 4px;
}

.lbite-checkout-item-note {
	font-size: 13px;
	padding: 4px 8px;
	border: 1px solid #ddd;
	border-radius: 3px;
	width: 100%;
	max-width: 300px;
	box-sizing: border-box;
	background: #fafafa;
	color: #555;
}

