/* Purestime · selector de envío en el carrito
   Usa la paleta de purestime.css con valores de reserva, para que funcione
   aunque el módulo se cargue antes que la hoja de marca. */

.pst-envio {
  background: var(--pt-warm-white, #FDFAF6);
  border: 1px solid var(--pt-sand, #E8DDD0);
  border-radius: 6px;
  padding: 1.1rem 1.15rem 0.9rem;
  margin-bottom: 1rem;
  position: relative;
}

.pst-envio--ocupado { opacity: 0.55; pointer-events: none; }

.pst-envio__cab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.pst-envio__icono { font-size: 1.05rem; line-height: 1; }

.pst-envio__titulo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pt-dark, #2A2520);
  letter-spacing: 0.01em;
}

.pst-envio__opciones { display: flex; flex-direction: column; gap: 0.5rem; }

/* ---- una opción ---- */
.pst-op {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1.5px solid var(--pt-sand, #E8DDD0);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pst-op:hover { border-color: var(--pt-terracota-light, #D4896A); }

.pst-op--activa {
  border-color: var(--pt-terracota, #C4724A);
  background: var(--pt-cream, #F7F3EE);
  box-shadow: 0 0 0 2px rgba(196, 114, 74, 0.13);
}

/* el radio real queda accesible pero oculto: pintamos nuestra marca */
.pst-op__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.pst-op__marca {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--pt-text-light, #7A6E65);
  border-radius: 50%;
  position: relative;
  background: #fff;
  transition: border-color 0.15s ease;
}

.pst-op--activa .pst-op__marca { border-color: var(--pt-terracota, #C4724A); }

.pst-op--activa .pst-op__marca::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--pt-terracota, #C4724A);
}

/* foco de teclado visible sobre la marca */
.pst-op__radio:focus-visible + .pst-op__marca {
  outline: 2px solid var(--pt-terracota, #C4724A);
  outline-offset: 2px;
}

.pst-op__texto { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }

.pst-op__nombre {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--pt-text, #3A332C);
  line-height: 1.25;
}

.pst-op__plazo {
  font-size: 0.78rem;
  color: var(--pt-text-light, #7A6E65);
  line-height: 1.3;
  margin-top: 0.1rem;
}

.pst-op__precio {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pt-text, #3A332C);
  white-space: nowrap;
}

.pst-op__precio--gratis {
  color: var(--pt-sage, #8B9E7A);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.pst-envio__nota {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--pt-text-light, #7A6E65);
  margin: 0.8rem 0 0;
}

.pst-envio__nota strong { color: var(--pt-sage, #8B9E7A); font-weight: 700; }

.pst-envio__cargando {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 250, 246, 0.8);
  font-size: 0.85rem;
  color: var(--pt-text, #3A332C);
  border-radius: 6px;
}

.pst-envio__cargando[hidden] { display: none; }

/* ---- paso de envío del checkout: hacer la elección más legible ---- */
.delivery-option {
  border: 1.5px solid var(--pt-sand, #E8DDD0);
  border-radius: 5px;
  padding: 0.75rem 0.5rem;
  margin-bottom: 0.6rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.delivery-option:hover { border-color: var(--pt-terracota-light, #D4896A); }

.delivery-option:has(input[type="radio"]:checked) {
  border-color: var(--pt-terracota, #C4724A);
  background: var(--pt-cream, #F7F3EE);
  box-shadow: 0 0 0 2px rgba(196, 114, 74, 0.13);
}

.delivery-option .carrier-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pt-terracota, #C4724A);
}

@media (max-width: 575px) {
  .pst-op { padding: 0.65rem 0.6rem; gap: 0.55rem; }
  .pst-op__nombre { font-size: 0.88rem; }
  .pst-envio { padding: 1rem 0.9rem 0.8rem; }
}
