/* Floating support bubble */
.support-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
}
.support-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 36, 64, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.15s;
}
.support-bubble:hover {
  background: var(--navy-hover);
  transform: translateY(-2px);
}
.support-bubble svg {
  width: 26px;
  height: 26px;
}
.support-bubble .icon-close {
  display: none;
}
.support-bubble[aria-expanded="true"] .icon-chat {
  display: none;
}
.support-bubble[aria-expanded="true"] .icon-close {
  display: block;
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 36, 64, 0.25);
  padding: 20px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.support-panel.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.support-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.support-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-avatar img {
  height: 22px;
  width: auto;
  display: block;
}
.support-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.support-panel-head h3 {
  margin: 2px 0 0;
  font-size: 1.15rem;
}
.support-panel-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.support-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 8px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.support-action svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
}
.support-action:hover {
  border-color: var(--blue-dark);
  background: var(--pill-bg);
}
.support-action-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.support-action-primary:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: #fff;
}

.support-panel-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

@media (max-width: 480px) {
  .support-widget {
    right: 14px;
    bottom: 14px;
  }
  .support-panel {
    right: -6px;
    width: calc(100vw - 28px);
  }
}

/* Clears the floating pill nav (_customer_tabbar.html) so the chat bubble doesn't sit on top of it. */
@media (max-width: 640px) {
  .support-widget.support-widget-tabbar-offset {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}
