/* Support widget: scoped under .allsocials-support-* to avoid global churn. */

.allsocials-support-trigger {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  font: 700 14px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.allsocials-support-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5);
}

.allsocials-support-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.allsocials-support-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9001;
  width: 380px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid #232830;
  border-radius: 14px;
  background: #14171c;
  color: #e6e8eb;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.allsocials-support-panel.is-open {
  transform: translateY(0);
  opacity: 1;
}

.allsocials-support-panel.hidden {
  display: none;
}

.allsocials-support-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.allsocials-support-head h4 {
  margin: 0;
  font-size: 16px;
}

.allsocials-support-sub {
  margin: 4px 0 0;
  color: #aeb6c1;
  font-size: 12px;
}

.allsocials-support-close {
  border: 0;
  background: transparent;
  color: #aeb6c1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.allsocials-support-close:hover {
  color: #e6e8eb;
}

.allsocials-support-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.allsocials-support-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.allsocials-support-field span {
  color: #b8bec6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.allsocials-support-field input,
.allsocials-support-field textarea {
  border: 1px solid #232830;
  border-radius: 8px;
  background: #0e1116;
  color: #e6e8eb;
  padding: 9px 10px;
  font: inherit;
  resize: vertical;
}

.allsocials-support-field input:focus,
.allsocials-support-field textarea:focus {
  outline: 0;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.allsocials-support-send {
  min-height: 40px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  font: 700 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.allsocials-support-send[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.allsocials-support-error {
  margin: 0;
  border: 1px solid #6b1d24;
  border-radius: 6px;
  background: #3a1417;
  color: #fca5a5;
  padding: 8px 10px;
  font-size: 12px;
}

.allsocials-support-disclosure {
  margin: 8px 0 0;
  color: #aeb6c1;
  font-size: 11px;
  text-align: center;
}

.allsocials-support-disclosure a {
  color: #c4b5fd;
}

.allsocials-support-success {
  text-align: center;
  padding: 24px 8px;
}

.allsocials-support-success.hidden {
  display: none;
}

.allsocials-support-success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #1f3b2a;
  color: #4ade80;
  font-size: 22px;
}

.allsocials-support-success h5 {
  margin: 0 0 4px;
  font-size: 14px;
}

.allsocials-support-success p {
  margin: 0;
  color: #b8bec6;
  font-size: 12px;
}

.allsocials-support-send-another {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #c4b5fd;
  font: 700 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

@media (max-width: 600px) {
  .allsocials-support-panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-height: 90vh;
  }

  .allsocials-support-trigger {
    right: 14px;
    bottom: 14px;
  }
}
