/* ========== CHAT BUTTON STYLES ========== */
[id^="chatIcon"] {
  position: fixed;
  right: 10px;      /* ✅ Force button to appear on the right side */
  left: auto;
  bottom: 10px;
  width: 190px;
  height: 55px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background-color: #AE6042 !important;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 77px;
  line-height: 0.8rem;
  color: white;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

[id^="chatIcon"] img {
  width: 44px;
  height: 44px;
  margin-right: 12px;
  flex-shrink: 0;
}

[id^="chatIcon"] span {
  text-transform: capitalize;
  font-size: 0.9rem;
  line-height: 1.1rem;
  font-weight: 700;
  text-indent: 0px;
  display: block;
  white-space: nowrap;
}

/* ========== CHAT IFRAME STYLES ========== */
[id^="chatIframe"] {
  position: fixed;
  right: 10px;     /* ✅ Match button position (right-aligned) */
  left: auto;
  bottom: 85px;
  width: 30rem;
  height: 40rem;
  border: none;
  display: none;
  z-index: 999;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

/* Tablet optimizations */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  [id^="chatIframe"] {
    width: 25rem;
    height: 35rem;
  }
}

/* Mobile optimizations */
@media screen and (max-width: 768px) {
  [id^="chatIcon"] {
    width: 180px;
    height: 50px;
    bottom: 15px;
    right: 15px;   /* ✅ Keep it right for mobile */
    left: auto;
    font-size: 0.8rem;
  }

  [id^="chatIcon"] img {
    width: 40px;
    height: 40px;
  }

  [id^="chatIcon"] span {
    font-size: 0.8rem;
    line-height: 1rem;
  }

  [id^="chatIframe"] {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    overflow: hidden;
    position: fixed;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  [id^="chatIcon"] {
    width: 160px;
    height: 45px;
    bottom: 10px;
    right: 10px;  /* ✅ stay right-aligned */
    left: auto;
  }

  [id^="chatIcon"] img {
    width: 36px;
    height: 36px;
  }

  [id^="chatIcon"] span {
    font-size: 0.75rem;
    line-height: 0.9rem;
  }
}

#chatIframe-fps:focus,
#chatIframe-fps:active {
  border: none !important;
  background-color: transparent !important;
}

