.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1e2a38;
  padding: 0.55rem 1.55rem;
  border-radius: 9999px;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #23394C;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  min-height: 52px;
}
.availability-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.95),
    inset 0 -2px 3px rgba(0,0,0,0.2),
    0 0 4px currentColor;
  transition: background-color 0.3s ease;
}
.availability-badge.available .dot {
  background-color: #34d399;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.95),
    inset 0 -2px 3px rgba(0,0,0,0.2),
    0 0 10px #34d399,
    0 0 26px rgba(52, 211, 153, 0.85);
  animation: ledBreath 2.2s ease-in-out infinite;
}
.availability-badge.connected .dot {
  background-color: #3b82f6;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.95),
    0 0 8px #3b82f6,
    0 0 14px rgba(59, 130, 246, 0.45);
}
.availability-badge.offline .dot {
  background-color: #f59e0b;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.95),
    0 0 8px #f59e0b,
    0 0 14px rgba(245, 158, 11, 0.45);
}
@keyframes ledBreath {
  0%, 100% {
    box-shadow:
      inset 0 2px 4px rgba(255,255,255,0.95),
      inset 0 -2px 3px rgba(0,0,0,0.2),
      0 0 10px #34d399,
      0 0 26px rgba(52, 211, 153, 0.85);
  }
  50% {
    box-shadow:
      inset 0 2px 4px rgba(255,255,255,0.95),
      inset 0 -2px 3px rgba(0,0,0,0.2),
      0 0 2px #34d399,
      0 0 5px rgba(52, 211, 153, 0.12);
  }
}
.badge-wrapper {
  margin-top: 1.2rem;
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: flex-end;
}
.chat-panel-wrapper {
  margin-top: 1.2rem;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
}
.chat-panel-wrapper:has(.expandable.active) {
  position: relative;
}
.chat-panel-wrapper:has(.expandable.active) .availability-badge {
  border: none;
  z-index: 2;
  background: #fff;
  position: relative;
  overflow: visible;
  box-shadow: none !important;
}
.chat-panel-wrapper:has(.expandable.active) .availability-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  pointer-events: none;
  border-top: 1px solid #23394C;
  border-left: 1px solid #23394C;
  border-right: 1px solid #23394C;
  border-bottom: none;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
}
.chat-panel-wrapper:has(.expandable.active) .expandable.active {
  margin-top: calc(-0.5 * var(--badge-height));
  padding: 2rem 0.4rem 0.4rem;
  background: #fff;
  border: 1px solid #23394C;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  width: calc(100% + 4rem - 16px);
  margin-left: calc(-2rem + 8px);
  margin-right: calc(-2rem + 8px);
  max-width: none;
  box-sizing: border-box;
}
.chat-panel-wrapper:has(.expandable.active) #expand-talk iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 0;
}
.chat-panel-wrapper:has(.expandable.active) .availability-badge:hover {
  transform: none;
  box-shadow: none !important;
}

.availability-badge .material-icons-outlined {
  font-size: 1.65rem;
}
