:root {
  --support-widget-accent: var(--color-accent-success, #3bb273);
}

.support-widget-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  background: var(--support-widget-accent);
  color: #fff;
  border: none;
  font-size: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-widget-fab:hover,
.support-widget-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  outline: none;
}

.support-widget-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 320px;
  max-width: 90vw;
  height: 420px;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.support-widget-panel--open {
  display: flex;
}

.support-widget-header {
  padding: 10px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, var(--support-widget-accent), var(--support-widget-accent));
  color: #fff;
}

.support-widget-header button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.support-widget-body {
  flex: 1;
  padding: 10px 14px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.4;
  background: #fafafa;
}

.support-widget-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px;
  display: flex;
  gap: 6px;
  background: #fff;
}

.support-widget-input {
  flex: 1;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.support-widget-send-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--support-widget-accent);
  color: #fff;
}

.support-widget-msg {
  margin-bottom: 6px;
  max-width: 85%;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.support-widget-msg--user {
  margin-left: auto;
  background: #dcf8d6;
}

.support-widget-msg--manager {
  margin-right: auto;
  background: #f3f3f3;
}
