
/* Fonts
---------------------------------------------------------------------------- */
@font-face {
	font-family: 'Open Sans';
	src: url('/media/fonts/open-sans/OpenSans-Regular-webfont.eot');
	src: url('/media/fonts/open-sans/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
		url('/media/fonts/open-sans/OpenSans-Regular-webfont.woff') format('woff'),
		url('/media/fonts/open-sans/OpenSans-Regular-webfont.ttf') format('truetype'),
		url('/media/fonts/open-sans/OpenSans-Regular-webfont.svg#open_sansregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Open Sans';
	src: url('/media/fonts/open-sans/OpenSans-Semibold-webfont.eot');
	src: url('/media/fonts/open-sans/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
		url('/media/fonts/open-sans/OpenSans-Semibold-webfont.woff') format('woff'),
		url('/media/fonts/open-sans/OpenSans-Semibold-webfont.ttf') format('truetype'),
		url('/media/fonts/open-sans/OpenSans-Semibold-webfont.svg#open_sanssemibold') format('svg');
	font-weight: bold;
	font-style: normal;
}

/* Inline SVG colors
---------------------------------------------------------------------------- */
.svg-head-fill { fill: #000; fill: var(--head-text-color); }
.svg-head-stroke { stroke: #000; stroke: var(--head-text-color); }

.head-menu.with-logo .svg-head-fill { fill: var(--home-head-text-color); }
.head-menu.with-logo .svg-head-stroke { stroke: var(--home-head-text-color); }

.svg-pane-fill { fill: #000; fill: var(--pane-text-color); }
.svg-pane-stroke { stroke: #000; stroke: var(--pane-text-color); }

.svg-accent-primary-fill { fill: #2ecc71; fill: var(--accent-primary-color); }
.svg-accent-primary-stroke { stroke: #2ecc71; stroke: var(--accent-primary-color); }

.svg-pane-semi-stroke { stroke: #000; stroke: var(--pane-text-color); opacity: 0.3; }
.svg-pane-semi-fill { fill: #000; fill: var(--pane-text-color); opacity: 0.3; }


/* Basic page settings
---------------------------------------------------------------------------- */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-family: "Open Sans", sans-serif;
	letter-spacing: -0.25px;
}

html, body {
	color: #000;
	color: var(--pane-text-color);

	padding: 0;
	margin: 0;
}

html {
	touch-action: manipulation;
	height: 100%;

	background-color: #ddd;
	background-color: var(--page-background-color);
	background-attachment: fixed;
	background-repeat: repeat;
	background-image: url(/media/app-bg.png);
}

html.ios-app {
	/* legacy cordova apps need this to actually extend 
	over the home button area at the bottom, but in mobile
	safari this will fuck up scrolling :( */
	height: 100vh;
}

body {
	margin: 0 auto;
	height: 100%;
	
	font-size: 16px;
	line-height: 1.2;
	overflow: hidden; /* prevent overscroll on iOS */
}

a {
	-webkit-touch-callout: none !important; 
 	-webkit-user-select: none !important;
 	color: var(--accent-primary-color);
 	text-decoration: none;
}

p {
	line-height: 24px;
}

h1 {
	font-size: 22px;
	font-weight: bold;
	margin: 8px 0;
	padding: 0;
}

h2 {
	font-size: 20px;
	font-weight: bold;
	margin: 8px 0;
	padding: 0;
}

h3 {
	font-size: 18px;
	font-weight: bold;
	margin: 8px 0;
	padding: 0;
}

.definition-list {}
.definition-item {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
}
.definition-title {
	color: var(--pane-text-color);
}
.definition-desc {
	color: var(--pane-title-color);
}

div.signature {
	position: relative;
	background-color: #fff;
	border-radius: 6px;
	width: 100%;
	background-image: radial-gradient(#eee 1px, #fff 0);
	background-size: 10px 10px;
	border: 1px solid #ccc;
}
span.signature-delete {
	cursor: pointer;
	color: #ff6000;
	padding: 0 12px 4px 8px;
	position: absolute;
	top: 0;
	right: 0;
	font-size: 28px;
 	user-select: none !important;
}
canvas.signature {
	width: 100%;
}


/* Layout
---------------------------------------------------------------------------- */

#app {
	position: relative;
	height: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.page-stack {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.page {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	z-index: 1;
}

.content-scroll {
	height: 100%;
	overflow: auto;
	background-color: #ddd;
	background-color: var(--page-background-color);
	background-attachment: fixed;
	background-repeat: repeat;
	background-image: url(/media/app-bg.png);
}


.head {
	margin: 0 auto;
	width: 100%;
	min-height: 58px;
	overflow: hidden;
	flex-shrink: 0;
}

.head-menu {
	width: 100%;
	display: flex;
	justify-content: space-between;
	color: var(--head-text-color);
	background-color: var(--head-background-color);
}

.head-menu.with-logo {
	background-color: var(--home-head-background-color);
	color: var(--home-head-text-color);
}

.head-logo {
	margin: 16px 0;
}

.head h1 {
	margin: 14px 0;
}

.head-back-button {
	padding: 17px 16px;
}

.head-back-button svg {
	width: 22px;
	vertical-align: middle;
}

.head-back-empty {
	width: 54px;
	display: block;
}

.head-cart-none {
	width: 54px;
	display: block;
}


.head-cart-button {
	padding: 14px 16px;
	display: inline-block;
	position: relative;
}

.head-cart-button svg,
.head-cart-empty svg {
	width: 26px;
}

.head-cart-entry-count {
	color: var(--head-text-color);
	line-height: 1;
	font-size: 10px;
	position: absolute;
	left: 26px;
	top: 17px;
	width: 16px;
	text-align: center;
	font-weight: bold;
}

.head-menu.with-logo .head-cart-entry-count {
	color: var(--home-head-text-color);
}

@keyframes cart-button-highlight {
	from, to { transform: translate(0, 0); }
	30% { transform: translate(0, 0); }
	50% { transform: translate(0, 10px); }
	80% { transform: translate(0, -4px); }
}

.head-cart-button.highlight {
	animation-name: cart-button-highlight;
	animation-duration: 0.4s;
}

.pane {
	display: block;
	padding: 12px;
	border-radius: 6px;

	background-color: #fff;
	background-color: var(--pane-background-color);
	color: #000;
	color: var(--pane-text-color);
	box-shadow: var(--pane-shadow);
	margin: 10px 8px;
}

.pane h2 {
	color: var(--pane-title-color);
}

.pane.legal {
	opacity: 0.75;
	margin-top: 1em;
	text-align: center;
	font-size: 14px;
}

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

.loader {
	content: "";
	border-radius: 50%;
	width: 48px;
	height: 48px;
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-top: 2px solid var(--pane-background-color);
	border-right: 2px solid var(--pane-background-color);
	border-bottom: 2px solid var(--pane-background-color);
	border-left: 2px solid var(--accent-primary-color);
	transform: translateZ(0);
	animation: page-loader 1.1s infinite linear;
}

.loader.inline {
	position: relative;
}


/* Notices
---------------------------------------------------------------------------- */

.pane-notice {
	background-color: #2ecc71;
	background-color: var(--notice-background-color);
	background-image: url(/media/transparent-grid.png);
	background-size: 650px;
	color: #fff;
	color: var(--notice-text-color);
}

.pane-notice h2 {
	color: var(--notice-text-color);
	line-height: 1.4;
}

.pane-notice a {
	color: #fff;
	color: var(--notice-text-color);
	text-decoration: underline;
}

/* Categories
---------------------------------------------------------------------------- */

.category {
	position: relative;
	display: block;
	height: 160px;
	padding: 18px;
	margin: 10px 8px;
	border-radius: 6px;
	overflow: hidden; /* hides flags shadow on outside */

	background-color: #fff;
	background-color: var(--pane-background-color);
	color: #000;
	color: var(--pane-text-color);
	background-position: center center;
	background-size: cover;
	box-shadow: var(--pane-shadow);	
}

.category.inactive {
	opacity: 0.5;
}

.category-title {
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0;
	padding: 22px 16px 16px 16px;

	text-shadow: 0px 0px 12px #000, 0 0 60px #000;
	color: #fff;

	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
}

.category-title svg.product-flag {
	filter: drop-shadow( 0 0 8px rgba(0, 0, 0, .8));
}

.category-title svg.product-flag .svg-accent-primary-fill {
	fill: #fff;	
}

.category-flag {
	position: absolute;
	right: 0;
	top: 12px;
	padding: 5px 5px 5px 8px;
	border-radius: 4px 0 0 4px;
	
	box-shadow: 1px 2px 10px rgba(0,0,0,.3);
	background-color: #2ecc71;
	background-color: var(--notice-background-color);
	color: #fff;
	color: var(--notice-text-color);

	font-size: 87.5%;
	line-height: 1.4;
}

.category-flag.inactive {
	background-color: #444;
	color: #bbb;
	opacity: 0.6;
	box-shadow: none;
}

.category-flag-description {
	opacity: 0.8;
	font-size: 80%;
}


.head-image {
	position: relative;
	display: block;
	background-position: center center;
	background-size: cover;
	height: 240px;
	border-radius: 0;
	margin: 0;
	border-radius: 0 0 6px 6px;
}

.head-description {
	background-color: #fff;
	background-color: var(--pane-background-color);
	color: #000;
	color: var(--pane-text-color);
	padding: 8px 16px 8px 16px;
	margin: -24px 8px 16px 8px;
	border-radius: 6px;
	z-index: 1;
	position: relative;
	font-size: 87.5%;
	line-height: 21px;
	box-shadow: var(--pane-shadow);
}

.product-divider {
	color: var(--page-headline-color);
	margin: 32px 0 0 0;
	padding: 0 8px;
}

.product-divider p {
	margin: 0.5em 0 1em 0;
}

.product-price-line {
	text-align: right;
}

.product-price {
	display: inline-block;
	color: #2ecc71;
	color: var(--accent-primary-color);

	font-weight: bold;
	border: 2px solid;
	padding: 6px 8px 6px 8px;
	border-radius: 4px;
}
.product-price:after {
	content: '';
	display: block;
	clear: both;
}

.product-old-price {
	text-decoration: line-through;
	opacity: 0.5;
	margin-right: 8px;
	font-size: 16px;
}


/* Product
---------------------------------------------------------------------------- */

.product-pane {
	min-height: calc(100% - 20px); /* - margin */
	padding-bottom: 128px;
}
.product-pane.product-pane-with-image {
	min-height: calc(100% - 260px); /* - (head-image + margin) */
}

.product-description {}

.product-additives,
.choice-additives {
	vertical-align: super;
	opacity: 0.8;
	font-size: 11px;
	margin-left: 4px;
}

.variant-select {
	color: #000;
	color: var(--pane-text-color);

	line-height: 1;
	padding: 12px 8px;
	border: 2px solid #000;
	border: 2px solid var(--pane-text-color);
	cursor: pointer;
	margin: 8px 4px 0 0;
	text-align: center;
	display: inline-block;
	min-width: 92px;
	border-radius: 4px;
}

.variant-select.active  {
	background-color: #000;
	background-color: var(--accent-primary-color);

	color: #fff;
	color: var(--accent-secondary-color);

	border: 2px solid #000;
	border: 2px solid var(--accent-primary-color);
}

.choice-group {
	margin-top: 48px;
}

.choice-icon {
	position: relative;
	user-select: none;
	margin-right: 4px;
}

.choice-icon svg {
	display: inline-block;
	width: 18px;
	height: 18px;
	vertical-align: middle;
	margin: -4px 5px 0 0;
}

.choice {
	cursor: pointer;
	padding: 12px 0 12px 0;
	border-bottom: 1px solid #eee;
	border-color: var(--separator-color);
	display: flex;
	justify-content: space-between;
}

.choice:last-child {
	border-bottom: none;
}

.choice.disabled {
	opacity: 0.5;
}

.choice-name {
	flex-grow: 1;
}

.choice.active .choice-price {
	color: #2ecc71;
	color: var(--accent-primary-color);
}

.choice-price {
	flex-shrink: 0;
}

.choice-detail {
	padding-top: 8px;
	font-size: 14px;
}

.choice-with-select .choice-icon {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	padding: 14px 0 0 0;
	width: 23px;
}
.choice-with-select .choice-detail {
	padding: 0 0 0 27px;
}
.choice-with-select .choice-price {
	padding: 12px 0;
}

.choice-with-select {
	padding: 0;
	position: relative;
}

.choice-select {
	cursor: pointer;
	width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-size: 16px;
	border: 0;
	margin: 0;
	padding: 12px 0 12px 27px;
	background-color: var(--pane-background-color);
	text-overflow: ellipsis;
	overflow: hidden;
	color: #000;
	color: var(--pane-text-color);
	position: relative;
}

.choice-price.inactive {
	opacity: 0.3;
}

.choice-count {
	margin: 0 12px 0 8px;
}

.choice-multi-remove {
	position: absolute;
	display: block;
	right: -12px;
	top: -16px;
	width: 48px;
	height: 48px;
}

.tip-wrap {
	position: relative;
	cursor: pointer;
	padding: 12px 0 4px 0;
	display: flex;
	justify-content: space-between;
}

.tip-icon {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	padding: 10px 0 0 0;
	width: 23px;
}

select.tip-select {
	cursor: pointer;
	width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-size: 16px;
	border: 0;
	margin: 0;
	padding: 12px 0 12px 34px;
	background-color: var(--pane-background-color);
	text-overflow: ellipsis;
	overflow: hidden;
	color: #000;
	color: var(--accent-primary-color);
	position: relative;
}

.tip-price {
	flex-shrink: 0;
	padding: 12px 0;
}

.tip-price.inactive {
	opacity: 0.3;
}


@keyframes choice-group-highlight {
	0%, 40%, 100% {
		color: var(--pane-text-color);
	}
	20%, 60% {
		color: var(--accent-primary-color);
	}
}

.choice-group.highlight {
	animation-name: choice-group-highlight;
	animation-duration: 600ms;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
}


.grand-total {
	color: var(--pane-title-color);
	font-size: 20px;
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 8px 0 8px 0;
	font-weight: bold;
}

.grand-total-price {
	
}

.grand-total-total {
	font-size: 16px;
}

.payment-description {
	padding: 8px 0 16px 0;
}
.payment-description h3 {
	margin: 0;
	padding: 4px 0 4px 0;
	font-size: 16px;
	font-weight: normal;
}

.payment-description p {
	margin: 0;
	padding: 0;
	font-size: 14px;
}

svg.product-flag {
	margin-left: 8px;
	vertical-align: -6px;
}

span.product-flag-name {
	text-transform:capitalize;
	color: var(--accent-primary-color);
	display: inline-block;
	margin-right: 12px;
}

span.product-flag-name svg.product-flag {
	margin-left: 0;
}

span.product-number {
	opacity: 0.3;
	margin-right: 0.2em;
}

.product-add {
	position: fixed;
	padding: 0 16px 24px 16px;
	width: 100%;
	bottom: 8px;
	left: 0;
	z-index: 100;
}

.product-add-button {
	background-color: #2ecc71;
	background-color: var(--accent-primary-color);
	color: #fff;
	color: var(--accent-secondary-color);

	-webkit-appearance: none;
	border-radius: 0;
	cursor: pointer;
	border: 0;
	font-size: 21px;
	font-weight: bold;
	width: 100%;
	margin: 16px 0;
	padding: 12px 8px;
	text-align: center;
	cursor: pointer;
	border-radius: 4px;
	box-shadow: 0px 2px 2px rgba(0,0,0,.25);
	display: block;
	margin: 0 auto;
}

.product-add-button.disabled {
	background-color: #888;
	color: #fff;
}

@keyframes product-add-press {
	from, to { transform: scale(1, 1); }
	30% { transform: scale(0.9, 0.9); }
}

.product-add-button.highlight {
	animation-name: product-add-press;
	animation-duration: 0.25s
}

@keyframes product-add-loader {
	0% { width: 0; opacity: 0; }
	20% { width: 100%; opacity: 1;}
	100% { width: 100%; opacity: 0;}
}

.product-add-button.highlight:after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 100%;
	background: rgba(255, 255, 255, 0.3);
	animation: product-add-loader 0.25s 1 ease-out;
	animation-fill-mode: both;
}



/* Cart
---------------------------------------------------------------------------- */

.cart-empty-notice {
	text-align: center;
	opacity: 0.5;
}

.cart-empty-back {
	text-align: center;
}

.cart-entry {
	border-bottom: 1px solid #eee;
	border-color: var(--separator-color);
	margin-bottom: 12px;
	padding-bottom: 12px;
}

.cart-entry:last-child {
	border: none;
	padding-bottom: 0;
}

.cart-entry-head {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

@keyframes cart-entry-count-highlight {
	from, to { transform: translate(0, 0); }
	30% { transform: translate(0, 0); }
	50% { transform: translate(0, 10px); }
	80% { transform: translate(0, -4px); }
}

.cart-entry-count {
	display: inline-block;
	position: relative;
}

.cart-entry-count.highlight {
	animation-name: cart-entry-count-highlight;
	animation-duration: 0.4s;
}

.cart-entry-remove {
	cursor: pointer;
	color: #2ecc71;
	color: var(--accent-primary-color);

	padding: 0 0 4px 8px;
	font-size: 28px;
}

.cart-entry-detail {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.cart-entry-description {
	line-height: 1.6;
	flex-grow: 1;
}


.cart-entry-comment-add {
	color: var(--accent-primary-color);
	cursor: pointer;
}

input[type=text].cart-entry-comment-input {
	display: none;
	padding: 0;
	background-color: var(--pane-background-color);
	color: var(--accent-primary-color);
	border: 0;
	font-size: 16px;
	line-height: 1.6;
}

.cart-entry-comment.has-comment .cart-entry-comment-add {
	display: none;
}

.cart-entry-comment.has-comment .cart-entry-comment-input {
	display: block;
}



.cart-entry-price {
	font-size: 16px;
}

.cart-position {
	font-size: 16px;
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 4px 0;
}

.cart-add-coupon {
	margin: 8px 0 16px 0;
	font-size: 16px;
	cursor: pointer;
	color: var(--accent-primary-color);
}

.cart-add-coupon svg {
	vertical-align: -6px;
	margin-right: 8px;
}

.coupon-input-row {
	margin-top: 8px;
	margin-bottom: 24px;
}

.coupon-input {
	display: flex;
	align-content: stretch;
}

.coupon-input-code {
	flex-grow: 2;
	flex-basis: 50%;
	margin-right: 8px;
	text-transform: uppercase;
}

.coupon-input-redeem {
	text-align: center;
	cursor: pointer;
	font-size: 18px;
	padding: 11px 8px;
	
	background: none;
	color: #000;
	color: var(--pane-title-color);

	flex-grow: 1;
	flex-basis: 25%;

	font-weight: bold;
	border: 2px solid var(--pane-title-color);
	padding: 6px 8px 6px 8px;
	border-radius: 4px;

	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	appearance: none;
}

.coupon-warn {
	font-size: 14px;
	margin-top: 16px;
	color: var(--accent-primary-color);
}



.coupon {
	margin: 16px 0;
	padding: 0 0 16px 0;
	border-bottom: 1px solid #eee;
	border-color: var(--separator-color);
	display: flex;
	justify-items: space-between;
}

.coupon:last-child {
	border: none;
	margin-bottom: 0;
}

.coupon-description {
	font-size: 16px;
	flex-grow: 1;
}

.coupon-detail {
	margin-top: 12px;
	font-size: 14px;
}

.coupon-code {
	margin: 0 4px;
	font-style: italic;
}

.coupon-remove {
	color: #2ecc71;
	color: var(--accent-primary-color);

	margin-top: -8px;
	padding: 0 0 0 0;
	font-size: 28px;
	cursor: pointer;
	text-align: right;
}

.payment-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.payment-choice {
	flex: 1 1 0px;
	cursor: pointer;
	display: flex;
	height: 44px;
	min-width: 120px;
	padding: 0 12px;
	line-height: 44px;
	border-radius: 4px;
	border: 1px solid var(--separator-color);
	text-align: center;
	align-items: center;
	justify-content: center;
	color: var(--accent-primary-color);
	font-weight: bold;
}
.payment-choice svg {
	margin-right: 4px;
}

.payment-choice .payment-option-fill {
	fill: var(--accent-primary-color);
}

.payment-choice.active {
	background-color: var(--accent-primary-color);
	border-color: var(--accent-primary-color);
	color: var(--pane-background-color);;
}

.payment-choice.active .payment-option-fill {
	fill: var(--pane-background-color);
}

input[type=text],
input[type=tel],
input[type=email],
textarea {
	font-size: 18px;
	padding: 8px 8px;
	width: 100%;
	
	color: #000;
	color: var(--input-text-color);

	background: #ccc;
	background: var(--input-background-color);

	border: 0;
	border-radius: 6px;
}

input::placeholder, textarea::placeholder {
	color: #000;
	color: var(--input-text-color);
	opacity: 0.5;
}

@keyframes flash-invalid {
	0%, 40%, 100% {
		background-color: var(--input-background-color);
	}
	20%, 60% {
		background-color: var(--accent-primary-color);
	}
}

input.invalid, select.invalid {
	animation-name: flash-invalid;
	animation-duration: 900ms;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
}

.form {
	padding-top: 16px;
}

.form-row-street {
	display: flex;
}

.form-street-name {
	width: 75%;
	margin-right: 8px;
}

.form-street-number {
	width: 25%;
}

.inline-warn {
	font-weight: bold;
	color: var(--accent-primary-color);
	margin: 0 0 4px 0;
}

.inline-warn svg {
	vertical-align: -3px;
}

.form-warn {
	display: block;
	margin: 16px 0 2px 4px;
	font-size: 14px;
	color: #000;
	color: var(--accent-primary-color);
	opacity: 0.8;
}

.form-warn svg {
	vertical-align: -2px;	
}

.form-description {
	display: block;
	margin: 16px 0 2px 4px;
	font-size: 14px;
	color: #000;
	color: var(--pane-text-color);
	opacity: 0.8;
}

.button-submit-container {
	padding: 16px 8px 48px 8px;
}

.button-submit {
	position: relative;
	background-color: #2ecc71;
	background-color: var(--accent-primary-color);
	color: #fff;
	color: var(--accent-secondary-color);

	-webkit-appearance: none;
	cursor: pointer;
	border: 0;
	font-size: 21px;
	font-weight: bold;
	margin: 0;
	padding: 12px 8px;
	text-align: center;
	cursor: pointer;
	border-radius: 4px;
	box-shadow: 0px 2px 2px rgba(0,0,0,.25);

	display: block;
	inline-size: 100%;
}

.button-submit.disabled {
	background-color: #888;
	color: #fff;
}

@keyframes button-submit-anim { 
	0% {transform: rotate(0deg); } 
	100% { transform: rotate(360deg);}
}

.button-submit.submitted {
	text-indent: -9999px;
}

.button-submit.submitted:before {
	content: "";
	border-radius: 50%;
	width: 32px;
	height: 32px;
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-top: 2px solid rgba(255, 255, 255, 0.2);
	border-right: 2px solid rgba(255, 255, 255, 0.2);
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	border-left: 2px solid #ffffff;
	transform: translateZ(0);
	animation: button-submit-anim 1.1s infinite linear;
}




/* Modal
---------------------------------------------------------------------------- */

body.modal-active #app {
	filter: blur(4px);
}

.modal-background-blind {
	z-index: 190;
	background-color: var(--page-background-color);
	opacity: 0.4;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.modal {
	z-index: 200;
	position: fixed;
	margin: auto;
	background-color: #fff;
	background-color: var(--pane-background-color);
	color: #000;
	color: var(--pane-text-color);
	border-radius: 6px;

	top: 10vh;
	left: 16px;
	right: 16px;
	max-width: 500px;
	padding: 12px;
	text-align: center;
	max-height: 80vh;
	overflow: auto;
	box-shadow: 0px 8px 32px rgba(0,0,0,.125), 0px 0 8px rgba(0,0,0,.125);
}

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

.modal-icon svg {
	width: 24px;
	height: 24px;
	margin-top: 16px;
}

.modal-buttons {
	margin-top: 2em;
	padding: 0 8px;
	display: flex;
	align-content: flex-start;
	justify-content: space-between;
}

.modal-button {
	background-color: #2ecc71;
	background-color: var(--accent-primary-color);
	color: #fff;
	color: var(--accent-secondary-color);

	-webkit-appearance: none;
	cursor: pointer;
	border: 0;
	font-size: 18px;
	font-weight: bold;
	margin: 0 0 8px 0;
	padding: 12px 8px;
	text-align: center;
	cursor: pointer;
	border-radius: 4px;
	box-shadow: 0px 2px 2px rgba(0,0,0,.125);

	display: block;
	inline-size: 100%;
}

.modal-button-cancel {
	margin-right: 8px;
	background-color: #888;
	color: #fff;
}


/* Store select
---------------------------------------------------------------------------- */

.store-select-intro {
	display: flex;
	margin: 24px 0 48px;
}

.store-select-map {
	width: 80px;
	height: 66px;
}

.store-select-intro-text {
	font-size: 120%;
	margin: 0 1em 0 1em;
}

.zip-select-form {
	margin-bottom: 48px;
}

.zip-select-row {
	display: flex;
}

.zip-select-input {
	flex-grow: 2;
	flex-basis: 50%;
	margin-top: 6px;
	margin-right: 8px;
	background-image: url(/media/map-pin-icon.svg);
	background-repeat: no-repeat;
	background-size: 20px 24px;
	background-position: 14px 10px;
	padding-left: 44px;
}

button.zip-select-submit {
	margin-top: 6px;
	text-align: center;
	cursor: pointer;
	font-size: 18px;
	padding: 11px 8px;
	
	background: var(--accent-primary-color);
	color: #000;
	color: var(--accent-secondary-color);

	flex-grow: 1;
	flex-basis: 25%;

	font-weight: bold;
	border: 0;
	padding: 6px 8px 6px 8px;
	border-radius: 4px;

	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	appearance: none;
}

.store-select-item {
	color: var(--pane-text-color);
	cursor: pointer;
	display: flex;
	cursor: pointer;
	padding: 24px 0 24px 0;
	margin: 0;
	border-bottom: 1px solid var(--separator-color);
}

.store-select-item:last-child {
	border-bottom: 0;
}

.store-select-item h2 {
	margin: 0 0 4px 0;
}

.store-icon {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	vertical-align: middle;
	margin-right: 16px;
	margin-bottom: 12px;
	box-shadow: 0px 0px 12px rgba(0,0,0,0.1);
}

.store-features {
	padding: 24px 0 4px 0;
}
.store-feature {
	margin-right: 24px;
}

span.store-feature-icon svg {
	display: inline-block;
	max-height: 20px;
	vertical-align: middle;
	margin: -6px 8px 0 0;
}

.order-complete-notice {
	text-align: center;
	padding-bottom: 32px;
}

.app-icon {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	vertical-align: middle;
	margin-right: 12px;
}

.app-install-text {
	text-align: left;
	font-weight: bold;
}

.app-install-button {
	background-color: #000;
	background-color: var(--accent-primary-color);
	color: #fff;
	color: var(--accent-secondary-color);

	display: inline-flex;
	align-items: center;
	font-size: 22px;
	margin: 48px 0 32px 0;
	border-radius: 8px;
	padding: 16px;
}


/* Legal
---------------------------------------------------------------------------- */

.legal-menu-items {
	margin-top: 44px;
}

.legal-menu-icon svg {
	display: inline-block;
	width: 24px;
	height: 24px;
	vertical-align: middle;
	margin: -4px 5px 0 0;
	font-weight: bold;
}

.pane.contact-map {
	padding: 0;
}

.pane.contact-map img {
	display: block;
	border-radius: 6px;
	max-width: 100%;
}


/* Animations
---------------------------------------------------------------------------- */

@keyframes page-slide-in-from-right { from { transform: translateX(100%); } to { transform: translateX(  0%); } }
@keyframes page-slide-in-from-left  { from { transform: translateX(-30%); } to { transform: translateX(  0%); } }
@keyframes page-slide-out-to-left   { from { transform: translateX(  0%); } to { transform: translateX(-30%); } }
@keyframes page-slide-out-to-right  { from { transform: translateX(  0%); } to { transform: translateX(100%); } }

@keyframes head-show  { 0% { opacity: 0; } 25% { opacity: 1; } }
@keyframes head-hide  { 0%, 25% { opacity: 1; } 100% { opacity: 0; } }

.slide-in-from-right .content-scroll,
.slide-in-from-right .product-add {
	animation: page-slide-in-from-right;
	animation-timing-function: ease-in-out;
	animation-duration: 200ms;
	transform: translateX(0%);
}
.slide-in-from-left .content-scroll,
.slide-in-from-left .product-add {
	animation: page-slide-in-from-left;
	animation-timing-function: ease-in-out;
	animation-duration: 200ms;
	transform: translateX(0%);
}
.slide-out-to-left .content-scroll,
.slide-out-to-left .product-add {
	animation: page-slide-out-to-left ;
	animation-timing-function: ease-in-out;
	animation-duration: 200ms;
	transform: translateX(-30%);
}
.slide-out-to-right .content-scroll,
.slide-out-to-right .product-add {
	animation: page-slide-out-to-right;
	animation-timing-function: ease-in-out;
	animation-duration: 200ms;
	transform: translateX(100%);
}

.slide-in-from-left .head,
.slide-in-from-right .head {
	animation: head-show;
	animation-timing-function: ease-in-out;
	animation-duration: 100ms;
}

.slide-out-to-left .head,
.slide-out-to-right .head {
	animation: head-hide;
	animation-timing-function: ease-in-out;
	animation-duration: 200ms;
	opacity: 0;
}


/* iPhone Screen size fixes
---------------------------------------------------------------------------- */

/* Move everything in the status bar down by a few pixels if we are
on ios, so that we have a nice, plain background for the status bar */


@supports(padding: max(0px)) {
	.head-menu {
		padding-top: max(0px, calc(env(safe-area-inset-top) - 4px));
	}
	.product-add {
		/* iPhone X - use smaller safe inset or zero */
		bottom: max(0px, calc(env(safe-area-inset-bottom) - 12px));
	}
}


/* Large screen overwrites
---------------------------------------------------------------------------- */

.sidebar {
	display: none;
}

.sidebar-cart-header {
	display: flex;
	justify-content: space-between;
	padding-bottom: 16px;
}

.sidebar-cart-button {
	padding: 6px 0;
	display: inline-block;
	position: relative;
}

.sidebar-cart-button svg,
.sidebar-cart-empty svg {
	width: 26px;
}

.sidebar-cart-entry-count {
	color: var(--head-text-color);
	line-height: 1;
	font-size: 10px;
	position: absolute;
	left: 10px;
	top: 9.5px;
	width: 16px;
	text-align: center;
	font-weight: bold;
}

.sidebar-cart-button.highlight {
	animation-name: cart-button-highlight;
	animation-duration: 0.4s;
}



/* Grid align main menu (2x2) for width > 640px */
@media ((min-width: 640px) and (max-width: 800px)) or (min-width: 1024px) {
	.categories-grid {
		margin: 10px 8px 0 8px;
	}
	.category {
		height: 196px;
	}
	.category:nth-child(even) {
		margin: 0 0 10px 0;
		width: 49.35%;
		float: right;
	}
	.category:nth-child(odd) {
		margin: 0 0 10px 0;
		width: 49.35%;
		float: left;
	}
	.legal-menu-items {
		clear: both;
		padding-top: 24px;
	}
}

@media (min-width: 800px) {
	body {
		overflow: auto;
	}
	#app {
		padding: 0 8px;
		height: auto;
	}
	.head {
		position: sticky;
		max-width: 1424px;
		z-index: 100;
		padding-top: 10px;
		top: 0;

		background-color: #ddd;
		background-color: var(--page-background-color);
		background-attachment: fixed;
		background-repeat: repeat;
		background-image: url(/media/app-bg.png);
	}
	.head-menu {
		border-radius: 6px;
	}
	.head-image {
		margin-top: 10px;
		border-radius: 6px;
	}
	.page-stack {
		position: static;
	}
	.page {
		position: static;
		display: none;
		overflow-x: visible;
		height: auto;
		padding-bottom: 64px;
	}
	.page:last-child {
		display: block;
	}
	.content-scroll {
		overflow: visible;
		background: none;
		width: 60%;
	}
	.product-add {
		position: relative;
		top: -80px;
		left: 0;
		width: 60%;
		padding: 0 8px 8px 8px;
		max-width: none;
	}

	.pane, .category, .categories-grid {
		margin-left: 0;
		margin-right: 0;
	}

	.sidebar {
		display: block;
		top: 0;
		right: 8px;
		left: 60%;
		padding-left: 8px;
		position: absolute;
		height: 100%;
	}

	.cart-container {
		position: sticky;
		margin-top: 76px;
		top: 76px;
	}
	.head-cart-button {
		visibility: hidden;
	}

	.definition-list {
		display: flex;
		justify-content: space-between;
	}
	.definition-item {
		display: block;
		border-right: 1px solid var(--separator-color);
		padding: 0 4px 0 8px;
		flex-grow: 1;
	}
	.definition-desc {
		padding: 4px 0 0 0;
	}
	.definition-item:last-child {
		border: none;
	}
}

.suggest {
	width: 100%;
}

.suggest-list {
	z-index: 100;
	position: relative;
	width: 100%;
}

.suggest-items {
	position: absolute;
	background-color: var(--pane-background-color);
	color: var(--pane-text-color);
	top: 8px;
	left: 0;
	width: 100%;
	box-shadow: 0 10px 12px rgba(0,0,0, 0.56);
	overflow: auto;
}

.suggest-item {
	cursor: pointer;
	padding: 8px;
	border: 1px solid var(--pane-background-color);
}

.suggest-item:hover {
	border-color: var(--accent-primary-color);	
}

.suggest-item.active {
	background-color: var(--accent-primary-color);
	color: var(--accent-secondary-color);
}



/* In-App Browser
---------------------------------------------------------------------------- */

.in-app-browser {
	background-color: #fff;
	background-color: var(--pane-background-color);
	color: #000;
	color: var(--pane-text-color);
	position: fixed;
	left: 0;
	right: 0;
	top: 80px;
	bottom: 0;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	z-index: 1000;
}

.in-app-browser-title {
	position: absolute;
	top: 0;
	left: 16px;
	right: 48px;
	padding: 14px 0;
	overflow-x: hidden;
}

.in-app-browser-close {
	color: var(--accent-primary-color);
	position: absolute;
	top: 0;
	right: 0;
	padding: 14px 24px;
	font-size: 18px;
	z-index: 1000;
	cursor: pointer;
}

.in-app-browser iframe {
	border: 0;
	border-top: 1px solid var(--accent-primary-color);
	position: absolute;
	top: 48px;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
}
