:root {
  --tapchat-size: 40px;
  --tapchat-mobile-size: 40px;
  --tapchat-color: #25D366;
}

.tapchat-fab {
  position: fixed;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--tapchat-color);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  z-index: 99999;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  flex-direction: row;
}

[dir="rtl"] .tapchat-fab { 
  flex-direction: row-reverse; 
}

.tapchat-fab:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 24px rgba(0,0,0,.25); 
}

.tapchat-pos-right { 
  right: 18px; 
}

.tapchat-pos-left { 
  left: 18px; 
}

.tapchat-icon { 
  width: var(--tapchat-size); 
  height: var(--tapchat-size); 
  display: inline-block; 
  fill: #fff;
  flex-shrink: 0;
}

.tapchat-fab img.tapchat-icon {
  border-radius: 50%;
  object-fit: cover;
  width: var(--tapchat-size) !important;
  height: var(--tapchat-size) !important;
  flex-shrink: 0;
}

.tapchat-fab-offline img.tapchat-icon {
  opacity: 0.5;
}

.tapchat-label { 
  white-space: nowrap; 
}

@media (min-width: 481px) {
  .tapchat-hide-label-desktop .tapchat-label { 
    display: none; 
  }
  
  .tapchat-hide-label-desktop.tapchat-fab {
    padding: 0;
    width: calc(var(--tapchat-size) + 20px);
    height: calc(var(--tapchat-size) + 20px);
    min-width: calc(var(--tapchat-size) + 20px);
    min-height: calc(var(--tapchat-size) + 20px);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  
  .tapchat-hide-label-desktop.tapchat-fab .tapchat-icon {
    width: calc(var(--tapchat-size) - 8px) !important;
    height: calc(var(--tapchat-size) - 8px) !important;
  }
  
  .tapchat-hide-label-desktop.tapchat-fab img.tapchat-icon {
    width: calc(var(--tapchat-size) + 20px) !important;
    height: calc(var(--tapchat-size) + 20px) !important;
  }
}

@media (max-width: 480px) { 
  .tapchat-icon { 
    width: var(--tapchat-mobile-size) !important; 
    height: var(--tapchat-mobile-size) !important; 
  }
  
  .tapchat-fab img.tapchat-icon {
    width: var(--tapchat-mobile-size) !important;
    height: var(--tapchat-mobile-size) !important;
  }
  
  .tapchat-hide-label-mobile .tapchat-label { 
    display: none; 
  }
  
  .tapchat-hide-label-mobile.tapchat-fab {
    padding: 0;
    width: calc(var(--tapchat-mobile-size) + 20px);
    height: calc(var(--tapchat-mobile-size) + 20px);
    min-width: calc(var(--tapchat-mobile-size) + 20px);
    min-height: calc(var(--tapchat-mobile-size) + 20px);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  
  .tapchat-hide-label-mobile.tapchat-fab .tapchat-icon {
    width: calc(var(--tapchat-mobile-size) - 8px) !important;
    height: calc(var(--tapchat-mobile-size) - 8px) !important;
  }
  
  .tapchat-hide-label-mobile.tapchat-fab img.tapchat-icon {
    width: calc(var(--tapchat-mobile-size) + 20px) !important;
    height: calc(var(--tapchat-mobile-size) + 20px) !important;
  }
}

.tapchat-inline { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  font-weight: 600; 
  text-decoration: none; 
  border-bottom: 2px solid currentColor; 
}

.tapchat-welcome-bubble {
  position: fixed;
  bottom: calc(var(--tapchat-size) + 54px);
  display: none;
  gap: 14px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 99998;
  max-width: 380px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tapchat-welcome-bubble.visible {
  display: flex;
  animation: tapchat-bubble-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.tapchat-welcome-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.tapchat-pos-right ~ .tapchat-welcome-bubble::after {
  right: 35px;
}

.tapchat-pos-left ~ .tapchat-welcome-bubble::after {
  left: 35px;
}

.tapchat-pos-right ~ .tapchat-welcome-bubble {
  right: 18px;
}

.tapchat-pos-left ~ .tapchat-welcome-bubble {
  left: 18px;
}

[dir="rtl"] .tapchat-welcome-bubble {
  flex-direction: row-reverse;
}

.tapchat-bubble-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.25);
  border: 3px solid #fff;
}

.tapchat-bubble-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tapchat-bubble-avatar svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.tapchat-bubble-content {
  flex: 1;
  min-width: 0;
}

.tapchat-bubble-name {
  font-weight: 700;
  font-size: 16px;
  color: #0a0a0a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.3px;
}

.tapchat-bubble-online {
  width: 10px;
  height: 10px;
  background: #25D366;
  border-radius: 50%;
  animation: tapchat-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.tapchat-bubble-message {
  font-size: 15px;
  color: #5a5a5a;
  line-height: 1.6;
  word-wrap: break-word;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.tapchat-bubble-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: all 0.3s ease;
  color: #666 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 400 !important;
  vertical-align: baseline !important;
  z-index: 10;
  outline: none;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50%;
}

.tapchat-bubble-close::before {
  content: "✕";
  display: inline-block;
  font-size: 20px !important;
  line-height: 1;
  transition: transform 0.3s ease;
  transform-origin: center center;
  width: 20px;
  height: 20px;
  text-align: center;
}

[dir="rtl"] .tapchat-bubble-close {
  right: auto !important;
  left: 10px !important;
}

.tapchat-bubble-close:hover {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.05) !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #333 !important;
}

.tapchat-bubble-close:hover::before {
  transform: rotate(90deg);
}

.tapchat-bubble-close:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.05) !important;
}

.tapchat-bubble-close svg {
  display: none;
}

@keyframes tapchat-bubble-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tapchat-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.92);
    box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.15);
  }
}

.tapchat-welcome-bubble:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.08);
}

.tapchat-welcome-bubble.style-simple {
  padding: 12px 16px;
  gap: 0;
  max-width: 320px;
  border-radius: 12px;
}

.tapchat-welcome-bubble.style-simple .tapchat-bubble-avatar,
.tapchat-welcome-bubble.style-simple .tapchat-bubble-name,
.tapchat-welcome-bubble.style-simple .tapchat-bubble-online {
  display: none;
}

.tapchat-welcome-bubble.style-simple .tapchat-bubble-content {
  padding-right: 26px;
}

.tapchat-welcome-bubble.style-simple .tapchat-bubble-message {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

[dir="rtl"] .tapchat-welcome-bubble.style-simple .tapchat-bubble-content {
  padding-right: 0;
  padding-left: 26px;
}

.tapchat-welcome-bubble.position-side {
  bottom: calc(18px + (var(--tapchat-size) + 20px) / 2 - 23px);
  top: auto;
  transform: translateX(-10px) scale(0.95);
  display: flex;
  align-items: center;
}

.tapchat-pos-right ~ .tapchat-welcome-bubble.position-side {
  right: calc(18px + 150px + 20px);
  left: auto;
}

.tapchat-pos-left ~ .tapchat-welcome-bubble.position-side {
  left: calc(18px + 150px + 20px);
  right: auto;
}

.tapchat-hide-label-desktop ~ .tapchat-welcome-bubble.position-side {
  right: calc(18px + var(--tapchat-size) + 20px + 15px);
}

.tapchat-hide-label-desktop.tapchat-pos-left ~ .tapchat-welcome-bubble.position-side {
  left: calc(18px + var(--tapchat-size) + 20px + 15px);
  right: auto;
}

/*
 * Note: the "side" bubble sits on the inner edge of the button, and the
 * button's screen side is fixed by .tapchat-pos-right / .tapchat-pos-left
 * (independent of text direction). So RTL must reuse the LTR placement above;
 * flipping left/right here would push the bubble to the opposite side of the
 * button. The arrow (::after) rules below already stay correct in RTL.
 */

.tapchat-welcome-bubble.position-side::after {
  top: 50%;
  bottom: auto;
  margin-top: -8px;
  left: auto;
  right: auto;
  transform: rotate(45deg);
}

.tapchat-pos-right ~ .tapchat-welcome-bubble.position-side::after {
  right: -9px;
  left: auto;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tapchat-pos-left ~ .tapchat-welcome-bubble.position-side::after {
  left: -9px;
  right: auto;
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tapchat-welcome-bubble.position-side.visible {
  animation: tapchat-bubble-side-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tapchat-bubble-side-in {
  from {
    opacity: 0;
    transform: translateX(-15px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 480px) {
  .tapchat-welcome-bubble {
    max-width: calc(100vw - 40px);
    bottom: calc(var(--tapchat-mobile-size) + 44px);
    padding: 16px 20px;
    gap: 12px;
  }
  
  .tapchat-bubble-avatar {
    width: 46px;
    height: 46px;
    border: 2.5px solid #fff;
  }
  
  .tapchat-bubble-avatar svg {
    width: 26px;
    height: 26px;
  }
  
  .tapchat-bubble-name {
    font-size: 15px;
  }
  
  .tapchat-bubble-message {
    font-size: 14px;
  }
  
  .tapchat-bubble-close {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 18px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }
  
  .tapchat-bubble-close::before {
    font-size: 18px !important;
    width: 18px;
    height: 18px;
  }
  
  [dir="rtl"] .tapchat-bubble-close {
    right: auto !important;
    left: 8px !important;
  }
  
  .tapchat-welcome-bubble::after {
    bottom: -8px;
    width: 14px;
    height: 14px;
  }
  
  .tapchat-welcome-bubble.style-simple {
    padding: 10px 14px;
    max-width: calc(100vw - 40px);
  }
  
  .tapchat-welcome-bubble.style-simple .tapchat-bubble-message {
    font-size: 13px;
  }
  
  .tapchat-welcome-bubble.position-side {
    bottom: calc(18px + (var(--tapchat-mobile-size) + 20px) / 2 - 21px);
    max-width: calc(100vw - 100px);
  }
  
  .tapchat-pos-right ~ .tapchat-welcome-bubble.position-side {
    right: calc(18px + 120px + 15px);
  }

  .tapchat-pos-left ~ .tapchat-welcome-bubble.position-side {
    left: calc(18px + 120px + 15px);
  }
  
  .tapchat-hide-label-mobile ~ .tapchat-welcome-bubble.position-side {
    right: calc(18px + var(--tapchat-mobile-size) + 20px + 12px);
  }

  .tapchat-hide-label-mobile.tapchat-pos-left ~ .tapchat-welcome-bubble.position-side {
    left: calc(18px + var(--tapchat-mobile-size) + 20px + 12px);
    right: auto;
  }
}

.tapchat-welcome-bubble.hidden {
  display: none;
}

/* Entrance: Fade in (runs once on load) */
@keyframes tapchat-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.tapchat-anim-fade {
  animation: tapchat-fade-in 0.6s ease both;
}

/* Entrance: Slide in from the button's side (runs once on load) */
@keyframes tapchat-slide-in-right {
  from { opacity: 0; transform: translateX(130%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tapchat-slide-in-left {
  from { opacity: 0; transform: translateX(-130%); }
  to   { opacity: 1; transform: translateX(0); }
}
.tapchat-anim-slide.tapchat-pos-right {
  animation: tapchat-slide-in-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tapchat-anim-slide.tapchat-pos-left {
  animation: tapchat-slide-in-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Looping: gentle bounce */
@keyframes tapchat-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.tapchat-anim-bounce {
  animation: tapchat-bounce 1.6s ease-in-out infinite;
}

/* Looping: phone ring / shake */
@keyframes tapchat-ring {
  0%   { transform: rotate(0); }
  8%   { transform: rotate(14deg); }
  16%  { transform: rotate(-12deg); }
  24%  { transform: rotate(10deg); }
  32%  { transform: rotate(-8deg); }
  40%  { transform: rotate(4deg); }
  48%  { transform: rotate(0); }
  100% { transform: rotate(0); }
}
.tapchat-anim-ring {
  transform-origin: 50% 65%;
  animation: tapchat-ring 2.4s ease-in-out infinite;
}

/* "New message": pulsing ring in the button color + unread badge */
.tapchat-anim-attention::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  box-shadow: 0 0 0 0 var(--tapchat-color);
  animation: tapchat-attention-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes tapchat-attention-pulse {
  0%   { box-shadow: 0 0 0 0 var(--tapchat-color); }
  70%  { box-shadow: 0 0 0 16px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Unread badge */
.tapchat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
}
.tapchat-pos-left .tapchat-badge,
[dir="rtl"] .tapchat-badge {
  right: auto;
  left: -5px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tapchat-anim-fade,
  .tapchat-anim-slide.tapchat-pos-right,
  .tapchat-anim-slide.tapchat-pos-left,
  .tapchat-anim-bounce,
  .tapchat-anim-ring {
    animation: none !important;
  }
  .tapchat-anim-attention::after {
    animation: none !important;
  }
}
/* =========================================================================
   Multiple agents - picker panel (added in 2.1.0)
   ========================================================================= */

/* The trigger reuses the .tapchat-fab anchor styling; the panel opens above it. */

.tapchat-agents-panel {
  position: fixed;
  bottom: calc(var(--tapchat-size) + 69px);
  display: none;
  flex-direction: column;
  width: 336px;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 560px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  /* Above the welcome bubble (99998) and the FAB (99999). */
  z-index: 100000;
}

.tapchat-agents-panel.tapchat-pos-right { right: 18px; }
.tapchat-agents-panel.tapchat-pos-left { left: 18px; }

.tapchat-agents-panel.open {
  display: flex;
  animation: tapchat-panel-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes tapchat-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Header ---- */
.tapchat-agents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--tapchat-color);
  color: #fff;
}

.tapchat-agents-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tapchat-agents-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.tapchat-agents-subtitle {
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0.9;
}

.tapchat-agents-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.tapchat-agents-close:hover { background: rgba(255, 255, 255, 0.34) !important; transform: scale(1.06); }
.tapchat-agents-close:active { transform: scale(0.96); }
.tapchat-agents-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Agent list ---- */
.tapchat-agents-list {
  padding: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tapchat-agent-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.tapchat-agent-link + .tapchat-agent-link { margin-top: 8px; }

.tapchat-agent-link:hover {
  background: #fbfbfb;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.tapchat-agent-link:focus-visible {
  outline: none;
  border-color: var(--tapchat-color);
  box-shadow: 0 0 0 2px var(--tapchat-color);
}

/* Avatar */
.tapchat-agent-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tapchat-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tapchat-agent-avatar-icon { width: 24px; height: 24px; fill: #fff; }

.tapchat-agent-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #fff;
}

/* Text */
.tapchat-agent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
}

.tapchat-agent-name {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tapchat-agent-role {
  font-size: 12.5px;
  color: #707070;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tapchat-agent-status {
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.tapchat-agent-status.is-online { color: #1faa55; }
.tapchat-agent-status.is-offline { color: #9a9a9a; }

.tapchat-agent-link.is-offline .tapchat-agent-avatar { filter: grayscale(1); opacity: 0.7; }

/* Trailing channel chip */
.tapchat-agent-channel {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--tapchat-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.tapchat-agent-link:hover .tapchat-agent-channel { background: rgba(0, 0, 0, 0.07); }
.tapchat-agent-link.is-offline .tapchat-agent-channel { color: #b0b0b0; }
.tapchat-agent-channel-icon { width: 20px; height: 20px; fill: currentColor; }

/* ---- RTL ---- */
[dir="rtl"] .tapchat-agent-dot { right: auto; left: 0; }

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .tapchat-agents-panel {
    bottom: calc(var(--tapchat-mobile-size) + 65px);
    width: calc(100vw - 28px);
    border-radius: 8px;
  }
  .tapchat-agents-header { padding: 15px 16px; }
  .tapchat-agents-title { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tapchat-agents-panel.open { animation: none !important; }
  .tapchat-agent-link:hover { transform: none; }
  .tapchat-agents-close:hover { transform: none; }
}
