/* Customer live-order status: compact, dismissible and above bottom navigation. */
body:not(.secondary-tab-active) #liveOrderBanner:not(.hidden) {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  z-index: 29 !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(6, 26, 59, .22) !important;
  animation: liveOrderBottomIn .2s ease-out;
}

body.secondary-tab-active #liveOrderBanner {
  display: none !important;
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-open {
  width: 100% !important;
  min-height: 54px !important;
  padding: 8px 38px 8px 12px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 10px !important;
  color: #ffffff !important;
  text-align: left !important;
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-open strong {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  font-size: 11.5px !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-open span {
  max-width: 112px;
  overflow: hidden;
  color: #f8cb46;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-close {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  z-index: 2;
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .13) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-close::before,
body:not(.secondary-tab-active) #liveOrderBanner .live-order-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.8px;
  border-radius: 999px;
  background: #ffffff;
  transform-origin: center;
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body:not(.secondary-tab-active) #liveOrderBanner .live-order-close:active {
  background: rgba(255, 255, 255, .24) !important;
  transform: scale(.94);
}

/* Keep the final homepage content reachable behind the floating order status. */
body:not(.secondary-tab-active) #liveOrderBanner:not(.hidden) + #appMain {
  padding-bottom: calc(146px + env(safe-area-inset-bottom)) !important;
}

@keyframes liveOrderBottomIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 390px) {
  body:not(.secondary-tab-active) #liveOrderBanner:not(.hidden) {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }

  body:not(.secondary-tab-active) #liveOrderBanner .live-order-open {
    min-height: 50px !important;
    padding-block: 7px !important;
  }

  body:not(.secondary-tab-active) #liveOrderBanner .live-order-open strong {
    font-size: 11px !important;
  }

  body:not(.secondary-tab-active) #liveOrderBanner .live-order-open span {
    max-width: 96px;
    font-size: 10px;
  }
}
