:root {
  --order-modal-backdrop: rgba(0, 0, 0, 0.62);
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.order-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--order-modal-backdrop);
  backdrop-filter: blur(10px);
}

.order-modal__dialog {
  position: relative;
  width: min(691px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease;
}

.order-modal.is-open .order-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.order-modal__panel {
  position: relative;
  width: 100%;
  height: 668px;
  max-height: calc(100vh - 48px);
  background: #161412;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.order-modal__icon {
  position: absolute;
  top: 106.9px;
  left: 50%;
  transform: translateX(-50%);
  width: 225px;
  height: 158px;
  object-fit: contain;
  opacity: 0.95;
}

.order-modal__content {
  position: absolute;
  top: 313px;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 50px;
}

.order-modal__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.order-modal__title {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: #c08f2d;
  text-transform: capitalize;
}

.order-modal__subtitle {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 24.369px;
  line-height: 1.3;
  color: #bcbcbc;
  text-transform: capitalize;
}

.order-modal__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27.725px;
  width: 100%;
}

.order-modal__btn {
  height: 64.444px;
  padding: 15.722px 31.444px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 23.58px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}

.order-modal__btn--primary {
  background: #c08f2d;
}

.order-modal__btn--outline {
  background: transparent;
  border: 1.31px solid #fff;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .order-modal__panel {
    height: auto;
    min-height: 560px;
    padding-bottom: 36px;
  }

  .order-modal__icon {
    top: 72px;
    width: 190px;
    height: 134px;
  }

  .order-modal__content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: calc(100% - 48px);
    margin: 240px auto 0;
    gap: 32px;
  }

  .order-modal__subtitle {
    font-size: 16px;
  }

  .order-modal__actions {
    flex-direction: column;
    gap: 14px;
  }

  .order-modal__btn {
    width: 100%;
    max-width: 340px;
    height: 56px;
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .order-modal__dialog {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  .order-modal__panel {
    border-radius: 24px;
  }

  .order-modal__content {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-modal,
  .order-modal__dialog {
    transition: none;
  }
}
