
/* ==========================================
   FOODNATI FIXED BOTTOM BAR
========================================== */

#foodnatiCheckoutScreen .foodnati-order-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  width: 100%;

  padding:
    12px 14px
    calc(22px + env(safe-area-inset-bottom));

  background: #ffffff;
  border-top: 1px solid #eeeeee;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);

  box-sizing: border-box;
  z-index: 100;
}

/* SLIDER TRACK */

#foodnatiCheckoutScreen .foodnati-order-slider {
  position: relative;
  width: 100%;
  height: 56px;

  background: #17243B;
  border-radius: 30px;

  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

/* SLIDE PROGRESS */

#foodnatiCheckoutScreen .foodnati-order-progress {
  position: absolute;
  top: 0;
  left: 0;

  width: 0;
  height: 100%;

  background: #E82B65;
  border-radius: 30px;

  pointer-events: none;
  z-index: 1;
}

/* SLIDER CIRCLE */

#foodnatiCheckoutScreen .foodnati-order-handle {
  position: absolute;
  top: 4px;
  left: 4px;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #E82B65;
  color: #ffffff;

  border-radius: 50%;
  font-size: 19px;

  cursor: grab;
  z-index: 3;

  touch-action: none;
  -webkit-tap-highlight-color: transparent;

  will-change: left;
}

/* IDLE HINT ANIMATION */

#foodnatiCheckoutScreen
.foodnati-order-handle.is-hinting {
  animation: foodnatiSlideHint 1.7s ease-in-out infinite;
}

@keyframes foodnatiSlideHint {
  0%, 100% {
    transform: translateX(0);
  }

  45% {
    transform: translateX(13px);
  }

  65% {
    transform: translateX(13px);
  }
}

/* TEXT */

#foodnatiCheckoutScreen .foodnati-order-text {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  font: 600 15px Arial, sans-serif;
  letter-spacing: .2px;

  pointer-events: none;
  z-index: 2;
}

/* SPACE FOR FIXED BAR */

#foodnatiCheckoutScreen {
  padding-bottom:
    calc(115px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

/* ACCESSIBILITY */

#foodnatiCheckoutScreen
.foodnati-order-handle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  #foodnatiCheckoutScreen
  .foodnati-order-handle.is-hinting {
    animation: none;
  }
}
