.foodord-pwa-navigation-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  right: 0;
  left: 0;
  z-index: 10070;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.foodord-pwa-navigation-progress::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 44%;
  border-radius: 0 3px 3px 0;
  background: var(--primary-color, #ea004b);
  content: '';
  transform: translate3d(-120%, 0, 0);
  will-change: transform;
}

.foodord-pwa-navigation-progress.is-active {
  opacity: 1;
}

.foodord-pwa-navigation-progress.is-active::before {
  animation: foodord-pwa-navigation-progress 1s linear infinite;
}

@keyframes foodord-pwa-navigation-progress {
  0% {
    transform: translate3d(-120%, 0, 0);
  }

  100% {
    transform: translate3d(300%, 0, 0);
  }
}

.foodord-pwa-launch-heartbeat {
  animation: foodord-pwa-launch-heartbeat 450ms cubic-bezier(0.22, 0.8, 0.32, 1);
  transform-origin: center;
  will-change: transform;
}

@keyframes foodord-pwa-launch-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  38% {
    transform: scale(1.08);
  }

  68% {
    transform: scale(0.99);
  }
}

.foodord-pwa-install {
  position: fixed;
  right: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 10060;
  width: fit-content;
  max-width: min(92vw, 640px);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 140%);
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.foodord-pwa-install[hidden] {
  display: none;
}

.foodord-pwa-install.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.foodord-pwa-install__content {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e1e4e8;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(20, 24, 31, 0.18);
}

.foodord-pwa-install__icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.foodord-pwa-install__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.foodord-pwa-install__title,
.foodord-pwa-install__description,
.foodord-pwa-install__instructions {
  letter-spacing: 0;
}

.foodord-pwa-install__title {
  overflow: hidden;
  color: #20242b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foodord-pwa-install__description,
.foodord-pwa-install__instructions {
  display: -webkit-box;
  overflow: hidden;
  color: #68707d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.foodord-pwa-install__instructions[hidden],
.foodord-pwa-install__button[hidden] {
  display: none;
}

.foodord-pwa-install__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foodord-pwa-install__button,
.foodord-pwa-install__dismiss {
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

.foodord-pwa-install__button {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-color, #ea004b);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.foodord-pwa-install__button:hover,
.foodord-pwa-install__button:focus-visible {
  background: var(--primary-hover, #c70040);
  color: #ffffff;
}

.foodord-pwa-install__button:active {
  opacity: 0.76;
}

.foodord-pwa-install__dismiss {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #e1e4e8;
  border-radius: 50%;
  background: #f2f4f6;
  color: #5e6672;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.foodord-pwa-install__dismiss:hover,
.foodord-pwa-install__dismiss:focus-visible {
  background: #e9ecef;
  color: #20242b;
}

.foodord-pwa-install__button:focus-visible,
.foodord-pwa-install__dismiss:focus-visible {
  outline: 2px solid #3858e9;
  outline-offset: 2px;
}

html.foodord-dark-mode .foodord-pwa-install__content,
body.foodord-dark-mode .foodord-pwa-install__content {
  border-color: #2a2f37;
  background: #16181d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

html.foodord-dark-mode .foodord-pwa-install__title,
body.foodord-dark-mode .foodord-pwa-install__title {
  color: #e9edf2;
}

html.foodord-dark-mode .foodord-pwa-install__description,
html.foodord-dark-mode .foodord-pwa-install__instructions,
body.foodord-dark-mode .foodord-pwa-install__description,
body.foodord-dark-mode .foodord-pwa-install__instructions {
  color: #aeb6c2;
}

html.foodord-dark-mode .foodord-pwa-install__dismiss,
body.foodord-dark-mode .foodord-pwa-install__dismiss {
  border-color: #3a404b;
  background: #232832;
  color: #dbe2ea;
}

html.foodord-dark-mode .foodord-pwa-install__dismiss:hover,
html.foodord-dark-mode .foodord-pwa-install__dismiss:focus-visible,
body.foodord-dark-mode .foodord-pwa-install__dismiss:hover,
body.foodord-dark-mode .foodord-pwa-install__dismiss:focus-visible {
  background: #2b313c;
  color: #ffffff;
}

@media (max-width: 600px) {
  .foodord-pwa-install {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .foodord-pwa-install__content {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 12px;
  }

  .foodord-pwa-install__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
  }

  .foodord-pwa-install__button {
    min-height: 34px;
    padding: 7px 12px;
  }

  .foodord-pwa-install__dismiss {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}

@media (max-width: 380px) {
  .foodord-pwa-install__content {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .foodord-pwa-install__icon {
    width: 38px;
    height: 38px;
  }

  .foodord-pwa-install__actions {
    gap: 6px;
  }

  .foodord-pwa-install__button {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foodord-pwa-launch-heartbeat {
    animation: none;
  }

  .foodord-pwa-navigation-progress.is-active::before {
    animation-duration: 1.8s;
  }

  .foodord-pwa-install,
  .foodord-pwa-install__button,
  .foodord-pwa-install__dismiss {
    transition: none;
  }
}
