/* ============================================================
   FLOATING BANNER - Posicionado en esquina inferior derecha
   ============================================================ */

.floating-banner {
  position: fixed !important;
  right: 10px !important;
  bottom: 20px !important;
  top: auto !important;
  left: auto !important;
  width: fit-content;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
}

.floating-banner.is-ready {
  opacity: 1;
  visibility: visible;
  animation: slideInFromBottom 0.5s ease-out;
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(120%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutToBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(120%);
    opacity: 0;
  }
}

/* Link Container */
.floating-banner__link {
  display: block;
  position: relative;
  transition: transform 0.2s ease;
}

.floating-banner__link:hover {
  transform: scale(1.02);
}

/* Close Button */
.floating-banner__close {
  padding: 0;
  position: absolute;
  top: 7px;
  right: 7px;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  border: 1px solid;
  border-radius: 50%;
  line-height: 0.5;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease;
  z-index: 10;
  pointer-events: auto;
}

.floating-banner__close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.floating-banner__close:active {
  transform: scale(0.95);
}

/* Image */
.floating-banner__img {
  box-shadow: -5px 16px 15px 0 rgba(0, 0, 0, 0.3);
  max-width: 210px;
  display: block;
}

/* ============================================================
   RESPONSIVE - Mobile Adjustments
   ============================================================ */

@media (max-width: 767px) {
  .floating-banner {
    right: 0;
    bottom: 0;
  }

  .floating-banner__close {
    top: 2px;
    right: 2px;
  }

  .floating-banner__img {
    width: 100%;
    max-width: none;
    object-fit: contain;
    box-shadow: 0 -10px 20px 5px rgba(0, 0, 0, 0.3);
  }
}