.omnilife-v2.pt-4 {
  padding-top: 4rem !important;
}

.omnilife-v2 {
  padding-top: 0px !important;
}

.tracking-search-container {
  margin-top: 5rem;
}

/* NUEVA ANIMACIÓN: Sutil desplazamiento horizontal */
/* No cambia el tamaño, solo la posición ligeramente */
@keyframes shake-safe {
  0%,
  100% {
    margin-left: 0;
  }
  20%,
  60% {
    margin-left: -2px;
  }
  40%,
  80% {
    margin-left: 2px;
  }
}

.modal-shake {
  /* Importante: duration corta (0.3s) */
  animation: shake-safe 0.3s ease-in-out;
}

.qr-section {
  position: relative;
  display: inline-block;
  padding: 20px; /* Espacio entre el QR y el borde */
}

/* Creamos el borde en un pseudo-elemento */
.qr-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--primary800);
  border-radius: 15px;
  pointer-events: none;
  mask:
    linear-gradient(
      to bottom,
      black 35%,
      transparent 35.5%,
      transparent 64.5%,
      black 65%
    ),
    linear-gradient(
      to right,
      black 35%,
      transparent 35.5%,
      transparent 64.5%,
      black 65%
    );
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.d-flex {
  display: flex;
}

.is-loading-overlay-ct {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 50; /* Encima de todo */
  background-color: transparent; /* Sin color, solo el loader */
  border-radius: inherit; /* Hereda el borde de la tarjeta padre */
}

.is-loading-overlay-cw {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 50; /* Encima de todo */
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /*Aumenté un poco la opacidad para mejor contraste */
  border-radius: inherit; /* Hereda el borde de la tarjeta padre */
}

.is-loading-overlay-ctw {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 50;
  background-color: transparent;
  border-radius: inherit;
  color: #ffffff;
}

.error-msg-box {
  align-items: center;
  background: white;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 7px 7px;
  text-align: center;
}

.is-loading-blur-screen {
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none; /* Bloquea clics en los datos viejos */
  transition: all 0.3s ease;
}

/* Altura mínima aplicada SOLO durante la carga (vía wire:loading.class). Da espacio al
   spinner mientras no hay contenido; al quitarse la clase, la altura vuelve a ser auto. */
.is-loading-min-height {
  min-height: 50px;
}

.image-blur {
  position: absolute;
  top: 1px;
  left: 25%;
  width: 75%;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 20%,
    #000 100%
  );
  mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
}

/* Estado intermedio de seguridad */
.invisible-content {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Estilos de una sección particular */
.card-tracking-result {
  width: clamp(300px, 95vw, 1400px);
  margin: 1.5rem auto 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: clamp(8px, 1.5vw, 12px);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.search-tracking .h4-bold {
  padding: 0 !important;
}

[x-cloak] {
  display: none !important;
}

.v2-alert-container {
  width: 100%;
  display: block;
}

/* === ExtraCostsPanel (checkout V2) — Con Costo adicional === */
.extra-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--neutrals600);
  border-radius: 1rem;
  padding: 10px;
}

/* === Fix Mobile Layout Checkout V2 === */
@media (max-width: 767px) {
  #cart-side-left {
    display: contents;
  }
  #cart-side-left > div,
  #cart-side-left > livewire\:shopping\:\:components\.message-box {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    order: 0;
  }
  /* Dirección arriba; el resumen (#cart-side-right, order:-1 en responsive.css) queda primero */
  #cart-side-left > #wrapper-shipping-address,
  #cart-side-left > #choose-address-desktop,
  #cart-side-left > #wrapper-inscription-address {
    order: -2 !important;
  }

  /* Registro: apilar barra de total sobre la botonera (evita solape de dos sticky) */
  .register-page .checkout-footer {
    position: sticky;
    bottom: 72px; /* altura aprox. de .register-footer; ajustar si la botonera cambia */
    box-shadow: none;
  }
  .register-page .register-footer {
    z-index: 100; /* botonera por encima del resumen al colapsar */
  }
  .register-page .col-xl-10 {
    padding-bottom: 160px; /* altura resumen + botonera; ajustar al real */
  }
}
