
/****************************************
  ==== RESETS
****************************************/

html, body, div, canvas {
    margin: 0;
    padding: 0;
}

::-moz-selection {
    color: #333;
    text-shadow: none;
}

::selection {
    color: #333;
    text-shadow: none;
} 

.clear:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.clear {
    display: inline-table;
    clear: both;
}
/* Hides from IE-mac \*/ * html .clear {
    height: 1%;
}

.clear {
    display: block;
}
/* End hide from IE-mac */

/****************************************
  ==== LAYOUT
****************************************/

html, body {
    width: 100%;
    height: 100%;
    font-family: Helvetica, Verdana, Arial, sans-serif;
}

#appContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 9;
	background-color: #fff !important;
}

#appContainer canvas {
	margin: 0;
	position: relative;
	z-index: 9;
	width: 100%;
	height: 100%;
}

#appContainer div {
	z-index: 10;
}

.fullscreen {
    float: right;
    position: relative;
    z-index: 10;
}

/* Startup screen fills entire page */
#startup-screen {
    width: 100%;
    height: 100%;
    z-index: 1000;
}

/* Curtain fills entire page. Used to grey out underlying
   application UI until splash is hidden. */
#curtain {
    position: absolute;
    background-color: #fff;
    opacity: 0.5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

/* Container for splash and progress UI is centered on screen */
#splash-and-loading {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    z-index:1001;
}

#splash {
    margin-left: auto;
    margin-right: auto;
    width: 610px;
    max-width: 100%;
    background-color: rgb(242, 242, 242);
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    font-family: 'Roboto', sans-serif;
    opacity: 1.0;
    transition: opacity 0.5s;
}

.splash-image {
    display: flex;
    align-items: center;
    height: 430px;
}

.splash-image img {
    width: 100%;
    height: auto;
    max-width: 430px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.client-splash-image {
    display: none;
    background-image: url();
    background-position: center;
    width: 610px;
    height: 430px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Which language to display is set by bputils.js script */
.splash-text {
    text-align: center;
}

#splash-main-caption {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 24px;
    color: rgb(60, 60, 60);
}

#splash-sub-caption {
    font-size: 16px;
    margin: 0 40px 20px 40px;
    color: rgb(128, 128, 128);
}

#splash-progress-and-button {
	position: relative;
    padding-top: 32px;
    padding-bottom: 40px;
	height: 70px;
}

#splash button {
    width: 130px;
    height: 36px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: opacity 1.0s;
	display: none;
}

/* Begin raised button style */
.raised-button {
    cursor: pointer;
    position: relative;
    border: none;
    outline: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(87, 165, 182);
    color: white;
    border-radius: 2px;
    transition: background-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.raised-button span {
    position: relative;
}

.raised-button:hover {
    background-color: rgb(72, 144, 160);
    box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.raised-button:active {
    padding: 0;
    background-color: rgb(72, 144, 160);
    box-shadow: 1px 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.raised-button:disabled {
    color: rgba(0, 0, 0, 0.26);
	background-color: rgba(0, 0, 0, 0.12);
	cursor: default;
    box-shadow: none;
}

/* This logic using ::before is to get a material design like animation effect 
   when pressing the button */
.raised-button::before {
    content: "";
    
    position: absolute;
    top: 50%;
    left: 50%;
    
    display: block;
    width: 0;
    padding-top: 0;
        
    border-radius: 100%;
    
    background-color: rgba(236, 240, 241, 0.3);
    
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease-out;
}

.raised-button:active::before {
    width: 120%;
    padding-top: 120%;
    transition: width .2s ease-out, padding-top .2s ease-out;
}
/* End raised button style */

#loading-box {
    width: 100%;
    height: 20px;
    text-align: center;
}

#loading-box-bg {
    position: absolute;
    width: 400px;
    margin-left: -200px;
    left: 50%;
    height: 4px;
    display: block;
    background-color: #d5d5d5;
    border-radius: 2px;
}

#progress-bar {
    position: absolute;
    width: 2px;
    margin-top: 1px;
    margin-left: -199px;
    left: 50%;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

#loading-text {
    color: #666;
    letter-spacing: 1px;
    position: absolute;
    width: 100%;
    font-family: "Monaco", sans-serif;
    text-transform: uppercase;
    text-align: center;
    font-size: 8px;
    margin-top: 10px;
	padding-left: 5px;
}


/* Main dialog container which fills the entire browser window.
   It places its children (dialogs) at the center of the window. */
#dialog-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact-store-dialog {
    width: 670px;
    min-height: 530px;
}

#network-error-dialog, #web-shop-dialog {
	max-width: 450px;
}

.dialog {
    display: none;
    flex-direction: column;
    max-width: 100%;
    max-height: 100%;
    z-index: 1002;
    background-color: rgb(242, 242, 242);
    border-radius: 6px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    font-family: 'Roboto', sans-serif;
}

.dialog-icons {
    display:flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin: 20px 20px 0 0;
    color: rgba(0, 0, 0, 0.537254901960784);
}

.dialog-icons i {
    cursor: pointer;
}

.dialog-contents {
    margin: 0 48px 10px 48px;
}

.dialog-title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    color: rgba(0, 0, 0, 0.867);
}

.dialog-sub-title {
    color: rgba(0, 0, 0, 0.537254901960784);
    font-size: 14px;
}

.dialog-input-text {
    box-sizing: border-box;
    padding: 10px 16px 16px 16px;
    margin: 24px 0 23px 0;
    background-color: white;
    width: 100%;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom-color:rgb(127, 127, 127);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.34901960784);
    cursor: pointer;
}

.dialog-input-text-label {
    margin: 0;
    color: rgba(0, 0, 0, 0.537254901960784);
    font-size: 12px;
}

.dialog-input-icon {
    color: rgba(0, 0, 0, 0.537254901960784);
}

.dialog-input-search {
    display: flex;
    margin-top: 15px;
}

.dialog-input-dropdown {
    width: 100%;
    border: 0;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.537254901960784);
}

.dialog-input-message textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    border: 0px none;
    margin-top: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.537254901960784);    
}

.dialog-hint-label {
    color: rgba(0, 0, 0, 0.537254901960784);
    font-size: 12px;
    margin: -16px 0 0 16px;
}

.dialog-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
}

.dialog-buttons button {
    width: 200px;
    height: 48px;
    margin: 0 auto 24px auto;
    font-size: 14px;
    font-weight: 500; 
    font-family: 'Roboto', sans-serif;
}

.flat-button {
    cursor: pointer;
    position: relative;
    border: none;
    outline: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
    color: rgb(76, 171, 186);
    border-radius: 2px;
    transition: background-color .3s;
    overflow: hidden;
}

.flat-button span {
    position: relative;
}

.flat-button:hover {
    background-color: rgb(76, 171, 186, 0.12);
}

.flat-button:active {
    padding: 0;
    background-color: rgb(76, 171, 186, 0.3);
}

/* This logic using ::before is to get a material design like animation effect 
   when pressing the button */
.flat-button::before {
    content: "";
    
    position: absolute;
    top: 50%;
    left: 50%;
    
    display: block;
    width: 0;
    padding-top: 0;
        
    border-radius: 100%;
    
    background-color:  rgb(76, 171, 186, 0.3);
    
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.flat-button:active::before {
    width: 120%;
    padding-top: 120%;
    
    transition: width .2s ease-out, padding-top .2s ease-out;
}
/* End flat button style */

.dialog-contents-sending {
    display: none;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin: 0 auto 0 auto;
}

#contact-store-progress {
    width: 83px;
    height: 83px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px auto;
}

@keyframes contact-store-progress {
    0%   {width:0; height:0; opacity: 1.0;}
    75%  {width:82px; height:82px; opacity: 1.0;}
    100% {width:82px; height:82px; opacity: 0.0;}
}

.contact-store-progress-animation-on {
    background-color: rgb(76, 171, 186);
    animation-name: contact-store-progress;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

.contact-store-progress-animation-off {
    background-color: white;
    animation-name: none;
}

#contact-store-progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
}

#contact-store-progress-indicator i {
    color: rgb(76, 171, 186);
}

#contact-store-sending-message {
    font-size: 45px;
    color: rgba(51, 51, 51, 0.537254901960784);
    text-align: center;
    margin-bottom: 60px;
}

#contact-store-sending-button {
    width: 162px;
    height: 48px;
    font-size: 14px;
    font-weight: 500; 
    font-family: 'Roboto', sans-serif;
}

#retailer-validation-message {
    display: none;
    color: red;
}

/* BEGIN autocomplete styling */
.ui-autocomplete {
    max-height: 50vh;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    z-index:1002;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.retailer-menu-item-display-name {
     font-size: 16px;
     color: rgba(0, 0, 0, 0.866666666666667);
 }

.ui-widget {    
    font-family: 'Roboto', sans-serif;
}

.ui-autocomplete-input {
    font-family: "Roboto";
    font-size: 16px;
}

/* Remove outline from textfields when they are focused */
#retailer-text:focus {
    outline: none;
    border: none;
}

#contact-store-dialog-message:focus {
    outline: none;
    border: none;
}

.ui-menu .retailer-menu-item-address.ui-menu-item-wrapper {
     font-size: 14px;
     color: rgba(0, 0, 0, 0.537254901960784);
     padding-bottom: 13px;
}

.ui-menu .retailer-menu-item.ui-menu-item-wrapper {
    margin: 0;
    border: none;
}

.retailer-menu-item.ui-menu-item-wrapper.ui-state-active {
    background-color:  rgb(87, 165, 182);
}

.retailer-menu-item-display-name.ui-menu-item-wrapper.ui-state-active {
    border: none;
    margin: 0;
    color: white;
    background-color:  rgb(87, 165, 182);
}

.retailer-menu-item-address.ui-menu-item-wrapper.ui-state-active {
    border: none;
    padding-bottom: 13px;
    margin: 0;
    color: white;
    background-color: rgb(87, 165, 182);
}

.ui-menu li:nth-child(1n+2) .retailer-menu-item {
    border-top: 1px solid lightgrey;
}
/* END autocomplete styling */

#dialog-input-search-map-button {
    display: none;
}

#project-shared-dialog-link {
    width: 100%;
    box-sizing: border-box;
}

#project-shared-dialog-link::selection {
    color: white;
    background: rgb(51, 144, 255);
}

#project-shared-dialog-link::-moz-selection {
    color: white;
    background: rgb(51, 144, 255);
}

#project-shared-dialog-copy-link-button {
    width: 80px;
    height: 24px;
    margin-left: 10px;
}

.dialog-row {
    display: flex;
    align-items: center;
}

.material-icons.md-72 { font-size: 72px; }
.material-icons.md-24 { font-size: 24px; }

.consent-section {
    margin-top: 20px;
}

.consent-option {
    display: flex;
    align-items: flex-start;
}

.contact-store-consent-text {
    margin-top: 0;
    margin-left: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.867);
}

.contact-store-consent-required-hint {
    display: none;
    font-size: 12px;
    color: red;
    margin: -12px 0 16px 16px;
}

.float-button {
    padding: 15px 50px;
    background: #223861;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

#mobile-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f2f2f2;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Roboto';
}

#mobile-warning-content {
    padding: 10%;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
}

#float-button-container {
    margin-top: 20px;
    text-align: center;
}

.mobile-warning-image {
    max-height: 60%;
    height: 100%;
    width: auto;
}

.mobile-warning-image image{
    height: 100%;
    width: auto;
}