.guest-order-popup[hidden] {
  display: none !important;
}

.guest-order-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1200;
  display: grid;
  grid-template-columns: 46% minmax(0, 54%);
  width: min(420px, calc(100vw - 40px), calc(100vh - 40px));
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-18px, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.guest-order-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.guest-order-popup.is-closing {
  opacity: 0;
  transform: translate(-12px, 12px);
}

.guest-order-popup__media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.guest-order-popup__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  background: #fff;
}

.guest-order-popup__content {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding: 44px 18px 18px 10px;
}

.guest-order-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.guest-order-popup__close:hover,
.guest-order-popup__close:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.guest-order-popup__title {
  margin: 0 30px 8px 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;
}

.guest-order-popup__message {
  margin: 0 0 13px;
  color: #475569;
  font-size: 13px;
  line-height: 1.42;
}

.guest-order-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.guest-order-popup__cta:hover,
.guest-order-popup__cta:focus-visible {
  background: #1d4ed8;
  color: #fff;
  outline: none;
}

.guest-order-popup__note {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

@media (max-width: 640px) {
  .guest-order-popup {
    left: 12px;
    bottom: 12px;
    grid-template-columns: 45% minmax(0, 55%);
    width: min(calc(100vw - 24px), calc(100vh - 24px));
    border-radius: 18px;
  }

  .guest-order-popup__content {
    padding: 42px 14px 14px 8px;
  }

  .guest-order-popup__title {
    margin-right: 32px;
    font-size: 15px;
  }

  .guest-order-popup__message {
    font-size: 12px;
  }

  .guest-order-popup__cta {
    width: 100%;
    min-height: 40px;
    padding-inline: 10px;
  }
}

@media (max-width: 380px) {
  .guest-order-popup__title {
    font-size: 14px;
  }

  .guest-order-popup__message,
  .guest-order-popup__cta,
  .guest-order-popup__note {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-order-popup {
    transition: none;
  }
}
