@charset "UTF-8";
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: local("Roboto"), local("Roboto-Regular"), url("../fonts/roboto_cyrillic-ext_latin_cyrillic-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  src: local("Roboto Black"), local("Roboto-Black"), url("../fonts/roboto_cyrillic-ext_latin_cyrillic-900.ttf") format("truetype");
}
@font-face {
  font-family: "pwa-app-icons";
  src: url("../fonts/pwa-app-icons.ttf?duw1uf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.pwa-icon {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "pwa-app-icons" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pwa-icon-order:before {
  content: "";
}

.pwa-icon-payment:before {
  content: "";
}

html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  /* Disables pull-to-refresh but allows overscroll glow effects. */
  font-family: Roboto, sans-serif;
  font-size: 15px;
  color: #333333;
  background-color: #f7f7f7;
}
body *,
body *:before,
body *:after {
  box-sizing: border-box;
}

.app-layout {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.app-layout nav.app {
  position: relative;
  z-index: 40;
  flex: 0 0 52px;
}
@media screen and (min-height: 650px) {
  .app-layout nav.app {
    flex: 0 0 65px;
  }
}
.app-layout main.app {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
}
.app-layout main.app {
  position: relative;
  -webkit-overflow-scrolling: touch;
  overflow-y: scroll;
  height: 100%;
}
.app-layout main.app iframe {
  border: none;
  display: block;
  width: 100%;
  height: 100%;
}

body:before {
  visibility: hidden;
  content: "";
  display: block;
  position: fixed;
  z-index: 35;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: white;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
body.loading:before, body.offline:before {
  visibility: visible;
}

.app-loading {
  z-index: 20;
  visibility: hidden;
}
body.loading .app-loading {
  visibility: visible;
}

.app-offline {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f7f7f7;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
body.offline .app-offline {
  visibility: visible;
}
.app-offline .app-offline-message {
  text-align: center;
}
.app-offline .app-offline-message .app-offline-logo {
  height: 36px;
  background: url("/pwa/assets/i/talon-logo.png") no-repeat center center;
  background-size: 120px 36px;
}
.app-offline .app-offline-message .app-offline-icon {
  margin: 30px 0 16px;
  height: 92px;
  background: url("/pwa/assets/i/offline.png") no-repeat center center;
  background-size: 96px 92px;
}
.app-offline .app-offline-message .app-offline-message {
  font-size: 21px;
  font-weight: bold;
}

body.offline main.app iframe {
  visibility: hidden;
}

nav.app {
  height: 52px;
  color: #333333;
  background-color: #fff2e6;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}
@media screen and (min-height: 650px) {
  nav.app {
    height: 65px;
  }
}

.nav-group {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}
.nav-group .nav-button {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.nav-group .nav-button .nav-button-icon {
  margin-top: 2px;
  margin-right: 6px;
  color: #ff6600;
  font-size: 24px;
  line-height: 1;
}
.nav-group .nav-button .nav-button-text {
  font-size: 15px;
}
.nav-group .nav-button + .nav-button:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: 1px solid #ffc8a3;
}
.nav-group .nav-button.nav-button-selected {
  color: white;
  background-color: #ff6600;
}
.nav-group .nav-button.nav-button-selected .nav-button-icon {
  color: white;
}

.spinner {
  width: 300px;
  height: 300px;
  background: url("/pwa/assets/i/spinner.svg") no-repeat center center;
}

.cover-spinner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f7f7f7;
}
.cover-spinner:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 300px;
  height: 300px;
  background: url("/pwa/assets/i/spinner.svg") no-repeat center center;
}

/*
body.offline {

  // &:after {
  //   position: fixed;
  //   z-index: 10000;
  //   top: 3px;
  //   right: 3px;

  //   display: inline-block;
  //   vertical-align: top;

  //   padding: 2px 6px;
  //   border-radius: 2px;
  //   color: white;
  //   background-color: red;

  //   content: 'Offline';
  // }

  main.app {

    iframe {
      visibility: hidden;
    }

  }

}
*/
@keyframes update-animation {
  from {
    transform: translateY(150%);
  }
  to {
    transform: translateY(0);
  }
}
.update-notify {
  transform: translateY(150%);
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: #ff6600;
  padding: 14px 10px;
}
.update-notify .message {
  flex: 1 1 auto;
  padding-right: 10px;
}
.update-notify .action {
  flex: 0 0 auto;
}
.update-notify .action a {
  display: block;
  border: 1px solid white;
  border-radius: 2px;
  padding: 9px 12px;
  font-weight: 900;
  color: white;
  text-decoration: none;
}

body.update-available .update-notify {
  animation: update-animation 0.3s ease;
  animation-fill-mode: both;
}
