/* =========================
   BOUTON +
========================= */

.woo321-disabled {
  opacity: 1;
  background: #c6c6c6 !important;
  cursor: not-allowed;
}

.woo321-disabled svg {
  fill: white !important;
}

/* =========================
   TOOLTIP – BASE
========================= */

.woo321-tooltip {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 2147483647;

  max-width: 550px;
  width: calc(100% - 24px);

  opacity: 0;
  pointer-events: none;
}

.woo321-tooltip.is-visible {
  animation: woo321-slide-in 0.35s ease-out forwards;
  pointer-events: auto;
}

.woo321-tooltip.is-closing {
  animation: woo321-slide-out 0.25s ease-in forwards;
}

.woo321-tooltip-inner {
  background: white;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.106);
  border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  opacity: 1;
}

.woo321-tooltip-inner a {
  color: rgb(141, 141, 141) !important;
  text-decoration: underline;
}

.woo321-tooltip-close {
  position: absolute;
  top: -5px;
  right: -5px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: black;
  line-height: 1;
}

.woo321-tooltip-close:hover {
  background: transparent !important;
  color: rgba(0, 0, 0, 0.4);
}

/* =========================
   ANIMATIONS DESKTOP
========================= */

@keyframes woo321-slide-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes woo321-slide-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .woo321-tooltip {
    left: 0;
    transform: translateY(-20px);
    max-width: none;
    width: 100%;
  }

  @keyframes woo321-slide-in {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes woo321-slide-out {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-20px);
    }
  }
}
