.swc-widget,
.swc-widget * {
  box-sizing: border-box;
}

.swc-widget {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-family: inherit;
}

.swc-panel[hidden] {
  display: none;
}

.swc-panel {
  width: 280px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.swc-contact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #202124;
  background: #ffffff;
  border-bottom: 1px solid #edf0f2;
  letter-spacing: 0;
  text-decoration: none;
}

.swc-contact:last-child {
  border-bottom: 0;
}

.swc-contact:hover {
  color: #202124;
  background: #f4fbf7;
}

.swc-contact:focus-visible,
.swc-trigger:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 3px;
}

.swc-contact-icon {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.swc-contact-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.swc-contact-name {
  max-width: 100%;
  overflow: hidden;
  color: #202124;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swc-number {
  max-width: 100%;
  color: #687078;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.swc-trigger {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.24);
  cursor: pointer;
  appearance: none;
}

.swc-trigger:hover {
  filter: brightness(0.96);
}

.swc-trigger[aria-expanded="true"] {
  filter: brightness(0.9);
}

.swc-trigger-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 480px) {
  .swc-widget {
    left: 16px;
    bottom: 16px;
  }

  .swc-panel {
    width: min(280px, calc(100vw - 32px));
  }

  .swc-trigger {
    width: 58px;
    height: 58px;
  }

}
