/* Floating support button — above mobile bottom nav, never full-width bar */

.support-fab {
  position: fixed;
  right: 0.75rem;
  bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f7cff, #3b5bff);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 91, 255, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.support-fab:hover {
  background: linear-gradient(135deg, #3d6aef, #2948e6);
  box-shadow: 0 10px 28px rgba(59, 91, 255, 0.45);
}

.support-fab:active {
  transform: scale(0.96);
}

.support-fab-icon {
  font-size: 1rem;
  line-height: 1;
}

.support-fab-text {
  white-space: nowrap;
}

/* Chat page hides bottom nav */
body.page-chat .support-fab {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Desktop — corner popup trigger */
@media (min-width: 768px) {
  .support-fab {
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.65rem 1rem 0.65rem 0.85rem;
    font-size: 0.8125rem;
  }
}

/* Hide any legacy SupportKori embed bar if script is cached */
[id*="supportkori"]:not(#support-fab),
[class*="supportkori"]:not(.support-fab):not(.supportkori-banner):not(.supportkori-banner-inner):not(.supportkori-banner-copy):not(.supportkori-banner-actions):not(.supportkori-banner-btn):not(.supportkori-banner-dismiss):not(.supportkori-banner-kicker):not(.supportkori-banner-title):not(.supportkori-banner-text),
iframe[src*="supportkori"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
