/*
 * Restaurant Core — small additions for widgets. The design itself lives in the Restaurant theme
 * (assets/css/restaurant.css); these rules only cover widget-specific options.
 */

.rhero__grid--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 60rem;
}

.rw-heading .section-head {
	margin-bottom: 0;
}

.rw-heading {
	position: relative;
	padding-block: calc(var(--section-y) * 0.6);
}

/* Form feedback (reservation & contact widgets) */
.rc-form__status {
	min-height: 1.4em;
	font-size: 0.85rem;
	color: var(--muted);
}

.rc-form__status.is-error {
	color: var(--c-primary-2);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
	border-bottom-color: var(--c-primary-2);
}

.field.is-invalid::after,
.field-group.is-invalid::after {
	content: attr(data-error);
	display: block;
	margin-top: 0.35rem;
	font-size: 0.78rem;
	color: var(--c-primary-2);
}

.rc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

form.is-sending {
	opacity: 0.7;
	pointer-events: none;
}

/* ---------- contact-form ---------- */
/* Restaurant Contact Form — only what the design CSS does not cover. */

/* The form and the thank-you card swap with the hidden attribute (their display rules would override it). */
.rw .cform[hidden],
.rw .reserve__done[hidden] {
	display: none !important;
}

.rw .reserve__done h3:focus {
	outline: none;
}

/* Map switched off: the form takes the full width. */
.contact__grid--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 48rem;
}

/* "Dark map styling" off: Google's own colours, no tint. */
.contact--map-light .map-card iframe {
	filter: none;
}

.contact--map-light .map-card__tint {
	display: none;
}

/* ---------- menu-board ---------- */
/* Menu Board: every category's list is rendered; only the active one shows. */
.mboard__list[hidden] {
	display: none;
}

/* ---------- private-dining ---------- */
/* Private Dining widget: the title keeps the design size when set to H1 or H3. */
.pd__content > h1,
.pd__content > h3 {
	font-family: var(--f-display);
	font-size: clamp(2.8rem, 1.5rem + 4vw, 5.5rem);
	font-weight: 400;
	line-height: 0.98;
}

/* ---------- reservation ---------- */
/* Restaurant Reservation — only what the design CSS does not cover. */

/* The form and the thank-you card swap with the hidden attribute (their display rules would override it). */
.rw .reserve__form[hidden],
.rw .reserve__done[hidden] {
	display: none !important;
}

.rw .reserve__done h3:focus {
	outline: none;
}

/* Side photo switched off: the form takes the full width. */
.reserve__grid--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 52rem;
}

/* Optional line of text in the hours card. */
.reserve__card-text {
	font-size: 0.92rem;
	color: var(--muted);
}

/* Dropdowns (time as a dropdown, occasion) look like the underlined fields. */
.field select {
	width: 100%;
	min-height: 3.3rem;
	padding: 1.4rem 1.6rem 0.6rem 0;
	border: 0;
	border-bottom: 1px solid rgb(var(--c-accent-rgb) / calc(0.3 * var(--border)));
	border-radius: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	color-scheme: dark;
	transition: border-color 0.3s;
}

.field select:focus {
	border-bottom-color: var(--gold-2);
}

.field select option {
	background: rgb(var(--c-surface-rgb));
	color: var(--text);
}

.field select + span {
	transform: translateY(-1.35rem) scale(0.78);
	color: var(--gold);
}

.field--select::before {
	content: '';
	position: absolute;
	right: 0.35rem;
	top: 1.85rem;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 1.5px solid var(--gold);
	border-bottom: 1.5px solid var(--gold);
	rotate: 45deg;
	pointer-events: none;
}

/* ---------- story ---------- */
/* Story widget: photo on the right. */
@media (min-width: 900px) {
	.rstory--flip .rstory__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}

	.rstory--flip .rstory__visual {
		order: 2;
	}
}

/* ---------- testimonials ---------- */
/* Testimonials: optional star rating above the quote. */
.rquotes__stars {
	display: inline-flex;
	gap: 0.3rem;
	margin-bottom: 1.2rem;
	color: var(--gold);
}

.rquotes__stars[hidden] {
	display: none;
}

.rquotes__stars .icon {
	width: 1rem;
	height: 1rem;
}

.rquotes__stars .icon.is-off {
	opacity: 0.25;
}

/* ---------- visit ---------- */
/* Visit: layout without the map card. */
.visit__grid--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 60rem;
}
