/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  background: rgba(10,20,40,.45);
  backdrop-filter: blur(6px);
  z-index:70;
  padding:14px;
}

.modal.is-open{
  display:grid;
  place-items:center;
}

.modal-card{
  width:min(720px, 100%);
  max-height: calc(100svh - 28px);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(10,20,40,.10);
  box-shadow: 0 30px 90px rgba(10,20,40,.28);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.modal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  background: linear-gradient(135deg, rgba(73,179,255,.18), rgba(124,92,255,.10));
  border-bottom:1px solid rgba(10,20,40,.08);
  flex: 0 0 auto;
}

.modal-top h3{
  margin:0;
  font-size:18px;
}

.icon-btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.75);
  cursor:pointer;
  font-weight:1000;
  flex: 0 0 auto;
}

.modal-body{
  padding:14px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.summary{
  border-radius:16px;
  border:1px solid rgba(10,20,40,.10);
  background: linear-gradient(90deg, rgba(4,120,87,.10), rgba(4,120,87,.05));
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.summary .name{font-weight:950}

.summary .meta2{
  color: rgba(10,20,40,.70);
  font-weight:800;
  font-size:12px;
}

.summary .price2{font-weight:1100}

/* Form */
.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

@media (max-width: 640px){
  .form{grid-template-columns: 1fr}
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  font-size:12px;
  font-weight:950;
  color: rgba(10,20,40,.78);
}

.field input,
.field select,
.field textarea{
  padding:12px 12px;
  border-radius:14px;
  border:2px solid rgba(10,20,40,.10);
  outline:none;
  background:#fff;
  font-size:14px;
  font-weight:650;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(73,179,255,.55);
  box-shadow: 0 0 0 4px rgba(73,179,255,.16);
}

.full{grid-column: 1 / -1}

.note{
  margin:12px 0 0;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(10,20,40,.08);
  background: rgba(10,20,40,.04);
  color: rgba(10,20,40,.70);
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  line-height:1.35;
}

.modal-actions{
  padding:14px;
  display:flex;
  gap:10px;
  border-top:1px solid rgba(10,20,40,.08);
  background: rgba(255,255,255,.85);
  flex: 0 0 auto;
}

.modal-actions button{
  flex:1;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(10,20,40,.10);
  font-weight:1100;
  cursor:pointer;
  background:#fff;
}

.modal-actions .confirm{
  border-color: rgba(73,179,255,.55);
  background: linear-gradient(135deg, rgba(73,179,255,.22), rgba(124,92,255,.12));
}

.modal-actions .cancel{
  color: var(--danger);
  background: rgba(180,35,24,.06);
  border-color: rgba(180,35,24,.18);
}

/* Chip zona recargo (modal) */
#mZoneChip{
  background: rgba(73,179,255,.10);
  border-color: rgba(73,179,255,.22);
}

#mZoneChip{
  background: rgba(73,179,255,.10);
  border-color: rgba(73,179,255,.22);
}

#mZoneChip button{
  width:22px;height:22px;
  border-radius:999px;
  border:1px solid rgba(10,20,40,.12);
  background:#fff;
  cursor:pointer;
  font-weight:1000;
  line-height:1;
}