/* ===========================
   Floating AC Pro Tips (UI)
   =========================== */

/* Container */
.floating-tip{
  position: fixed;
  right: 30px;
  bottom: 100px;                 /* sits above back-to-top */
  z-index: 5000;                 /* stay above carousels/navs */
  display: grid;
  gap: 12px;

  /* interaction gating: off until revealed */
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.floating-tip.is-visible{
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

/* Lightbulb button */
.floating-tip__btn{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* mobile tap reliability */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  /* be clickable above the popup */
  position: relative;
  z-index: 2;
}
.floating-tip__btn .bi{
  font-size: 1.4rem;
  color: #c28100;
}
.floating-tip__btn *{
  pointer-events: none; /* <i> won’t swallow taps */
}

/* Popup */
.floating-tip__pop{
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);     /* above the button, not covering it */
  width: min(360px, calc(100vw - 48px));
  background: #fff8e6;
  border: 1px solid #fde68a;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(2,6,23,.22);
  padding: 12px 14px;
  display: none;
  z-index: 1;                     /* below the button */
  pointer-events: auto;           /* allow clicking inside */
}

/* When JS toggles it open */
.floating-tip.is-open .floating-tip__pop{
  display: block;
}

/* Header inside popup */
.floating-tip__head{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.floating-tip__head .bi{
  color: #c28100;
}
.floating-tip__close{
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

/* Desktop hover: show on hover, too */
@media (hover: hover) and (pointer: fine){
  .floating-tip:hover .floating-tip__pop{
    display: block;
  }
}

/* Small screens: nudge position up a bit more */
@media (max-width: 576px){
  .floating-tip{
    right: 16px;
    bottom: 106px;
  }
}
