/* Entrega Dinámica — estilos de frontend */

.etiqueta-entrega {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #059669;
}

.contador-entrega {
  background-color: #fef3c7;
  color: #92400e;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #fde68a;
  margin-bottom: 20px;
}

/* ============================================================
   Popup de ubicación — paleta Kodevant
   --edp-amber: #fdb643 ; --edp-amber-2: #ffd27a ; navy #0b0b14
   ============================================================ */
.edp-popup {
  --edp-amber: #fdb643;
  --edp-amber-2: #ffd27a;
  --edp-navy: #0b0b14;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.edp-popup[hidden] { display: none; }

.edp-popup__card {
  position: relative;
  background: #fff;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.edp-popup__logo { display: block; margin: 0 auto 18px; height: 32px; width: auto; }
.edp-popup__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}
.edp-popup__title { margin: 0 0 12px; font-size: 21px; font-weight: 700; }
.edp-popup__text { font-size: 15px; color: #555; margin: 0 0 22px; }
.edp-popup__actions { display: flex; flex-direction: column; gap: 12px; }
.edp-popup__btn {
  padding: 13px 20px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.edp-popup__btn:hover { transform: translateY(-1px); }
.edp-popup__btn--primary { border: none; background-color: #000; color: #fff; }
.edp-popup__btn--ghost { border: 1px solid #000; background-color: #fff; color: #000; }

/* --- Variante: Clásico (default arriba) --- */

/* --- Variante: Kodevant (marca) --- */
.edp-popup--kodevant .edp-popup__card {
  background: var(--edp-navy);
  color: #fff;
  border: 1px solid rgba(253, 182, 67, 0.25);
  border-radius: 18px;
  padding: 34px 30px;
}
.edp-popup--kodevant .edp-popup__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--edp-amber), var(--edp-amber-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}
.edp-popup--kodevant .edp-popup__title { color: #fff; }
.edp-popup--kodevant .edp-popup__text { color: #b8b8c8; }
.edp-popup--kodevant .edp-popup__close { color: #777; }
.edp-popup--kodevant .edp-popup__btn--primary {
  background: linear-gradient(135deg, var(--edp-amber), var(--edp-amber-2));
  color: #000;
  box-shadow: 0 8px 24px rgba(253, 182, 67, 0.35);
}
.edp-popup--kodevant .edp-popup__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* --- Variante: Barra inferior --- */
.edp-popup--barra {
  align-items: flex-end;
  background-color: rgba(0, 0, 0, 0.25);
}
.edp-popup--barra .edp-popup__card {
  max-width: 760px;
  width: 100%;
  margin: 0 16px 16px;
  border-radius: 14px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}
.edp-popup--barra .edp-popup__logo { display: none; }
.edp-popup--barra .edp-popup__title { grid-column: 1; margin: 0 0 2px; font-size: 17px; }
.edp-popup--barra .edp-popup__text { grid-column: 1; margin: 0; }
.edp-popup--barra .edp-popup__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-direction: row;
}
.edp-popup--barra .edp-popup__btn--primary {
  background: linear-gradient(135deg, var(--edp-amber), var(--edp-amber-2));
  color: #000;
  border: none;
}
@media (max-width: 560px) {
  .edp-popup--barra .edp-popup__card { grid-template-columns: 1fr; }
  .edp-popup--barra .edp-popup__actions { grid-column: 1; grid-row: auto; }
}
