/* Estilo del popup */
.popup-overlay-ba {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  /* Fondo semi-transparente */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content-ba {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 400px;
  min-height: 80vh;
  max-height: 80vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
  /* Asegura que los elementos no se salgan del popup */
  display: flex;
  flex-direction: column;
}

/* Estilo de las pestañas */
.popup-tabs-ba {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab-buttons-container-ba {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  /*margin-bottom: 20px; /* Ajusta el margen según sea necesario */
  gap: 5px;
  margin: auto;
}


.tab-button-ba {
  background: #5512cf5e;
  border: none;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  /* Transiciones suaves */
  /*position: relative; /* Asegura que el padding funcione bien */
  text-align: center;
  /* Centra el texto dentro del botón */
  width: 100%;
  /* Opcional: define un ancho mínimo para los botones */
  box-sizing: border-box;
  /* Incluye padding y border en el ancho total del elemento */
}

.tab-button-ba {
  display: inline-block;
  /* Permite que el padding se aplique correctamente */
  line-height: 1.5;
  /* Asegura que el texto esté centrado verticalmente */
}

.tab-button-ba.active {
  background: #1e064a;
  /*color: #fff;*/
}

.tab-button-ba:hover {
  background: #ff6347;
}

/* Estilo del contenido de las pestañas */
.tab-content-ba {
  display: none;
}

.tab-content-ba.active {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100%;
  max-height: 100%;
  /* Ajusta según sea necesario */
}

/* Estilo de la sección de premios */
.awards-list-ba {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 100%;
  /* Ajusta el espacio disponible dentro del popup */
  overflow-y: auto;
  /* Permite el scroll vertical */
  overflow-y: auto;
}

.award-item-ba {
  display: flex; /* Cambiar de grid a flex para un control más detallado */
  align-items: center; /* Centrar contenido verticalmente */
  gap: 15px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 10px;
}

.award-image-ba {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover; /* Asegura que la imagen no se deforme */
  display: block;
  margin: auto; 
}

.award-details-ba {
  width: 15rem; /* Define el ancho fijo */
  flex-shrink: 0;
}

.award-name-ba {
  font-size: 16px;
  font-weight: bold;
}

.award-date-ba {
  font-size: 14px;
  color: #666;
}

.award-status-ba {
  background: #5512cf;
  border: none;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  min-width: 150px;
  min-height: 31px;
}

.award-status-ba-envio {
  background: #5512cf;
  border: none;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  min-width: 50px;
  min-height: 30px;
}

/* Estilo de la sección de envíos */
.shipments-info-ba {
  background-color: #50007e;
  color: #e9e9e9;
  font-size: 16px;
  padding: 1rem 2rem;
  margin-bottom: 20px;
  border-radius: 5px;
  position: relative;
}
.read-more-btn {
  background-color: transparent;
  color: #e9e9e9;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}
.shipments-info-ba2 {
  background-color: #50007e;
  color: #e9e9e9;
  font-size: 16px;
  padding: 1rem 2rem;
  margin-bottom: 20px;
  border-radius: 5px;
}

.shipments-list-ba {
  max-height: 100%;
  /* Ajusta el espacio disponible dentro del popup */
  overflow-y: auto;
  /* Permite el scroll vertical */
}

.shipment-item-ba {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin: 1rem;
}

.shipment-title-ba {
  font-weight: bold;
  font-size: 18px;
}


.shipment-date-ba {
  margin-top: 10px;  
  margin-bottom: 10px;
}

.products-list-ba {
  /*margin-top: 10px;*/
  display: block;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-item-ba {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border-radius: 5px;  
  margin-bottom: 0.5rem;
}

.product-image-ba {
  width: 50px;
  height: 50px;
  border-radius: 5px;
}

.product-name-ba {
  font-size: 14px;
  color: #333;
}

.popup-header-ba {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #5512cf;
}

/* Overlay de carga */
.loading-overlay-ba {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Fondo semi-transparente */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  /* Asegúrate de que el overlay esté encima de todo */
}

/* Spinner de carga */
.loading-spinner-ba {
  border: 8px solid #f3f3f3;
  /* Color de fondo del spinner */
  border-top: 8px solid #5512cf;
  /* Color del spinner */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  /* Animación de rotación */
}

/* Animación de rotación */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* Estilos similares para la lista de envíos */
.shipments-list-ba::-webkit-scrollbar {
  width: 12px;
  /* Ancho de la barra de desplazamiento */
}

.shipments-list-ba::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Color del fondo del riel de la barra de desplazamiento */
  border-radius: 10px;
  /* Esquinas redondeadas del riel de la barra de desplazamiento */
}

.shipments-list-ba::-webkit-scrollbar-thumb {
  background: #5512cf;
  /* Color del "pulgar" de la barra de desplazamiento */
  border-radius: 10px;
  /* Esquinas redondeadas del pulgar de la barra de desplazamiento */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  /* Sombra para darle profundidad */
}

.shipments-list-ba::-webkit-scrollbar-thumb:hover {
  background: #ff6347;
  /* Color del pulgar cuando el ratón está sobre él */
}


/* Estilos similares para la lista de envíos */
.awards-list-ba::-webkit-scrollbar {
  width: 12px;
  /* Ancho de la barra de desplazamiento */
}

.awards-list-ba::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Color del fondo del riel de la barra de desplazamiento */
  border-radius: 10px;
  /* Esquinas redondeadas del riel de la barra de desplazamiento */
}

.awards-list-ba::-webkit-scrollbar-thumb {
  background: #5512cf;
  /* Color del "pulgar" de la barra de desplazamiento */
  border-radius: 10px;
  /* Esquinas redondeadas del pulgar de la barra de desplazamiento */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  /* Sombra para darle profundidad */
}

.awards-list-ba::-webkit-scrollbar-thumb:hover {
  background: #ff6347;
  /* Color del pulgar cuando el ratón está sobre él */
}

.button-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  margin: auto;
}



/*----------------------------------------*/


.shipment-item-ba {
  margin-bottom: 20px;
}

.shipment-header-ba {
  background-color: #50007e;
    color: #e9e9e9;
    font-size: 21px;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
    border-radius: 10px 10px 0px 0px;
    margin: -15px 20px 18px -16px;
    width: 111%;
}

.shipment-status-ba {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.status-image-ba {
  width: 50px;
  height: 50px;
  border-radius: 5px;
}

.shipment-status-ba {
  font-size: 16px;
  font-weight: bold;
  color: #ff6347;
}

.status-background-ba {
  width: 100%;
  background-color: #d3d3d3; /* Línea gris */
}
.status-preparacion {
  color: #ff7600; /* Naranjo */
}

.status-pendiente-envio {
  color: blue; /* Azul */
}

.status-en-camino {
  color: #a614a7; /* Verde claro */
}

.status-entregado {
  color: green; /* Verde */
}

.status-accion-pendiente {
  color: #d53434; /* Rojo */
}

/* Estilos de la barra de progreso */
.progress-container-ba {
  position: relative;
  width: 100%;
  height: 34px;
  margin-bottom: 20px;
}
.container-redeem-btn-ba {
  position: relative;
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
}

.progress-bar-ba {
  position: relative;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  width: 90%;
  background: #ddd;
  border-radius: 3px;
  transform: translateY(-50%);
}

.progress-fill-ba {
  position: absolute;
  height: 100%;
  background: #5512cf;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.milestones-ba {
  position: absolute;
  margin: 0 auto;
  width: 90%;
  height: 100%;
  top: 0;
}

.milestone-ba {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: filter 0.3s ease;
}

.milestone-ba.active {
  filter: none;
}

/*.milestone-ba:nth-child(2) { left: 25% !important; }
.milestone-ba:nth-child(3) { left: 50% !important; }
.milestone-ba:nth-child(4) { left: 75% !important; }
.milestone-ba:nth-child(5) { left: 100% !important; }*/
.milestone-ba:nth-child(2) { left: 33.33% !important; }
.milestone-ba:nth-child(3) { left: 66.66% !important; }
.milestone-ba:nth-child(4) { left: 100% !important; }

.start-ba {
  width: 10px;
  height: 10px;
  background: #5512cf;
  border-radius: 50%;
  left: 0 !important;
}

.redeem-btn-ba {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  background: #aaa;
  color: white;
  border: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  width: 100%;
}

.redeem-btn-ba.enabled {
  background: #5512cf;
  cursor: pointer;
}

/* Estilos del popup de confirmación */
.confirmation-popup-ba {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.confirmation-content-ba {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 80%;
  max-width: 300px;
}

.confirmation-buttons-ba {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-btn-ba, .cancel-btn-ba {
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.confirm-btn-ba {
  background: #5512cf;
  color: white;
}

.cancel-btn-ba {
  background: #ddd;
  color: #333;
}

.success-message-ba {
  text-align: center;
  padding: 20px;
}

.success-message-ba p {
  color: #4CAF50;
  font-weight: bold;
  margin-bottom: 20px;
}

.close-btn-ba {
  background: #5512cf;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-btn-ba:hover {
  background: #3a0d8a;
}

.confirmation-original-content {
  display: block;
}

.confirmation-original-content.hidden {
  display: none;
}

.puntos-canjeo-ba,
.pawcoins-canjeo-ba,
.puntos-canjeo-exito-ba {
    color: #5512cf;
    font-weight: bold;
    font-size: 1.2em;
}

@media (min-width: 100px) and (max-width: 1023px){
  .award-details-ba{
    width: 8rem;
  }
  .award-item-ba {
    gap: 10px;
  }
  .status-image-ba {
    width: 40px;
    height: 40px;
    border-radius: 5px;
  }
  .award-status-ba {
    min-width: 130px;
  }
}

@media (min-width: 1024px){
    /* Tamaño: 1024px - 1279px */
}