/**
 * iChef Demo Switcher — Botones de modalidad para Booked.
 * Se carga únicamente en /demo/.
 */

.ichef-demo-calendar-wrap {
	--ichef-demo-green: var(--verde, #509f2c);
	--ichef-demo-green-dark: #438a24;
	--ichef-demo-green-soft: var(--verde-3, #f4f8ea);
	--ichef-demo-ink: var(--verde-4, #37564e);
	--ichef-demo-font: var(--font, 'Roboto', sans-serif);
}

.ichef-demo-calendar-wrap .ichef-demo-switcher {
	display: flex;
	gap: 10px;
	width: 100%;
	margin: 0 0 14px;
	box-sizing: border-box;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__button {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 0;
	min-width: 0;
	min-height: 50px;
	margin: 0;
	padding: 12px 18px;
	float: none;
	border: 2px solid var(--ichef-demo-green);
	border-radius: var(--radius-50, 50px);
	background: #fff;
	color: var(--ichef-demo-ink);
	font-family: var(--ichef-demo-font);
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	opacity: 0.55;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__button:hover {
	background: var(--ichef-demo-green-soft);
	border-color: var(--ichef-demo-green);
	color: var(--ichef-demo-ink);
	opacity: 0.82;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__button[aria-pressed="true"] {
	background: var(--ichef-demo-green);
	border-color: var(--ichef-demo-green);
	color: #fff;
	opacity: 1;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__button[aria-pressed="true"]:hover {
	background: var(--ichef-demo-green-dark);
	border-color: var(--ichef-demo-green-dark);
	color: #fff;
	opacity: 1;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__button:focus-visible {
	outline: 3px solid rgba(80, 159, 44, 0.35);
	outline-offset: 2px;
	box-shadow: 0 0 0 1px #fff inset;
	opacity: 1;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__button[hidden] {
	display: none !important;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__button[disabled] {
	cursor: wait;
	opacity: 0.5;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__icon {
	display: block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}

.ichef-demo-calendar-wrap .ichef-demo-switcher__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*
 * Ocultar el select original solo cuando el JS ya tomó el control.
 * Si el JS falla, Booked conserva su comportamiento original.
 */
.ichef-demo-calendar-wrap.ichef-demo-ready .booked-calendarSwitcher {
	display: none !important;
}

.ichef-demo-calendar-wrap.ichef-demo-loading .booked-calendar-wrap {
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
	.ichef-demo-calendar-wrap .ichef-demo-switcher {
		gap: 8px;
		margin-bottom: 12px;
	}

	.ichef-demo-calendar-wrap .ichef-demo-switcher__button {
		gap: 6px;
		min-height: 46px;
		padding: 11px 10px;
		font-size: 14px;
	}

	.ichef-demo-calendar-wrap .ichef-demo-switcher__icon {
		flex-basis: 16px;
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 360px) {
	.ichef-demo-calendar-wrap .ichef-demo-switcher {
		flex-direction: column;
	}

	.ichef-demo-calendar-wrap .ichef-demo-switcher__button {
		width: 100%;
	}
}
