.link--login {
  padding-left: 10px;
  padding-right: 4px;
}

.link--logout {
  padding-right: 10px;
  padding-left: 15px
}

.icon--svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.carrito__boton.ir-al-carrito {
  position: relative;
  display: inline-block;
  top: 3px;
}

.carrito__badge.badge-carrito {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  padding: 0.5em 0.75em;
  font-size: 12px;
}

.carrito__badge--visually-hidden.visually-hidden-carrito {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/*------------------------------------------------------------------------------------------------*/
/* Loader */
.loader {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#002a54 0 0);
  background:
    var(--c) 0% 50%,
    var(--c) 50% 50%,
    var(--c) 100% 50%;
  background-size: 20% 100%;
  animation: l1 1s infinite linear;
}

@keyframes l1 {
  0% {
    background-size: 20% 100%, 20% 100%, 20% 100%
  }

  33% {
    background-size: 20% 10%, 20% 100%, 20% 100%
  }

  50% {
    background-size: 20% 100%, 20% 10%, 20% 100%
  }

  66% {
    background-size: 20% 100%, 20% 100%, 20% 10%
  }

  100% {
    background-size: 20% 100%, 20% 100%, 20% 100%
  }
}

/*------------------------------------------------------------------------------------------------*/
/* Loader Texto */

@keyframes puntos {
  0% {
    content: "";
  }

  33% {
    content: ".";
  }

  66% {
    content: "..";
  }

  100% {
    content: "...";
  }
}

.cargando::after {
  content: "";
  animation: puntos 1s infinite;
}

.loader-text:before {
  content: "Cargando...";
}

.loader-text {
  font-family: bebas-neue-pro, sans-serif;
  font-size: 46px;
  color: #0000;
  background: linear-gradient(90deg, #002a54 calc(50% + 0.5ch), #0062a9 0) right/calc(200% + 1ch) 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: c2 2s infinite linear;
}

@keyframes c2 {
  to {
    background-position: left
  }
}

#loader {
  display: none;
  position: fixed;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.spinner {
  width: 100px;
  height: 100px;
  border: 10px solid #f3f3f3;
  border-top-color: #bbbbbb;
  border-radius: 50%;
  box-sizing: border-box;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

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

/*============================================================================*/

#customAlert {
  display: none;
  position: fixed;
  max-width: 200px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 6px 10px;
  padding: 10px 15px;
  border-radius: 6px;
  z-index: 1080;
  /*top: 45%;*/
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  /* word-wrap: break-word; */
  /* word-break: normal; */
  /* white-space: normal; */
  /* word-spacing: normal; */
  /* line-break: auto; */
  /* text-shadow: none; */
  /* font-style: normal; */
  /* letter-spacing: normal; */
}

#customAlertForElement {
  display: none;
  position: absolute;
  /* Cambiado a absolute para posicionar relativo al botón */
  max-width: 200px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  z-index: 1080;
  transform: translate(-25%, -50%);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

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

#system-message-container {
  display: none;
}

#system-message-container.Columns {
  padding-top: 40px !important;
  padding-bottom: 0px !important;
}

.alert {
  padding: 20px;
  margin-bottom: 0px;
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
}

.alert-error,
.alert-danger {
  background-color: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
}

.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-primary {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

.alert-secondary {
  color: #383d41;
  background-color: #e2e3e5;
  border-color: #d6d8db;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert .close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  line-height: 20px;
  cursor: pointer;
  display: none;
}

.alert-heading {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 10px;
  color: inherit;
}

.alert-message {
  font-size: 16px;
  color: inherit;
}

/*------------------------------------------------------------------------------------------------*/
/* Block: notification */
.notification {
  position: relative;
  padding: 20px 22.5px 20px 15px;
  padding-left: 70px;
  margin-bottom: 2.5em;
  margin-bottom: 50px;
  border-radius: 4px;
  min-height: 80px;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.notification::before {
  position: absolute;
  left: 15px;
  font-size: 40px;
}

.notification__title {
  margin-top: 0;
  line-height: 1.2;
  font-size: 1.2em;
  font-weight: bold;
}

.notification>* {
  margin-top: 0;
  margin-bottom: 0;
}

.notification--error {
  color: #a94442;
  background-color: rgba(198, 66, 66, 0.2);
}

.notification--error::before {
  content: "message_error";
  font-family: "Icons", sans-serif !important;
}

.notification__list {
  margin-top: 0px !important;
}

.notification__list-item {
  padding-top: 10px;
}

@media (max-width: 600px) {
  .notification {
    padding-left: 60px;
  }

  .notification__list-item {
    padding-top: 7px;
  }
}

@media (max-width: 425px) {
  .notification::before {
    display: none;
  }

  .notification {
    padding-left: 30px;
  }
}

@media (prefers-color-scheme: dark) {
  .notification--error {
    background-color: var(--bg-color-danger);
    color: #fff;
  }
}

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.my-0 {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

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

.ul li::marker,
.ezxmltext ul li::marker {
  content: "\25CF";
}

/*
.notificacion {
  top: 20px;
  right: 250px;
}
*/

.notificacion {
  position: fixed;
  top: 30px;
  right: 45px;
  padding: 15px;
  border-radius: 4px;
  color: #fff;
  z-index: 9999;
  max-width: 400px;
}

.error-produccion {
  background-color: #dc3545;
}

.error-desarrollo {
  background-color: #ffc107;
  color: black;
}

.error-desarrollo::before {
  content: attr(data-entorno);
  position: absolute;
  top: -10px;
  right: -10px;
  background: #0062a9;
  background: #004476;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 576px) {
  .notificacion {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 90%;
  }
}
