/* Restaurant Menu Widget v1.0.0 */

.rmw-menu,
.pizza-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.pizza-item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	min-width: 0;
	padding: 18px;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 10px;
}

.pizza-info {
	flex: 1 1 auto;
	min-width: 0;
}

.pizza-name-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.pizza-name {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
}

.pizza-name-allergens,
.pizza-name-tags {
	display: inline;
	margin-left: 4px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 400;
}

.pizza-name-allergens .tag {
	display: inline;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	font-size: inherit;
	line-height: inherit;
	font-weight: 400;
	white-space: nowrap;
	color: var(--e-global-color-accent, #8a6d3b);
}

.pizza-name-allergens .tag:not(:last-child)::after {
	content: ", ";
}

.pizza-name-tags .tag {
	display: inline;
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: inherit;
	font-weight: 400;
}

.pizza-name-tags .tag:not(:last-child)::after {
	content: ", ";
}

.pizza-desc {
	color: #666;
	font-size: 15px;
	line-height: 1.5;
	margin: 8px 0 0;
}

.pizza-prices {
	flex: 0 0 194px;
	width: 194px;
	display: grid;
	grid-template-columns: repeat(3, 58px);
	gap: 10px;
	text-align: center;
	align-items: start;
}

.price-column {
	width: 58px;
	min-width: 58px;
}

.price-title {
	min-height: 17px;
	font-size: 11px;
	line-height: 17px;
	text-transform: uppercase;
	color: #777;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.price-title-empty {
	visibility: hidden;
}

.price {
	min-height: 30px;
	font-weight: 700;
	font-size: 22px;
	line-height: 30px;
	white-space: nowrap;
}

.price-column-empty {
	width: 58px;
	min-width: 58px;
	min-height: 47px;
}

/* Section Header rows */
.rmw-section-row {
	grid-column: 1 / -1;
	width: 100%;
	padding: 30px 0 12px;
}

.rmw-section-title {
	font-size: 48px;
	line-height: 1.25;
	font-weight: 700;
	text-transform: uppercase;
	color: #c92b2b;
}

.rmw-section-desc {
	margin-top: 6px;
	font-size: 16px;
	line-height: 1.45;
	color: #666;
}


.rmw-section-row:first-child {
	padding-top: 0;
}

@media (max-width: 767px) {
	.rmw-menu,
	.pizza-menu {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.pizza-item {
		gap: 12px;
		padding: 15px;
	}

	.pizza-prices {
		flex: 0 0 170px;
		width: 170px;
		grid-template-columns: repeat(3, 50px);
		gap: 7px;
	}

	.price-column,
	.price-column-empty {
		width: 50px;
		min-width: 50px;
	}

	.price {
		font-size: 18px;
	}

	.pizza-name,
	.pizza-name-allergens,
	.pizza-name-tags {
		font-size: 20px;
	}

	.rmw-section-title {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.pizza-item {
		gap: 8px;
		padding: 12px;
	}

	.pizza-prices {
		flex-basis: 150px;
		width: 150px;
		grid-template-columns: repeat(3, 44px);
		gap: 6px;
	}

	.price-column,
	.price-column-empty {
		width: 44px;
		min-width: 44px;
	}

	.price {
		font-size: 17px;
	}

	.pizza-name,
	.pizza-name-allergens,
	.pizza-name-tags {
		font-size: 18px;
	}

	.pizza-desc {
		font-size: 14px;
	}

	.rmw-section-title {
		font-size: 24px;
	}
}


/* v1.1.0 — dedicated mobile layout */
@media (max-width: 767px) {

	.rmw-menu,
	.pizza-menu {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.rmw-section-row {
		padding-top: 30px;
		padding-bottom: 14px;
	}

	.rmw-section-title {
		font-size: 36px;
		line-height: 1.08;
		font-weight: 700;
	}

	.pizza-item {
		display: block;
		padding: 20px;
		border-radius: 12px;
	}

	.pizza-info {
		width: 100%;
	}

	.pizza-name-row {
		display: flex;
		align-items: baseline;
		flex-wrap: wrap;
		gap: 8px;
	}

	.pizza-name,
	.pizza-name-allergens,
	.pizza-name-tags {
		font-size: 30px;
		line-height: 1.15;
	}

	.pizza-name-allergens,
	.pizza-name-tags {
		font-weight: 400;
	}

	.pizza-desc {
		margin-top: 10px;
		font-size: 20px;
		line-height: 1.4;
	}

	.pizza-prices {
		margin-top: 18px;
		width: 100%;
		max-width: none;
		flex: none;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
		text-align: center;
	}

	.price-column {
		width: auto;
		min-width: 0;
	}

	.price-column-empty {
		width: auto;
		min-width: 0;
		min-height: 56px;
	}

	.price-title {
		min-height: 20px;
		font-size: 15px;
		line-height: 20px;
		overflow: visible;
		text-overflow: clip;
	}

	.price {
		min-height: 36px;
		font-size: 28px;
		line-height: 36px;
	}
}

@media (max-width: 480px) {

	.rmw-section-title {
		font-size: 34px;
	}

	.pizza-item {
		padding: 18px;
	}

	.pizza-name,
	.pizza-name-allergens,
	.pizza-name-tags {
		font-size: 27px;
	}

	.pizza-desc {
		font-size: 18px;
	}

	.price-title {
		font-size: 14px;
	}

	.price {
		font-size: 25px;
	}
}


/* Phase 3 section description */
@media (max-width: 767px) {
	.rmw-section-desc {
		font-size: 18px;
		line-height: 1.4;
	}
}

@media (max-width: 480px) {
	.rmw-section-desc {
		font-size: 17px;
	}
}
