/* Manum Dining — mode choice modal and banner. Scoped to .manum-dining and .manum-dining-banner. */

.manum-dining__title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

.manum-dining small {
	display: block;
	font-size: 0.8rem;
	opacity: 0.75;
}

.manum-dining__notice,
.manum-dining__error {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--global-palette1, #c8102e);
	background: rgba(0, 0, 0, 0.04);
}

.manum-dining__choices {
	display: grid;
	gap: 0.75rem;
}

.manum-dining__choice {
	display: block;
	width: 100%;
	padding: 1rem 1.25rem;
	border: 2px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

.manum-dining__choice:hover,
.manum-dining__choice:focus-visible,
.manum-dining__choice.is-current {
	border-color: var(--global-palette1, #c8102e);
	background: transparent;
	color: inherit;
}

.manum-dining__choice:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.manum-dining__choice--secondary {
	border-style: dashed;
}

.manum-dining__choice-title {
	display: block;
	font-weight: 700;
	font-size: 1.1rem;
}

.manum-dining__location {
	margin: 0 0 1rem;
}

.manum-dining__place {
	font-weight: 600;
}

.manum-dining__form {
	display: grid;
	gap: 0.75rem;
}

.manum-dining__address,
.manum-dining__slot {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.manum-dining__field {
	margin: 0;
}

.manum-dining__field--wide {
	grid-column: 1 / -1;
}

.manum-dining__field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.manum-dining__field input,
.manum-dining__field select {
	width: 100%;
	min-height: 2.5rem; /* Same height for text fields and selects. */
}

.manum-dining__quote {
	margin: 0;
	font-weight: 600;
}

.manum-dining__quote:empty {
	display: none;
}

.manum-dining__quote.is-error {
	color: var(--global-palette1, #c8102e);
}

.manum-dining__too-far ul {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.manum-dining__notices:empty {
	display: none;
}

/* Banner: title and mode buttons on one line, then the choice as a sentence and "Modifier". */
.manum-dining-banner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 2.5rem 0 2rem;
}

.manum-dining-banner[hidden] {
	display: none;
}

.manum-dining-banner__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

/* Scoped to the banner: page content rules (paragraph margins) must not move it. */
.manum-dining-banner .manum-dining-banner__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.manum-dining-banner__modes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/*
 * Mode buttons. Colors are variables, so that a site can set its own:
 * --manum-dining-mode-*: other mode (and its hover), --manum-dining-mode-current-*: selected mode.
 * Defaults without specificity (:where), so that any site rule wins whatever the load order.
 */
:where(.manum-dining-banner) {
	--manum-dining-mode-bg: transparent;
	--manum-dining-mode-color: var(--global-palette-btn-bg, #c8102e);
	--manum-dining-mode-border: var(--global-palette-btn-bg, #c8102e);
	--manum-dining-mode-hover-bg: var(--global-palette-btn-bg, #c8102e);
	--manum-dining-mode-hover-color: var(--global-palette-btn, #fff);
	--manum-dining-mode-current-bg: var(--global-palette-btn-bg, #c8102e);
	--manum-dining-mode-current-color: var(--global-palette-btn, #fff);
	--manum-dining-mode-current-border: var(--global-palette-btn-bg, #c8102e);
}

.manum-dining-banner .manum-dining-banner__mode {
	margin: 0;
	padding: 0.7rem 1.5rem;
	border: 2px solid var(--manum-dining-mode-border);
	border-radius: 8px;
	background: var(--manum-dining-mode-bg);
	color: var(--manum-dining-mode-color);
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
	cursor: pointer;
}

.manum-dining-banner .manum-dining-banner__mode:not(.is-current):not(:disabled):hover,
.manum-dining-banner .manum-dining-banner__mode:not(.is-current):not(:disabled):focus-visible {
	border-color: var(--manum-dining-mode-hover-bg);
	background: var(--manum-dining-mode-hover-bg);
	color: var(--manum-dining-mode-hover-color);
}

.manum-dining-banner .manum-dining-banner__mode.is-current,
.manum-dining-banner .manum-dining-banner__mode.is-current:hover {
	border-color: var(--manum-dining-mode-current-border);
	background: var(--manum-dining-mode-current-bg);
	color: var(--manum-dining-mode-current-color);
}

.manum-dining-banner .manum-dining-banner__mode:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.manum-dining-banner .manum-dining-banner__text {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
}

.manum-dining-banner__separator {
	margin-inline: 0.25em;
}

.manum-dining-edit {
	padding: 0;
	border: 0;
	background: none;
	color: var(--global-palette1, #c8102e);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
	box-shadow: none;
}

.manum-dining-edit:hover,
.manum-dining-edit:focus {
	background: none;
	color: var(--manum-dining-link-hover, var(--global-palette2, #9a0c23)); /* Kadence: palette2 = accent hover. */
}

@media (max-width: 600px) {
	.manum-dining-banner {
		margin-top: 1.5rem;
	}

	.manum-dining-banner__modes {
		flex: 1 1 100%;
	}

	.manum-dining-banner .manum-dining-banner__mode {
		flex: 1 1 0;
		padding-inline: 0.75rem;
	}

	.manum-dining__address,
	.manum-dining__slot {
		grid-template-columns: minmax(0, 1fr);
	}
}
