/**
 * FoodOrd Product Modal Styles
 *
 * @package FoodOrd_Plugin
 */

/* Modal Base Styles */
:root {
    --background-color: #f7f7f7;
    --primary-color: #c9386f;
    --primary-hover: #b92a61;
    --text-color: #323232;
    --text-hover: #313131;
    --secondary-text: #6b6b6b;
    --button-bg: #c9386f;
    --button-text-color: #ffffff;
    --button-on-hover: #b92a61;
    --header-bg: #ffffff;
    --footer-bg: #ffffff;
    --border-color: #f4f4f4;
}



.foodord-allergy-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #000000;
	background: transparent;
	color: #000000;
	margin-left: 10px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.foodord-allergy-trigger:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.45);
	outline-offset: 2px;
}

.foodord-allergy-trigger__icon {
	font-size: 12px;
	font-weight: 700;
	color: #000000;
	line-height: 1;
	display: inline-block;
	transform: scaleY(0.9);
}

.foodord-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	display: none;
}

/* Visibility helper classes */
.foodord-modal.visible {
	display: block;
}

.foodord-modal-product-content.visible {
	display: block;
}

.foodord-modal.hidden,
.foodord-modal-loading.hidden,
.foodord-modal-product-content.hidden {
	display: none;
}

.foodord-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	box-sizing: border-box;
	overflow-x: hidden;
	max-width: 100vw;
}

.foodord-modal-container {
	position: relative;
	width: 100%;
	max-width: 540px;
	pointer-events: auto;
}

.foodord-modal-content {
	position: relative;
	width: 100%;
	max-height:90vh;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	overflow-x: hidden;
	transform: translateY(30px);
	opacity: 0;
	transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.foodord-modal[aria-hidden="false"] .foodord-modal-content {
	transform: translateY(0);
	opacity: 1;
}

/* Modal Close Button */
.foodord-modal-close {
	position: absolute;
	top: 7px;
	right: 16px;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.foodord-modal-close:hover {
	background: #ffffff;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.foodord-modal-close svg {
	width: 20px;
	height: 20px;
}

/* Modal Body */
.foodord-modal-body {
	position: relative;
	max-height: calc(90vh - 40px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

/* Loading State */
.foodord-modal-loading {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 40px;
	text-align: center;
}

.foodord-modal-loading.visible {
	display: flex;
}

.foodord-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #c9386f;
	border-radius: 50%;
	animation: foodord-spin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes foodord-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.foodord-modal-loading p {
	margin: 0;
}

/* Error State */
.foodord-modal-error {
	padding: 40px;
	text-align: center;
}

.foodord-modal-error p {
	margin-bottom: 20px;
}

.foodord-modal-error .button {
	background: #c9386f;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.foodord-modal-error .button:hover {
	background: #b92a61;
}

/* Product Content Styles */
.foodord-modal-product-content {
	display: none;
}

/* Variation form inside modal */
.foodord-product-purchase .variations_form {
	margin: 10px 0 0 0;
}

/* Hide WooCommerce variation reset link and default add-to-cart button inside modal */
.foodord-product-purchase .reset_variations,
.foodord-product-purchase .single_add_to_cart_button,
.foodord-product-modal-wrapper .reset_variations,
.foodord-modal-body .reset_variations,
.foodord-modal .reset_variations,
.variations_form .reset_variations,
.foodord-product-purchase .variations .reset_variations,
.foodord-product-purchase .variations .value .reset_variations {
	display: none;
	visibility: hidden;
	opacity: 0;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Hide entire variation add-to-cart container in modal */
.foodord-product-purchase .woocommerce-variation-add-to-cart.variations_button,
.foodord-product-purchase .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-enabled {
	display: none;
}

/* Convert WooCommerce variations table to class-based layout */
.foodord-product-purchase .variations {
	display: block;
	width: 100%;
	margin-bottom: 10px;
	border-collapse: initial;
}

.foodord-product-purchase .variations tbody {
	display: block;
}

.foodord-product-purchase .variations tr {
	display: block;
	margin-bottom: 8px;
}

.foodord-product-purchase .variations th.label {
	display: none;
}

.foodord-product-purchase .variations td.value {
	display: block;
	width: 100%;
	padding: 0;
}

.foodord-product-purchase .variations td.value select {
	display: none;
}

.foodord-product-purchase .single_variation_wrap {
	margin-top: 10px;
}

.foodord-product-purchase .single_add_to_cart_button {
	width: 100%;
}

.foodord-attr-wrapper > select {
	display: none;
}

.foodord-attr-wrapper {
	border: none;
	background: rgba(248, 249, 250, 0.6);
	padding: 16px 16px 16px 16px;
}

.foodord-attr-radio {
	display: block;
}

.foodord-attr-legend {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	gap: 8px;
	margin-bottom: 8px;
	padding: 0 16px;
	position: relative;
}

.foodord-attr-legend-title {
	margin: 0;
	display: block;
	flex: 1;
	order: -1;
	font-size: 14px;
	font-weight: 600;
}

.foodord-product-toppings {
	margin: 10px 0 0 0;
}

.foodord-attr-legend .foodord-product-toppings__badge {
	flex-shrink: 0;
	order: 1;
}

.foodord-attr-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 0;
}

.foodord-attr-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background-color: #ffffff;
	margin: 0;
}

.foodord-attr-option:hover {
	border-color: var(--primary-color, #c9386f);
	background-color: color-mix(in srgb, var(--primary-color, #c9386f), white 90%);
}

.foodord-attr-option.is-selected {
	border-color: var(--primary-color, #c9386f);
	background-color: color-mix(in srgb, var(--primary-color, #c9386f), white 90%);
}

.foodord-attr-option.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.foodord-attr-wrapper.has-variation-error {
	background-color: rgba(201, 56, 111, 0.1);
	border-color: rgba(201, 56, 111, 0.4);
	animation: toppings-shake 0.5s ease-in-out;
}

.foodord-attr-wrapper.has-variation-error .foodord-attr-option {
	border-color: rgba(201, 56, 111, 0.4);
}

/* Left side - radio and label */
.foodord-attr-option-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.foodord-attr-input {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--primary-color, #c9386f);
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
}

.foodord-attr-input:checked::after {
	content: '';
	position: absolute;
	inset: 3px;
	background: var(--primary-color, #c9386f);
	border-radius: 50%;
}

.foodord-attr-input:focus-visible {
	outline: 2px solid #c9386f;
	outline-offset: 2px;
}/* Right side - price display */
.foodord-attr-price {
	white-space: nowrap;
	margin-left: auto;
}

.foodord-product-modal-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto auto;
	padding: 0;
}

/* Add top spacing when there are no images */
.foodord-product-modal-wrapper:not(:has(.foodord-product-images)) .foodord-product-details {
	padding-top: 20px;
}

/* Alternative selector for older browsers that don't support :has() */
@supports not (selector(:has(.foodord-product-images))) {
	.foodord-product-modal-wrapper > .foodord-product-details:first-child {
		padding-top: 20px;
	}
}

.foodord-product-images {
	position: relative;
	width: 100%;
}

.foodord-product-main-image {
	position: relative;
	aspect-ratio: 16/9;
	margin-bottom: 1rem;
	overflow: hidden;
	background: #f8f9fa;
	width: 100%;
	max-height: 300px;
}

.foodord-product-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.foodord-product-thumbnails {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 40px 4px 40px;
}

.foodord-product-thumbnail {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.foodord-product-thumbnail:hover,
.foodord-product-thumbnail.active {
	border-color: #c9386f;
}

.foodord-product-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.foodord-product-title-row {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 14px;
	margin-bottom: 0.5rem;
	position: sticky;
	top: 0;
	z-index: 5;
}

.foodord-product-title {
	font-size: 16px;
	margin: 0;
	flex: 0 1 auto;
	min-width: 0;
}

.foodord-product-title-row.sticky-active {
	background-color: #ffffff;
	padding: 10px 1.2rem 15px 2.4rem;
	margin: 10px -1.2rem 0 -1.2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-bottom-color: #e5e5e5;
}

.foodord-product-price {
	font-size: 16px;
	padding: 0 1rem;
	margin-bottom: 0.5rem;
}.foodord-product-description {
	font-size: 14px;
	border-bottom: 1px solid #ebebeb;
	padding: 0 1rem;
	padding-bottom: 20px;
}

.foodord-product-toppings__set {
	border: none;
	background: rgba(248, 249, 250, 0.6);
	padding: 16px 16px 16px 16px;
	margin: 0 0 8px 0;
}

.foodord-product-toppings__set-header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	gap: 8px;
	margin-bottom: 8px;
	padding: 0 16px;
	position: relative;
}

.foodord-product-toppings__set-title {
	font-size: 14px;
	padding-bottom: 0;
	margin: 0;
	display: block;
	flex: 1;
	order: -1;
	font-weight: 600;
}

/* Required Badge */
.foodord-product-toppings__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	color: crimson;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-right: 2rem;
}

.foodord-product-toppings__badge--optional {
	color: var(--secondary-text, #6b6b6b);
}

.foodord-product-toppings__description {
	margin: 0 0 14px;
}

/* Options Container */
.foodord-product-toppings__control,
.foodord-product-toppings__options {
	margin: 0;
	padding: 0;
}

/* Dropdown Style */
.foodord-product-toppings__select {
	width: 100%;
	padding: 14px;
	border: 1.5px solid #dedede;
	border-radius: 8px;
	background: #ffffff;
	transition: all 0.2s ease;
	appearance: none;
	font-size: 13px;
	color: var(--text-color);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
	padding-right: 40px;
}

.foodord-product-toppings__select:focus {
	outline: none;
	border-color: var(--primary-color, #c9386f);
	box-shadow: 0 0 0 2px rgba(201, 56, 111, 0.12);
}

.foodord-product-toppings__select:hover {
	border-color: #d0d0d0;
}

/* Error States */
.foodord-product-toppings__set.has-error {
	background-color: rgba(201, 56, 111, 0.1);
	border-color: rgba(201, 56, 111, 0.4);
	animation: toppings-shake 0.5s ease-in-out;
}

.foodord-product-toppings__set.has-error .foodord-product-toppings__select {
	border-color: rgba(201, 56, 111, 0.7);
}

.foodord-product-toppings__set.has-error .foodord-product-toppings__option {
	border-color: rgba(201, 56, 111, 0.4);
}


/* Animation enhancements */
@keyframes toppings-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-2px); }
	75% { transform: translateX(2px); }
}

/* Radio/Checkbox Options */
.foodord-product-toppings__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.foodord-product-toppings__option.is-hidden-by-toggle {
	display: none;
}

.foodord-product-toppings__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	margin: 0;
}

.foodord-modal .foodord-product-toppings__toggle,
.foodord-modal button.foodord-product-toppings__toggle,
.foodord-product-toppings .foodord-product-toppings__toggle,
.foodord-product-toppings button.foodord-product-toppings__toggle {
	margin-top: 20px;
	border: none;
	background: none;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	cursor: pointer;
}

.foodord-modal .foodord-product-toppings__toggle .foodord-product-toppings__toggle-text,
.foodord-modal .foodord-product-toppings__toggle .foodord-product-toppings__toggle-icon,
.foodord-product-toppings .foodord-product-toppings__toggle .foodord-product-toppings__toggle-text,
.foodord-product-toppings .foodord-product-toppings__toggle .foodord-product-toppings__toggle-icon {
	color: #3147ad;
	font-size: 0.75rem;
	font-weight: 400;
}

.foodord-modal .foodord-product-toppings__toggle:focus-visible,
.foodord-product-toppings .foodord-product-toppings__toggle:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--primary-color, #c9386f), white 60%);
	outline-offset: 2px;
}

.foodord-modal .foodord-product-toppings__toggle:hover,
.foodord-product-toppings .foodord-product-toppings__toggle:hover {
	color: var(--primary-hover, #b92a61);
	text-decoration: underline;
	text-decoration-color: #3147ad;
}
.foodord-product-toppings__toggle-icon {
	width: 0.5em;
	height: 0.5em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	display: inline-block;
	transform: rotate(45deg) translateY(-0.2em);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.foodord-product-toppings__toggle.is-expanded .foodord-product-toppings__toggle-icon {
	transform: rotate(-135deg) translateY(-0.2em);
	margin-left: 2px;
}

.foodord-product-toppings__option:hover {
	border-color: var(--primary-color, #c9386f);
	background-color: color-mix(in srgb, var(--primary-color, #c9386f), white 90%);
}

.foodord-product-toppings__option.is-checked {
	border-color: var(--primary-color, #c9386f);
	background-color: color-mix(in srgb, var(--primary-color, #c9386f), white 90%);
}

/* Option Content */
.foodord-product-toppings__option-content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.foodord-product-toppings__input {
	position: relative;
	width: 18px;
	height: 18px;
	border: 2px solid var(--primary-color, #c9386f);
	background: #ffffff;
	transition: all 0.2s ease;
	cursor: pointer;
	margin: 0;
	flex-shrink: 0;
	appearance: none;
}

.foodord-product-toppings__input[type="radio"] {
	border-radius: 50%;
}

.foodord-product-toppings__input[type="checkbox"] {
	border-radius: 4px;
}

.foodord-product-toppings__input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	inset: 3px;
	background: var(--primary-color, #c9386f);
	border-radius: 50%;
}

.foodord-product-toppings__input[type="checkbox"]:checked {
	border-color: var(--primary-color, #c9386f);
	background: var(--primary-color, #c9386f);
}

.foodord-product-toppings__input[type="checkbox"]::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 4px;
	border: 2px solid #ffffff;
	border-top: 0;
	border-right: 0;
	transform: translate(-50%, -60%) rotate(-45deg) scale(0.6);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.foodord-product-toppings__input[type="checkbox"]:checked::after {
	opacity: 1;
	transform: translate(-50%, -60%) rotate(-45deg) scale(1);
}

.foodord-product-toppings__option-label {
	cursor: pointer;
	flex: 1;
}

.foodord-product-toppings__option-price {
	white-space: nowrap;
	margin-left: 8px;
}

/* Disabled checkbox states */
.foodord-product-toppings__input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.foodord-product-toppings__option:has(.foodord-product-toppings__input:disabled) {
	opacity: 0.6;
	cursor: not-allowed;
}

.foodord-product-toppings__option:has(.foodord-product-toppings__input:disabled):hover {
	border-color: #e2e2e2;
	background: #ffffff;
}


.foodord-product-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.foodord-add-to-cart-btn {
	background: var(--button-bg);
	border: none;
	padding: 16px 32px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.foodord-modal-footer .foodord-add-to-cart-btn {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 45px;
	border-radius: 5px;
	justify-content: space-between;
	padding: 0 12px;
	text-align: left;
}

/* Match card CTA structure inside modal */
.foodord-modal-footer .foodord-add-to-cart-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.foodord-modal-footer .foodord-add-to-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.foodord-modal-footer .foodord-add-to-cart-label {
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	display: inline-flex;
	align-items: center;
}

.foodord-modal-footer .foodord-add-to-cart-total {
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	font-size: 14px;
	font-weight: 400;

}

.foodord-modal-footer .foodord-add-to-cart-btn .loading-text {
	color: #ffffff;
}

.foodord-add-to-cart-btn:hover {
	background: var(--button-on-hover);
	box-shadow: 0 4px 12px rgba(201, 56, 111, 0.25);
}

.foodord-view-product-btn {
	background: transparent;
	border: 2px solid #c9386f;
	padding: 14px 28px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.foodord-view-product-btn:hover {
	background: #c9386f;
	transform: translateY(-1px);
}

/* Modal Footer */
.foodord-modal-footer {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	border-top: 1px solid #e5e5e5;
	padding: 10px 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
	z-index: 10;
}

.foodord-modal-footer .foodord-product-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 0 10px;
	gap: 0.7rem;
}

/* Quantity Controls */
.foodord-quantity-controls {
	display: flex;
	align-items: center;
	gap: 5px;
	border-radius: 8px;
	padding: 4px;
}

.foodord-quantity-btn {
    position: relative;
    width: 36px;
    height: 36px;
	background: rgb(240, 240, 240);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
}

.foodord-quantity-btn::before,
.foodord-quantity-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: currentColor;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.foodord-quantity-btn::before {
    width: 14px;
    height: 2px;
}

#foodord-quantity-plus::after {
    width: 2px;
    height: 14px;
}

#foodord-quantity-minus::after {
    display: none;
}

.foodord-quantity-btn:hover {
	background: var(--button-bg);
	color: #ffffff;
}

.foodord-quantity-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.foodord-quantity-btn:disabled:hover {
	background: #ffffff;
	transform: none;
}

.foodord-quantity-input {
	width: 40px;
	height: 36px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	font-size: 13px;
	text-align: center;
	background: #ffffff;
	margin: 0 4px;
	appearance: textfield;
}

.foodord-quantity-input:focus {
	outline: 2px solid #c9386f;
	outline-offset: 1px;
}

.foodord-quantity-input::-webkit-outer-spin-button,
.foodord-quantity-input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

/* Body Modal Open State */
body.foodord-modal-open {
	overflow: hidden;
}

body.foodord-allergy-info-open {
	overflow: hidden;
}

/* Small Desktop and Tablet Styles - 786px and below */
@media (max-width: 786px) {
	.foodord-modal-content {
		max-height: 95vh;
		border-radius: 8px;
		margin: 0;
		width: 100%;
	}

	.foodord-modal-body {
		max-height: calc(95vh - 60px);
		padding: 0;
	}

	.foodord-product-modal-wrapper {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 0;
	}

	.foodord-product-main-image {
		max-height: 250px;
		margin-bottom: 0.5rem;
	}

	.foodord-product-thumbnails {
		padding: 0 16px 4px 16px;
		gap: 8px;
		margin-top: 12px;
	}

	.foodord-product-thumbnail {
		width: 60px;
		height: 60px;
	}

	.foodord-product-title-row {
		padding: 0 14px;
		margin-bottom: 0.3rem;
		gap: 4px;
	}

	.foodord-product-title-row.sticky-active {
		padding: 16px 16px 12px 30px;
		margin: 8px -16px 0 -16px;
	}

	.foodord-product-price {
		padding: 0 16px;
		margin-bottom: 0.3rem;
	}

	.foodord-product-description {
		padding: 0 16px 16px 16px;
	}

	/* Attribute/Variation sections */
	.foodord-attr-wrapper {
		padding: 12px 12px 12px 12px;
		margin: 0 0 16px 0;
	}

	.foodord-attr-legend {
		margin-bottom: 8px;
		padding-bottom: 0;
	}.foodord-attr-option {
		padding: 10px 12px;
	}/* Toppings sections */
	.foodord-product-toppings__set {
		margin: 0 0 16px 0;
		padding: 6px 16px 12px 16px;
	}

	.foodord-product-toppings__set-header {
		padding: 0 16px;
	}.foodord-product-toppings__option {
		padding: 10px 12px;
	}.foodord-product-toppings__select {
		padding: 8px 12px;
		padding-right: 36px;
	}

	/* Modal footer adjustments */
	.foodord-modal-footer {
		padding: 12px 16px;
		position: sticky;
		bottom: 0;
	}

	.foodord-modal-footer .foodord-product-actions {
		flex-direction: row;
		gap: 8px;
		padding: 0;
		align-items: center;
	}

	.foodord-modal-footer .foodord-add-to-cart-btn {
		padding: 10px 12px;
		height: 50px;
	}

	.foodord-quantity-controls {
		gap: 3px;
		padding: 2px;
	}

	.foodord-quantity-btn {
		width: 36px;
		height: 36px;
	}

	.foodord-quantity-input {
		width: 36px;
		height: 28px;
		margin: 0 2px;
	}

	/* Close button adjustments */
	.foodord-modal-close {
		top: 10px;
		right: 12px;
		width: 28px;
		height: 28px;
	}

	.foodord-modal-close svg {
		width: 16px;
		height: 16px;
	}
}

/* Tablet Styles - 768px and below */
@media (max-width: 768px) {

	.foodord-product-main-image {
		max-height: 220px;
	}

	.foodord-product-thumbnails {
		padding: 0 12px 4px 12px;
	}}

/* Toppings Responsive Styles - 786px and below */
@media (max-width: 786px) {
	.foodord-product-toppings__set {
		padding: 12px 12px 12px 12px;
		margin: 0 0 16px 0;
	}

	.foodord-product-toppings__set-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin-bottom: 8px;
		padding: 0 16px;
	}

	.foodord-product-toppings__option {
		padding: 8px 12px;
	}

	.foodord-product-toppings__option-content {
		gap: 8px;
	}

	.foodord-product-toppings__select {
		padding: 12px;
		padding-right: 32px;
	}
}

/* Additional Toppings Styles for smaller tablets */
@media (max-width: 768px) {
	.foodord-product-toppings__set {
		padding: 10px 10px 10px 10px;
		margin: 0 0 16px 0;
	}

	.foodord-product-toppings__set-header {
		padding: 0 10px;
		margin-bottom: 8px;
	}
}

/* Mobile Styles - 480px and below */
@media (max-width: 480px) {
	.foodord-modal-container {
		padding: 8px;
		max-width: 100vw;
	}

	.foodord-modal-content {
		max-height: calc(var(--foodord-vh, 1vh) * 90);
		border-radius: 6px;
		margin: 0;
		width: 100%;
	}

	.foodord-modal-body {
		max-height: calc(var(--foodord-vh, 1vh) * 90 - 50px);
		padding: 0;
	}

	.foodord-product-modal-wrapper {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 0;
	}

	.foodord-product-main-image {
		max-height: 200px;
		margin-bottom: 0.25rem;
	}

	.foodord-product-thumbnails {
		padding: 0 12px 4px 12px;
		gap: 6px;
		margin-top: 8px;
	}

	.foodord-product-thumbnail {
		width: 50px;
		height: 50px;
	}

	.foodord-product-title-row {
		padding: 0 12px;
		margin-bottom: 0.5rem;
		gap: 4px;
	}

	.foodord-product-title-row.sticky-active {
		padding: 11px 10px 8px 22px;
		margin: 6px -12px 0 -12px;
	}

	.foodord-product-price {
		padding: 0 12px;
		margin-bottom: 0.5rem;
	}

	.foodord-product-description {
		padding: 0 12px 12px 12px;
	}

	/* Attribute/Variation sections */
	.foodord-attr-wrapper {
		margin: 0 0 12px 0;
		padding: 12px 12px 12px 12px;
	}

	.foodord-attr-legend {
		margin-bottom: 8px;
		padding-bottom: 0;
	}.foodord-attr-option {
		padding: 8px 10px;
	}/* Toppings sections */
	.foodord-product-toppings__set {
		margin: 0 0 12px 0;
		padding: 12px 12px 12px 12px;
	}

	.foodord-product-toppings__set-header {
		padding: 0 12px;
		margin-bottom: 8px;
	}.foodord-product-toppings__badge {
		min-width: 50px;
	}.foodord-product-toppings__select {
		padding: 12px 10px;
		padding-right: 30px;
	}

	/* Modal footer adjustments */
	.foodord-modal-footer {
		padding: 8px 12px;
		position: sticky;
		bottom: 0;
	}

	.foodord-modal-footer .foodord-product-actions {
		flex-direction: row;
		gap: 6px;
		padding: 0;
		align-items: center;
	}

	.foodord-modal-footer .foodord-add-to-cart-btn {
		padding: 10px;
		height: 50px;
	}

	.foodord-quantity-controls {
		gap: 2px;
		padding: 1px;
	}

	.foodord-quantity-btn {
		width: 32px;
		height: 32px;
	}

	.foodord-quantity-input {
		width: 30px;
		height: 24px;
		margin: 0 5px;
	}

	/* Close button adjustments */
	.foodord-modal-close {
		top: 6px;
		right: 10px;
		width: 28px;
		height: 28px;
	}

	.foodord-modal-close svg {
		width: 14px;
		height: 14px;
	}

	/* Loading state */
	.foodord-modal-loading {
		padding: 30px 15px;
	}.foodord-loading-spinner {
		width: 28px;
		height: 28px;
	}
}

.foodord-allergy-info-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.foodord-allergy-info-modal.is-open {
	display: flex;
}

.foodord-allergy-info-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}

.foodord-allergy-info-modal__dialog {
	position: relative;
	background: #ffffff;
	border-radius: 14px;
	width: 100%;
	max-width: 390px;
	max-height: min(80vh, 560px);
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1;
	box-sizing: border-box;
	margin: 0 auto;
	align-self: center;
}

.foodord-allergy-info-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.foodord-allergy-info-modal__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #2b2b2b;
}

.foodord-allergy-info-modal__close {
	position: relative;
	background: none;
	border: none;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	border-radius: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.2s ease;
}

.foodord-allergy-info-modal__close:hover,
.foodord-allergy-info-modal__close:focus {
	outline: none;
}

.foodord-allergy-info-modal__close::before {
	content: '\00d7';
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	color: #555555;
	transition: color 0.2s ease;
	position: static;
}

.foodord-allergy-info-modal__close:hover::before,
.foodord-allergy-info-modal__close:focus-visible::before {
	color: #c9386f;
}

.foodord-allergy-info-modal__content {
	padding: 16px 24px 24px;
	overflow-y: auto;
	color: #4c4c4c;
	font-size: 15px;
	line-height: 1.6;
}

@media (max-width: 480px) {
	.foodord-allergy-info-modal {
		padding: 0;
		align-items: center;
		justify-content: center;
	}

	.foodord-allergy-info-modal__dialog {
		width: auto;
		max-width: 100%;
		margin: 16px;
		border-radius: 12px;
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	}

	.foodord-allergy-info-modal__header {
		padding: 16px 18px 8px;
	}

	.foodord-allergy-info-modal__content {
		padding: 14px 18px 18px;
	}

	.foodord-allergy-info-modal__icon {
		margin: 0 0 16px;
	}
}

.foodord-allergy-info-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px 0 18px;
}

.foodord-allergy-info-modal__icon img {
	display: block;
	width: 64px;
	height: auto;
}

.foodord-allergy-info-modal__content p {
	margin: 0 0 12px;
}

.foodord-allergy-info-modal__content p:last-child {
	margin-bottom: 0;
}

/* Animation for modal entrance */
@media (prefers-reduced-motion: no-preference) {
	.foodord-modal-content {
		animation: foodord-modal-enter 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	}
}

@keyframes foodord-modal-enter {
	0% {
		transform: translateY(30px);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.foodord-modal-overlay {
		background: rgba(0, 0, 0, 0.8);
	}

	.foodord-modal-content {
		border: 2px solid #000000;
	}

}

/* Product Modal Toast Notification */
.foodord-toast-container {
	position: absolute;
	bottom: 85px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	z-index: 100;
	pointer-events: none;
}

@media (max-width: 786px) {
	.foodord-toast-container {
		bottom: 75px;
		width: 100%;
		padding: 0 20px;
		box-sizing: border-box;
	}
}

.foodord-toast {
	min-width: 220px;
	max-width: min(400px, 90vw);
	padding: 10px 14px;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
	background: #323232;
	color: #ffffff;
	font-size: 12px;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: auto;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.foodord-toast--error {
	background: #323232;
}

.foodord-toast--success {
	background: rgba(32, 148, 84, 0.95);
}

.foodord-toast--info {
	background: rgba(51, 51, 51, 0.95);
}

.foodord-toast.is-hiding {
	opacity: 0;
	transform: translateY(-6px);
}.foodord-plugin-order-page {
	--foodord-plugin-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	--foodord-plugin-sidebar-width: 360px;
}

.foodord-plugin-order-page .wr-card,
.foodord-plugin-order-page .foodord-scroll-nav,
.foodord-plugin-order-page .foodord-products-shortcode,
.foodord-plugin-order-page .foodord-plugin-order-toggle {
	font-family: var(--foodord-plugin-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.foodord-pac-container {
  transform: translateZ(0);
  background: #ffffff;
  border: none;
  box-shadow: none;
  border-radius: 14px;
  padding: 4px 0;
  overflow: hidden;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.foodord-pac-container .pac-item {
  padding: 10px 16px 10px 46px;
  border: none;
  line-height: 1.4;
  font-size: 14px;
  color: rgba(37, 40, 43, 0.86);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.foodord-pac-container .pac-item + .pac-item {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.foodord-pac-container .pac-item:hover,
.foodord-pac-container .pac-item.pac-item-selected {
  background-color: #f7f7f7;
  color: rgba(33, 35, 38, 0.95);
}

.foodord-pac-container .pac-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background-color: rgba(36, 38, 41, 0.78);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.25c-2.9 0-5.25 2.35-5.25 5.25 0 3.85 5.25 8.25 5.25 8.25s5.25-4.4 5.25-8.25c0-2.9-2.35-5.25-5.25-5.25zm0 7.5a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5z'/%3E%3Ccircle cx='8' cy='6.5' r='1'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
}

.foodord-pac-container .pac-item::after {
  display: none;
}

.foodord-pac-container .pac-item .pac-icon {
  display: none;
}

.foodord-pac-container .pac-item .pac-item-query {
  font-weight: 600;
  color: rgba(33, 35, 38, 0.94);
  display: inline;
  margin-right: 4px;
}

.foodord-pac-container .pac-item .pac-item-query + span {
  font-size: 0.85rem;
  color: rgba(95, 98, 102, 0.9);
  display: inline;
  margin-left: 2px;
}

.foodord-pac-container .pac-logo {
  display: block;
  width: 100%;
  padding: 6px 16px 0;
  opacity: 0.75;
  position: relative;
  background: none;

.foodord-plugin-sidebar {
	width: 100%;
	max-width: 420px;
	margin: 40px auto;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

.foodord-plugin-sidebar .wr-card {
	position: static;
	width: 100%;
}

@media (min-width: 1024px) {
	.foodord-plugin-sidebar {
		max-width: 360px;
		margin: 40px auto 60px;
	}
}
  text-align: left;
}

/* Frontend scope root (wrap your public components with this class) */
:root {
    --background-color: #f7f7f7;
    --primary-color: #c9386f;
    --primary-hover: #b92a61;
    --text-color: #323232;
    --text-hover: #313131;
    --secondary-text: #6b6b6b;
    --button-bg: #c9386f;
    --button-text-color: #ffffff;
    --button-on-hover: #b92a61;
    --border-color: #e3e3e3;
}

/* Checkout area highlight for attention */
.wr-checkout-highlight {
    outline: 2px solid #ff6b6b;
    transition: outline 0.3s ease;
}

/* =============================
   FoodOrd Scroll Categories Nav
   ============================= */
.foodord-scroll-nav {
  margin-bottom: 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  width: 100%;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
/* Independent positioning: stop at sidebar width on large screens */
@media (min-width: 1025px) {
  .has-foodord-sidebar .foodord-scroll-nav {
	width: calc(100% - var(--foodord-sidebar-w, var(--foodord-plugin-sidebar-width, 360px)));
    margin: 0;
  }
}

.foodord-scroll-nav__inner {
  margin: 0;
  padding: 10px 52px 10px 104px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: none;
}

/* Menu wrapper for background */
.foodord-scroll-nav__menu-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: #ffffff;
  z-index: 10;
}

/* Menu button */
.foodord-scroll-nav__menu-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-60%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 11;
}
.foodord-scroll-nav__menu-btn:hover {
  background: #ffffff;
  border-color: rgba(201, 56, 111, 0.3);
  transform: translateY(-60%) scale(1.05);
}

.foodord-scroll-nav__menu-btn:active {
  background: #fafafa;
  transform: translateY(-60%) scale(0.98);
}

.foodord-scroll-nav__menu-icon {
  display: flex;
  flex-direction: column;
  width: 18px;
  height: 14px;
  position: relative;
  justify-content: space-between;
  transform-origin: center;
}

.foodord-scroll-nav__menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1f2937;
  border-radius: 1.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.foodord-scroll-nav__menu-btn:hover .foodord-scroll-nav__menu-icon span:nth-child(1) {
  transform: translateY(-1px);
}

.foodord-scroll-nav__menu-btn:hover .foodord-scroll-nav__menu-icon span:nth-child(3) {
  transform: translateY(1px);
}

.foodord-scroll-nav__menu-btn.is-active {
  background: rgba(201, 56, 111, 0.08);
  border-color: rgba(201, 56, 111, 0.2);
}

.foodord-scroll-nav__menu-btn.is-active .foodord-scroll-nav__menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  transform-origin: center;
}
.foodord-scroll-nav__menu-btn.is-active .foodord-scroll-nav__menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.foodord-scroll-nav__menu-btn.is-active .foodord-scroll-nav__menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  transform-origin: center;
}

/* Dropdown menu */
.foodord-scroll-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 260px;
  max-width: 320px;
  z-index: 1000;
  padding: 12px;
  max-height: 420px;
  overflow-y: auto;
  animation: dropdownOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foodord-scroll-nav__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foodord-scroll-nav__dropdown-item {
  margin: 0;
}

.foodord-scroll-nav__dropdown-link {
  display: block;
  padding: 12px 24px 12px 28px;
  margin: 0 -12px;
  width: calc(100% + 24px);
  background: transparent;
  border: none;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 15px;
}

/* Pseudo element for bold text without layout shift */
.foodord-scroll-nav__dropdown-link::after {
  content: attr(data-text);
  position: absolute;
  left: 28px;
  top: 12px;
  pointer-events: none;
  visibility: hidden;
  width: auto;
  height: auto;
}

.foodord-scroll-nav__dropdown-link:hover {
  background: rgba(201, 56, 111, 0.08);
  transform: translateX(2px);
}

/* First and last item border radius */
.foodord-scroll-nav__dropdown-item:first-child .foodord-scroll-nav__dropdown-link {
  border-radius: 10px 10px 10px 10px;
}

.foodord-scroll-nav__dropdown-item:first-child .foodord-scroll-nav__dropdown-link.is-active::before {
  border-radius: 10px 0 0 10px;
}

.foodord-scroll-nav__dropdown-item:last-child .foodord-scroll-nav__dropdown-link {
  border-radius: 10px 10px 10px 10px;
}

.foodord-scroll-nav__dropdown-item:last-child .foodord-scroll-nav__dropdown-link.is-active::before {
  border-radius: 0 10px 10px 0;
}

.foodord-scroll-nav__dropdown-link:active {
  transform: scale(0.98);
}

/* Active dropdown item indicator */
.foodord-scroll-nav__dropdown-link.is-active {
  background: rgba(0, 0, 0, 0.05);
}

.foodord-scroll-nav__dropdown-link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  height: 100%;
  background: #000;
  border-radius: 0;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.foodord-scroll-nav__list {
  list-style: none;
  margin: 0;
  padding: 0 5px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  max-width: min(660px, calc(100% - 310px));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,1) 15px,
    rgba(0,0,0,1) calc(100% - 15px),
    transparent 100%);
}
/* WebKit (Chrome, Safari) */
.foodord-scroll-nav__list::-webkit-scrollbar { width: 0; height: 0; background: transparent; }

.foodord-scroll-nav__item { flex: 0 0 auto; }


/* Arrow buttons for scrolling */
.foodord-scroll-nav__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 11; /* Above wrapper */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.foodord-scroll-nav__arrow svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.foodord-scroll-nav__arrow:hover {
  background: #f7f7f7;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.foodord-scroll-nav__arrow:hover svg {
  transform: scale(1.1);
}

.foodord-scroll-nav__arrow:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.foodord-scroll-nav__arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.foodord-scroll-nav__arrow--left {
  left: 60px;
}

.foodord-scroll-nav__arrow--left:hover svg {
  transform: translateX(-2px) scale(1.1);
}

.foodord-scroll-nav__arrow--right {
  position: absolute;
}

.foodord-scroll-nav__arrow--right:hover svg {
  transform: translateX(2px) scale(1.1);
}

.foodord-scroll-nav__link {
  display: inline-block;
  padding: 10px 12px 12px;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  border: none;
  position: relative; /* allow bold overlay without affecting layout */
  font-weight: 400; /* non-active links are not bold */
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  appearance: none;
}
.foodord-scroll-nav__link:hover,
.foodord-scroll-nav__link:focus {
  background-color: transparent; /* background handled by active-bg on hover */
  outline: none;
}
.foodord-scroll-nav__link.is-active {
  background-color: transparent;
}

/* Bold overlay technique: keeps width constant while showing bold on hover/active */
.foodord-scroll-nav__label { position: relative; display: inline-block; white-space: nowrap; z-index: 1; }
.foodord-scroll-nav__link .foodord-scroll-nav__text {
  font-weight: 600;
  color: #323232;
  transition: opacity 160ms ease;
}
.foodord-scroll-nav__link .foodord-scroll-nav__text--bold {
  position: absolute;
  left: 0; /* relative to label, not the padded link */
  top: 50%;
  font-weight: 600;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 160ms ease;
  color: #323232;
}
.foodord-scroll-nav__link:hover .foodord-scroll-nav__text,
.foodord-scroll-nav__link.is-active .foodord-scroll-nav__text { opacity: 0; }
.foodord-scroll-nav__link:hover .foodord-scroll-nav__text--bold,
.foodord-scroll-nav__link.is-active .foodord-scroll-nav__text--bold { opacity: 1; }

/* Center text horizontally in active state */
.foodord-scroll-nav__link.is-active .foodord-scroll-nav__text--bold {
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .foodord-scroll-nav__dropdown {
    display: none;
  }

  .foodord-scroll-nav__menu-wrapper {
    pointer-events: auto;
  }

  .foodord-scroll-nav__menu-btn.is-active {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
  }

  .foodord-sheet-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 10000;
  }

  .foodord-sheet-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .foodord-sheet {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: min(75vh, 560px);
    overflow: hidden;
  }

  .foodord-sheet-backdrop.is-visible .foodord-sheet {
    transform: translateY(0);
  }

  .foodord-sheet__handle {
    width: 48px;
    height: 4px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    margin: 12px auto 16px;
    display: block;
  }

  .foodord-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  }

  .foodord-sheet__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
  }

  .foodord-sheet__close {
    border: none;
    background: transparent;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
  }

  .foodord-sheet__close::before,
  .foodord-sheet__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform-origin: center;
    transition: opacity 0.2s ease;
  }

  .foodord-sheet__close::before { transform: translate(-50%, -50%) rotate(45deg); }
  .foodord-sheet__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

  .foodord-sheet__close:hover,
  .foodord-sheet__close:focus-visible {
    color: rgba(15, 23, 42, 0.6);
    outline: none;
    background: transparent;
  }

  .foodord-sheet__body {
    overflow-y: auto;
    padding: 12px 0 18px;
    overscroll-behavior: contain;
  }

  .foodord-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .foodord-sheet__item {
    margin: 0;
  }

  .foodord-sheet__link {
    width: 100%;
    position: relative;
    text-align: left;
    border: none;
    background: transparent;
    padding: 16px 24px 16px 16px;
    border-radius: 0;
    font-size: 16px;
    color: #0f172a;
    display: block;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .foodord-sheet__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
  }

  .foodord-sheet__link:hover,
  .foodord-sheet__link:focus-visible {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    outline: none;
  }

  .foodord-sheet__link.is-active {
    background: rgb(177 177 177 / 12%);
    font-weight: 600;
  }

  .foodord-sheet__link.is-active::before {
    background: #000;
  }

  body.foodord-sheet-open {
    overflow: hidden;
    touch-action: none;
  }
}


/* Active background segment */
.foodord-scroll-nav__active-bg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 0;
  background: #f7f7f7; /* lighter */
  /* depth removed */
  /* no border, no shadow */
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), width 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
  pointer-events: none;
  z-index: 0; /* Lowest layer */
}

/* Active indicator */
.foodord-scroll-nav__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  border-radius: 10px;
  background: #000;
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), width 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .foodord-scroll-nav__indicator { transition: none; }
  .foodord-scroll-nav__link { transition: none; }
}

/* =============================
   Mobile mode toggle row + address bar layout (<=1024px)
   ============================= */
@media (max-width: 1024px) {
  .foodord-mode-toggle-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    align-items: stretch;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }
  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-left {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-left svg {
    width: 18px;
    height: 18px;
    padding: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-value {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    height: 30px;
    padding: 0 16px;
    border-radius: 999px;
    flex-shrink: 0;
  }

  .foodord-mode-toggle-mobile .wr-card__address-bar--mobile-slot .wr-card__address-change:hover {
    background: #e2e8f0;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle--mobile {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .wr-card__address-bar--hidden-mobile {
    display: none;
  }
}

@media (min-width: 1025px) {
  .wr-card__address-bar--hidden-mobile {
    display: flex;
  }
}

/* Hide the mobile toggle row on desktop */
@media (min-width: 1025px) {
  .foodord-mode-toggle-mobile { display: none; }
}

/* Search bar (right aligned) */
.foodord-scroll-nav__search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-60%);
  height: 36px;
  width: 290px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 0 10px 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  z-index: 11;
}
/* Ensure overlay is hidden by default (desktop and general) */
.foodord-scroll-nav__search-overlay { display: none; }

.foodord-scroll-nav__search-input {
  font-family: inherit;
  font-size: 13px;
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.foodord-scroll-nav__search-btn,
.foodord-scroll-nav__clear-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.foodord-scroll-nav__clear-btn {
  position: relative;
  font-size: 0;
  color: #323232;
}
.foodord-scroll-nav__clear-btn::before,
.foodord-scroll-nav__clear-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}
.foodord-scroll-nav__clear-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.foodord-scroll-nav__clear-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* Enforce hidden attribute behavior for clear button */
.foodord-scroll-nav__clear-btn[hidden] { display: none; }
.foodord-scroll-nav__search:focus-within { border-color: rgba(0,0,0,0.18); box-shadow: 0 2px 6px rgba(0,0,0,0.06); background: #fff; }

/* Move right arrow left enough to avoid overlap with search */
@media (max-width: 1024px) {
  .foodord-scroll-nav__search { width: 290px; }
  .foodord-scroll-nav__list { max-width: calc(100% - 310px); }
}


@media (max-width: 768px) {
  .foodord-scroll-nav__inner {
    padding: 10px 52px 10px 58px;
  }

  .foodord-scroll-nav__list {
    margin-right: 10px;
    max-width: calc(100% - 60px);
    mask-image: none;
  }

  .foodord-scroll-nav__search {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .foodord-scroll-nav__search-input,
  .foodord-scroll-nav__clear-btn {
    display: none;
  }

  .foodord-scroll-nav__search-btn {
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  /* Remove arrow gradient hover effects on mobile */
  .foodord-scroll-nav__arrow:hover {
    background: #f7f7f7;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  }

  /* Search overlay - positioned over scroll nav with popover-like animation */
  .foodord-scroll-nav__search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    display: none;
  }

  .foodord-scroll-nav__search-overlay.is-open,
  .foodord-scroll-nav__search-overlay.is-closing {
    display: flex;
    align-items: center;
  }

  .foodord-scroll-nav__search-overlay-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(24px) scale(0.94);
    transform-origin: right center;
  }

  .foodord-scroll-nav__search-overlay.is-open .foodord-scroll-nav__search-overlay-content {
    animation: searchOverlayIn 0.26s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  .foodord-scroll-nav__search-overlay.is-closing .foodord-scroll-nav__search-overlay-content {
    animation: searchOverlayOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .foodord-scroll-nav__search-overlay-header {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
  }

  .foodord-scroll-nav__search-overlay-input {
    font-size: 14px;
    font-family: inherit;
    flex: 1;
    height: 32px;
    border: 0;
    background: transparent;
    padding: 0 12px;
    outline: none;
  }

  .foodord-scroll-nav__search-overlay-close {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: inherit;
  }

  .foodord-scroll-nav__search-overlay-close svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

  .foodord-scroll-nav__search-overlay-clear {
    border: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    font-size: 13px;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    text-decoration: none;
  }

  .foodord-scroll-nav__search-overlay-clear:hover,
  .foodord-scroll-nav__search-overlay-clear:focus {
    color: rgba(0, 0, 0, 0.9);
    text-decoration: underline;
  }

  /* Ensure overlay clear button respects hidden attribute */
.foodord-scroll-nav__search-overlay-clear[hidden] { display: none; }

  /* Make scroll nav relative for absolute positioning of overlay */
  .foodord-scroll-nav {
    position: relative;
  }

  /* Search width responsive classes */
  .foodord-scroll-nav.search-width-small .foodord-scroll-nav__arrow--right {
    right: 260px;
  }

  .foodord-scroll-nav.search-width-medium .foodord-scroll-nav__arrow--right {
    right: 330px;
  }

  .foodord-scroll-nav.search-width-large .foodord-scroll-nav__arrow--right {
    right: 400px;
  }

  @keyframes searchOverlayIn {
    0% {
      opacity: 0;
      transform: translateX(30px) scale(0.88);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes searchOverlayOut {
    0% {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateX(24px) scale(0.9);
    }
  }
}

/* Ensure category sections stop below any fixed headers during smooth scroll */
.foodord-category-section { scroll-margin-top: 90px; }
@media (max-width: 768px) {
  .foodord-scroll-nav__inner {
    padding: 8px 42px 8px 78px;
    gap: 6px;
  }
  .foodord-scroll-nav__list {
    max-width: 100%;
  }
  .foodord-scroll-nav__search-overlay-close:hover,
  .foodord-scroll-nav__search-overlay-close:focus,
  .foodord-scroll-nav__search-overlay-close:focus-visible,
  .foodord-scroll-nav__search-overlay-close:active {
    background: transparent;
    box-shadow: none;
  }
  .foodord-scroll-nav__link { font-size: 13px; padding: 8px 10px 10px; }
  .foodord-scroll-nav__arrow {
    width: 30px;
    height: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .foodord-scroll-nav__arrow svg {
    width: 26px;
    height: 26px;
  }
  .foodord-scroll-nav__arrow--left { left: 56px; }
  .foodord-scroll-nav__arrow--right {
    left: auto;
    right: 6px;
  }
  .foodord-scroll-nav__menu-btn {
    width: 36px;
    height: 36px;
    left: 14px;
    border-radius: 10px;
  }
  .foodord-scroll-nav__menu-icon { 
    width: 16px; 
    height: 12px; 
  }
  .foodord-scroll-nav__dropdown {
    left: 12px;
    min-width: 200px;
    max-width: calc(100vw - 40px);
  }
  .foodord-scroll-nav__dropdown-link {
    padding: 8px 16px 8px 20px;
  }
  .foodord-scroll-nav__dropdown-link::after {
    left: 20px;
    top: 8px;
  }
  .foodord-scroll-nav__dropdown-link.is-active::before {
    height: 100%;
    width: 3px;
    left: 0;
    top: 0;
    bottom: 0;
  }
  .foodord-category-section { scroll-margin-top: 72px; }
}

/* Empty state for no search results */
.foodord-search-empty {
  display: none;
  min-height: 380px;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.foodord-search-empty__card {
  background: #fff;
  border: 1px solid #ededed;
  padding: 40px 28px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.foodord-search-empty__icon { margin-bottom: 12px; opacity: .9; }
.foodord-search-empty__title { font-size: 20px; font-weight: 700; color: #333; margin: 10px 0 6px; }
.foodord-search-empty__desc { font-size: 15px; color: #666; margin-bottom: 18px; }
.foodord-search-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  border: 1px solid #e3e3e3;
  background: #fff;
  cursor: pointer;
}
.foodord-search-empty__btn:hover { background: #f7f7f7; }
/* Smoothen spacer height growth when sticky engages */
.foodord-scroll-nav-spacer { height: 0; transition: none; }

/* Sticky behavior: when nav becomes sticky, fix to top and stretch full width */
.foodord-scroll-nav.is-sticky {
  position: fixed;
  top: var(--foodord-scroll-nav-top, 0);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9990;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #ffffff;
}

/* Ensure full width on layouts with sidebar */
@media (min-width: 1025px) {
  .has-foodord-sidebar .foodord-scroll-nav.is-sticky { width: 100%; }
}

/* Keep inner padding stable to avoid jank when sticky */
.foodord-scroll-nav.is-sticky .foodord-scroll-nav__inner { padding-top: inherit; padding-bottom: inherit; min-height: 56px;}
.foodord-scroll-nav.is-sticky .foodord-scroll-nav__arrow--left {
  left: 20px;
}
.foodord-scroll-nav.is-sticky .foodord-scroll-nav__arrow--right {
  right: 20px;
  left: auto;
}

/* Fix cart header overlapping when scroll nav is sticky */
@media (min-width: 1025px) {
  .wr-card__header {
    transition: top 0.3s ease;
  }

  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card__header {
    top: 60px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .foodord-scroll-nav.is-sticky ~ * .wr-card__items {
    padding-top: 106px; /* 60px + 46px mobile admin bar */
  }
}

/* Mobile mode toggle slot */

.foodord-mode-toggle-mobile {
  display: none;
}

.foodord-plugin-order-toggle {
	display: none;
	width: 100%;
	max-width: 480px;
	margin: 0 auto 16px;
	padding: 0 1rem;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.foodord-plugin-order-toggle {
		display: block;
	}
}

.foodord-plugin-order-toggle + .foodord-scroll-nav {
	margin-top: 0;
}

.foodord-plugin-sidebar .foodord-mode-toggle-mobile {
	margin: 0 0 16px;
}

@media (max-width: 1024px) {
  .foodord-mode-toggle-mobile {
    display: block;
    padding: 0 1rem;
    background: #ffffff;
  }

  .foodord-mode-toggle-mobile::after {
    content: "";
    display: table;
    clear: both;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-toggle {
    position: static;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    background: transparent;
    margin-bottom: 12px;
    float: left;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-group {
    display: flex;
    width: 100%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 3px;
    gap: 3px;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: var(--text-color);
    font-size: 13px;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn .pickup-icon,
  .foodord-mode-toggle-mobile .wr-card__mode-btn .delivery-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn.is-active {
    background: var(--button-bg, #c9386f);
    color: #ffffff;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn.is-active * {
    color: #ffffff;
  }

  .foodord-mode-toggle-mobile .wr-card__mode-btn.is-closed,
  .foodord-mode-toggle-mobile .wr-card__mode-btn[disabled] {
    background: transparent;
    color: #323232;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    text-decoration: line-through;
  }

  /* Address bar in mobile toggle container */
  .foodord-mode-toggle-mobile .wr-card__address-bar {
    width: 100%;
    margin-bottom: 10px;
    background: transparent;
    justify-content: flex-end;
    gap: 1rem;
  }

  .foodord-mode-toggle-mobile .wr-card__address-left {
    gap: 6px;
  }

  .foodord-mode-toggle-mobile .wr-card__address-left svg {
    width: 14px;
    height: 14px;
    color: var(--text-color);
  }

  .foodord-mode-toggle-mobile .wr-card__address-change {
    height: 24px;
    padding: 0 8px;
    display: none;
  }

}

/* Delivery/Pickup toggle above cart header (desktop only) */
@media (min-width: 1025px) {
  .wr-card.has-mode-toggle .wr-card__mode-toggle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f4f4f4;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: top 0.3s ease;
  }

  .wr-card.has-mode-toggle .wr-card__mode-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 4px;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn {
    min-width: 140px;
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    background-color: #ececec;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn .pickup-icon,
  .wr-card.has-mode-toggle .wr-card__mode-btn .delivery-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }.wr-card.has-mode-toggle .wr-card__mode-btn.is-active {
    background: var(--button-bg, #c9386f);
    color: #ffffff;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-active * {
    color: #ffffff;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-closed,
  .wr-card.has-mode-toggle .wr-card__mode-btn[disabled] {
    background: transparent;
    color: var(--text-color);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    text-decoration: line-through;
  }

  .wr-card.has-mode-toggle .wr-card__mode-btn.is-active.is-closed,
  .wr-card.has-mode-toggle .wr-card__mode-btn.is-active[disabled] {
    background: #f3f4f6;
  }

  /* Push the original header below the toggle */
  body:not(.wp-admin) .wr-card.has-mode-toggle .wr-card__header {
    top: 70px; /* keep in sync with toggle height */
  }

  /* Increase body top spacing to account for the extra bar */
  body:not(.wp-admin) .wr-card.has-mode-toggle .wr-card__body {
    margin-top: calc(4rem + 16px);
  }
}

/* Hide delivery fee line on card when Pickup is selected via toggle */
.wr-card.is-pickup .wr-card__delivery-fee {
  display: none;
}

/* Sticky scroll nav + mode toggle compound offset */
@media (min-width: 1025px) {
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle .wr-card__header {
    top: 126px; /* 60px sticky offset + 56px toggle height */
  }
  /* Ensure the toggle bar also moves below sticky nav */
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle .wr-card__mode-toggle,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle .wr-card__mode-toggle {
    top: 56px;
  }
}

/* When address bar exists under the toggle, header no longer needs extra offset */
@media (min-width: 1025px) {
  body:not(.wp-admin) .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header {
    top: 0;
  }
  /* Push the address bar below the absolute toggle height */
  body:not(.wp-admin) .wr-card.has-mode-toggle .wr-card__address-bar {
    margin-top: 70px; /* keep in sync with header offset used previously */
  }
}

/* Hide address bar entirely on pickup as a safety net */
body:not(.wp-admin) .wr-card.is-pickup .wr-card__address-bar { display: none; }

/* Pickup mode: fix layout when address bar is hidden */
@media (min-width: 1025px) {
  /* Reset header position on pickup mode */
  body:not(.wp-admin) .wr-card.has-mode-toggle.is-pickup .wr-card__header {
    top: 70px; /* back to toggle offset only */
  }

  /* Reset body spacing on pickup mode */
  body:not(.wp-admin) .wr-card.has-mode-toggle.is-pickup .wr-card__body {
    margin-top: calc(4rem + 16px); /* back to original with toggle offset */
  }

  /* Pickup mode + sticky navigation: adjust for sticky bar */
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.is-pickup .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.is-pickup .wr-card__header {
    top: 126px; /* 60px sticky + 70px toggle - no address bar offset */
  }

  /* Pickup mode + sticky navigation: mode toggle positioning */
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.is-pickup .wr-card__mode-toggle,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.is-pickup .wr-card__mode-toggle {
    top: 56px; /* same as delivery but no address bar complications */
  }
}

/* Sticky scroll nav + address bar compound offset (delivery only) */
@media (min-width: 1025px) {
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle .wr-card__address-bar,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle .wr-card__address-bar {
    margin-top: 126px; /* 60px sticky offset + 56px toggle height + original spacing */
  }
}

/* When sticky, also reset header top offset in delivery + address bar */
@media (min-width: 1025px) {
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header {
    top: 0;
  }
}

/* Reduce extra body spacing when address bar is present (delivery only) */
@media (min-width: 1025px) {
  body:not(.wp-admin) .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__body {
    margin-top: 0; /* remove extra space below header when address bar is visible */
    padding-top: 0; /* ensure no top padding contributes */
  }
  body:not(.wp-admin) .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__header {
    margin-bottom: 0; /* tighten gap under header */
  }
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__body,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.has-mode-toggle.has-address-bar:not(.is-pickup) .wr-card__body {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (min-width: 1025px) {
  .wr-card.wr-card--stable .wr-card__top {
    display: flex;
    flex-direction: column;
    transition: margin-top 0.24s ease;
  }
  .wr-card.wr-card--stable.has-mode-toggle .wr-card__mode-toggle {
    position: static;
    top: auto; left: auto; right: auto;
    padding: 14px 16px;
    border-bottom: 1px solid #f4f4f4;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: auto;
  }
  /* Force header/body to align right under toggle for stable variant */
  body:not(.wp-admin) .wr-card.wr-card--stable.has-mode-toggle .wr-card__header { top: 0; }
  body:not(.wp-admin) .wr-card.wr-card--stable.has-mode-toggle .wr-card__body { margin-top: 0; }
  /* Pickup: hard-hide address bar with no residual spacing */
  .wr-card.wr-card--stable.is-pickup .wr-card__address-bar { display: none; height: 0; margin: 0; padding: 0; border: 0; }
  /* Sticky: header stays at top, only top container shifts below nav */
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__header,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__header { top: 0; }
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__body,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__body { margin-top: 0; }
  /* Ensure no gap between toggle and address bar when sticky */
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__address-bar,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable.has-mode-toggle .wr-card__address-bar { margin-top: 0; }
  /* Push the top container below sticky nav with eased motion */
  .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable .wr-card__top,
  body.woocommerce-cart .foodord-scroll-nav.is-sticky ~ .site-main .wr-card.wr-card--stable .wr-card__top {
    margin-top: 56px;
  }
  /* Remove legacy address-bar push under absolute toggle for stable layout */
  body:not(.wp-admin) .wr-card.wr-card--stable.has-mode-toggle .wr-card__address-bar {
    margin-top: 0;
  }
}

/* Closed store toast */
.foodord-store-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-120%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fef5fb;
  padding: 0.9rem 1.25rem;
  letter-spacing: 0.01em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  box-sizing: border-box;
}

.foodord-store-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.foodord-store-toast__message {
  flex: 1;
}

.foodord-store-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.foodord-store-toast__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.foodord-store-toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.admin-bar .foodord-store-toast {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .foodord-store-toast {
    top: 46px;
  }
}

/* =============================
   Location Modal (frontend)
   ============================= */
#foodord-location-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 9999;
}
#foodord-location-modal.is-open { display: flex; }

#foodord-location-modal .foodord-modal__content {
  width: 94%;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.6);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  animation: wrcModalIn 240ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#foodord-location-modal .foodord-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px;
  border-bottom: 1px solid rgba(229, 229, 229, 0.8);
  background: #ffffff;
}
#foodord-location-modal .foodord-modal__title {
  margin: 0;
  font-weight: 700;
  font-size: 22px;
  color: #1a1a1a;
  line-height: 1.3;
}
#foodord-location-modal .foodord-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#foodord-location-modal .foodord-modal__close:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

#foodord-location-modal .foodord-modal__close:active {
  transform: scale(0.95);
}

#foodord-location-modal .foodord-modal__close-icon {
  position: relative;
  width: 24px;
  height: 24px;
  color: #4b5563;
}
#foodord-location-modal .foodord-modal__close-icon::before,
#foodord-location-modal .foodord-modal__close-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
}
#foodord-location-modal .foodord-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#foodord-location-modal .foodord-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#foodord-location-modal .foodord-modal__body {
  padding: 24px 24px;
}
#foodord-location-modal .foodord-modal__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 16px 0;
}
#foodord-location-modal .foodord-radius-hint {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: #555;
}
#foodord-radius-feedback {
  margin-top: 8px;
}

#foodord-location-modal .foodord-form-row { margin-bottom: 16px; }
#foodord-location-modal .foodord-form-label {
  display: block;
  margin-bottom: 8px;
}
#foodord-location-modal .foodord-input-with-clear {
  position: relative;
}
#foodord-location-modal .foodord-input-with-clear .foodord-form-input {
  padding-right: 48px;
}
#foodord-location-modal .foodord-input-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#foodord-location-modal .foodord-input-clear span {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
}
#foodord-location-modal .foodord-input-clear.is-hidden {
  display: none;
}
#foodord-location-modal .foodord-form-input {
  font-size: 15px;
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#foodord-location-choice.foodord-form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23323333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 18px center;
  padding-right: 46px;
  appearance: none;
}
#foodord-location-modal .foodord-form-input:focus {
  border-color: #c9386f;
  box-shadow: 0 0 0 3px rgba(201, 56, 111, 0.1);
}

#foodord-location-modal .foodord-form-feedback.is-success { color: #059669; }
#foodord-location-modal .foodord-form-feedback.is-error { color: #dc2626; }

#foodord-location-modal .foodord-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid rgba(229, 229, 229, 0.8);
  background: #ffffff;
}
#foodord-location-modal .foodord-modal__button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  height: 42px;
  padding: 0 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#foodord-location-modal .foodord-modal__button--cancel {
  background: #f9fafb;
  color: #374151;
}

#foodord-location-modal .foodord-modal__button--cancel:hover { 
  background: #f3f4f6; 
  transform: translateY(-1px);
}
#foodord-location-modal .foodord-modal__button--confirm {
  background: var(--button-bg, #c9386f);
  color: #ffffff;
}
#foodord-location-modal .foodord-modal__button--confirm:hover {
  background: var(--button-on-hover, #b92a61);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 56, 111, 0.25);
}

@keyframes wrcModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* FoodOrd: Checkout lock styling for City/Postcode (merged) */
.foodord-locked-field label,
.foodord-locked-input,
.wc-block-components-address-form__city .foodord-locked-input,
.wc-block-components-address-form__postcode .foodord-locked-input {
  opacity: 0.6;
  cursor: not-allowed;
}

.foodord-locked-input {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
  pointer-events: none;
}

/* Dim container rows and position relative for icon */
.foodord-locked-container {
  opacity: 0.6;
  position: relative;
  overflow: visible;
}

.woocommerce .form-row,
.woocommerce form .form-row,
.wc-block-components-address-form,
.wc-block-components-form,
.wc-block-checkout__form { overflow: visible; }

/* Leave room for the icon inside inputs */
.foodord-locked-container input[type="text"],
.foodord-locked-container input[type="tel"],
.foodord-locked-container input[type="search"],
.foodord-locked-container .wc-block-components-text-input input,
.foodord-locked-container .wc-block-components-address-form input {
  padding-right: 2rem;
}

/* Input wrapper for icon positioning */
.foodord-input-wrap { position: relative; overflow: visible; }

/* Lock icon inside input wrapper */
.foodord-input-wrap > .foodord-lockmark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  z-index: 1000; /* above input and form elements */
}

/* Tooltip styling (anchored to icon via ::after) */
.foodord-input-wrap > .foodord-lockmark::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  left: auto;
  bottom: calc(100% + 8px);
  top: auto;
  font-size: 12px;
  color: #ffffff;
  background: #000000;
  padding: 8px 10px;
  border-radius: 4px;
  width: 260px;
  max-width: min(90vw, 320px);
  white-space: normal;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-in-out;
  z-index: 9999;
}
.foodord-input-wrap > .foodord-lockmark:hover::after,
.foodord-input-wrap > .foodord-lockmark:focus::after { opacity: 1; }

body.foodord-pickup-mode #billing_address_1_field,
body.foodord-pickup-mode #billing_address_2_field,
body.foodord-pickup-mode #billing_city_field,
body.foodord-pickup-mode #billing_postcode_field,
body.foodord-pickup-mode #shipping_address_1_field,
body.foodord-pickup-mode #shipping_address_2_field,
body.foodord-pickup-mode #shipping_city_field,
body.foodord-pickup-mode #shipping_postcode_field,
body.foodord-pickup-mode .wc-block-components-address-form [data-field="address_1"],
body.foodord-pickup-mode .wc-block-components-address-form [data-field="address_2"],
body.foodord-pickup-mode .wc-block-components-address-form [data-field="city"],
body.foodord-pickup-mode .wc-block-components-address-form [data-field="postcode"] {
  display: none;
}

/* Hide product description under cart/checkout line items (Blocks + Classic) */
/* WooCommerce Blocks (Cart/Checkout) */
/* Defensive: hide any description-like element within product details/metadata (Blocks) */
body.woocommerce-checkout .wc-block-components-product-details [class*="description"],
body.woocommerce-checkout .wc-block-components-product-metadata [class*="description"],
body.woocommerce-cart .wc-block-components-product-details [class*="description"],
body.woocommerce-cart .wc-block-components-product-metadata [class*="description"],
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-details [class*="description"],
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-product-metadata [class*="description"] { display: none; }

/* Classic (shortcode) checkout/cart tables */
/* Fallback for themes injecting plain <p> under product-name (avoid wc-item-meta) */
.woocommerce-checkout table.shop_table td.product-name > p:not(.wc-item-meta),
.woocommerce-cart table.shop_table td.product-name > p:not(.wc-item-meta) { display: none; }

/* FoodOrd confirmation status */
.foodord-confirm-status {
  margin: 16px 0;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-color, #111827);
  line-height: 1.4;
}

/* =============================
   Time To Deliver (Frontend)
   ============================= */
.foodord-ttd {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 1rem 0;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.foodord-ttd__label {
    font-weight: 600;
    color: var(--text-color);
}

.foodord-ttd__select {
    appearance: none;
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    background-color: #f7f7f7;
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.foodord-ttd__select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 56, 111, 0.1);
}

@media (min-width: 640px) {
  .foodord-ttd {
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 1rem;
  }
  .foodord-ttd__label {
    margin: 0;
  }
}

/* Lazy image animation */
.foodord-lazy-image {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.foodord-lazy-image.foodord-lazy-loaded {
  opacity: 1;
  transform: none;
}/*
Theme Name: FoodOrd
Author: FoodOrd Team
Author URI: https://www.foodord.com
Description: Online food ordering for WooCommerce
Version: 1.0
Tested up to: 6.8
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodord
Domain Path: /languages
Tags: ecommerce, woocommerce, block-styles, custom-logo, custom-menu, editor-style
*/

:root {
    --background-color: #f7f7f7;
    --primary-color: #c9386f;
    --primary-hover: #b92a61;
    --text-color: #323232;
    --text-hover: #313131;
    --secondary-text: #6b6b6b;
    --button-bg: #c9386f;
    --button-text-color: #ffffff;
    --button-on-hover: #b92a61;
    --header-bg: #ffffff;
    --footer-bg: #ffffff;
    --footer-bottom-bg: #ffffff;
    --border-color: #e4e4e4;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* FoodOrd Sidebar Variables */
    --foodord-header-h: 50px; /* fallback */
    --foodord-footer-h: 0;  /* fallback */
    --foodord-sidebar-w: 350px;
    --foodord-bottom-gap: 0; /* computed dynamically near footer */
}

/* FOUC prevention */
html {
	visibility: hidden;
	opacity: 0;
	font-display: swap;
}

html.loaded {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.1s ease-in-out;
}


/* =================================
   Font Performance
   ================================= */
.critical-text {
    font-display: block;
}

.non-critical-text {
    font-display: optional;
}

/* =================================
   Base (Body)
   ================================= */
body {
    margin: 0;
    background-color: var(--background-color);
    font-family:
        "Open Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans",
        "Liberation Sans",
        system-ui,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-variant-ligatures: common-ligatures;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =================================
   Plugin Placeholder Helpers
   ================================= */
.foodord-shortcode-placeholder {
	margin: 1.5rem auto;
	padding: 1.25rem 1.5rem;
	max-width: 640px;
	border: 1px dashed rgba(201, 56, 111, 0.45);
	border-radius: 12px;
	background: rgba(201, 56, 111, 0.05);
	text-align: center;
	color: var(--text-color);
}

.foodord-shortcode-placeholder strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.35rem;
	color: var(--primary-color);
}

.foodord-shortcode-placeholder a {
	color: var(--primary-color);
	font-weight: var(--font-semibold);
	text-decoration: underline;
}

.foodord-shortcode-placeholder a:focus,
.foodord-shortcode-placeholder a:hover {
	color: var(--primary-hover);
}

/* =================================
   404 Page
   ================================= */
.foodord-404 {
    margin: clamp(60px, 12vw, 120px) auto;
    padding: clamp(32px, 8vw, 64px) clamp(24px, 6vw, 56px);
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 5vw, 28px);
}

.foodord-404__badge {
    font-size: clamp(3rem, 12vw, 6.5rem);
    font-weight: var(--font-semibold);
    color: rgba(17, 24, 39, 0.08);
    letter-spacing: 0.12em;
}

.foodord-404__title {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: var(--font-semibold);
    color: var(--text-color);
}

.foodord-404__message {
    margin: 0 auto;
    max-width: 480px;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--secondary-text);
}

.foodord-404__actions {
    display: flex;
    justify-content: center;
}

.foodord-404__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 999px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.foodord-404__link:hover,
.foodord-404__link:focus-visible {
    background: var(--primary-hover);
}

.foodord-404__link:focus-visible {
    outline: none;
}


@media (max-width: 639px) {
    .foodord-404__actions {
        flex-direction: column;
        gap: 16px;
    }
}

/* =================================
   Layout (Sticky Footer)
   ================================= */
/* Update: General heading — Sticky footer layout. */
html, body {
    height: 100%;
}

/* =================================
   Header
   ================================= */
.foodord-top-bar {
    --foodord-top-bar-bg: #1f1f1f;
    --foodord-top-bar-text: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    text-align: center;
    background-color: var(--foodord-top-bar-bg);
    color: var(--foodord-top-bar-text);
    border-bottom: 1px solid var(--border-color);
}

.foodord-top-bar__inner {
    width: 100%;
    max-width: min(100%, 1200px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 0.75rem;
}

.foodord-top-bar__text {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    color: inherit;
}

.foodord-top-bar a {
    color: var(--foodord-top-bar-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.foodord-top-bar a:hover,
.foodord-top-bar a:focus {
    opacity: 0.85;
}

.site-header {
    background-color: var(--header-bg);
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Mobile header (hidden by default; visible <= 767px) */
.mobile-header {
    display: none;
}

.mobile-header__toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 999px;
    padding: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}
.mobile-header__toggle:hover {
    background-color: var(--background-color);
}
.mobile-header__toggle:active {
    transform: scale(0.98);
}
.mobile-header__toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hamburger icon (3 bars) with animation to X */
.mobile-header__icon {
    position: relative;
    display: block;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    color: var(--text-color);
    border-radius: 1px;
    transition: background-color 180ms ease, transform 200ms ease;
}
.mobile-header__icon::before,
.mobile-header__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: top 200ms ease, transform 200ms ease, opacity 200ms ease;
}
.mobile-header__icon::before {
    top: -5px;
}
.mobile-header__icon::after {
    top: 5px;
}

/* Active (expanded) state: morph to X */
.mobile-header__toggle[aria-expanded="true"] .mobile-header__icon {
    background-color: transparent;
}
.mobile-header__toggle[aria-expanded="true"] .mobile-header__icon::before {
    top: 0;
    transform: rotate(45deg);
}
.mobile-header__toggle[aria-expanded="true"] .mobile-header__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-header__toggle,
    .mobile-header__icon,
    .mobile-header__icon::before,
    .mobile-header__icon::after {
        transition: none;
    }
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
    min-width: 0; /* prevent overflow */
}
.site-branding .custom-logo-link img,
.site-branding img.custom-logo {
    height: 32px;
    width: auto;
}
.site-branding .site-logo-image {
    height: auto;
    width: auto;
    max-height: 60px; /* Fallback max height */
    transition: all 0.3s ease;
}
.site-branding .site-title,
.site-branding a {
    text-decoration: none;
}

/* Navigation (center) */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}
.main-navigation a {
    text-decoration: none;
    padding: 0.5rem 0.25rem;
}/* Actions (right) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    background-color: var(--button-bg);
    color: #ffffff;
    text-decoration: none;
}
.btn-signin:hover,
.btn-signin:focus {
    background-color: var(--button-on-hover);
}

/* =================================
   Typography
   ================================= */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.75em 0;
}

/* =================================
   FoodOrd Sidebar (fixed right)
   ================================= */
/* Update: General heading — Fixed right sidebar for FoodOrd pages, dynamic header/footer spacing. */
 .foodord-sidebar {
    position: fixed;
    top: var(--foodord-header-h);
    right: 0;
    width: var(--foodord-sidebar-w);
    bottom: var(--foodord-bottom-gap);
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    box-shadow: none;
    overflow: auto;
    z-index: 1;
}

/* Stick to header exactly when page scrolls */
.foodord-sidebar.is-stuck {
    top: var(--foodord-header-h);
}

/* Push main content to the left when sidebar is active */
.has-foodord-sidebar .site-main {
    padding-right: var(--foodord-sidebar-w);
}

/* Update: General heading — Add 15px spacing on both sides for >=1200px */
@media (min-width: 1200px) {
    .has-foodord-sidebar .site-main {
        margin: 0 15px;
        padding-right: calc(var(--foodord-sidebar-w) + 15px);
    }
}

/* Sidebar widgets */
.foodord-sidebar .foodord-sidebar-widget + .foodord-sidebar-widget {
    margin-top: 16px;
}
.foodord-sidebar .foodord-sidebar-widget-title {
    margin: 0 0 8px;
}

/* Consolidated styles for <= 1024px screens */
@media (max-width: 1024px) {

    /* Sidebar hidden and layout compensation */
    .foodord-sidebar { display: none; }
    .has-foodord-sidebar .site-main { padding: 0; }

    /* Products pages: remove outer padding so cards can touch edges */
    body:has(.foodord-products-shortcode) .site-main,
    body:has(.wp-block-foodord-products) .site-main {
        padding: 0;
        margin: 0;
    }
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin: 0 0 1em 0;
    max-width: 65ch;
}em, i {
    font-style: italic;
}ul, ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.25em;
}

a {
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(201, 56, 111, 0.05);
    font-style: italic;
}

code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    padding: 0.125rem 0.25rem;
    background-color: #f3f4f6;
    border-radius: 4px;
}

/* =================================
   Text Utility Classes
   ================================= */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.font-feature-numeric {
    font-variant-numeric: tabular-nums;
}

.font-feature-oldstyle {
    font-variant-numeric: oldstyle-nums;
}

.text-no-wrap {
    white-space: nowrap;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* =================================
   Content
   ================================= */
.site-main {
    flex: 1 0 auto;
    padding: 1rem;
}

@media (min-width: 1024px) {
    body.woocommerce-checkout .site-main {
        padding: 4rem;
    }
}


/* =================================
   WooCommerce: Checkout
   ================================= */
body.woocommerce-checkout .wc-proceed-to-checkout,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal + .woocommerce-checkout-review-order-table__row,
body.woocommerce-checkout .return-to-shop,
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button,
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-button.is-link {
    display: none;
}


@media (max-width: 768px) {
    body.woocommerce-checkout .site-main {
        padding: 16px;
        border-radius: 12px;
    }

    body.woocommerce-checkout #place_order,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
    body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-button {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 734px) {
    body.woocommerce-checkout .wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block,
    body.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block .wp-block-woocommerce-checkout-order-summary-block {
        display: none;
    }

    body.woocommerce-checkout #place_order,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
        display: block;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 1080px) {
    .header-inner {
        padding: 0.5rem 0.75rem;
    }
    .main-navigation {
        display: none;
    }
    .btn-signin {
        display: none;
    }
    .mobile-header {
        display: flex;
        align-items: center;
    }
    .mobile-header__toggle {
        display: inline-flex;
    }
}

/* =================================
   Footer
   ================================= */
.site-footer {
    background-color: var(--footer-bg);
}

.footer-inner {
    margin: 0 auto;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 0.5rem;
}

.footer-logo {
    text-decoration: none;
}.footer-tagline {
    margin: 0;
}

.footer-nav .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.footer-nav .footer-menu a {
    text-decoration: none;
}.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.site-footer .site-info {
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Footer Widgets */
.footer-widgets {
    padding: 2rem 0 0 0;
}

.footer-widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget-title {
    margin: 0 0 1rem 0;
    padding: 0;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    text-decoration: none;
    transition: color 0.2s ease;
}.footer-widget p {
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .footer-inner {
        padding: 0.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    .footer-widgets {
        padding: 1.5rem 0;
    }
}

/* =================================
   Footer Bottom
   ================================= */
.site-footer-bottom {
    background-color: var(--footer-bottom-bg);
    border-top: 1px solid var(--border-color);
}

.site-footer-bottom__inner {
    margin: 0 auto;
    padding: 1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-bottom__info {
    margin: 0;
    text-align: center;
}

/* Footer bottom text: nowrap on larger screens */
@media (min-width: 768px) {
    .site-footer-bottom__info {
        white-space: nowrap;
    }
}

/* Footer bottom text: nowrap on larger screens */
@media (min-width: 768px) {
    .site-footer-bottom__info {
        white-space: nowrap;
    }
}

/* =================================
   Mobile Navigation Drawer
   ================================= */
.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.mobile-nav-drawer--open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 160ms ease;
}

.mobile-nav-drawer--open .mobile-nav-drawer__overlay {
    opacity: 1;
}

.mobile-nav-drawer__panel {
    position: relative;
    width: min(280px, 90vw);
    height: 100%;
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    transition: transform 200ms ease;
    box-shadow: -4px 0 18px rgba(15, 23, 42, 0.12);
}

.mobile-nav-drawer--open .mobile-nav-drawer__panel {
    transform: translateX(0);
}

.mobile-nav-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.mobile-nav-drawer__close:focus-visible {
    outline: none;
}

.mobile-nav-drawer__menu {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-nav-drawer__menu::-webkit-scrollbar {
    display: none;
}

.mobile-nav-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-drawer__item {
    margin: 0;
}

.mobile-nav-drawer__link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.98rem;
    color: #000000;
    text-decoration: none;
}

.mobile-nav-drawer__link:hover,
.mobile-nav-drawer__link:focus {
    text-decoration: underline;
}

.mobile-nav-drawer__link:focus-visible {
    outline: none;
}

.mobile-nav-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
    padding-top: 0.25rem;
}

.mobile-nav-drawer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.mobile-nav-drawer__cta svg {
    flex-shrink: 0;
}

.mobile-nav-drawer__btn-account,
.mobile-nav-drawer__btn-login {
    color: #ffffff;
    background-color: var(--primary-color);
}

.mobile-nav-drawer__btn-account:hover,
.mobile-nav-drawer__btn-account:focus,
.mobile-nav-drawer__btn-login:hover,
.mobile-nav-drawer__btn-login:focus {
    background-color: var(--primary-hover);
}

.mobile-nav-drawer__btn-logout,
.mobile-nav-drawer__btn-signup {
    color: var(--heading-color);
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

.mobile-nav-drawer__btn-logout:hover,
.mobile-nav-drawer__btn-logout:focus,
.mobile-nav-drawer__btn-signup:hover,
.mobile-nav-drawer__btn-signup:focus {
    background-color: rgba(15, 23, 42, 0.05);
}

.mobile-nav-drawer__cta:focus-visible {
    outline: none;
}

body.mobile-nav-drawer-open {
    overflow: hidden;
    height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav-drawer,
    .mobile-nav-drawer__overlay,
    .mobile-nav-drawer__panel,
    .mobile-nav-drawer__close,
    .mobile-nav-drawer__link,
    .mobile-nav-drawer__cta {
        transition: none;
    }
}

@media (min-width: 1025px) {
    .mobile-nav-drawer {
        display: none;
    }
}

/* FoodOrd Sidebar Layout - Only show on desktop */
@media (min-width: 1025px) {
    .page-with-sidebar {
        display: flex;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .main-content {
        flex: 1;
        min-width: 0;
    }

    .foodord-sidebar-widget {
        margin-bottom: 2rem;
    }

    .foodord-sidebar-widget:last-child {
        margin-bottom: 0;
    }

    .foodord-sidebar-widget-title {
        margin: 0 0 1rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
    }
}

/* 1025–1199px: 5px gutters for products area */
@media (min-width: 1025px) and (max-width: 1199px) {
    /* Cancel default centering margins and apply 5px gutters */
    .has-foodord-sidebar .site-main { padding-right: calc(var(--foodord-sidebar-w) + 5px); }
}

/* >=1200px: ensure 5px gap between content and sidebar */
@media (min-width: 1200px) {
    .has-foodord-sidebar .site-main {
    padding-right: calc(var(--foodord-sidebar-w) + 5px);
    }
}


/* =================================
   Home Banner Styles
   ================================= */
.foodord-banner-container {
    width: 100%;
    padding: 1rem 0 0 0;
    background-color: #ffffff;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden; /* Prevent inner overflow */
    min-height: 310px;
    display: flex;
    align-items: center;
}

/* Desktop: limit container width to end exactly at the left edge of the fixed right sidebar */
@media (min-width: 1025px) {
    .has-foodord-sidebar .foodord-banner-container {
        width: calc(100% - var(--foodord-sidebar-w));
        margin: 0;
    }
}


.foodord-home-banner {
    margin: 5px;
    padding: 0 .5rem;
    width: calc(100% - 10px);
    max-width: calc(100% - 10px);
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    position: relative;
}


.foodord-banner-image {
    display: block;
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Banner Logo Styles */
.foodord-banner-logo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
}

.foodord-banner-logo:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.foodord-logo-image {
    display: block;
    max-height: 40px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .foodord-banner-container {
        margin: 0;
        padding: 0.5rem 0;
        border-radius: 0;
    }

    .foodord-banner-image {
        border-radius: 6px;
        width: 100%;
        object-fit: cover;
    }

    .foodord-banner-image:hover {
        transform: none;
    }

    .foodord-logo-image {
        max-height: 50px;
        max-width: 80px;
        border-radius: 4px;
    }

    .foodord-banner-logo:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .foodord-banner-container {
        padding: 0.5rem 0;
        margin: 0;
    }

    .foodord-banner-image {
      min-height: 290px;
    }
}

/* --- Banner info button (use existing stylesheet) --- */

.foodord-banner-info-btn {
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #7b7b7b80;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.foodord-banner-info-btn::before {
  content: "i";
  font-size: 20px;
  font-weight: 700;
}
.foodord-banner-info-btn:focus { outline: none; }

.foodord-banner-info-panel {
  position: absolute;
  right: 16px;
  bottom: 70px;
  width: min(90vw, 320px);
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,.18), 0 8px 16px rgba(0,0,0,.12);
  backdrop-filter: saturate(160%) blur(6px);
  padding: 14px 16px;
  z-index: 15;
  transform-origin: 100% 100%;
  opacity: 0;
  transform: scale(.96) translateY(6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.foodord-banner-info-panel.is-open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

.foodord-banner-info-content { display: flex; flex-direction: column; gap: 6px; }
.foodord-info-title { font-size: 14px; font-weight: 700; color: #111827; }
.foodord-info-text { font-size: 13px; color: #4b5563; margin: 0; white-space: pre-wrap; }

@media (max-width: 480px) {
  .foodord-banner-info-btn { right: 20px; bottom: 20px; }
  .foodord-banner-info-panel { right: 12px; bottom: 64px; }
}

/* =================================
   WooCommerce: My Account Navigation
   ================================= */
.woocommerce-account .woocommerce-MyAccount-navigation {
  margin-bottom: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background-color: rgba(249, 250, 251, 0.8);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  border-color: rgba(201, 56, 111, 0.15);
  background-color: rgba(249, 250, 251, 1);
  transform: translateY(-2px);
}

/* Active/Current state */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: rgba(201, 56, 111, 0.2);
  transform: translateY(-2px);
}

/* Keyboard focus */
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Small screens: chip-like horizontal scroll (keeps desktop vertical list) */
@media (max-width: 640px) {
  nav.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
  }
  nav.woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }
  nav.woocommerce-MyAccount-navigation a {
    border-radius: 9999px;
    white-space: nowrap;
  }
  nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { height: 6px; }
  nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar-track { background: transparent; }
  nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 999px; }
}

/* =================================
   WooCommerce: My Account Dashboard
   ================================= */
.woocommerce-account .foodord-dashboard {
  margin-bottom: 16px;
}

.woocommerce-account .foodord-dashboard__card {
  background-color: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-account .foodord-dashboard__greeting {
  margin: 0 0 8px 0;
}.woocommerce-account .foodord-dashboard__summary {
  margin: 0;
}

/* Links inside dashboard text */
.woocommerce-account .foodord-dashboard a {
  text-decoration: none;
}

.woocommerce-account .foodord-dashboard a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-account .foodord-dashboard a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Compact on small screens */
@media (max-width: 640px) {
  .woocommerce-account .foodord-dashboard__card {
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
  }
  .woocommerce-account .foodord-dashboard__greeting {
    margin-bottom: 6px;
  }
}

/* =================================
   WooCommerce: My Account spacing fix (>=769px)
   - Keep WooCommerce float layout intact
   - Add inner padding to content using border-box to avoid layout overflow
   ================================= */
@media (min-width: 769px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    box-sizing: border-box;
    padding-left: 24px;
  }
}

/* =================================
   WooCommerce: My Account stack (<=768px) to avoid overflow
   ================================= */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }
  /* Add a little space between navigation and content on small screens */
  .woocommerce-account .woocommerce-MyAccount-navigation { margin: 0 0 12px; }
  .woocommerce-account .woocommerce-MyAccount-content { margin: 0; }
}

/* =================================
   WooCommerce: My Account Addresses
   ================================= */
.woocommerce-account .foodord-addresses { margin-top: 8px; }
.woocommerce-account .woocommerce-addresses-description {
  margin: 0 0 12px;
}

.woocommerce-account .woocommerce-Address {
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-account .woocommerce-Address + .woocommerce-Address {
  margin-top: 12px;
}

.woocommerce-account .woocommerce-Address .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.woocommerce-account .woocommerce-address-title {
  margin: 0;
}

.woocommerce-account .woocommerce-Address .edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #fff;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease;
}
.woocommerce-account .woocommerce-Address .edit:hover {
  border-color: var(--primary-color);
  background-color: #f6f6f6;
  transform: translateY(-1px);
}
.woocommerce-account .woocommerce-Address .edit:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.woocommerce-account .woocommerce-Address address,
.woocommerce-account .foodord-address__content {
  margin: 0;
}

.woocommerce-account .foodord-addresses__grid {
  display: grid;
  gap: 16px 24px;
  align-items: start;
}
.woocommerce-account .foodord-addresses__grid .u-column1,
.woocommerce-account .foodord-addresses__grid .u-column2,
.woocommerce-account .foodord-addresses__grid .col-1,
.woocommerce-account .foodord-addresses__grid .col-2 {
  float: none;
  width: auto;
  margin: 0;
}

@media (max-width: 768px) {
  .woocommerce-account .foodord-addresses__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .woocommerce-account .woocommerce-Address {
    padding: 14px;
    border-radius: 12px;
  }
}

/* =================================
   WooCommerce: Edit Address Forms (Billing/Shipping)
   ================================= */
.woocommerce-account .foodord-edit-address {
  margin-top: 8px;
}

.woocommerce-account .foodord-edit-address__header {
  margin: 0 0 16px;
}

.woocommerce-account .foodord-edit-address__title {
  margin: 0;
}

.woocommerce-account .foodord-edit-address__form {
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form fields grid: responsive 2-column layout */
.woocommerce-account .foodord-edit-address__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 20px;
  margin: 0 0 24px;
}

/* Full-width fields (textarea, wide selects) */
.woocommerce-account .foodord-edit-address__fields .form-row-wide,
.woocommerce-account .foodord-edit-address__fields .form-row-full {
  grid-column: 1 / -1; /* span all columns */
}

/* Form field styling */
.woocommerce-account .woocommerce-form-row {
  margin: 0;
}

.woocommerce-account .woocommerce-form-row label {
  display: block;
  margin: 0 0 4px;
}.woocommerce-account .woocommerce-form-row input[type="text"],
.woocommerce-account .woocommerce-form-row input[type="email"],
.woocommerce-account .woocommerce-form-row input[type="tel"],
.woocommerce-account .woocommerce-form-row select,
.woocommerce-account .woocommerce-form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(201, 56, 111, 0.2);
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
}

.woocommerce-account .woocommerce-form-row input:focus,
.woocommerce-account .woocommerce-form-row select:focus,
.woocommerce-account .woocommerce-form-row textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 1);
}

.woocommerce-account .woocommerce-form-row textarea {
  min-height: 80px;
  resize: vertical;
}

/* Action buttons */
.woocommerce-account .foodord-edit-address__actions {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-color);
}

.woocommerce-account .foodord-edit-address__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}

.woocommerce-account .foodord-edit-address__actions .button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.woocommerce-account .foodord-edit-address__actions .button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Error/validation messages */
.woocommerce-account .woocommerce-form-row .woocommerce-invalid {
  border-color: #dc3545;
}

.woocommerce-account .woocommerce-form-row .woocommerce-error {
  margin: 4px 0 0;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .woocommerce-account .foodord-edit-address__fields {
    grid-template-columns: 1fr; /* single column on small screens */
    gap: 12px;
  }
  .woocommerce-account .foodord-edit-address__form {
    padding: 16px;
    border-radius: 12px;
  }
  .woocommerce-account .foodord-edit-address__actions .button {
    width: 100%; /* full-width button */
  }
}

/* =================================
   WooCommerce: Reset Password (Lost/Change)
   ================================= */
.woocommerce-account .foodord-reset { margin-top: 8px; }
.woocommerce-account .foodord-reset__card {
  background: #ffffff;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  margin: 60px auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.woocommerce-account .foodord-reset__title { 
  margin: 0 0 20px; 
  font-size: 24px; 
  font-weight: 700; 
  color: var(--text-color); 
  text-align: center; 
}
.woocommerce-account .foodord-reset__message { 
  margin: 0 0 24px; 
  color: var(--secondary-text); 
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

/* Inputs consistent with account details */
.woocommerce-account .foodord-reset__form .woocommerce-form-row label { 
  display: block; 
  margin: 0 0 8px; 
  font-weight: 500; 
  font-size: 15px; 
  color: var(--text-color);
}
.woocommerce-account .foodord-reset__form input[type="text"],
.woocommerce-account .foodord-reset__form input[type="email"],
.woocommerce-account .foodord-reset__form input[type="password"],
.woocommerce-account .foodord-reset__form select,
.woocommerce-account .foodord-reset__form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
}
.woocommerce-account .foodord-reset__form input:focus,
.woocommerce-account .foodord-reset__form select:focus,
.woocommerce-account .foodord_reset__form textarea:focus { 
  outline: none; 
  border-color: var(--primary-color); 
  background-color: rgba(255, 255, 255, 1);
}

/* Neutralize floats, enforce spacing */
.woocommerce-account .foodord-reset__form .form-row,
.woocommerce-account .foodord-reset__form .form-row-wide { 
  float: none; 
  width: auto; 
  margin: 0 0 16px; 
}

.woocommerce-account .foodord-reset__actions { 
  margin: 24px 0 0; 
  display: flex;
  justify-content: center; 
  direction: ltr; 
}
.woocommerce-account .foodord-reset__actions .button { 
  padding: 16px 32px; 
  border-radius: 12px; 
  background: var(--primary-color); 
  color: #ffffff; 
  border: none; 
  font-weight: 600; 
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.woocommerce-account .foodord-reset__actions .button:hover { 
  background: var(--primary-hover);
  color: #ffffff; 
  transform: translateY(-2px); 
}

@media (max-width: 640px) {
  .woocommerce-account .foodord-reset__card { 
    padding: 24px; 
    border-radius: 12px; 
    margin: 20px auto;
    max-width: 100%;
  }
  .woocommerce-account .foodord-reset__actions { justify-content: stretch; }
  .woocommerce-account .foodord-reset__actions .button { width: 100%; }
}

/* =================================
   WooCommerce: Auth (Login / Register)
   ================================= */
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
  background: #ffffff;
}
.woocommerce-account .foodord-auth__title { margin: 0 0 20px; font-size: 24px; font-weight: 700; color: var(--text-color); text-align: center; }

/* Inputs consistent styling */
.woocommerce-account .foodord-auth__card .woocommerce-form-row label { display: block; margin: 0 0 4px; font-weight: 500; font-size: var(--text-sm); }
.woocommerce-account .foodord-auth__card .woocommerce-form-row input[type="text"],
.woocommerce-account .foodord-auth__card .woocommerce-form-row input[type="email"],
.woocommerce-account .foodord-auth__card .woocommerce-form-row input[type="password"],
.woocommerce-account .foodord-auth__card .woocommerce-form-row select,
.woocommerce-account .foodord-auth__card .woocommerce-form-row textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
}
.woocommerce-account .foodord-auth__card .woocommerce-form-row input:focus,
.woocommerce-account .foodord-auth__card .woocommerce-form-row select:focus,
.woocommerce-account .foodord_auth__card .woocommerce-form-row textarea:focus { 
  outline: none; 
  border-color: var(--primary-color); 
  background-color: rgba(255, 255, 255, 1);
}

/* Actions row */
.woocommerce-account .foodord-auth__actions { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  margin: 24px 0 0; 
}
.woocommerce-account .foodord-auth__actions .button { 
  padding: 16px 32px; 
  border-radius: 12px; 
  background: var(--primary-color); 
  color: #ffffff; 
  border: none; 
  font-weight: 600; 
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.woocommerce-account .foodord-auth__actions .button:hover { 
  background: var(--primary-hover); 
  color: #ffffff;
  transform: translateY(-2px); 
}
.woocommerce-account .lost_password { 
  margin: 0; 
  text-align: center;
  direction: ltr; 
}
.woocommerce-account .lost_password a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}
.woocommerce-account .lost_password a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Single-column container when only login is present */
.woocommerce-account .foodord-auth__single .foodord-auth__card { max-width: 400px; margin: 60px auto; }
.woocommerce-account .woocommerce-MyAccount-content {
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 20px;
}

@media (max-width: 768px) {
  .woocommerce-account .foodord-auth__grid { grid-template-columns: 1fr; gap: 12px; }
  .woocommerce-account .foodord-auth__actions { flex-direction: column; align-items: stretch; }
  .woocommerce-account .foodord-auth__actions .button { width: 100%; }
  .woocommerce-account .woocommerce-MyAccount-content { 
    display: contents;
    min-height: 100vh;
    padding: 16px;
  }
  .woocommerce-account .foodord-auth__single .foodord-auth__card { 
    margin: 20px auto; 
    max-width: 100%;
  }
}

/* =================================
   WooCommerce: My Account Downloads
   ================================= */
.woocommerce-account .foodord-downloads { margin-top: 8px; }
.woocommerce-account .foodord-downloads__container { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.woocommerce-account .foodord-downloads__table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; }

/* Head */
.woocommerce-account .foodord-downloads__table thead th { background: #fafafa; color: var(--secondary-text); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; padding: 12px 14px; border-bottom: 1px solid var(--border-color); }

/* Body */
.woocommerce-account .foodord-downloads__table tbody th,
.woocommerce-account .foodord-downloads__table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.woocommerce-account .foodord-downloads__table tbody tr:last-child th,
.woocommerce-account .foodord-downloads__table tbody tr:last-child td { border-bottom: 0; }

/* Actions column button */
.woocommerce-account .foodord-downloads__table .button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.woocommerce-account .foodord-downloads__table .button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Small screens: allow horizontal scroll */
@media (max-width: 640px) {
  .woocommerce-account .foodord-downloads__table { display: block; width: 100%; min-width: 560px; overflow-x: auto; }
}

/* =================================
   WooCommerce: Account Details
   ================================= */
.woocommerce-account .foodord-account-details { margin-top: 8px; }

.woocommerce-account .foodord-account-details__header { margin: 0 0 16px; }
.woocommerce-account .foodord-account-details__title { margin: 0; font-size: var(--text-xl); color: var(--text-color); }

.woocommerce-account .foodord-account-details__form {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.woocommerce-account .foodord-account-details__fields {
  display: grid;
  grid-template-columns: 1fr; /* single column on all sizes */
  gap: 12px 0;
  margin: 0 0 16px;
}
/* Neutralize WC float-based columns inside this form */
.woocommerce-account .foodord-account-details__fields .form-row,
.woocommerce-account .foodord-account-details__fields .form-row-first,
.woocommerce-account .foodord-account-details__fields .form-row-last,
.woocommerce-account .foodord-account-details__fields .form-row-wide {
  float: none;
  width: auto;
  margin: 0;
}
/* Add vertical spacing between rows */
.woocommerce-account .foodord-account-details__fields .woocommerce-form-row { margin: 0 0 12px; }
.woocommerce-account .foodord-account-details__fields .clear { display: none; }

.woocommerce-account .foodord-account-details__password { margin: 8px 0 0; border: 0; padding: 0; }
.woocommerce-account .foodord-account-details__password legend { margin: 0 0 8px; font-size: var(--text-lg); font-weight: 600; }

.woocommerce-account .foodord-account-details__actions { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border-color); }
.woocommerce-account .foodord-account-details__actions .button { padding: 12px 24px; border-radius: 8px; background-color: var(--button-bg); color: #ffffff; border: none; font-weight: 500; transition: background-color .2s ease, transform .1s ease; }
.woocommerce-account .foodord-account-details__actions .button:hover { background-color: var(--button-on-hover); color: #ffffff;}
.woocommerce-account .foodord-account-details__actions .button:focus-visible { outline: none; }

/* Inputs: make borders consistent and less pale (match password fields) */
.woocommerce-account .foodord-account-details__form input[type="text"],
.woocommerce-account .foodord-account-details__form input[type="email"],
.woocommerce-account .foodord-account-details__form input[type="tel"],
.woocommerce-account .foodord-account-details__form select,
.woocommerce-account .foodord-account-details__form textarea {
  border: 1px solid #dcdcdc; /* darker than var(--border-color) */
}

.woocommerce-account .foodord-account-details__form input:focus,
.woocommerce-account .foodord-account-details__form select:focus,
.woocommerce-account .foodord-account-details__form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(201, 56, 111, 0.1);
}

@media (max-width: 640px) {
  .woocommerce-account .foodord-account-details__form { padding: 16px; border-radius: 12px; }
  .woocommerce-account .foodord-account-details__fields { grid-template-columns: 1fr; gap: 12px; }
  .woocommerce-account .foodord-account-details__actions .button { width: 100%; }
}

/* =================================
   WooCommerce: My Account Orders
   ================================= */
.woocommerce-account .foodord-orders-modern {
  margin-top: 8px;
}

.woocommerce-account .foodord-orders-modern__container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce-account .foodord-orders-modern__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

/* Table head */
.woocommerce-account .foodord-orders-modern__table thead th {
  background: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

/* Body cells */
.woocommerce-account .foodord-orders-modern__table tbody th,
.woocommerce-account .foodord-orders-modern__table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.woocommerce-account .foodord-orders-modern__table tbody tr:last-child th,
.woocommerce-account .foodord-orders-modern__table tbody tr:last-child td {
  border-bottom: 0;
}

/* Subtle hover */
.woocommerce-account .foodord-orders-modern__table tbody tr:hover {
  background-color: #fafafa;
}

/* Emphasize order number link */
.woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-number a {
  text-decoration: none;
}
.woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Align numeric/total and actions to the right for cleaner scan */
.woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-total,
.woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions {
  text-align: right;
  white-space: nowrap;
}

/* Action buttons minimal */
.woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: var(--button-bg);
  color: #ffffff;
  border: none;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background-color .2s ease, transform .1s ease;
}
.woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions .button:hover {
  background-color: var(--button-on-hover);
  transform: translateY(-1px);
}
.woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions .button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Pagination */
.woocommerce-account .foodord-orders-modern__pagination {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.woocommerce-account .foodord-orders-modern__pagination .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #fff;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.woocommerce-account .foodord-orders-modern__pagination .woocommerce-button:hover {
  background-color: #f6f6f6;
  border-color: #eaeaea;
}

@media (min-width: 769px) {
  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__header-order-total,
  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-total {
    text-align: right;
    white-space: nowrap;
    min-width: 220px;
  }

  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__header-order-actions,
  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    text-align: right;
    min-width: 120px;
  }

  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-total,
  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-total::before,
  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions::before {
    grid-column: 1;
  }

  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-total > *,
  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions > * {
    grid-column: 2;
  }

  .woocommerce-account .foodord-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    gap: 8px;
    justify-content: end;
  }
}

/* =================================
   WooCommerce: My Account View Order
   ================================= */
/* Top overview line */
.woocommerce-account .woocommerce-MyAccount-content > p {
  margin: 0 0 12px;
}
.woocommerce-account .woocommerce-MyAccount-content > p .order-number,
.woocommerce-account .woocommerce-MyAccount-content > p .order-date {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f6f6f6;
  border: 1px solid var(--border-color);
}
.woocommerce-account .woocommerce-MyAccount-content > p .order-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(201,56,111,0.08);
  border: 1px solid rgba(201,56,111,0.18);
}

/* Order details table */
.woocommerce-account .woocommerce-order-details { margin-top: 12px; }
.woocommerce-account .woocommerce-order-details__title {
  margin: 0 0 8px;
}
.woocommerce-account .woocommerce-table--order-details {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}
.woocommerce-account .woocommerce-table--order-details thead th {
  background: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.woocommerce-account .woocommerce-table--order-details thead th:first-child { text-align: left; }
.woocommerce-account .woocommerce-table--order-details thead th:last-child { text-align: right; width: 1%; white-space: nowrap; }
.woocommerce-account .woocommerce-table--order-details tbody th,
.woocommerce-account .woocommerce-table--order-details tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.woocommerce-account .woocommerce-table--order-details tbody tr:last-child th,
.woocommerce-account .woocommerce-table--order-details tbody tr:last-child td { border-bottom: 0; }

.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-name a {
  text-decoration: none;
}
.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-name a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.woocommerce-account .woocommerce-table--order-details .wc-item-meta {
  margin: 4px 0 0;
}

.woocommerce-account .woocommerce-table--order-details tbody td:last-child,
.woocommerce-account .woocommerce-table--order-details tbody th:last-child { text-align: right; white-space: nowrap; width: 1%; }
.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-total { text-align: right; white-space: nowrap; }
.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-name { word-break: break-word; }
.woocommerce-account .woocommerce-table--order-details tfoot th {
  text-align: left;
}
.woocommerce-account .woocommerce-table--order-details tfoot td {
  text-align: right;
}
.woocommerce-account .woocommerce-table--order-details tfoot .order-total th,
.woocommerce-account .woocommerce-table--order-details tfoot .order-total td {
  border-top: 2px solid var(--border-color);
}

/* Order mode badge inside View Order table */
.woocommerce-account .woocommerce-table--order-details .foodord-order-mode-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
}
.woocommerce-account .woocommerce-table--order-details .foodord-order-mode-badge--delivery {
  background-color: rgba(16, 122, 43, 0.08);
  border-color: rgba(16, 122, 43, 0.15);
}
.woocommerce-account .woocommerce-table--order-details .foodord-order-mode-badge--pickup {
  background-color: rgba(26, 86, 219, 0.08);
  border-color: rgba(26, 86, 219, 0.15);
}

/* Customer details */
.woocommerce-account .woocommerce-customer-details { margin-top: 16px; }
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
  margin: 0 0 8px;
}
.woocommerce-account .woocommerce-customer-details .customer_details {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.woocommerce-account .woocommerce-customer-details .customer_details th,
.woocommerce-account .woocommerce-customer-details .customer_details td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}
.woocommerce-account .woocommerce-customer-details .customer_details tr:last-child th,
.woocommerce-account .woocommerce-customer-details .customer_details tr:last-child td { border-bottom: 0; }

/* Order type pill */
.woocommerce-account .foodord-order-mode {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #fafafa;
  border: 1px solid var(--border-color);
}


.woocommerce-account .woocommerce-OrderUpdates {
  margin: 12px 0;
  padding-left: 0;
}
.woocommerce-account .woocommerce-OrderUpdates .woocommerce-OrderUpdate-inner {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
}
.woocommerce-account .woocommerce-OrderUpdate-meta {
  margin: 0 0 4px;
}
.woocommerce-account .woocommerce-OrderUpdate-description p { margin: 0; }


@media (max-width: 640px) {
  .woocommerce-account .woocommerce-table--order-details {
    display: block;
    width: 100%;
    min-width: 560px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Woocommerce Place Order Button */
.wp-element-button, .wp-block-button__link {
  background-color: var(--button-bg);
  color: #ffffff;
}
.wp-element-button:hover, .wp-block-button__link:hover {
  background-color: var(--button-on-hover);
  color: #ffffff;
}

/* =================================
   WooCommerce: Order Received Page
   ================================= */
.woocommerce-order-received .woocommerce-order-details .woocommerce-table__product-name a {
  pointer-events: none;
  cursor: default;
  color: var(--text-color);
  text-decoration: none;
}

/* Order details table footer td values in single line */
.woocommerce-account .woocommerce-table--order-details tfoot td,
.woocommerce-order-details .woocommerce-table--order-details tfoot td {
  white-space: nowrap;
}

/* Lazy image animation */
.foodord-lazy-image {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.foodord-lazy-image.foodord-lazy-loaded {
  opacity: 1;
  transform: none;
}

.woocommerce-order .foodord-order-timeline {
  --timeline-padding-top: 1.75rem;
  --timeline-padding-inline: clamp(0.75rem, 2vw, 1.75rem);
  margin: 1.25rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: var(--timeline-padding-top) var(--timeline-padding-inline) 2.25rem;
  position: relative;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  background: rgba(50, 50, 50, 0.04);
  border-radius: 5px;
  border: 1px solid rgba(50, 50, 50, 0.05);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.woocommerce-order .foodord-order-timeline::before {
  content: "";
  position: absolute;
  top: calc(var(--timeline-padding-top) + 30px);
  left: var(--timeline-padding-inline);
  right: var(--timeline-padding-inline);
  height: 1px;
  background: rgba(50, 50, 50, 0.12);
}

.woocommerce-order .foodord-order-timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem clamp(0.5rem, 2vw, 1rem) 0;
  text-align: center;
  box-sizing: border-box;
  height: 100%;
}

.woocommerce-order .foodord-order-timeline__marker {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(50, 50, 50, 0.18);
  background-color: #ffffff;
  transition: border-color 200ms ease, background-color 200ms ease;
}

@keyframes foodordTimelinePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(201, 56, 111, 0.3);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 10px rgba(201, 56, 111, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(201, 56, 111, 0);
  }
}

.woocommerce-order .foodord-order-timeline__item.is-active .foodord-order-timeline__marker,
.woocommerce-order .foodord-order-timeline__marker.is-animated {
  border-color: rgba(201, 56, 111, 1);
  background-color: rgba(201, 56, 111, 1);
  box-shadow: 0 0 0 6px rgba(201, 56, 111, 0.18);
  animation: foodordTimelinePulse 1.5s ease-in-out infinite;
}

.woocommerce-order .foodord-order-timeline__item.is-complete .foodord-order-timeline__marker {
  border-color: rgba(201, 56, 111, 1);
  background-color: rgba(201, 56, 111, 1);
  box-shadow: 0 0 0 6px rgba(201, 56, 111, 0.18);
  animation: none;
}

.woocommerce-order .foodord-order-timeline__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex: 1;
  min-height: 130px;
  margin-top: 0.5rem;
  padding: 1.5rem clamp(0.875rem, 3vw, 1.5rem);
  border: 1px solid rgba(50, 50, 50, 0.1);
  border-radius: 18px;
  background-color: #ffffff;
  transition: border-color 200ms ease, background-color 200ms ease;
  box-sizing: border-box;
}

.woocommerce-order .foodord-order-timeline__title {
  margin: 0;
  font-size: clamp(1rem, 1.2rem, var(--text-lg));
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.woocommerce-order .foodord-order-timeline__description {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--secondary-text);
  text-wrap: balance;
}

.woocommerce table.shop_table td {
  font-size: 14px;
  font-weight: 600;
}

.woocommerce .foodord-order-item-toppings {
  padding-left: 10px;
}

.woocommerce .foodord-order-item-toppings__list {
  display: grid;
  gap: 0.25rem;
}

.woocommerce .foodord-order-item-toppings__title {
  font-size: 0.875rem;
  font-weight: 600;
}

.woocommerce .foodord-order-item-topping {
  display: block;
  font-size: 0.8125rem;
}

.woocommerce-order .foodord-order-timeline__item.is-active .foodord-order-timeline__body {
  border-color: rgba(201, 56, 111, 0.32);
  background-color: rgba(201, 56, 111, 0.08);
}

.woocommerce-order-received .entry-header {
  display: none;
}

.woocommerce-order .woocommerce-notice.woocommerce-thankyou-order-received {
  display: none;
}

.woocommerce-order .foodord-order-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  margin: 0 auto;
  width: 100%;
  max-width: min(100%, 1040px);
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(50, 50, 50, 0.08);
}

.woocommerce-order .foodord-order-headline__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-color);
  text-align: center;
}

@media (max-width: 1024px) {
  .woocommerce-order .foodord-order-timeline {
    --timeline-padding-top: 1.25rem;
    --timeline-padding-inline: clamp(0.75rem, 4vw, 1.5rem);
    display: grid;
    grid-template-columns: 1fr;
  }

  .woocommerce-order .foodord-order-timeline::before {
    display: none;
  }

  .woocommerce-order .foodord-order-timeline__item {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .woocommerce-order .foodord-order-timeline__item::before {
    display: none;
  }

  .woocommerce-order .foodord-order-timeline__marker {
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .woocommerce-order .foodord-order-timeline__body {
    align-items: center;
    min-height: 130px;
  }

  .woocommerce-order .foodord-order-timeline__description,
  .woocommerce-order .foodord-order-headline__title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .woocommerce-order .foodord-order-timeline {
    --timeline-padding-top: 1.1rem;
    --timeline-padding-inline: clamp(0.75rem, 6vw, 1.25rem);
  }

  .woocommerce-order .foodord-order-headline {
    padding: 1.25rem clamp(1rem, 5vw, 1.75rem);
    border-radius: 16px;
  }
}/*
Theme Name: FoodOrd Child
Theme URI: https://www.foodord.com/
Author: FoodOrd Team
Author URI: https://www.foodord.com/
Description: Child theme for the FoodOrd theme.
Version: 2.9.7.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: foodord-child
Template: foodord
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: child-theme, woocommerce, food-and-drink
*/

/* Copyright (c) 2025 FoodOrd Team. Licensed under the GPL v2 or later. */.wdp_pricing_table_caption {
    /*font-weight: bold;*/
}

.wdp_pricing_table {
    border-collapse: collapse;
    font-size: 0.9em;
    table-layout: fixed;
    --highlight-range-bg: #efefef;
    --highlight-range-text: #6d6d6d;
}

.wdp_pricing_table td {
    border: solid 1px #dfdfdf;
    padding: 5px 10px;
    text-align: center;
}

.wdp_pricing_table tr.clickable_bulk {
    cursor: pointer;
}

.wdp_pricing_table .clickable_bulk:hover > * {
    background-color: var(--highlight-range-bg) !important;
    color: var(--highlight-range-text) !important;
}

.wdp_pricing_table thead {
    background: #efefef;
}

.spinner_img {
    content:url(//www.lavincebornem.be/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/assets/images/spinner-2x.gif);
    display: block;
}

del .woocommerce-Price-amount {
    display: inline;
}.wdp_deals_table_caption {
    font-weight: bold;
}

.wdp_deals_table {
    border-collapse: collapse;
    font-size: 0.9em;
}

.wdp_deals_table td {
    border: solid 1px #dfdfdf;
    padding: 5px 10px;
    text-align: center;
}

.wdp_deals_table thead {
    background: #efefef;
}