/* Модальное окно «Оформить заказ» — общее для всех страниц */

.order-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-modal-overlay.open {
  display: flex;
}

.order-modal-box {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.order-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.order-modal-close svg {
  width: 22px;
  height: 22px;
  stroke: #888888;
}

.order-modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.order-modal-product-name {
  color: #888888;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.order-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-modal-form input,
.order-modal-form textarea {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
  color: #1a1a1a;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  outline: none;
  width: 100%;
}

.order-modal-form input:focus,
.order-modal-form textarea:focus {
  border-color: #8b1d0c;
}

.order-modal-form textarea {
  height: 100px;
  resize: none;
}

.order-modal-form .form-error {
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  display: none;
}

.order-modal-submit {
  background: linear-gradient(135deg, #6b1509 0%, #e87868 50%, #6b1509 100%);
  color: #ffffff;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}

.order-modal-submit.success {
  background: #22c55e !important;
  color: #fff !important;
}

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

  .order-modal-box {
    padding: 24px 20px 28px;
    border-radius: 16px 16px 0 0;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .order-modal-box h3 {
    font-size: 20px;
    padding-right: 28px;
  }

  .order-modal-product-name {
    font-size: 13px;
  }
}
