body.order-modal-open {
  overflow: hidden;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

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

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
}

.order-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(92vh, 52rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(169, 208, 57, 0.18), transparent 42%),
    #ffffff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

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

.order-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #f7f7f7;
  color: #333333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.order-modal-close:hover {
  background: #a9d039;
}

.order-modal-head {
  padding-right: 2rem;
  margin-bottom: 1rem;
}

.order-modal-eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  color: #6b8c11;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-modal-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: #333333;
}

.order-modal-lead {
  margin: 0;
  color: #777777;
  line-height: 1.5;
}

.order-modal-form {
  margin-top: 0.75rem;
}

.order-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.order-modal-phones {
  margin: 1.15rem 0 0;
  text-align: center;
  color: #777777;
  font-size: 0.9375rem;
}

.order-modal-phones a {
  color: #6b8c11;
  font-weight: 700;
  text-decoration: none;
}

.order-modal-phones a:hover {
  color: #333333;
}

.order-fallback {
  padding-top: 4rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(169, 208, 57, 0.14), transparent 70%),
    #ffffff;
}

.order-fallback-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.order-fallback-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: #6b8c11;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-fallback-inner .lead {
  margin: 0 auto 1.5rem;
}

.order-fallback-phones {
  margin-top: 1.5rem;
}

.order-fallback-phones a {
  color: #6b8c11;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 767px) {
  .order-modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .order-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .order-modal-grid {
    grid-template-columns: 1fr;
  }
}
