/* =========================================================
   CHECKOUT DE ENTREGA
   ========================================================= */

.checkout-entrega-bloqueo-scroll {
  overflow: hidden !important;
}

.checkout-entrega-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.checkout-entrega-overlay.open {
  display: flex;
}

.checkout-entrega-modal {
  position: relative;
  width: min(780px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 32px;
  border-radius: 20px;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.40);
}

.checkout-entrega-close {
  position: absolute;
  top: 10px;
  right: 15px;

  width: 42px;
  height: 42px;

  border: 0;
  background: transparent;

  color: #555;
  font-size: 32px;
  line-height: 1;

  cursor: pointer;
}

.checkout-entrega-header {
  padding-right: 35px;
  margin-bottom: 25px;
}

.checkout-entrega-kicker {
  display: block;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.16em;

  opacity: 0.6;
}

.checkout-entrega-header h2 {
  margin: 7px 0 5px;

  font-size: 28px;
}

.checkout-entrega-header p {
  margin: 0;

  color: #666;
}

.checkout-seccion {
  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid #e5e5e5;
}

.checkout-seccion h3 {
  margin: 0 0 15px;

  font-size: 17px;
}

.checkout-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 15px;
}

.checkout-grid label {
  display: flex;
  flex-direction: column;

  gap: 6px;

  font-size: 13px;
  font-weight: 600;
}

.checkout-grid .checkout-full {
  grid-column: 1 / -1;
}

.checkout-grid input,
.checkout-grid select {
  width: 100%;
  min-height: 44px;

  box-sizing: border-box;

  padding: 10px 12px;

  border: 1px solid #d0d0d0;
  border-radius: 9px;

  background: #ffffff;
  color: #222222;

  font-family: inherit;
  font-size: 14px;

  outline: none;
}

.checkout-grid input:focus,
.checkout-grid select:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

.checkout-entrega-error {
  min-height: 20px;

  margin-top: 18px;

  color: #a00000;

  font-size: 14px;
  font-weight: 600;
}

.checkout-resumen {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 8px;
  padding: 16px;

  border-radius: 11px;

  background: #f4f4f4;

  font-size: 15px;
}

.checkout-resumen strong {
  font-size: 20px;
}

.checkout-entrega-pagar {
  width: 100%;

  min-height: 50px;

  margin-top: 16px;

  padding: 12px 20px;

  border: 0;
  border-radius: 10px;

  background: #222;
  color: #fff;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
}

.checkout-entrega-pagar:hover {
  opacity: 0.9;
}

.checkout-entrega-pagar:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 650px) {

  .checkout-entrega-overlay {
    padding: 0;
  }

  .checkout-entrega-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;

    border-radius: 0;

    padding: 24px 18px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-grid .checkout-full {
    grid-column: auto;
  }

  .checkout-entrega-header h2 {
    font-size: 24px;
  }

}