/* Piccolo Core – Frontend (Mode-Selector, Zeit-Wahl, Toppings) */

/* ── Mode-Selector ───────────────────────────── */
.pc-mode-selector {
	display: inline-flex;
	gap: 2px;
	background: var(--pc-bg-soft, #f3f0ea);
	border-radius: var(--pc-radius-full, 999px);
	padding: 3px;
}
.pc-mode-selector--tabs { display: flex; }
.pc-mode-btn {
	flex: 1;
	appearance: none;
	border: none;
	background: transparent;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pc-text-mute, #6b6358);
	border-radius: var(--pc-radius-full, 999px);
	cursor: pointer;
	transition: all .2s;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}
.pc-mode-btn .ms { font-size: 16px; }
.pc-mode-btn.is-active {
	background: var(--pc-bg-card, #fff);
	color: var(--pc-text, #2a2520);
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.pc-mode-btn:hover:not(.is-active) { color: var(--pc-text, #2a2520); }

/* ── Zeit-Selector ───────────────────────────── */
.pc-time-selector {
	margin: 16px 0;
}
.pc-time-type {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}
.pc-time-type__option {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px;
	border: 2px solid var(--pc-border, #e5e0d8);
	border-radius: 12px;
	cursor: pointer;
	transition: all .2s;
	background: #fff;
	font-weight: 500;
}
.pc-time-type__option input { display: none; }
.pc-time-type__option.is-active {
	border-color: var(--pc-accent, #c8102e);
	background: rgba(200,16,46,.04);
}
.pc-time-days {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	margin-bottom: 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.pc-time-days::-webkit-scrollbar { display: none; }
.pc-time-day {
	flex: 0 0 auto;
	min-width: 70px;
	padding: 10px 8px;
	border: 2px solid var(--pc-border, #e5e0d8);
	background: #fff;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	transition: all .2s;
}
.pc-time-day.is-active {
	border-color: var(--pc-accent, #c8102e);
	background: rgba(200,16,46,.04);
}
.pc-time-day__weekday {
	display: block;
	font-size: 11px;
	color: var(--pc-text-mute, #6b6b6b);
}
.pc-time-day__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
}
.pc-time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
	max-height: 240px;
	overflow-y: auto;
	padding: 4px;
}
.pc-time-slot {
	padding: 10px 8px;
	border: 1px solid var(--pc-border, #e5e0d8);
	background: #fff;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: all .15s;
}
.pc-time-slot:hover:not(:disabled) {
	border-color: var(--pc-accent, #c8102e);
}
.pc-time-slot.is-active {
	background: var(--pc-accent, #c8102e);
	color: #fff;
	border-color: var(--pc-accent, #c8102e);
}
.pc-time-slot:disabled {
	opacity: .35;
	cursor: not-allowed;
	text-decoration: line-through;
}
.pc-time-slots__placeholder {
	grid-column: 1/-1;
	text-align: center;
	color: var(--pc-text-mute, #6b6b6b);
	padding: 24px;
}
.pc-time-selected {
	margin-top: 12px;
	padding: 12px;
	background: var(--pc-bg-soft, #f5f1eb);
	border-radius: 8px;
	font-size: 14px;
}

/* ── Mindestbestellwert Notice ───────────────── */
.pc-min-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 12px;
	font-size: 14px;
}
.pc-min-notice.is-pending {
	background: #fff8e5;
	color: #856404;
}
.pc-min-notice.is-reached {
	background: #e8f5e9;
	color: #2e7d32;
}
.pc-min-notice__icon { font-size: 20px; }
.pc-min-notice__bar {
	width: 100%;
	height: 6px;
	background: rgba(0,0,0,.08);
	border-radius: 3px;
	overflow: hidden;
}
.pc-min-notice__progress {
	height: 100%;
	background: var(--pc-accent, #c8102e);
	border-radius: 3px;
	transition: width .4s ease;
}

/* ── Toppings ────────────────────────────────── */
.pc-toppings {
	margin: 16px 0;
}
.pc-toppings__group {
	margin-bottom: 16px;
}
.pc-toppings__group-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
}
.pc-toppings__options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 6px;
}
.pc-toppings__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1.5px solid var(--pc-border, #e5e0d8);
	border-radius: 8px;
	cursor: pointer;
	transition: all .15s;
	background: #fff;
	font-size: 14px;
}
.pc-toppings__option:hover {
	border-color: var(--pc-accent, #c8102e);
}
.pc-toppings__option input {
	margin: 0;
	accent-color: var(--pc-accent, #c8102e);
}
.pc-toppings__option-label {
	flex: 1;
}
.pc-toppings__option-price {
	color: var(--pc-text-mute, #6b6b6b);
	font-size: 13px;
}

/* ── Checkout-Section ────────────────────────── */
.pc-checkout-time-section {
	margin-bottom: 24px;
}
.pc-checkout-time-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
}

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 768px) {
	.pc-mode-selector { width: 100%; }
	.pc-time-type { flex-direction: column; }
	.pc-toppings__options { grid-template-columns: 1fr; }
}
