.offline-ui, .offline-ui *, .offline-ui:before, .offline-ui:after, .offline-ui *:before, .offline-ui *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

.offline-ui {
  display: none;
  position: fixed;
  background: white;
  z-index: 1800;
  margin: auto;
  top: 0;
  left: 0;
  right: 0; }
  .offline-ui .offline-ui-content:before {
    display: inline; }
  .offline-ui .offline-ui-retry {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: none; }
    .offline-ui .offline-ui-retry:before {
      display: inline;
      content: "Reconnect"; }
  .offline-ui.offline-ui-up .offline-ui-content:before {
    content: "Your computer is connected to the internet. "; }
    @media (max-width: 1024px) {
      .offline-ui.offline-ui-up .offline-ui-content:before {
        content: "Your device is connected to the internet. "; } }
    @media (max-width: 568px) {
      .offline-ui.offline-ui-up .offline-ui-content:before {
        content: "Your device is connected. "; } }
  .offline-ui.offline-ui-up.offline-ui-up-5s {
    display: block; }
  .offline-ui.offline-ui-down {
    display: block; }
    .offline-ui.offline-ui-down .offline-ui-content:before {
      content: "Your computer lost its internet connection. "; }
      @media (max-width: 1024px) {
        .offline-ui.offline-ui-down .offline-ui-content:before {
          content: "Your device lost its internet connection. "; } }
      @media (max-width: 568px) {
        .offline-ui.offline-ui-down .offline-ui-content:before {
          content: "Your device isn't connected. "; } }
    .offline-ui.offline-ui-down.offline-ui-connecting .offline-ui-content:before, .offline-ui.offline-ui-down.offline-ui-connecting-2s .offline-ui-content:before {
      content: "Attempting to reconnect... "; }
    .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-retry {
      display: block; }
    .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content:before {
      content: "Attempting to reconnect in " attr(data-retry-in) "... "; }
      @media (max-width: 568px) {
        .offline-ui.offline-ui-down.offline-ui-waiting .offline-ui-content:before {
          content: "Connecting in " attr(data-retry-in-abbr) "... "; } }
    .offline-ui.offline-ui-down.offline-ui-reconnect-failed-2s.offline-ui-waiting .offline-ui-retry {
      display: none; }
    .offline-ui.offline-ui-down.offline-ui-reconnect-failed-2s .offline-ui-content:before {
      content: "Connection attempt failed. "; }

@-webkit-keyframes offline-fadein {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@-moz-keyframes offline-fadein {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@-ms-keyframes offline-fadein {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@-o-keyframes offline-fadein {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@keyframes offline-fadein {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@-webkit-keyframes offline-fadeout-and-hide {
  0% {
    opacity: 1;
    display: block; }

  99% {
    opacity: 0;
    display: block; }

  100% {
    opacity: 0;
    display: none; } }

@-moz-keyframes offline-fadeout-and-hide {
  0% {
    opacity: 1;
    display: block; }

  99% {
    opacity: 0;
    display: block; }

  100% {
    opacity: 0;
    display: none; } }

@-ms-keyframes offline-fadeout-and-hide {
  0% {
    opacity: 1;
    display: block; }

  99% {
    opacity: 0;
    display: block; }

  100% {
    opacity: 0;
    display: none; } }

@-o-keyframes offline-fadeout-and-hide {
  0% {
    opacity: 1;
    display: block; }

  99% {
    opacity: 0;
    display: block; }

  100% {
    opacity: 0;
    display: none; } }

@keyframes offline-fadeout-and-hide {
  0% {
    opacity: 1;
    display: block; }

  99% {
    opacity: 0;
    display: block; }

  100% {
    opacity: 0;
    display: none; } }

@-webkit-keyframes offline-rotation {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg); }

  100% {
    transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    -moz-transform: rotate(359deg);
    -ms-transform: rotate(359deg);
    -o-transform: rotate(359deg); } }

@-moz-keyframes offline-rotation {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg); }

  100% {
    transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    -moz-transform: rotate(359deg);
    -ms-transform: rotate(359deg);
    -o-transform: rotate(359deg); } }

@-ms-keyframes offline-rotation {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg); }

  100% {
    transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    -moz-transform: rotate(359deg);
    -ms-transform: rotate(359deg);
    -o-transform: rotate(359deg); } }

@-o-keyframes offline-rotation {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg); }

  100% {
    transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    -moz-transform: rotate(359deg);
    -ms-transform: rotate(359deg);
    -o-transform: rotate(359deg); } }

@keyframes offline-rotation {
  0% {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg); }

  100% {
    transform: rotate(359deg);
    -webkit-transform: rotate(359deg);
    -moz-transform: rotate(359deg);
    -ms-transform: rotate(359deg);
    -o-transform: rotate(359deg); } }

.offline-ui {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  font-family: "Helvetica Neue", sans-serif;
  white-space: nowrap;
  padding: 1em;
  top: 1em;
  width: 34em;
  max-width: 100%; }
  .offline-ui .offline-ui-retry {
    position: absolute;
    right: 3em;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    line-height: 3em;
    padding: 0 1em; }
  .offline-ui.offline-ui-up {
    -webkit-animation: offline-fadeout-and-hide forwards 0.5s 2s;
    -moz-animation: offline-fadeout-and-hide forwards 0.5s 2s;
    -ms-animation: offline-fadeout-and-hide forwards 0.5s 2s;
    -o-animation: offline-fadeout-and-hide forwards 0.5s 2s;
    animation: offline-fadeout-and-hide forwards 0.5s 2s;
    -webkit-backface-visibility: hidden;
    background: #aacbf5;
    color: #1f4779; }
  .offline-ui.offline-ui-down {
    -webkit-animation: offline-fadein 0.5s;
    -moz-animation: offline-fadein 0.5s;
    -ms-animation: offline-fadein 0.5s;
    -o-animation: offline-fadein 0.5s;
    animation: offline-fadein 0.5s;
    -webkit-backface-visibility: hidden;
    background: #ec8787;
    color: #551313; }
    .offline-ui.offline-ui-down.offline-ui-connecting, .offline-ui.offline-ui-down.offline-ui-waiting {
      background: #f8ecad;
      color: #7c6d1f;
      padding-right: 3em; }
      .offline-ui.offline-ui-down.offline-ui-connecting:after, .offline-ui.offline-ui-down.offline-ui-waiting:after {
        -webkit-animation: offline-rotation 0.7s linear infinite;
        -moz-animation: offline-rotation 0.7s linear infinite;
        -ms-animation: offline-rotation 0.7s linear infinite;
        -o-animation: offline-rotation 0.7s linear infinite;
        animation: offline-rotation 0.7s linear infinite;
        -webkit-backface-visibility: hidden;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        border-radius: 50%;
        content: " ";
        display: block;
        position: absolute;
        right: 1em;
        top: 0;
        bottom: 0;
        margin: auto;
        height: 1em;
        width: 1em;
        border: 2px solid rgba(0, 0, 0, 0);
        border-top-color: #7c6d1f;
        border-left-color: #7c6d1f;
        opacity: 0.7; }
    .offline-ui.offline-ui-down.offline-ui-waiting {
      padding-right: 11em; }
