/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 400px;
  width: 95vw;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: modalIn 0.2s;
}
@keyframes modalIn {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #222;
}
.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafbfc;
  transition: border 0.2s;
}
.form-group input:focus {
  border: 1.5px solid #0380c3;
  outline: none;
}
.modal-submit {
  width: 100%;
  background: #0380c3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-submit:hover {
  background: #005b8e;
}
.modal-cart-items {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 10px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 0.98rem;
}
.modal-cart-items .modal-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.modal-cart-items img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #eee;
}
