/* @override 
	http://localhost/takeaway/inc/css/main.css */



@import url("../fonts/opensans.css");

body {
	font-family: Open Sans, sans-serif;
	margin: 0;
	overflow: hidden;
	color: #444;
}

a {
	color: inherit;
}

* {
	touch-actions: none;
}

/* @group header & footer */
#logo {
	width: 250px;
	max-width: 100%;
}

#copyright {
	position: absolute;
	top:  10px;
	left: 10px;
	font-size: 10px;
	color: #888;
}

#cartToggleHolder {
	float: left;
	margin-top: -5px;
}

#footerProductCounter {
	display: inline-block;
	font-size: 1.5em;
	padding: 0 15px;
	background-color: white;
	border-radius: 1em;
	font-weight: bold;
	border: none;
	position: relative;
	vertical-align: top;
	margin-top: 9px;
	margin-left: 5px;
}

/* @end */

/* @group main */

div#wrapper {
	display: grid;
	grid-template-rows: auto 60px;
	column-gap: 10px;
	height: 100%;
}

footer {
	border-top: 1px solid #000;
	color: #666;
	padding: 10px 10px;
	height: 100%;
	font-size: 14px;
	text-align: center;
	box-sizing: border-box;
}

#main {
	padding: 30px 0;
}

#introText {
	text-align: left;
	margin: 10px 20px 30px 20px;
	border: 1px solid red;
	padding: 0 15px;
	background-color: #fff1f1;
}

#introText:empty {
	visibility: hidden;
}

#leftPane, #rightPane {
	background: #555;
	box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.25);
}

#details {
	background-color: #EEE;
	z-index: 2;
	box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.25);
	padding: 20px;
}

#cart {
	background: #EEE;
	z-index: 1;
	box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.25);
}

#details.hidden {
	display: none;
}

@media (min-width: 1600px) {
	
	div#wrapper {
		grid-template-columns: 1fr 1fr 1fr;
	}
	
	footer {
		grid-column-start: 1;
		grid-column-end: 4;
		grid-row-start: 2;
	}
	
	#leftPane {
		grid-column-start: 1;
		grid-row-start: 1;
	}
	
	#details {
		position: relative;
		font-size: 16px;
		margin: 20px;
		border-radius: 10px;
		max-height: calc(100% - 140px);
	}
	
	#main {
		text-align: center;
		overflow: auto;
		grid-column-start: 2;
		grid-row-start: 1;
		position: relative;
		font-size: 16px;
	}
	
	#rightPane {
		grid-column-start: 3;
		grid-row-start: 1;
	}

	#cart {
		position: relative;
		padding: 25px;
		font-size: 16px;
		margin: 20px;
		border-radius: 10px;
		max-height: calc(100% - 140px);
		overflow: auto;
	}

	#cartToggleHolder {
		display:  none;
	}

}

@media (min-width: 1000px) and (max-width: 1599px) {
	
	div#wrapper {
		grid-template-columns: 1fr 1fr;
	}
	
	footer {
		grid-column-start: 1;
		grid-column-end: 3;
		grid-row-start: 2;
	}
	
	#details {
		display: none;
		font-size: 16px;
		position: absolute;
		top: 2vh;
		left: calc((100% - 800px) / 2);
		right: calc((100% - 800px) / 2);
		max-height: 90vh;
		overflow: auto;
		border: 1px solid #333;
		box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
	}
	
	#main {
		text-align: center;
		overflow: auto;
		grid-column-start: 1;
		grid-row-start: 1;
		position: relative;
		font-size: 16px;
	}
	
	#rightPane {
		grid-column-start: 2;
		grid-row-start: 1;
	}

	#cart {
		position: relative;
		padding: 25px;
		font-size: 16px;
		margin: 20px;
		border-radius: 10px;
	}

	#cartToggleHolder {
		display:  none;
	}

}

@media (max-width: 999px) {
	
	div#wrapper {
		grid-template-columns: 1fr;
		grid-template-rows: auto max-content 60px;
	}
	
	footer {
		grid-column-start: 1;
		grid-column-end: 2;
		grid-row-start: 3;
	}
	
	#details {
		display: none;
		font-size: 16px;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 100%;
		box-sizing: border-box;
		overflow: auto;
	}
	
	#rightPane.hiddenOnPhone {
		display: none;
	}
	
	#main {
		text-align: center;
		overflow: auto;
		grid-column-start: 1;
		grid-row-start: 1;
		position: relative;
		font-size: 16px;
	}
		
	#rightPane {
		grid-column-start: 1;
		grid-row-start: 2;
		max-height: 60vh;
		box-sizing: border-box;
		overflow: auto;
		border-top: 1px solid #000;
	}
		
	#cart {
		display: block;
		padding: 10px;
		font-size: 16px;
	}

}

@media (max-width: 500px) {
	#main, #details, #cart {
		font-size: 14px;
	}
}

/* @end */

/* @group menu */

#menuJumpNav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 20px 20px;
}

#menuJumpNav.hidden {
	display: none;
}

#menuJumpNav .menuJumpButton {
	box-sizing: border-box;
	max-width: 100%;
	padding: 8px 14px;
	border: 1px solid #aaa;
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

#menuJumpNav .menuJumpButton:hover,
#menuJumpNav .menuJumpButton:focus-visible {
	border-color: #555;
	background: #eee;
	outline: none;
}

table#menu {
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
	margin: auto;
	border-collapse: collapse;
	font-size: 1em;
	width: 100%;
}

table#menu tr.type_h1 > td {
	font-weight: bold;
	font-size: 1.2em;
	padding: 0 20px;
}

table#menu tr.type_h1:not(:first-child) > td {
	padding: 20px 20px 0 20px;
}

table#menu tr.menuSectionTextFlash > td {
	animation: menuSectionTextFlash 1.4s ease-out;
}

@keyframes menuSectionTextFlash {
	0%, 20% {
		color: #00aeea;
	}
}

@media (prefers-reduced-motion: reduce) {
	table#menu tr.menuSectionTextFlash > td {
		animation-duration: 0.01ms;
	}
}

table#menu tr.type_h2 > td {
	font-weight: bold;
	padding: 10px 20px 0 20px;
}

table#menu tr.type_dish.hidden + tr.type_h2 > td {
	padding: 0 20px 0 20px;
}

table#menu tr.type_h1 + tr.type_h2 > td {
	padding: 2px 20px 0 20px;
}

table#menu tr.type_dish {
	vertical-align: top;
	font-size: 1em;
}

table#menu tr.type_dish > td {
	padding: 0 17px;
}

table#menu tr.type_dish td.number {
	color: #888;
	text-align: right;
	padding-right: 5px;
	width: 4em;
}

table#menu tr.type_dish td.number:empty {
	width: 0.5em;
}

@media (max-width: 500px) {
	#menuJumpNav {
		justify-content: center;
		flex-wrap: wrap;
		gap: 5px;
		margin: 0 10px 15px;
	}

	#menuJumpNav .menuJumpButton {
		padding: 5px 9px;
	}

	table#menu tr.type_dish td.number {
		display: none;
	}
}

table#menu span.dishIcon {
	position: relative;
	height: 1em;
	top: 3px;
	display: inline-block;
	width: 1.2em;
}

table#menu span.dishIcon svg {
	height: 1.2em;
	width: 1.2em;
}

table#menu .dishPrice {
	text-align: right;
	color: #666;
}

tr.menuItem.selected {
	background-color: rgba(253, 41, 41, 0.27);
}

tr.type_h2.collapsed > td:first-of-type::before {
	content: '▶';
	display: inline-block;
	width: 2em;
	font-size: 0.8em;
}

tr.type_h2:not(.collapsed) > td:first-of-type::before {
	content: '▼';
	display: inline-block;
	width: 2em;
	font-size: 0.8em;
}

/* @end */

/* @group productPane */

#details {
	display: grid;
	grid-template-columns: 7em auto 7em;
	grid-template-rows: max-content max-content 1fr max-content;
	row-gap: 10px;
	column-gap: 10px;
}

#productTitle {
	font-weight: bold;
	font-size: 1.2em;
	grid-column-start: 1;
	grid-column-end: 3;
	grid-row-start: 1;
}

#productSymbols {
	grid-column-start: 3;
	grid-row-start: 1;
	grid-row-end: 4;
	justify-self: end;
}

#productPrice {
	grid-column-start: 1;
	grid-row-start: 2;
}

#productScrollView {
	grid-column-start: 1;
	grid-column-end: 4;
	grid-row-start: 3;
	display: grid;
	grid-template-columns: auto;
	grid-template-rows: max-content max-content max-content max-content;
	row-gap: 10px;
	column-gap: 10px;
	overflow: auto;
	border-bottom: 1px solid #666;
	border-top: 1px solid #666;
}

#productProperties {
	grid-column-start: 2;
	grid-row-start: 2;
}

#productDescription {
	grid-column-start: 1;
	grid-row-start: 2;
}

#productAllergens {
	grid-column-start: 1;
	grid-row-start: 3;
}

#productPhoto {
	grid-column-start: 1;
	grid-row-start: 4;
	text-align: center;
}

#productPhoto > img {
	max-width: 100%;
	max-height: 250px;
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.36);
	margin-bottom: 10px;
}

#productDescription > ul, #productAllergens > ul {
	margin-top: 5px;
	font-size: 15px;
}

#productDescription > ul > li:empty {
	list-style: none;
	height: 12px;
}

#productCloseButtonHolder {
	grid-column-start: 1;
	grid-row-start: 4;
}

#productCartButtons {
	width: 100%;
	text-align: center;
	position: relative;
	grid-column-start: 2;
	grid-row-start: 4;
	display: grid;
	grid-auto-flow: column;
	gap: 5px;
	justify-content: center;
	align-items:  center;
}

#removeButtonHolder {
	grid-column-start: 1;
}

#productCounter {
	grid-column-start: 2;
}

#addButtonHolder {
	grid-column-start: 3;
}

#details .nxButtonBackground {
	margin: 0;
} 

#productOkButtonHolder {
	grid-column-start: 3;
	grid-row-start: 4;
}

#productCounter {
	color: white;
	font-weight: bold;
	font-size: 1.20em;
	background-color: black;
	padding: 0 0.8em;
	text-align: center;
	border-radius: 1em;
}

#productCartButtons div {
	display: inline-block;
}

#productSymbols svg {
	height: 2em;
	width: 2em;
}

#productProperties > span.pieceCount {
	background: #666;
	padding: 0 8px;
	margin-right: 10px;
	color: white;
	border-radius: 20px;
	font-size: 1em;
	white-space: nowrap;
}

#productProperties > span.preparationTime {
	background: #666;
	padding: 0 5px;
	margin-right: 10px;
	color: white;
	font-size: 1em;
	white-space: nowrap;
}

#productSymbols span.dishIcon {
	position: relative;
	height: 2em;
	top: 3px;
	display: inline-block;
	width: 2em;
	padding: 0.5em;
	text-align: center;
	background-color: white;
	border-radius: 2em;
	border: 1px solid #888;
}

#productSymbols span.dishIcon:not(:first-of-type) {
	margin-left: 0.5em;
}

#productPrice {
	text-align: left;
	font: 1.1em Monaco, monospace;
	font-weight: bold;
	display: inline-block;
}

@media (max-width: 390px) {
	#details {
		padding: 10px;
		display: grid;
		grid-template-columns: 6em auto 6em;
		column-gap: 0;
	}

	#productSymbols svg {
		height: 1.2em;
		width: 1.2em;
	}

	#productSymbols span.dishIcon {
		height: 1.2em;
		width: 1.2em;
		padding: 0.3em;
	}
	
	#productCloseButtonHolder, #productOkButtonHolder {
		font-size: 0.9em;
	}

}

/* @end */

/* @group cart */

#cartTitle {
	font-weight: bold;
	font-size: 1.2em;
}

#cartContents {
	width: calc(100% - 20px);
	margin:  10px;
	border-collapse: collapse;
}


#cartContents tr > td {
	padding: 5px 10px;
}

@media (max-width: 500px) {
	#cartContents {
		width: 100%;
		margin: 0;
	}
	
	#cartContents tr > td {
		padding: 5px 5px;
	}
}

#cartContents tr:nth-of-type(2n) {
	background-color: rgba(255,255,255,0.5);
}

#cartContents .quantity {
	text-align: center;
	width: 4em;
}

#cartContents .quantity .cartQuantityButtonHolder {
	vertical-align: text-bottom;
}

#cartContents .price {
	text-align: right;
	font-family: Monaco, monospace;
	width: 4em;
}

@media (max-width: 400px) {
	#cartContents .price {
		display: none;
	}
}

#cartTotal {
	text-align: right;
	font-family: Monaco, monospace;
	font-weight: bold;
	border-top: 1px solid #000;
	margin: 20px;
}

#cartButtons {
	text-align: center;
}

/* @end */

/* @group order screen */

#orderScreen {
	position: absolute;
	top: 0;
	left:  0;
	right: 0;
	bottom: 0;
	background-color: #666;
	display: grid;
	grid-template-columns: minmax(320px, 600px);
	justify-content: center;
}

#orderScreenMain {
	background-color: #EEE;
	padding: 20px;
	overflow: auto;
	max-height: 100vh;
	box-sizing: border-box;
}

form label {
	font-size: 14px;
	display: block;
	position: relative;
	margin-top: 5px;
}

form input[type=text], form input[type=password] {
	font-size: 16px;
	width: 260px;
	border: 1px solid #5a4c2d;
	color: #5a4c2d;
	background: rgba(255, 255, 255, 1);
	padding: 7px;
	border-radius: 10px;
	outline: none;
	margin-right: 5px;
}

#loginSubmitArea, #addressSubmitArea, #addressSaveArea {
	text-align: right;
	margin: 20px 0;
}

#noLoginArea {
	text-align: center;
	margin-bottom: 20px 0;
}

#deliveryAddress, #orderSummary {
	margin-left: 10px;
	margin-right: 10px;
}

#orderSummary table {
	width: 100%;
	border-collapse: collapse;
}

#orderSummary table tr > td.dishNumber {
	text-align: right;
	padding-right: 20px;
	vertical-align: top;
}

#orderSummary table tr > td.quantity {
	vertical-align: top;
	padding: 0 30px;
}

#orderSummary table tr > td.price {
	vertical-align: top;
	text-align: right;
}

#orderSummary table tr:last-of-type {
	border-top: 1px solid #666;
}

@media (max-width: 400px) {
	#orderSummary table tr > td.dishNumber {
		display: none;
	}
	
	#orderSummary table {
		font-size: 14px;
	}
}

textarea#orderComments {
	width: 100%;
	height: 6em;
	font-size: inherit;
	outline: none;
	resize: vertical;
}
/* @end */

/* @group general stuff */

div[data-activelang="FR"] *[data-lang]:not([data-lang="FR"]):not([data-lang="*"]) {
	display: none;
}

div[data-activelang="EN"] *[data-lang]:not([data-lang="EN"]):not([data-lang="*"]) {
	display: none;
}

.right {
	text-align: right;
}

.center {
	text-align: center;
}

.hidden {
	display: none!important;
}

.spaceAfter {
	margin-bottom: 20px;
}

.grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;	
}

.grid2 > div:last-child {
	text-align: right;
}

.subtext {
	padding-top: 0.5em;
	padding-left: 1.5em;
	font-size: 0.8em;
}

/* @end */


/* @group nxButtons */
.nxButton.theme_takeaway.nxButtonActive.nxButtonIconOnly,
.nxButton.theme_takeaway.nxButtonSelected.nxButtonIconOnly,
.nxButtonHovered.theme_takeaway.nxButtonIconOnly:not(.nxButtonPressed) {
	/* image button, active or selected */
	filter: brightness(120%); /* Current draft standard */
	-webkit-filter: brightness(120%);
	color: #c10082;
}

.nxButton.theme_footer.nxButtonSelected {
	/* text or mixed button, active or selected */
	color: #666;
	border-radius: 20px;
	border: none;
	background-color: white;
}

.nxButton.theme_footer {
	font-size: 1.2em;
	font-weight: bold;
	margin-left: 5px;
	padding: 5px 0;
	width: 50px;
	color: white;
}

/* @end */
