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

/* Modal Base Styles */
:root {
	--background-color: #f7f7f7;
	--primary-color: #ea004b;
	--primary-hover: #c70040;
	--text-color: #323232;
	--text-hover: #313131;
	--secondary-text: #6b6b6b;
	--button-bg: #ea004b;
	--button-text-color: #ffffff;
	--button-on-hover: #c70040;
	--header-bg: #ffffff;
	--footer-bg: #ffffff;
	--border-color: #f4f4f4;
	--foodord-product-modal-error-bg: rgba(225, 29, 72, 0.08);
}



.foodord-allergy-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: none;
	background: transparent;
	color: #94a3b8;
	margin-left: 6px;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0;
	outline: none;
	border-radius: 50%;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.foodord-allergy-trigger:hover {
	color: #0f172a;
	transform: scale(1.15);
	background: #f1f5f9;
}

.foodord-allergy-trigger__icon {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.foodord-allergy-trigger__icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.foodord-product-title-row--reservation-preorder .foodord-allergy-trigger {
	background: #f1f5f9;
	border-radius: 5px;
	color: #64748b;
	height: 18px;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	width: 18px;
}

.foodord-product-title-row--reservation-preorder .foodord-allergy-trigger:hover {
	background-color: #334155;
	box-shadow: 0 4px 12px rgba(51, 65, 85, 0.12);
	color: #fff;
	transform: scale(1.1) rotate(-5deg);
}

.foodord-product-title-row--reservation-preorder .foodord-allergy-trigger:active {
	transform: scale(0.95);
}

.foodord-product-title-row--reservation-preorder .foodord-allergy-trigger__icon svg {
	height: 12px;
	width: 12px;
}

.foodord-modal * {
	box-sizing: border-box;
}

.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;
	opacity: 0;
	transition: opacity 0.26s ease;
}

.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: translate3d(0, 18px, 0) scale(0.97);
	transform-origin: center center;
	opacity: 0;
	transition:
		opacity 0.22s ease,
		transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.2s ease;
	will-change: opacity, transform;
}

.foodord-modal[aria-hidden="false"] .foodord-modal-overlay {
	opacity: 1;
}

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

.foodord-modal.is-closing .foodord-modal-overlay {
	opacity: 0;
}

.foodord-modal.is-closing {
	pointer-events: none;
}

.foodord-modal.is-closing .foodord-modal-content {
	transform: translate3d(0, 12px, 0) scale(0.985);
	opacity: 0;
	transition:
		opacity 0.18s ease,
		transform 0.24s cubic-bezier(0.32, 0, 0.67, 0);
}

@media (prefers-reduced-motion: reduce) {
	.foodord-modal-overlay,
	.foodord-modal-content {
		transition: none;
	}
}

/* Modal Close Button */
.foodord-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 32px;
	height: 32px;
	background: #ffffff;
	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;
}

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

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

/* 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;
}

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

@keyframes foodord-shimmer {
	0% {
		background-position: -600px 0;
	}

	100% {
		background-position: 600px 0;
	}
}

.foodord-skeleton {
	background: var(--foodord-skeleton-base, #eeeeee);
	background-image: linear-gradient(90deg,
			var(--foodord-skeleton-base, #eeeeee) 0,
			var(--foodord-skeleton-highlight, #f5f5f5) 40%,
			var(--foodord-skeleton-base, #eeeeee) 80%);
	background-size: 600px 100%;
	animation: foodord-shimmer 1.4s ease-in-out infinite;
}

.foodord-skeleton-wrapper {
	display: flex;
	flex-direction: column;
}

.foodord-skeleton__image {
	width: 100%;
	aspect-ratio: 16/9;
	max-height: 300px;
}

.foodord-skeleton__details {
	padding: 16px 14px 8px;
	display: flex;
	flex-direction: column;
}

.foodord-skeleton__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.foodord-skeleton__line {
	display: block;
	border-radius: 6px;
}

.foodord-skeleton__block {
	background: var(--foodord-skeleton-surface-soft, rgba(248, 249, 250, 0.6));
	padding: 16px;
	margin-bottom: 8px;
}

.foodord-skeleton__topping-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.foodord-skeleton__option {
	height: 44px;
	border-radius: 8px;
	margin-bottom: 10px;
}

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

.foodord-skeleton__footer {
	position: sticky;
	bottom: 0;
	background: var(--foodord-skeleton-surface, #ffffff);
	border-top: 1px solid var(--foodord-skeleton-border, #e5e5e5);
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.foodord-skeleton__qty {
	width: 110px;
	height: 45px;
	border-radius: 8px;
	flex-shrink: 0;
}

.foodord-skeleton__cta {
	flex: 1;
	height: 45px;
	border-radius: 5px;
}

.foodord-skeleton__title {
	width: 65%;
	height: 18px;
	border-radius: 6px;
}

.foodord-skeleton__price {
	width: 28%;
	height: 16px;
	border-radius: 6px;
	margin-bottom: 14px;
}

.foodord-skeleton__desc-line {
	width: 100%;
	height: 12px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.foodord-skeleton__desc-line--short {
	width: 75%;
	margin-bottom: 20px;
}

.foodord-skeleton__label {
	width: 40%;
	height: 14px;
}

.foodord-skeleton__badge {
	width: 18%;
	height: 20px;
	border-radius: 4px;
}

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

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

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

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

/* 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-original-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;
	box-sizing: border-box;
}

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

.foodord-attr-legend.has-variation-error .foodord-product-toppings__badge--required {
	color: #b4234d;
	background-color: rgba(201, 56, 111, 0.12);
}

.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;
}

@media (min-width: 1025px) {
	.foodord-attr-option:hover {
		border-color: var(--primary-color, #ea004b);
		background-color: color-mix(in srgb, var(--primary-color, #ea004b), white 90%);
	}
}

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

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

.foodord-attr-wrapper.has-variation-error {
	background-color: var(--foodord-product-modal-error-bg);
	border-color: rgba(201, 56, 111, 0.4);
	box-shadow: inset 0 0 0 1px 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, #ea004b);
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
}

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

/* 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;
	min-width: 0;
	padding: 0;
}

.foodord-product-modal-wrapper--no-image .foodord-product-details {
	padding-top: 20px;
}

/* 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%;
	max-width: 100%;
	min-width: 0;
	overflow-x: hidden;
}

.foodord-product-details {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

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

.foodord-product-main-image--loading .foodord-main-image {
	opacity: 0;
}

.foodord-product-main-image__skeleton {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 1;
}

.foodord-product-main-image:not(.foodord-product-main-image--loading) .foodord-product-main-image__skeleton {
	display: none;
}

.foodord-product-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.foodord-product-thumbnails-shell {
	--foodord-thumbnail-edge-space: 16px;
	--foodord-thumbnail-fade-width: 42px;
	--foodord-thumbnail-fade-start: rgba(255, 255, 255, 0.96);
	--foodord-thumbnail-fade-mid: rgba(255, 255, 255, 0.74);
	--foodord-thumbnail-fade-end: rgba(255, 255, 255, 0);
	--foodord-thumbnail-arrow-bg: rgba(255, 255, 255, 0.96);
	--foodord-thumbnail-arrow-border: rgba(15, 23, 42, 0.08);
	--foodord-thumbnail-arrow-color: #1f2933;
	--foodord-thumbnail-arrow-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);

	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-top: 16px;
	margin-bottom: 10px;
	padding: 0 var(--foodord-thumbnail-edge-space) 4px;
	overflow: hidden;
}

.foodord-product-thumbnails-shell::before,
.foodord-product-thumbnails-shell::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 4px;
	z-index: 2;
	width: var(--foodord-thumbnail-fade-width);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	backdrop-filter: blur(2px);
}

.foodord-product-thumbnails-shell::before {
	left: var(--foodord-thumbnail-edge-space);
	background: linear-gradient(90deg, var(--foodord-thumbnail-fade-start) 0%, var(--foodord-thumbnail-fade-mid) 45%, var(--foodord-thumbnail-fade-end) 100%);
}

.foodord-product-thumbnails-shell::after {
	right: var(--foodord-thumbnail-edge-space);
	background: linear-gradient(270deg, var(--foodord-thumbnail-fade-start) 0%, var(--foodord-thumbnail-fade-mid) 45%, var(--foodord-thumbnail-fade-end) 100%);
}

.foodord-product-thumbnails-shell.has-overflow-left::before,
.foodord-product-thumbnails-shell.has-overflow-right::after {
	opacity: 1;
}

.foodord-product-thumbnails {
	display: flex;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 0;
	margin: 0;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--foodord-thumbnail-fade-width);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.foodord-product-thumbnails::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.foodord-product-thumbnails-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--foodord-thumbnail-arrow-border);
	border-radius: 999px;
	background: var(--foodord-thumbnail-arrow-bg);
	color: var(--foodord-thumbnail-arrow-color);
	box-shadow: var(--foodord-thumbnail-arrow-shadow);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.foodord-product-thumbnails-arrow[hidden] {
	display: none;
}

.foodord-product-thumbnails-arrow:hover:not(:disabled) {
	background: #ea004b;
	color: #fff;
	transform: translateY(-50%) scale(1.04);
}

.foodord-product-thumbnails-arrow:disabled {
	cursor: default;
	opacity: 0;
	pointer-events: none;
}

.foodord-product-thumbnails-arrow span {
	display: block;
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	transform: translateY(-1px);
}

.foodord-product-thumbnails-arrow--prev {
	left: calc(var(--foodord-thumbnail-edge-space) + 4px);
}

.foodord-product-thumbnails-arrow--next {
	right: calc(var(--foodord-thumbnail-edge-space) + 4px);
}

html.foodord-dark-mode .foodord-product-thumbnails-shell,
body.foodord-dark-mode .foodord-product-thumbnails-shell {
	--foodord-thumbnail-fade-start: rgba(28, 26, 24, 0.96);
	--foodord-thumbnail-fade-mid: rgba(28, 26, 24, 0.76);
	--foodord-thumbnail-fade-end: rgba(28, 26, 24, 0);
	--foodord-thumbnail-arrow-bg: rgba(56, 56, 56, 0.96);
	--foodord-thumbnail-arrow-border: rgba(90, 90, 90, 0.8);
	--foodord-thumbnail-arrow-color: #f5f5f5;
	--foodord-thumbnail-arrow-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.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: #ea004b;
}

.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;
	transition: padding 0.2s ease, margin 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.foodord-product-modal-wrapper .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: 20px 1.2rem 20px 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-modal-wrapper .foodord-product-price {
	font-size: 16px;
	font-weight: 600;
	padding: 0 1rem;
	margin-bottom: 0.5rem;
}

.foodord-product-modal-wrapper .foodord-product-price .foodord-price-prefix {
	font-size: 11px;
}

.foodord-product-modal-wrapper .foodord-product-labels--modal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	min-width: 0;
	padding: 0 1rem;
	margin: 0 0 0.7rem;
	max-height: none;
	overflow: visible;
}

.foodord-product-modal-wrapper .foodord-product-label {
	--foodord-product-label-bg: #f8fafc;
	--foodord-product-label-border: #e2e8f0;
	--foodord-product-label-color: #475569;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	min-height: 22px;
	padding: 3px 8px;
	border: 1px solid var(--foodord-product-label-border);
	border-radius: 6px;
	background: var(--foodord-product-label-bg);
	color: var(--foodord-product-label-color);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	box-sizing: border-box;
}

.foodord-product-modal-wrapper .foodord-product-label__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.foodord-product-modal-wrapper .foodord-product-label__icon-svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.foodord-product-modal-wrapper .foodord-product-label__icon-text {
	fill: currentColor;
	stroke: none;
	font-family: Arial, Tahoma, sans-serif;
	font-size: 15px;
	font-weight: 700;
}

.foodord-product-modal-wrapper .foodord-product-label--halal .foodord-product-label__icon {
	width: 28px;
	height: 16px;
}

.foodord-product-modal-wrapper .foodord-product-label--vegetarian {
	--foodord-product-label-bg: #dcfce7;
	--foodord-product-label-border: #bbf7d0;
	--foodord-product-label-color: #166534;
}

.foodord-product-modal-wrapper .foodord-product-label--vegan {
	--foodord-product-label-bg: #d1fae5;
	--foodord-product-label-border: #a7f3d0;
	--foodord-product-label-color: #047857;
}

.foodord-product-modal-wrapper .foodord-product-label--spicy {
	--foodord-product-label-bg: #fee2e2;
	--foodord-product-label-border: #fecaca;
	--foodord-product-label-color: #b91c1c;
}

.foodord-product-modal-wrapper .foodord-product-label--very_spicy {
	--foodord-product-label-bg: #fecaca;
	--foodord-product-label-border: #fca5a5;
	--foodord-product-label-color: #991b1b;
}

.foodord-product-modal-wrapper .foodord-product-label--halal {
	--foodord-product-label-bg: #ccfbf1;
	--foodord-product-label-border: #99f6e4;
	--foodord-product-label-color: #0f766e;
}

.foodord-product-modal-wrapper .foodord-product-label--gluten_free {
	--foodord-product-label-bg: #fef3c7;
	--foodord-product-label-border: #fde68a;
	--foodord-product-label-color: #92400e;
}

.foodord-product-modal-wrapper .foodord-product-label--popular {
	--foodord-product-label-bg: #fef9c3;
	--foodord-product-label-border: #fde047;
	--foodord-product-label-color: #a16207;
}

.foodord-product-modal-wrapper .foodord-product-label--new {
	--foodord-product-label-bg: #e0f2fe;
	--foodord-product-label-border: #bae6fd;
	--foodord-product-label-color: #0369a1;
}

html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label {
	--foodord-product-label-bg: rgba(148, 163, 184, 0.18);
	--foodord-product-label-border: rgba(203, 213, 225, 0.34);
	--foodord-product-label-color: #f1f5f9;
}

html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--vegetarian,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--vegetarian,
html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--vegan,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--vegan {
	--foodord-product-label-bg: rgba(34, 197, 94, 0.24);
	--foodord-product-label-border: rgba(134, 239, 172, 0.44);
	--foodord-product-label-color: #bbf7d0;
}

html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--spicy,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--spicy,
html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--very_spicy,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--very_spicy {
	--foodord-product-label-bg: rgba(239, 68, 68, 0.24);
	--foodord-product-label-border: rgba(252, 165, 165, 0.44);
	--foodord-product-label-color: #fecaca;
}

html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--halal,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--halal {
	--foodord-product-label-bg: rgba(20, 184, 166, 0.24);
	--foodord-product-label-border: rgba(94, 234, 212, 0.44);
	--foodord-product-label-color: #99f6e4;
}

html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--gluten_free,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--gluten_free,
html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--popular,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--popular {
	--foodord-product-label-bg: rgba(245, 158, 11, 0.24);
	--foodord-product-label-border: rgba(253, 224, 71, 0.44);
	--foodord-product-label-color: #fde68a;
}

html.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--new,
body.foodord-dark-mode .foodord-product-modal-wrapper .foodord-product-label--new {
	--foodord-product-label-bg: rgba(14, 165, 233, 0.24);
	--foodord-product-label-border: rgba(125, 211, 252, 0.44);
	--foodord-product-label-color: #bae6fd;
}

.foodord-product-price del {
	margin-right: 6px;
	color: #94a3b8;
	font-weight: 500;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	text-decoration-color: currentColor;
}

.foodord-product-price del .woocommerce-Price-amount,
.foodord-product-price del .woocommerce-Price-currencySymbol {
	color: inherit;
	font-weight: inherit;
	text-decoration: inherit;
	text-decoration-color: inherit;
}

.foodord-product-price ins {
	text-decoration: none;
}

html.foodord-dark-mode .foodord-product-price del,
body.foodord-dark-mode .foodord-product-price del {
	color: #94a3b8;
}

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

.foodord-modal-upsells {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
	margin: 20px 0 0;
	padding: 20px;
	border-top: 8px solid rgba(248, 249, 250, 0.6);
}

.foodord-modal-upsells__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-bottom: 14px;
}

.foodord-modal-upsells__title {
	margin: 0;
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.foodord-modal-upsells__nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	justify-self: end;
	align-self: center;
	max-width: 100%;
}

.foodord-modal-upsells__nav[hidden] {
	display: none;
}

.foodord-modal-upsells__nav-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #d9e0e7;
	border-radius: 999px;
	background: #f8fafc;
	color: #111827;
	cursor: pointer;
	line-height: 1;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.foodord-modal-upsells__nav-icon {
	display: block;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	pointer-events: none;
}

.foodord-modal-upsells__nav-button:hover:not(:disabled) {
	background: #ffffff;
}

.foodord-modal-upsells__nav-button:disabled {
	opacity: 0.35;
	cursor: default;
}

.foodord-modal-upsells__description {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #6b7280;
}

.foodord-modal-upsells__grid {
	display: flex;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.foodord-modal-upsells__grid::-webkit-scrollbar {
	display: none;
}

.foodord-modal-upsells__item {
	display: flex;
	flex-direction: column;
	flex: 0 0 172px;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #e7eaee;
	border-radius: 8px;
	overflow: hidden;
}

.foodord-modal-upsells__image-wrap {
	aspect-ratio: 16 / 10;
	background: #f8fafc;
	overflow: hidden;
}

.foodord-modal-upsells__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.foodord-modal-upsells__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 12px;
}

.foodord-modal-upsells__item-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #111827;
}

.foodord-modal-upsells__price {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #0f172a;
}

.foodord-modal-upsells__price .foodord-pro-bogo-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.foodord-modal-upsells__price .foodord-pro-bogo-badge {
	display: inline-grid;
	place-items: center;
	position: relative;
	width: 20px;
	height: 20px;
	padding: 0;
	margin: 4px 0 4px;
	border-radius: 50%;
	background: #fff0d6;
	border: none;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	text-indent: -9999px;
	white-space: nowrap;
	overflow: hidden;
}

.foodord-modal-upsells__price .foodord-pro-bogo-badge:hover {
	background: #fff0d6;
	border: none;
}

.foodord-modal-upsells__price .foodord-pro-bogo-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 11px;
	height: 11px;
	margin: 0;
	padding: 0;
	transform: translate(-50%, -50%);
}

.foodord-modal-upsells__price del {
	color: #94a3b8;
}

.foodord-modal-upsells__price ins {
	text-decoration: none;
}

.foodord-modal-upsells__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-top: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #111827;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.foodord-modal-upsells__button:hover {
	color: #0f766e;
}

.foodord-modal-upsells__button.is-loading {
	justify-content: center;
	gap: 0;
	opacity: 0.55;
	pointer-events: none;
	text-decoration: none;
}

.foodord-modal-upsells__button.is-added,
html.foodord-dark-mode .foodord-modal-upsells__button.is-added,
body.foodord-dark-mode .foodord-modal-upsells__button.is-added {
	justify-content: flex-start;
	color: transparent;
	font-size: 0;
	line-height: 0;
	pointer-events: none;
	text-decoration: none;
	-webkit-text-fill-color: transparent;
}

.foodord-modal-upsells__button.is-added::after {
	content: "";
	display: block;
	width: 10px;
	height: 6px;
	margin-left: 0;
	border: solid #0f766e;
	border-width: 0 0 2px 2px;
	animation: foodord-upsell-check-reveal 0.24s ease-out both;
}

@keyframes foodord-upsell-check-reveal {
	from {
		opacity: 0;
		transform: translateY(2px) scale(0.85) rotate(-45deg);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1) rotate(-45deg);
	}
}

.foodord-modal-upsells--skeleton {
	pointer-events: none;
}

.foodord-modal-upsells--skeleton .foodord-modal-upsells__header {
	grid-template-columns: minmax(0, 1fr);
}

.foodord-modal-upsells--skeleton .foodord-modal-upsells__grid {
	overflow: hidden;
}

.foodord-modal-upsells--image-loading>.foodord-modal-upsells__header,
.foodord-modal-upsells--image-loading>.foodord-modal-upsells__grid {
	opacity: 0;
}

.foodord-modal-upsells__loading-overlay {
	position: absolute;
	inset: 20px 20px 20px 20px;
	z-index: 2;
	pointer-events: none;
}

.foodord-modal-upsells__loading-overlay .foodord-modal-upsells__grid {
	overflow: hidden;
}

.foodord-modal-upsells__item--skeleton {
	border-color: var(--foodord-skeleton-border, #eef2f5);
}

.foodord-modal-upsells__item--skeleton .foodord-modal-upsells__image-wrap {
	background: transparent;
}

.foodord-modal-upsells__item--skeleton .foodord-modal-upsells__content {
	gap: 10px;
}

.foodord-upsell-skeleton__heading {
	width: 168px;
	height: 18px;
	border-radius: 6px;
}

.foodord-upsell-skeleton__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
}

.foodord-upsell-skeleton__title {
	width: 78%;
	height: 14px;
	border-radius: 6px;
}

.foodord-upsell-skeleton__price {
	width: 42%;
	height: 14px;
	border-radius: 6px;
}

.foodord-upsell-skeleton__button {
	width: 58px;
	height: 12px;
	border-radius: 4px;
	margin-top: auto;
}

.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;
	box-sizing: border-box;
}

.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: 2px 4px;
	height: 20px;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border: 1.5px solid currentColor;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	white-space: nowrap;
	line-height: 1;
	font-variant-numeric: lining-nums;
	justify-content: center;
	position: relative;
	gap: 0;
	overflow: hidden;
	backface-visibility: hidden;
	transform-style: preserve-3d;
	will-change: transform;
}

.foodord-product-toppings__badge::before {
	content: '';
	display: inline-flex;
	width: 0;
	height: 4px;
	opacity: 0;
	margin-right: 0;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg) translate(0, 0);
	transform-origin: center;
	flex-shrink: 0;
}

.foodord-product-toppings__badge--required {
	color: #f43f5e;
	background-color: rgba(244, 63, 94, 0.04);
}

.foodord-product-toppings__badge--optional {
	color: #555555;
	background-color: rgba(148, 163, 184, 0.04);
}

/* Selected State */
.has-selection>.foodord-product-toppings__badge {
	color: #059669;
	background-color: #ecfdf5;
	border-color: #059669;
	padding-left: 8px;
}

.has-selection>.foodord-product-toppings__badge::before {
	width: 8px;
	opacity: 1;
	margin-right: 8px;
	transform: rotate(-45deg) translate(0, -1px);
}

/* Success Animation */
@keyframes badge-success {
	0% {
		transform: scale(1);
	}

	40% {
		transform: scale(1.12);
	}

	70% {
		transform: scale(0.94);
	}

	100% {
		transform: scale(1);
	}
}

.just-selected>.foodord-product-toppings__badge {
	animation: badge-success 0.4s ease-out;
}


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

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

.foodord-product-toppings__control {
	position: relative;
	overflow: visible;
}

.foodord-product-modal-wrapper .foodord-product-toppings__select.foodord-ttd__native-select {
	display: none;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown {
	position: relative;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 0 16px 0 14px;
	background: var(--foodord-ttd-trigger-bg, #ffffff);
	color: var(--foodord-ttd-trigger-text, #0f172a);
	border: 1px solid var(--foodord-ttd-trigger-border, #e2e8f0);
	border-radius: 4px;
	box-shadow: var(--foodord-ttd-trigger-shadow, 0 1px 2px rgb(156 156 156 / 55%));
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__trigger:hover {
	background: var(--foodord-ttd-trigger-hover-bg, var(--foodord-ttd-trigger-bg, #ffffff));
	border-color: var(--foodord-ttd-trigger-hover-border, #cbd5e1);
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__trigger-label {
	min-width: 0;
	flex: 1;
	font-size: 13px;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__trigger-icon {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	color: var(--foodord-ttd-trigger-icon, #0f172a);
	transition: transform 0.22s ease;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__trigger-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown.is-open .foodord-ttd__trigger-icon {
	transform: rotate(180deg);
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	display: none;
	z-index: 45;
	max-height: 260px;
	padding: 6px;
	overflow-y: auto;
	background: var(--foodord-ttd-menu-bg, #ffffff);
	border: 1px solid var(--foodord-ttd-menu-border, #e2e8f0);
	border-radius: 14px;
	box-shadow: var(--foodord-ttd-menu-shadow, 0 18px 34px -18px rgb(15 23 42 / 22%));
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown.foodord-ttd__dropdown--upward .foodord-ttd__menu {
	top: auto;
	bottom: calc(100% + 10px);
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown.is-open .foodord-ttd__menu {
	display: block;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__option {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 36px;
	padding: 0 10px;
	background: var(--foodord-ttd-option-bg, #ffffff);
	border: 0;
	border-radius: 10px;
	color: var(--foodord-ttd-option-text, #0f172a);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__option:hover {
	background: var(--foodord-ttd-option-hover-bg, #f8fafc);
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__option.is-selected {
	background: var(--foodord-ttd-option-selected-bg, #fdf2f8);
	color: var(--foodord-ttd-option-selected-text, var(--primary-color, #ea004b));
}

.foodord-product-modal-wrapper .foodord-product-toppings__dropdown .foodord-ttd__option:disabled {
	cursor: default;
	opacity: 0.65;
}

/* 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;
}

/* Error States */
.foodord-product-toppings__set.has-error {
	background-color: var(--foodord-product-modal-error-bg);
	border-color: rgba(225, 29, 72, 0.3);
	animation: toppings-error-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.foodord-product-toppings__set.has-error .foodord-product-toppings__select {
	border-color: rgba(225, 29, 72, 0.5);
}

.foodord-product-toppings__set.has-error .foodord-product-toppings__option {
	border-color: rgba(225, 29, 72, 0.2);
}

@keyframes toppings-error-shake {

	0%,
	100% {
		transform: translateX(0);
	}

	10%,
	30%,
	50%,
	70%,
	90% {
		transform: translateX(-4px);
	}

	20%,
	40%,
	60%,
	80% {
		transform: translateX(4px);
	}
}

/* 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: 15px 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;
	touch-action: pan-y;
	-webkit-tap-highlight-color: transparent;
}

.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-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.is-checked {
	border-color: var(--primary-color, #ea004b);
	background-color: color-mix(in srgb, var(--primary-color, #ea004b) 10%, transparent);
}

/* 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, #ea004b);
	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, #ea004b);
	border-radius: 50%;
}

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

.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 {
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	flex: 1;
}

.foodord-product-toppings__option-price {
	font-size: 14px;
	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-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: 50px;
	border-radius: 15px;
	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-btn .foodord-add-to-cart-count {
	color: #323232;
}

.foodord-modal-footer .foodord-add-to-cart-label {
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	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: 600;

}

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

.foodord-modal-footer .foodord-add-to-cart-btn.is-loading {
	justify-content: center;
	gap: 0;
	opacity: 0.68;
	box-shadow: none;
}

.foodord-modal-footer .foodord-add-to-cart-btn.is-loading:hover {
	background: var(--button-bg);
	box-shadow: none;
}

.foodord-modal-footer .foodord-add-to-cart-spinner {
	display: inline-flex;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: foodord-add-to-cart-spin 0.8s linear infinite;
}

.foodord-modal-upsells__button .foodord-add-to-cart-spinner {
	display: inline-flex;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(17, 24, 39, 0.18);
	border-top-color: #111827;
	border-radius: 50%;
	animation: foodord-add-to-cart-spin 0.8s linear infinite;
}

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

@keyframes foodord-add-to-cart-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.foodord-view-product-btn {
	background: transparent;
	border: 2px solid #ea004b;
	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: #ea004b;
	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 {
	--foodord-quantity-controls-bg: #f8fafc;
	--foodord-quantity-controls-border: #e2e8f0;
	--foodord-quantity-controls-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);

	display: flex;
	align-items: center;
	gap: 5px;
	background: var(--foodord-quantity-controls-bg);
	border: 1px solid var(--foodord-quantity-controls-border);
	border-radius: 15px;
	padding: 3px;
	box-sizing: border-box;
}

html.foodord-dark-mode .foodord-quantity-controls,
body.foodord-dark-mode .foodord-quantity-controls {
	--foodord-quantity-controls-bg: rgba(255, 255, 255, 0.06);
	--foodord-quantity-controls-border: rgba(255, 255, 255, 0.14);
	--foodord-quantity-controls-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.foodord-quantity-btn {
	position: relative;
	width: 36px;
	height: 36px;
	color: #323232;
	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;
	transition: background-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}

.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;
}

@media (any-hover: hover) and (any-pointer: fine) {
	.foodord-product-toppings__select:hover {
		border-color: #d0d0d0;
	}

	.foodord-modal .foodord-product-toppings__toggle:hover,
	.foodord-product-toppings .foodord-product-toppings__toggle:hover {
		color: var(--primary-hover, #c70040);
		text-decoration: underline;
		text-decoration-color: #3147ad;
	}

}

@media (any-hover: hover) and (any-pointer: fine) and (min-width: 1025px) {
	.foodord-product-toppings__option:hover {
		border-color: var(--primary-color, #ea004b);
		background-color: color-mix(in srgb, var(--primary-color, #ea004b), white 90%);
	}

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

body.foodord-is-scrolling .foodord-modal a,
body.foodord-is-scrolling .foodord-modal button,
body.foodord-is-scrolling .foodord-modal label,
body.foodord-is-scrolling .foodord-modal input,
body.foodord-is-scrolling .foodord-modal .foodord-product-toppings__option {
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.foodord-quantity-btn:hover {
		background: var(--button-bg);
		color: #ffffff;
	}

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

.foodord-quantity-btn:active:not(:disabled) {
	background: var(--button-bg);
	color: #ffffff;
	transform: scale(0.9);
}

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

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

.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 - 768px and below */
@media (max-width: 768px) {
	.foodord-modal-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.foodord-modal-container {
		max-width: 100%;
		height: calc((var(--foodord-vh, 1vh) * 100) - 18px);
	}

	.foodord-modal-content {
		height: 100%;
		max-height: 100%;
		border-radius: 18px 18px 0 0;
		margin: 0;
		width: 100%;
		transform: translate3d(0, 100%, 0);
		transform-origin: center bottom;
		opacity: 1;
		transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.foodord-modal-content > .foodord-swipe-dismiss__handle {
		position: absolute;
		top: 8px;
		left: 50%;
		z-index: 5;
		display: block;
		width: 48px;
		height: 4px;
		border-radius: 999px;
		background: rgba(100, 116, 139, 0.35);
		transform: translateX(-50%);
		pointer-events: none;
	}

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

	.foodord-modal.is-closing .foodord-modal-content {
		transform: translate3d(0, 100%, 0);
		opacity: 1;
		transition: transform 0.3s cubic-bezier(0.32, 0, 0.67, 0);
	}

	.foodord-modal-body {
		max-height: 100%;
		height: 100%;
		padding: 0;
		display: flex;
		flex-direction: column;
	}

	.foodord-modal-product-content.visible {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 100%;
	}

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

	.foodord-skeleton-wrapper {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

	.foodord-skeleton__details {
		flex: 1;
	}

	.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-shell {
		--foodord-thumbnail-edge-space: 12px;
		--foodord-thumbnail-fade-width: 36px;

		margin-top: 12px;
		padding: 0 12px 4px;
	}

	.foodord-product-thumbnails {
		gap: 8px;
	}

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

	.foodord-product-title-row {
		padding: 0 14px;
		margin-bottom: 0.3rem;
		gap: 4px;
		transition: padding 0.2s ease, margin 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	}

	.foodord-product-title-row.sticky-active {
		padding: 20px 16px 20px 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: 15px 12px;
	}

	/* Toppings sections */
	.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-content {
		gap: 14px;
	}

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

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

	.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-btn {
		width: 36px;
		height: 36px;
	}

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

	/* Close button adjustments */
	.foodord-modal-close {
		top: 15px;
		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-shell {
		--foodord-thumbnail-edge-space: 12px;

		padding: 0 12px 4px;
	}

	.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 & Tablet Styles - 768px and below */
@media (max-width: 768px) {
	.foodord-modal-container {
		padding: 0;
		max-width: 100vw;
		height: calc((var(--foodord-vh, 1vh) * 100) - 18px);
		margin: 0;
	}

	.foodord-modal-container .foodord-modal-content {
		height: 100%;
		max-height: 100%;
		border-radius: 18px 18px 0 0;
		margin: 0;
		width: 100%;
	}

	.foodord-modal-body {
		max-height: 100%;
		height: 100%;
		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-shell {
		margin-top: 8px;
	}

	.foodord-product-thumbnails {
		gap: 6px;
	}

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

	.foodord-product-title-row {
		padding: 0 12px;
		margin-bottom: 0.5rem;
		gap: 4px;
		transition: padding 0.2s ease, margin 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	}

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

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

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

	.foodord-modal-upsells {
		margin: 16px 0 0;
		padding: 20px;
	}

	.foodord-modal-upsells__nav {
		gap: 6px;
	}

	.foodord-modal-upsells__nav-button {
		width: 32px;
		height: 32px;
	}

	.foodord-modal-upsells__item {
		flex-basis: 156px;
	}

	/* 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: 15px 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-btn {
		width: 42px;
		height: 42px;
	}

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

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

	.foodord-modal-close svg {
		width: 24px;
		height: 24px;
		color: #333333;
	}

	.foodord-skeleton__image {
		max-height: 200px;
	}

	.foodord-skeleton__details {
		padding: 12px 12px 8px;
	}

	.foodord-skeleton__block {
		padding: 12px;
	}

	.foodord-skeleton__footer {
		padding: 8px 12px;
	}

	.foodord-skeleton__qty {
		width: 96px;
		height: 50px;
	}

	.foodord-skeleton__cta {
		height: 50px;
	}
}

.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: var(--foodord-allergy-modal-bg, #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 var(--foodord-allergy-modal-border, rgba(0, 0, 0, 0.06));
}

.foodord-allergy-info-modal__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--foodord-allergy-modal-title, #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 {
	outline: none;
}

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


.foodord-allergy-info-modal__close:hover::before {
	color: var(--foodord-allergy-modal-close-hover, #ea004b);
}

.foodord-allergy-info-modal__content {
	padding: 16px 24px 24px;
	overflow-y: auto;
	color: var(--foodord-allergy-modal-text, #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: 100%;
		max-width: calc(100% - 32px);
		margin: 0 auto;
		border-radius: 12px;
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
		align-self: center;
	}

	.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;
}

.foodord-allergens-item {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	background-color: var(--foodord-allergy-item-bg, #f8f8f8);
	font-size: 14px;
	line-height: 1.5;
}

.foodord-allergens-item strong {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--foodord-allergy-item-label, #333333);
}

.foodord-allergens-item--contains {
	border-left: 3px solid var(--foodord-allergens-contains-color, #dc3545);
}

.foodord-allergens-item--not-contain {
	border-left: 3px solid var(--foodord-allergens-not-contain-color, #28a745);
}

.foodord-allergens-item--may-contain {
	border-left: 3px solid var(--foodord-allergens-may-contain-color, #ffc107);
}

.foodord-allergens-item:last-child {
	margin-bottom: 0;
}

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

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

}

/* 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: 768px) {
	.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);
}

@keyframes toppings-shake {

	0%,
	100% {
		transform: translateX(0);
	}

	15%,
	45%,
	75% {
		transform: translateX(-4px);
	}

	30%,
	60%,
	90% {
		transform: translateX(4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.foodord-product-title-row {
		transition: none;
	}

	.foodord-skeleton {
		animation: none;
		background-image: none;
	}
}

/* Allergy Modal Skeleton Loader */
.foodord-allergy-skeleton {
	display: none;
	flex-direction: column;
	gap: 20px;
	padding: 10px 0;
}

.foodord-allergy-skeleton.is-visible {
	display: flex;
}

.foodord-allergy-skeleton__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin: 0 auto 24px;
}

.foodord-allergy-skeleton__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
}


.foodord-allergy-skeleton__title {
	width: 35%;
	height: 16px;
	border-radius: 4px;
}

.foodord-allergy-skeleton__text {
	width: 100%;
	height: 12px;
	border-radius: 4px;
}

.foodord-allergy-skeleton__text--short {
	width: 75%;
}

@media (max-width: 768px) {
	.foodord-modal-body {
		display: flex;
		flex-direction: column;
		height: 100%;
		max-height: 100%;
	}

	.foodord-modal-product-content.visible {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-height: 100%;
	}

	.foodord-modal-footer {
		margin-top: auto;
		position: sticky;
		bottom: 0;
	}

	.foodord-product-details {
		display: flex;
		flex: 1;
		flex-direction: column;
	}

	.foodord-modal-upsells {
		margin-top: auto;
	}

	.foodord-modal-product-content.visible:not(:has(.foodord-attr-wrapper, .foodord-product-toppings__set, .foodord-product-purchase)) {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-height: 100%;
	}

	.foodord-modal-product-content.visible:not(:has(.foodord-attr-wrapper, .foodord-product-toppings__set, .foodord-product-purchase)) .foodord-product-modal-wrapper {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-height: 0;
	}

	.foodord-modal-product-content.visible:not(:has(.foodord-attr-wrapper, .foodord-product-toppings__set, .foodord-product-purchase)) .foodord-product-images {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-height: 0;
	}

	.foodord-modal-product-content.visible:not(:has(.foodord-attr-wrapper, .foodord-product-toppings__set, .foodord-product-purchase)) .foodord-product-main-image {
		flex: 1;
		max-height: none;
		margin-bottom: 0.5rem;
	}

	.foodord-modal-product-content.visible:not(:has(.foodord-attr-wrapper, .foodord-product-toppings__set, .foodord-product-purchase)) .foodord-product-details {
		display: block;
		flex: 0 0 auto;
	}

	.foodord-modal-product-content.visible:not(:has(.foodord-attr-wrapper, .foodord-product-toppings__set, .foodord-product-purchase)) .foodord-modal-upsells {
		margin-top: 16px;
	}
}
