/* Food Online Menu templates for the classic menu ([foodonline], [foodonline2], [foodonline_menu] and the shop page).
   Colors and fonts arrive as --fdoe-ct-* variables on body.fdoe-classic-tpl-<template>; the classic layout keeps its structure. */

.fdoe-classic-tpl #the_main_container {
	background: var(--fdoe-ct-surface);
	color: var(--fdoe-ct-text);
	padding: clamp(1rem, 3vw, 2rem);
	font-family: var(--fdoe-ct-body-font, inherit);
}

/* The classic menu prints its color settings inline; the template replaces them. */
.fdoe-classic-tpl #the_main_container #the_menu,
.fdoe-classic-tpl #the_main_container #menu_headings,
.fdoe-classic-tpl #the_main_container .fdoe,
.fdoe-classic-tpl #the_main_container div.fdoe-item:hover {
	background-color: transparent !important;
	box-shadow: none;
}

.fdoe-classic-tpl #the_main_container .menu_titles .fdoe_title_text,
.fdoe-classic-tpl #the_main_container .menu_titles .fdoe_title_text a {
	color: var(--fdoe-ct-text);
	font-family: var(--fdoe-ct-heading-font, inherit);
	text-transform: var(--fdoe-ct-heading-transform, none);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	line-height: 1.05;
}

.fdoe-classic-tpl #the_main_container .fdoe-menu-title-icon,
.fdoe-classic-tpl #the_main_container .fdoe-item-icon {
	color: var(--fdoe-ct-accent) !important;
}

.fdoe-classic-tpl #the_main_container .menu_titles_desc,
.fdoe-classic-tpl #the_main_container .fdoe_cat_desc {
	color: color-mix(in srgb, var(--fdoe-ct-text) 75%, transparent);
}

.fdoe-classic-tpl #the_main_container #the_menu .fdoe-item {
	margin-bottom: 14px;
	border: var(--fdoe-ct-border) solid color-mix(in srgb, var(--fdoe-ct-card-text) 20%, transparent) !important;
	border-radius: var(--fdoe-ct-radius);
	background: var(--fdoe-ct-card) !important;
	color: var(--fdoe-ct-card-text);
	overflow: hidden;
}

.fdoe-classic-tpl #the_main_container .fdoe_title h5,
.fdoe-classic-tpl #the_main_container .fdoe_title h5 b {
	color: var(--fdoe-ct-card-text) !important;
	font-family: var(--fdoe-ct-title-font, inherit);
	text-transform: var(--fdoe-ct-title-transform, none);
	font-weight: inherit;
}

.fdoe-classic-tpl #the_main_container .fdoe_title h5 {
	font-size: 1.25rem;
	font-weight: 700;
	overflow-wrap: break-word;
}

.fdoe-classic-tpl #the_main_container .fdoe_description,
.fdoe-classic-tpl #the_main_container .fdoe_description p {
	color: color-mix(in srgb, var(--fdoe-ct-card-text) 75%, transparent);
	font-family: var(--fdoe-ct-body-font, inherit);
	font-style: normal;
}

.fdoe-classic-tpl #the_main_container .fdoe_item_price,
.fdoe-classic-tpl #the_main_container .fdoe_item_price .amount {
	color: var(--fdoe-ct-price);
	font-weight: 700;
}

/* A price range may wrap at the dash but never inside an amount, and "+" keeps its room. */
.fdoe-classic-tpl #the_main_container .fdoe_item_price .amount {
	white-space: nowrap;
}

.fdoe-classic-tpl #the_main_container .fdoe_item_price {
	min-width: 0;
}

.fdoe-classic-tpl #the_main_container .fdoe_add_item {
	flex: 0 0 auto;
}

.fdoe-classic-tpl #the_main_container .fdoe_thumb img {
	border-radius: calc(var(--fdoe-ct-radius) * 0.6);
}

/* Category navigation and search. */
.fdoe-classic-tpl #the_main_container #menu_headings a,
.fdoe-classic-tpl #the_main_container #menu_headings_2 a {
	color: var(--fdoe-ct-text) !important;
	font-family: var(--fdoe-ct-heading-font, inherit);
	text-transform: var(--fdoe-ct-heading-transform, none);
}

.fdoe-classic-tpl #the_main_container #menu_headings a.fdoe-active-link-2,
.fdoe-classic-tpl #the_main_container #menu_headings_2 .fdoe-active-link a {
	text-decoration: underline;
	text-decoration-color: var(--fdoe-ct-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.fdoe-classic-tpl #the_main_container input#fdoe-search {
	background: var(--fdoe-ct-control);
	color: var(--fdoe-ct-control-text);
	border: 1px solid color-mix(in srgb, var(--fdoe-ct-control-text) 25%, transparent);
	border-radius: var(--fdoe-ct-radius);
}

/* Mini cart. */
.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart_outer {
	padding: 1rem 1.25rem;
	border: 1px solid var(--fdoe-ct-cart-border);
	border-radius: var(--fdoe-ct-cart-radius);
	background: var(--fdoe-ct-cart);
	color: var(--fdoe-ct-cart-text);
}

.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart_outer a:not(.button) {
	color: inherit;
}

.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .Minicart_heading {
	color: inherit;
	font-family: var(--fdoe-ct-heading-font, inherit);
	text-transform: var(--fdoe-ct-heading-transform, none);
}

.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .woocommerce-mini-cart__empty-message,
.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart .quantity {
	color: var(--fdoe-ct-cart-muted);
}

.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_order_time {
	color: var(--fdoe-ct-text);
}

.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) a.button.checkout,
.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_minicart_checkout_button,
.fdoe-classic-tpl :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart .button {
	border: 0;
	border-radius: var(--fdoe-ct-cart-radius);
	background: var(--fdoe-ct-button) !important;
	color: var(--fdoe-ct-button-text) !important;
	font-family: var(--fdoe-ct-heading-font, inherit);
	text-transform: var(--fdoe-ct-heading-transform, none);
}

/* Classic delivery selector, address field and top bar. */
.fdoe-classic-tpl .fdoe-top-bar-header {
	border: 1px solid var(--fdoe-ct-cart-border) !important;
	border-radius: var(--fdoe-ct-radius);
	background: var(--fdoe-ct-surface);
	color: var(--fdoe-ct-text);
	font-family: var(--fdoe-ct-body-font, inherit);
}

.fdoe-classic-tpl :is(.fdoe-top-bar-header, #fdoe_checker) .aroslider {
	background-color: var(--fdoe-ct-accent) !important;
}

.fdoe-classic-tpl :is(.fdoe-top-bar-header, #fdoe_checker) label,
.fdoe-classic-tpl .fdoe-top-bar-header :is(.top-bar-icon, .top-bar-place-right, .fdoe_order_time, .fdoe_delivery_time, .fdoe_pickup_time, i) {
	color: var(--fdoe-ct-text) !important;
}

.fdoe-classic-tpl :is(.fdoe-top-bar-header, #fdoe_checker, #fdoe_adress_row, #fdoe_shipping_form) :is(input[type="text"], input[type="search"], select) {
	border: 1px solid color-mix(in srgb, var(--fdoe-ct-control-text) 30%, transparent) !important;
	border-radius: calc(var(--fdoe-ct-radius) * 0.6);
	background-color: var(--fdoe-ct-control) !important;
	color: var(--fdoe-ct-control-text) !important;
	font-family: var(--fdoe-ct-body-font, inherit);
	box-shadow: none;
}

.fdoe-classic-tpl :is(.fdoe-top-bar-header, #fdoe_checker, #fdoe_adress_row, #fdoe_shipping_form) input::placeholder {
	color: color-mix(in srgb, var(--fdoe-ct-control-text) 62%, transparent);
}

.fdoe-classic-tpl .fdoe-autocomplete-suggestions {
	border-color: color-mix(in srgb, var(--fdoe-ct-control-text) 30%, transparent);
	border-radius: calc(var(--fdoe-ct-radius) * 0.6);
	background: var(--fdoe-ct-control);
	color: var(--fdoe-ct-control-text);
	font-family: var(--fdoe-ct-body-font, inherit);
}

.fdoe-classic-tpl .fdoe-autocomplete-suggestion:hover,
.fdoe-classic-tpl .fdoe-autocomplete-suggestion.is-active {
	background: color-mix(in srgb, var(--fdoe-ct-accent) 14%, transparent);
}

.fdoe-classic-tpl :is(.fdoe-top-bar-header, #fdoe_checker, #fdoe_adress_row, #fdoe_shipping_form) :is(button, input[type="submit"]) {
	border: 0;
	border-radius: calc(var(--fdoe-ct-radius) * 0.6);
	background: var(--fdoe-ct-button) !important;
	color: var(--fdoe-ct-button-text) !important;
}

.fdoe-classic-tpl #fdoe_delivery_notice_wrapper {
	color: var(--fdoe-ct-text);
}

/* Product popup. */
.fdoe-classic-tpl .fdoe-aromodal .aromodal-content {
	border-radius: var(--fdoe-ct-radius);
	background: var(--fdoe-ct-control);
	color: var(--fdoe-ct-control-text);
}

.fdoe-classic-tpl .fdoe-aromodal .aromodal-title,
.fdoe-classic-tpl .fdoe-aromodal .fdoe-modal-2-title {
	color: inherit;
	font-family: var(--fdoe-ct-title-font, inherit);
	text-transform: var(--fdoe-ct-title-transform, none);
}

.fdoe-classic-tpl .fdoe-aromodal .single_add_to_cart_button {
	border-radius: var(--fdoe-ct-radius);
	background: var(--fdoe-ct-accent) !important;
	color: var(--fdoe-ct-accent-text) !important;
}

/* The popup dims the page so it reads as a layer, also on phones. */
.fdoe-classic-tpl .fdoe-aromodal.in-aro {
	background-color: rgba(0, 0, 0, 0.5);
}

/* Style 1 paints its form white with !important; the template's popup colors replace that. */
.fdoe-classic-tpl .product-aromodal.product-modal-style-1 .fdoe-modal-2-add,
.fdoe-classic-tpl .product-aromodal.product-modal-style-1 form.cart,
.fdoe-classic-tpl .product-aromodal.product-modal-style-1 form.variations_form.cart :is(table, tbody, tr, th, td, label, .variations, .reset_variations, .single_variation_wrap, .woocommerce-variation, .variations_button),
.fdoe-classic-tpl .product-aromodal.product-modal-style-1 form.variations_form.cart table.variations tbody > tr:nth-child(n) > :is(th, td),
.fdoe-classic-tpl .product-aromodal.product-modal-style-1 .theme-selectInner {
	background-color: transparent !important;
	color: inherit !important;
}

.fdoe-classic-tpl .fdoe-aromodal select,
.fdoe-classic-tpl .fdoe-aromodal input.qty,
.fdoe-classic-tpl .product-aromodal.product-modal-style-1 form.cart :is(select, input.qty) {
	border: 1px solid color-mix(in srgb, var(--fdoe-ct-control-text) 35%, transparent) !important;
	border-radius: calc(var(--fdoe-ct-radius) * 0.5);
	background-color: color-mix(in srgb, var(--fdoe-ct-control-text) 6%, var(--fdoe-ct-control)) !important;
	color: var(--fdoe-ct-control-text) !important;
}

.fdoe-classic-tpl .fdoe-aromodal select option {
	background-color: var(--fdoe-ct-control);
	color: var(--fdoe-ct-control-text);
}

.fdoe-classic-tpl .fdoe-aromodal .variations :is(th, label),
.fdoe-classic-tpl .fdoe-aromodal .reset_variations {
	color: var(--fdoe-ct-control-text) !important;
}

.fdoe-classic-tpl .fdoe-aromodal button.close,
.fdoe-classic-tpl .product-modal-style-1 button.modal-close {
	color: var(--fdoe-ct-control-text) !important;
	opacity: 1;
	text-shadow: none;
}

.fdoe-classic-tpl .product-modal-style-1 button.modal-close {
	border: 2px solid var(--fdoe-ct-control-text);
	background-color: var(--fdoe-ct-control) !important;
}

.fdoe-classic-tpl .product-modal-style-1 button.modal-close :is(i, svg, span) {
	color: var(--fdoe-ct-control-text) !important;
	fill: currentColor;
}

.fdoe-classic-tpl .fdoe-aromodal button.button[data-dismiss="aromodal"] {
	border: 1px solid var(--fdoe-ct-control-text);
	border-radius: var(--fdoe-ct-radius);
	background: transparent !important;
	color: var(--fdoe-ct-control-text) !important;
}

/* Arcade: arcs on the surface, 3D headings, ink outlines and hard shadows. */
.fdoe-classic-tpl-arcade #the_main_container {
	background-image:
		radial-gradient(120% 70% at 110% -10%, transparent 58%, color-mix(in srgb, var(--fdoe-ct-surface) 62%, #fff) 58.5% 64%, transparent 64.5%),
		radial-gradient(90% 60% at -15% 115%, transparent 55%, color-mix(in srgb, var(--fdoe-ct-surface) 62%, #fff) 55.5% 61%, transparent 61.5%);
}

.fdoe-classic-tpl-arcade #the_main_container .menu_titles .fdoe_title_text {
	display: inline-block;
	color: #fff;
	-webkit-text-stroke: 2px var(--fdoe-ct-text);
	paint-order: stroke fill;
	text-shadow: 2px 2px 0 var(--fdoe-ct-accent), 4px 4px 0 var(--fdoe-ct-accent), 6px 6px 0 color-mix(in srgb, var(--fdoe-ct-accent) 62%, #000), 8px 8px 0 var(--fdoe-ct-text);
	transform: skewX(-6deg) rotate(-2deg);
}

.fdoe-classic-tpl-arcade #the_main_container #the_menu .fdoe-item {
	border-color: var(--fdoe-ct-text) !important;
	box-shadow: 6px 6px 0 var(--fdoe-ct-text);
	margin-bottom: 20px;
}

.fdoe-classic-tpl-arcade :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart_outer {
	border-width: 3px;
	box-shadow: 6px 6px 0 var(--fdoe-ct-cart-border);
}

.fdoe-classic-tpl-arcade :is(#the_main_container, .fdoe-shortcode-wrapper) a.button.checkout,
.fdoe-classic-tpl-arcade :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart .button {
	border: 3px solid var(--fdoe-ct-text);
	box-shadow: 4px 4px 0 var(--fdoe-ct-text);
}

/* Street: square ink frames, misregistered heading, typewriter receipt. */
.fdoe-classic-tpl-street #the_main_container .menu_titles .fdoe_title_text {
	letter-spacing: -0.02em;
	text-shadow: 4px 3px 0 color-mix(in srgb, var(--fdoe-ct-accent) 85%, transparent);
}

.fdoe-classic-tpl-street #the_main_container #the_menu .fdoe-item {
	border-color: var(--fdoe-ct-text) !important;
	border-radius: 0;
}

.fdoe-classic-tpl-street :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart_outer {
	border-width: 2px;
	border-radius: 0;
	font-family: "Courier Prime", "Courier New", Courier, monospace;
}

.fdoe-classic-tpl-street :is(#the_main_container, .fdoe-shortcode-wrapper) .fdoe_mini_cart .woocommerce-mini-cart-item {
	border-bottom: 2px dashed var(--fdoe-ct-cart-border);
}

/* Ellen Noble: quiet printed card, no frames. */
.fdoe-classic-tpl-ellen-noble #the_main_container #the_menu .fdoe-item {
	border-width: 0 0 1px !important;
	border-radius: 0;
}

.fdoe-classic-tpl-ellen-noble #the_main_container .menu_titles .fdoe_title_text {
	font-size: 1.1rem;
	letter-spacing: 0.14em;
}

@media (max-width: 767px) {
	.fdoe-classic-tpl #the_main_container .menu_titles .fdoe_title_text {
		font-size: clamp(1.5rem, 8vw, 2.2rem);
	}

	/* Name and description get the width; price and "+" share their own row below. */
	.fdoe-classic-tpl #the_main_container #the_menu .fdoe-item .flex-container-row {
		grid-template-columns: minmax(0, 1fr) 0 0 minmax(0, 88px) !important;
	}

	.fdoe-classic-tpl #the_main_container #the_menu .fdoe-item .fdoe_thumb {
		max-width: 88px;
	}

	.fdoe-classic-tpl #the_main_container #the_menu .fdoe-item .fdoe_desc.fdoe_summary {
		width: auto !important;
		max-width: none;
		min-width: 0;
	}

	.fdoe-classic-tpl #the_main_container #the_menu .fdoe-item .fdoe_thumb img {
		width: 100%;
		height: auto;
	}

	.fdoe-classic-tpl #the_main_container #the_menu .fdoe-item [class*="fdoe_price_and_add"] {
		min-width: 0;
		max-width: 100%;
		gap: 0.75rem;
	}

	.fdoe-classic-tpl #the_main_container .fdoe_title h5,
	.fdoe-classic-tpl #the_main_container .fdoe_description p {
		overflow-wrap: break-word;
		word-break: normal;
		hyphens: manual;
	}
}

@media (forced-colors: active) {
	.fdoe-classic-tpl #the_main_container .menu_titles .fdoe_title_text {
		color: CanvasText;
		-webkit-text-stroke: 0;
		text-shadow: none;
		transform: none;
	}

	.fdoe-classic-tpl #the_main_container #the_menu .fdoe-item {
		box-shadow: none;
	}
}
