/* Chip Chop theme stylesheet
 * Block-theme base styles. theme.json handles most tokens.
 * This file is for things theme.json can't express: pseudo-elements, complex selectors,
 * dotted-leader menu rows, etc.
 */

:root {
	--cc-leader-dot: '·';
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-decoration: none;
	transition: color 160ms ease;
}

a:hover,
a:focus {
	text-decoration: underline;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid currentColor;
}

.wp-block-button.is-style-amber .wp-block-button__link {
	background-color: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--text-dark);
}

.wp-block-button.is-style-amber .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--amber-light);
}

/* Header logo — height-sized so width auto-scales to natural aspect ratio.
 * Avoids the inline-width + max-height conflict that squishes the image.
 */
.cc-header-logo {
	margin: 0;
	flex: 0 0 auto;
}

.cc-header-logo a {
	display: inline-block;
	line-height: 0;
}

.cc-header-logo img {
	display: block;
	height: 115px;
	width: auto;
	max-width: 100%;
}

@media (max-width: 640px) {
	.cc-header-logo img { height: 72px; }
}

/* ============================================================
   Header mobile layout
   ============================================================
   Phone portrait stack: [logo] then [View Menu button] then
   [hamburger nav], all centered. When hamburger opens, the
   item list centers horizontally instead of right-aligning.
*/

@media (max-width: 768px) {
	/* Outer row inside the header: logo left, nav-group right → stack vertically */
	header > .wp-block-group > .wp-block-group {
		flex-direction: column !important;
		align-items: center !important;
		gap: 0.6rem !important;
		width: 100%;
	}

	/* Inner group containing nav + View Menu button — put button ABOVE nav
	 * via column-reverse (nav comes first in source order, button second). */
	header > .wp-block-group > .wp-block-group > .wp-block-group {
		flex-direction: column-reverse !important;
		align-items: center !important;
		gap: 0.5rem !important;
		width: 100%;
	}

	/* Center the hamburger button itself */
	.wp-block-navigation__responsive-container-open {
		margin: 0 auto;
	}

	/* When the hamburger overlay is open, center items inside it */
	.wp-block-navigation__responsive-container.is-menu-open {
		text-align: center;
	}
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-content {
		align-items: center !important;
		justify-content: flex-start !important;
		text-align: center;
	}
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-page-list {
		align-items: center !important;
		text-align: center;
	}
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item {
		text-align: center;
		justify-content: center;
	}

	/* Logo can be a bit smaller on phones — already 72px from earlier */
}

/* Navigation links — burgundy text with hover underline */
header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--burgundy);
	text-decoration: none;
	position: relative;
	padding-bottom: 4px;
}

header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--burgundy);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 180ms ease;
}

header .wp-block-navigation-item__content:hover,
header .wp-block-navigation-item__content:focus,
header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--burgundy);
	text-decoration: none;
}

header .wp-block-navigation-item__content:hover::after,
header .wp-block-navigation-item__content:focus::after,
header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Header "View Menu" button — underline on hover (cream-colored to show on burgundy bg) */
header .wp-block-button .wp-block-button__link {
	position: relative;
	overflow: hidden;
}

header .wp-block-button .wp-block-button__link::after {
	content: "";
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 0.45rem;
	height: 2px;
	background: var(--wp--preset--color--cream);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 180ms ease;
}

header .wp-block-button .wp-block-button__link:hover::after,
header .wp-block-button .wp-block-button__link:focus::after {
	transform: scaleX(1);
}

/* Script accent helper — pair with the "Great Vibes" font family.
 * Used for the "Our Story", "Freshly Cut. Always Delicious." style flourishes.
 */
.cc-script {
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	color: var(--wp--preset--color--amber);
	font-weight: 400;
	line-height: 1;
}

/* Menu — front-end rendering for [chip_chop_menu] shortcode.
 * Two-column grid, dotted-leader item rows, tabs for Regular vs GF.
 */
.cc-menu {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--text-dark);
}

.cc-menu-intro {
	text-align: center;
	font-style: italic;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--text-dark);
}

.cc-menu-empty {
	text-align: center;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.7;
	padding: 2rem 0;
}

.cc-menu-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.cc-menu-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.cc-menu-col {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.cc-menu-section-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.cc-menu-section {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

/* Items with dotted leader between title and price */
.cc-menu-item {
	margin: 0.35rem 0;
}

.cc-menu-item__row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* Title can shrink and wrap on narrow screens — long names like "Grilled
 * Double Cheeseburger w/ Bacon" used to push the layout wider than the
 * viewport. Now they wrap onto multiple lines naturally.
 */
.cc-menu-item__title {
	flex: 0 1 auto;
	min-width: 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--text-dark);
	font-size: 1rem;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.cc-menu-item__leader {
	flex: 1 1 1.5rem;
	border-bottom: 2px dotted rgba(105, 20, 39, 0.45);
	transform: translateY(-0.3em);
	min-width: 1.5rem;
}

.cc-menu-item__price {
	flex: 0 1 auto;
	font-weight: 700;
	color: var(--wp--preset--color--burgundy);
	white-space: normal;
	text-align: right;
}

.cc-menu-item--no-price .cc-menu-item__leader,
.cc-menu-item--no-price .cc-menu-item__price {
	display: none;
}

.cc-menu-item__description {
	display: block;
	font-size: 0.85rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.85;
	margin-top: 0.1rem;
	padding-right: 50px;
	line-height: 1.35;
}

/* ============================================================
   Homepage shortcode sections (hero, features strip, favourites)
   Self-contained — don't depend on WP block layout CSS so
   shortcode output works the same as native blocks.
   ============================================================ */

/* Full-bleed helper — canonical recipe. The negative side margins are
 * calculated against the parent's width (the 50%), so the element pulls
 * back exactly enough to align with the viewport edges. NO position:relative
 * or left/right offsets — those would stack on top of the margin shift and
 * push the element off-center.
 */
.cc-fullbleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Prevent the 100vw trick from producing a horizontal scrollbar when the
 * viewport has a vertical scrollbar (100vw includes it, container width doesn't).
 */
body { overflow-x: hidden; }

/* --- HERO --- */

.cc-hero {
	min-height: 620px;
	background-size: cover;
	background-position: center;
	background-color: var(--wp--preset--color--text-dark);
	display: flex;
	align-items: center;
	position: relative;
}

.cc-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(42, 31, 24, 0.45);
	z-index: 1;
}

.cc-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1360px;
	width: 100%;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	box-sizing: border-box;
}

.cc-hero__row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
	align-items: flex-start;
}

.cc-hero__text {
	flex: 1 1 500px;
	max-width: 560px;
}

.cc-hero__notice {
	flex: 0 1 420px;
	max-width: 420px;
}

.cc-hero__script {
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	color: #E8B05A;
	margin: 0 0 0.25rem;
	line-height: 1;
}

.cc-hero__headline {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cream);
	margin: 0 0 1rem;
}

.cc-hero__subtitle {
	font-size: 1.05rem;
	color: var(--wp--preset--color--cream);
	margin: 0 0 1.5rem;
	line-height: 1.5;
}

.cc-hero__buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.cc-btn {
	display: inline-block;
	padding: 0.85rem 1.6rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-radius: 4px;
	transition: background 160ms ease, color 160ms ease;
}

.cc-btn--burgundy {
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
}

.cc-btn--burgundy:hover {
	background: var(--wp--preset--color--burgundy-dark);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

.cc-btn--outline {
	background: transparent;
	color: var(--wp--preset--color--cream);
	border: 2px solid var(--wp--preset--color--cream);
}

.cc-btn--outline:hover {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--burgundy);
	text-decoration: none;
}

@media (max-width: 768px) {
	.cc-hero { min-height: 480px; }
	.cc-hero__text { flex: 1 1 100%; max-width: 100%; }
	.cc-hero__notice { flex: 1 1 100%; max-width: 100%; }
}

/* --- FEATURES STRIP --- */

.cc-features-strip {
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	box-sizing: border-box;
}

.cc-features-strip__inner {
	max-width: 1360px;
	margin: 0 auto;
}

.cc-feature__icon svg {
	width: 44px;
	height: 44px;
	display: block;
	margin: 0 auto;
}

/* --- FAVOURITES SECTION --- */

.cc-favourites-section {
	background: transparent; /* inherits cream from body */
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	box-sizing: border-box;
}

.cc-favourites-section__inner {
	max-width: 1360px;
	margin: 0 auto;
	text-align: center;
}

.cc-favourites-section__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
	margin: 0;
}

.cc-favourites-section__rule {
	width: 60px;
	height: 2px;
	border: 0;
	background: var(--wp--preset--color--amber);
	margin: 0.75rem auto 2rem;
}

.cc-favourites {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	margin-top: 0.5rem;
}

@media (max-width: 900px) {
	.cc-favourites { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.cc-favourites { grid-template-columns: 1fr; }
}

.cc-favourite {
	background: #fff;
	padding: 12px;
	border-radius: 5px;
	box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
}

.cc-favourite__img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.cc-favourite__placeholder {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--cream-light);
	border-radius: 6px;
	font-size: 2rem;
	color: var(--wp--preset--color--burgundy);
	opacity: 0.4;
}

.cc-favourite__name {
	text-align: center;
	margin: 0.85rem 0 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--text-dark);
}

.cc-favourite__desc {
	text-align: center;
	margin: 0;
	font-size: 0.88rem;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.85;
}

/* Footer social-links list — rendered by [chip_chop_socials] shortcode */
.cc-socials {
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.cc-socials__item { margin: 0; }

.cc-socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--text-dark);
	border-radius: 50%;
	transition: color 160ms ease, transform 160ms ease;
}

.cc-socials__link:hover {
	color: var(--wp--preset--color--burgundy);
	transform: translateY(-1px);
	text-decoration: none;
}

.cc-socials__link svg { display: block; }

/* Featured Favourites cards — your CSS, with :nth-child(1) dropped so all 4 columns get it. */
#wp--skip-link--target > div > div:nth-child(4) > div > div {
	background-color: #fff;
	padding: 12px;
	border-radius: 5px;
	box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
}

/* FAQ — animated <details> blocks (the JS in /assets/js/details.js wraps the
 * post-summary content in .cc-details-body so we can transition max-height).
 */
.wp-block-details {
	border-bottom: 1px solid rgba(105, 20, 39, 0.18);
	padding: 0.75rem 0;
	margin: 0;
}

.wp-block-details > summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 0.4rem 0 0.4rem 2rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--wp--preset--color--burgundy);
	line-height: 1.35;
	transition: color 160ms ease;
}

.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker                  { content: ""; }

.wp-block-details > summary::before {
	content: "+";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1.4rem;
	height: 1.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--burgundy);
	border-radius: 50%;
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1;
	transition: transform 240ms ease, background-color 240ms ease;
}

.wp-block-details[open] > summary::before {
	content: "−";
	transform: translateY(-50%) rotate(180deg);
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
}

.wp-block-details > summary:hover { color: var(--wp--preset--color--burgundy-dark); }

/* Animated body wrapper added by details.js */
.cc-details-body {
	overflow: hidden;
	transition: max-height 280ms ease;
	padding-left: 2rem;
}

.cc-details-body > p,
.cc-details-body > ul,
.cc-details-body > ol {
	margin: 0.5rem 0 0.6rem;
	color: var(--wp--preset--color--text-dark);
	font-weight: 400;
}

/* Contact page — Google Maps embed */
.cc-contact-map {
	margin-top: 0.75rem;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid rgba(105, 20, 39, 0.15);
}

.cc-contact-map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

/* Pre-order form (customer-facing) — Fish Wednesday page */
.cc-preorder-form {
	background: var(--wp--preset--color--cream-light);
	border: 1px solid rgba(105, 20, 39, 0.15);
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 720px;
	margin: 1.5rem auto;
	font-family: var(--wp--preset--font-family--body);
}

.cc-preorder-pool {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 1rem;
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
	border-radius: 6px;
	gap: 0.75rem;
}

.cc-preorder-pool__label {
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
}

.cc-preorder-pool__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	line-height: 1;
}

.cc-preorder-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

@media (max-width: 560px) {
	.cc-preorder-form__row {
		grid-template-columns: 1fr;
	}
}

.cc-preorder-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.95rem;
}

.cc-preorder-field span {
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
}

.cc-preorder-field input[type="text"],
.cc-preorder-field input[type="email"],
.cc-preorder-field input[type="tel"],
.cc-preorder-field input[type="number"],
.cc-preorder-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.7rem;
	border: 1px solid rgba(105, 20, 39, 0.25);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	background: #fff;
}

.cc-preorder-field input:focus,
.cc-preorder-field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--burgundy);
	box-shadow: 0 0 0 3px rgba(105, 20, 39, 0.15);
}

.cc-preorder-items {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cc-preorder-items__heading {
	margin: 0.5rem 0 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
	font-weight: 700;
}

.cc-preorder-item {
	display: flex;
	gap: 1rem;
	background: #fff;
	border: 1px solid rgba(105, 20, 39, 0.15);
	border-radius: 6px;
	padding: 0.85rem 1rem;
	align-items: center;
}

@media (max-width: 560px) {
	.cc-preorder-item {
		flex-direction: column;
		align-items: stretch;
	}
}

.cc-preorder-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.cc-preorder-item__name {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--text-dark);
}

.cc-preorder-item__price {
	color: var(--wp--preset--color--burgundy);
	font-weight: 700;
	margin-left: 0.35rem;
}

.cc-preorder-item__desc {
	margin: 0.2rem 0 0;
	font-size: 0.88rem;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.85;
}

.cc-preorder-item__avail {
	display: inline-block;
	margin-top: 0.3rem;
	font-size: 0.78rem;
	color: #50575e;
}

.cc-preorder-item__out {
	display: inline-block;
	margin-top: 0.3rem;
	font-size: 0.82rem;
	color: var(--wp--preset--color--burgundy);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cc-preorder-item--out { opacity: 0.55; }

/* Sold-out (no more fish pool for this item) — grey out + overlay text */
.cc-preorder-item {
	position: relative;
}

.cc-preorder-item__soldout {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(243, 236, 227, 0.70);
	color: var(--wp--preset--color--burgundy);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
	text-align: center;
	padding: 0.75rem;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	pointer-events: none;
}

.cc-preorder-item--soldout .cc-preorder-item__soldout {
	display: flex;
}

.cc-preorder-item--soldout > .cc-preorder-item__info,
.cc-preorder-item--soldout > .cc-preorder-item__qty {
	filter: grayscale(1);
	opacity: 0.85;
}

.cc-preorder-item__qty {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 0 0 auto;
}

.cc-preorder-step {
	width: 36px;
	height: 36px;
	border: 1px solid var(--wp--preset--color--burgundy);
	background: #fff;
	color: var(--wp--preset--color--burgundy);
	font-size: 1.2rem;
	line-height: 1;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
}

.cc-preorder-step:hover { background: var(--wp--preset--color--burgundy); color: var(--wp--preset--color--cream); }
.cc-preorder-step:disabled { opacity: 0.4; cursor: not-allowed; }

.cc-preorder-qty {
	width: 56px;
	text-align: center;
	padding: 0.45rem 0.3rem;
	border: 1px solid rgba(105, 20, 39, 0.25);
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	background: #fff;
	cursor: default;
	caret-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	-moz-appearance: textfield;
}

.cc-preorder-qty::-webkit-outer-spin-button,
.cc-preorder-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cc-preorder-qty:focus {
	outline: none;
}

.cc-preorder-form__actions {
	text-align: center;
}

.cc-preorder-submit {
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--cream);
	border: 0;
	padding: 0.85rem 2.5rem;
	font-family: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 160ms ease;
}

.cc-preorder-submit:hover { background: var(--wp--preset--color--burgundy-dark); }

.cc-preorder-empty {
	text-align: center;
	padding: 2rem;
	background: var(--wp--preset--color--cream-light);
	border-radius: 6px;
}

/* Generic form message — used by both AJAX-rendered + PHP-rendered (URL param fallback) messages.
 * .cc-form-message--success = green; --error = red.
 * Legacy classes (.cc-preorder-success / .cc-preorder-error) kept for back-compat.
 */
.cc-form-message,
.cc-preorder-success,
.cc-preorder-error {
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	text-align: center;
	margin: 1.5rem auto;
	max-width: 720px;
	border-width: 2px;
	border-style: solid;
}

.cc-form-message p,
.cc-preorder-success p,
.cc-preorder-error p { margin: 0; }

.cc-form-message h3,
.cc-preorder-success h3,
.cc-preorder-error h3 { margin: 0 0 0.35rem; }

.cc-form-message--success,
.cc-preorder-success {
	background: rgba(26, 126, 26, 0.08);
	border-color: #1a7e1a;
	color: #1a7e1a;
}

.cc-form-message--error,
.cc-preorder-error {
	background: rgba(179, 45, 46, 0.08);
	border-color: #b32d2e;
	color: #b32d2e;
	font-weight: 600;
}

/* Menu images (decorative shots placed between items) */
.cc-menu-image {
	margin: 0.5rem 0;
}

.cc-menu-image__img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.cc-menu-image--full {
	grid-column: 1 / -1;
}

/* Fish Menu (chalkboard) — rendered by [chip_chop_fish_menu] on Fish Wednesday.
 * Hand-drawn doodles: fish in the top-left (beside the heading), fries in the
 * bottom-right. Two-class selector below beats the chalkboard's `> *`
 * `position: relative` rule that otherwise wins on equal specificity.
 */
.cc-fish-menu {
	max-width: 720px;
	margin: 15px auto 0;
}

.cc-fish-menu__board {
	position: relative;
	padding-bottom: 3rem !important; /* extra room below items so the fries doodle doesn't overlap the last price */
}

.cc-menu-section--chalkboard > .cc-fish-menu__doodle {
	position: absolute;
	pointer-events: none;
	color: #f4ecd8;
	opacity: 0.72;
	z-index: 1;
	transform-origin: center;
}

.cc-menu-section--chalkboard > .cc-fish-menu__doodle--fish {
	top: 1rem;
	left: 1.25rem;
	transform: rotate(-8deg);
}

.cc-menu-section--chalkboard > .cc-fish-menu__doodle--fries {
	bottom: 0.85rem;
	right: 1.25rem;
	transform: rotate(7deg);
}

.cc-fish-menu__doodle--fish svg  { display: block; width: 70px; height: auto; }
.cc-fish-menu__doodle--fries svg { display: block; width: 42px; height: auto; }

/* Shrink doodles + tuck closer to the corner on narrow viewports so they
 * stay visible on portrait phones instead of disappearing entirely. */
@media (max-width: 520px) {
	.cc-menu-section--chalkboard > .cc-fish-menu__doodle--fish {
		top: 0.5rem;
		left: 0.5rem;
	}
	.cc-menu-section--chalkboard > .cc-fish-menu__doodle--fries {
		bottom: 0.5rem;
		right: 0.5rem;
	}
	.cc-fish-menu__doodle--fish svg  { width: 50px; }
	.cc-fish-menu__doodle--fries svg { width: 32px; }
}

/* Very narrow widths — hide them entirely if they'd start colliding with items */
@media (max-width: 360px) {
	.cc-menu-section--chalkboard > .cc-fish-menu__doodle { display: none; }
}

.cc-fish-menu-empty {
	text-align: center;
	padding: 1.5rem;
	font-style: italic;
}

/* Free-form text block on the menu (allergy notice, disclaimer, etc.) */
.cc-menu-text {
	font-family: var(--wp--preset--font-family--body);
}

/* Style variants */
.cc-menu-text--style-title {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--text-dark);
	font-size: 1rem;
	line-height: 1.35;
}

.cc-menu-text--style-description {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--wp--preset--color--text-dark);
	opacity: 0.85;
	line-height: 1.4;
}

/* Alignment */
.cc-menu-text--align-left   { text-align: left;   }
.cc-menu-text--align-center { text-align: center; }
.cc-menu-text--align-right  { text-align: right;  }

/* Vertical spacing (top + bottom) */
.cc-menu-text--spacing-none   { margin: 0;        }
.cc-menu-text--spacing-small  { margin: 0.4rem 0; }
.cc-menu-text--spacing-medium { margin: 1rem 0;   }
.cc-menu-text--spacing-large  { margin: 1.75rem 0; }

/* Chalkboard inheritance — text inside a chalkboard section uses cream text */
.cc-menu-section--chalkboard .cc-menu-text,
.cc-menu-section--chalkboard .cc-menu-text--style-title,
.cc-menu-section--chalkboard .cc-menu-text--style-description {
	color: #f4ecd8;
}

/* Consecutive images with "inline_with_prev" sit side-by-side in a flex row.
 * Each image keeps its own width_percent via inline style on the figure.
 */
.cc-menu-image-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: flex-start;
	margin: 0.5rem 0;
}

.cc-menu-image-row .cc-menu-image {
	margin: 0;
	flex: 0 0 auto;
}

/* Section heading inside menu — Bebas Neue burgundy, frybox icon on each side, gold underline */
.cc-menu-section__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 3.2vw, 2.25rem);
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
	text-align: center;
	margin: 2rem 0 0.4rem;
	line-height: 1.05;
}

.cc-menu-section__title-text {
	flex: 0 0 auto;
}

.cc-menu-section__icon {
	flex: 0 0 auto;
	width: 36px;
	height: auto;
	display: block;
}

.cc-menu-section__rule {
	display: block;
	width: 100px;
	height: 2px;
	background: var(--wp--preset--color--amber);
	margin: 0 auto 1.25rem;
	border: 0;
}

/* Specials / chalkboard variant — a wood-framed slate look for rotating specials */
.cc-menu-section--chalkboard {
	position: relative;
	background:
		radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.04), transparent 50%),
		radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.03), transparent 60%),
		#2a2e2a;
	color: #f4ecd8;
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: 10px;
	/* Layered wood-grain frame outside the slate */
	box-shadow:
		0 0 0 8px #6b4423,
		0 0 0 9px #4a2f18,
		0 0 0 13px #8a5a30,
		0 0 0 14px #4a2f18,
		0 8px 24px rgba(0, 0, 0, 0.25);
	margin: 0.5rem 0;
}

/* Faint chalk-dust streaks across the surface */
.cc-menu-section--chalkboard::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
		repeating-linear-gradient(95deg, transparent, transparent 3px, rgba(255, 255, 255, 0.012) 3px, rgba(255, 255, 255, 0.012) 4px);
	pointer-events: none;
}

.cc-menu-section--chalkboard > * { position: relative; }

.cc-menu-section--chalkboard .cc-menu-section__title {
	color: #f4ecd8;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 0 6px rgba(244, 236, 216, 0.15);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	transform: rotate(-1.5deg);
	margin-top: 0.5rem;
}

.cc-menu-section--chalkboard .cc-menu-section__rule {
	background: rgba(244, 236, 216, 0.45);
	width: 90px;
	height: 1px;
	margin-bottom: 1.25rem;
}

.cc-menu-section--chalkboard .cc-menu-item__title,
.cc-menu-section--chalkboard .cc-menu-item__price {
	color: #f4ecd8;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.cc-menu-section--chalkboard .cc-menu-item__description {
	color: rgba(244, 236, 216, 0.78);
	font-style: italic;
}

.cc-menu-section--chalkboard .cc-menu-item__leader {
	border-bottom-color: rgba(244, 236, 216, 0.4);
}

/* Menu tabs (Regular / Gluten Free) */
.cc-menu-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--wp--preset--color--burgundy);
}

.cc-menu-tabs__btn {
	background: transparent;
	border: 0;
	padding: 0.85rem 1.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	color: var(--wp--preset--color--text-dark);
	border-bottom: 4px solid transparent;
	margin-bottom: -2px;
	transition: color 160ms ease, border-color 160ms ease;
}

.cc-menu-tabs__btn[aria-selected="true"] {
	color: var(--wp--preset--color--burgundy);
	border-bottom-color: var(--wp--preset--color--amber);
}

.cc-menu-tabs__btn:hover,
.cc-menu-tabs__btn:focus {
	color: var(--wp--preset--color--burgundy);
}

/* Homepage notice — rendered by [chip_chop_notice] shortcode.
 * Designed to overlay the hero (top-right card style from the mockup) but works standalone too.
 */
.cc-notice {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: rgba(78, 15, 29, 0.92);
	color: var(--wp--preset--color--cream);
	padding: 1.25rem 1.5rem;
	border-radius: 8px;
	border: 2px solid var(--wp--preset--color--amber);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	max-width: 420px;
	font-family: var(--wp--preset--font-family--body);
	backdrop-filter: blur(2px);
}

.cc-notice__image {
	flex: 0 0 auto;
	max-width: 80px;
	height: auto;
	border-radius: 4px;
}

.cc-notice__body {
	flex: 1 1 auto;
}

.cc-notice__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.15;
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--cream);
}

.cc-notice__message {
	font-size: 0.95rem;
	line-height: 1.45;
	margin: 0;
	color: var(--wp--preset--color--cream);
}

/* Optional absolute-overlay positioning (legacy, used by .is-overlay only).
 * Hero now uses a flex row so the notice sits naturally to the right of the text.
 */
.cc-notice.is-overlay {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 2;
}

/* Feature icons strip — 4 columns inside the burgundy band */
.cc-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	color: var(--wp--preset--color--cream-light);
}

.cc-feature {
	text-align: center;
	padding: 0 0.5rem;
	border-left: 1px solid rgba(243, 236, 227, 0.18);
}

.cc-feature:first-child {
	border-left: 0;
}

.cc-feature__icon {
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--wp--preset--color--cream-light);
	margin-bottom: 0.5rem;
	height: 50px;
}

.cc-feature__icon svg {
	display: block;
}

.cc-feature__title {
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--cream-light);
}

.cc-feature__sub {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: rgba(243, 236, 227, 0.85);
}

@media (max-width: 900px) {
	.cc-features { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
	.cc-feature:nth-child(3) { border-left: 0; }
}

@media (max-width: 540px) {
	.cc-features { grid-template-columns: 1fr; }
	.cc-feature { border-left: 0; border-top: 1px solid rgba(243, 236, 227, 0.18); padding-top: 1rem; }
	.cc-feature:first-child { border-top: 0; padding-top: 0; }
}

/* Hero row layout — text on the left at its natural width, notice on the right */
.cc-hero-row {
	gap: 2rem;
	align-items: flex-start;
}

.cc-hero-text {
	flex: 1 1 480px;
	max-width: 560px;
}

.cc-hero-notice {
	flex: 0 1 420px;
	max-width: 420px;
}

@media (max-width: 768px) {
	.cc-notice {
		max-width: 100%;
	}
	.cc-hero-text {
		flex: 1 1 100%;
		max-width: 100%;
	}
	.cc-hero-notice {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* Hours block — rendered by [chip_chop_hours] shortcode */
.cc-hours {
	list-style: none;
	padding: 0;
	margin: 1.5rem auto;
	max-width: 480px;
	font-family: var(--wp--preset--font-family--body);
}

.cc-hours__row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(105, 20, 39, 0.15);
}

.cc-hours__row:last-child {
	border-bottom: 0;
}

.cc-hours__day {
	flex: 0 0 auto;
	min-width: 6.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--burgundy);
	white-space: nowrap;
}

.cc-hours__sep {
	flex: 1 1 auto;
	border-bottom: 2px dotted rgba(105, 20, 39, 0.35);
	transform: translateY(-0.35em);
	min-width: 1.5rem;
}

.cc-hours__value {
	flex: 0 0 auto;
	font-weight: 500;
	color: var(--wp--preset--color--text-dark);
}

.cc-hours__note {
	text-align: center;
	font-style: italic;
	color: var(--wp--preset--color--burgundy);
	margin-top: 0.75rem;
}

/* Print styles — used by the pre-order pull sheet */
@media print {
	.cc-no-print { display: none !important; }
	body { background: #fff; color: #000; }
}
