/* Toast "visítanos en Maps" (templates/components/maps-toast.php). Coordinado con los mismos
   offsets del carrito flotante y el banner SAGRILAFT para no superponerse (--sagrilaft-fab-offset,
   --sagrilaft-bar-offset, --cart-bar-h; ver ajustarOffsetCarritoFlotante en index.php). */

.maps-toast {
  position: fixed;
  left: 20px;
  bottom: var(--sagrilaft-fab-offset, 20px);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 26px -10px rgba(10, 61, 35, 0.35);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.maps-toast:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
}

.maps-toast[hidden] {
  display: flex;
  pointer-events: none;
}

.maps-toast__texto {
  margin: 0;
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #11221a;
}

.maps-toast__texto i {
  color: #009546;
  margin-right: 4px;
}

.maps-toast__cta {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1c5434;
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.maps-toast__cta:hover {
  background: #148b33;
}

.maps-toast__close {
  order: -1;
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: #5f6f66;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 759.98px) {
  .maps-toast {
    left: 10px;
    right: 10px;
    max-width: none;
    bottom: calc(var(--sagrilaft-bar-offset, 0px) + var(--cart-bar-h, 0px) + 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .maps-toast {
    transition: none;
  }
}
