﻿:root {
  --sw-brand: #735dfe;
  --sw-brand-hover: #654ef0;
  --sw-border: #dfe3ee;
  --sw-border-strong: #cfd6e6;
  --sw-text: #1f2535;
  --sw-muted: #70788c;
  --sw-placeholder: #9aa3b7;
  --sw-shadow: 0 22px 48px rgba(22, 32, 72, 0.16);
  --sw-success-bg: #eef9f3;
  --sw-success-border: #cdeed8;
  --sw-success-text: #16643f;
  --sw-warn-bg: #fff8ed;
  --sw-warn-border: #ffe0b4;
  --sw-warn-text: #8f5a16;
  --sw-error-bg: #fff2f4;
  --sw-error-border: #f8cdd7;
  --sw-error-text: #af244b;
}

.fgl-support-fab-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.fgl-support-fab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8d95ff 0%, #6e79f8 100%);
  box-shadow: 0 18px 40px rgba(38, 55, 96, 0.18);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.fgl-support-fab-badge svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sw-panel-host {
  position: fixed;
  right: 18px;
  bottom: 66px;
  z-index: 1200;
  pointer-events: none;
}

.sw-panel {
  width: 372px;
  max-width: min(372px, calc(100vw - 28px));
  display: none;
  flex-direction: column;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sw-shadow);
  color: var(--sw-text);
  font-family: "Source Sans Pro", Arial, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
  overflow: hidden;
}

.sw-panel.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.sw-panel__header {
  min-height: 48px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--sw-brand);
  color: #fff;
}

.sw-panel__title {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.sw-close {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.92;
}

.sw-close:hover {
  opacity: 1;
}

.sw-panel__body {
  padding: 16px;
  max-height: min(70vh, calc(100vh - 148px));
  overflow-y: auto;
}

.sw-panel__footer {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #eef1f6;
  background: #fff;
}

.sw-intro {
  margin: 0 0 14px;
  color: var(--sw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sw-message {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.sw-message--success {
  background: var(--sw-success-bg);
  border-color: var(--sw-success-border);
  color: var(--sw-success-text);
}

.sw-message--warn {
  background: var(--sw-warn-bg);
  border-color: var(--sw-warn-border);
  color: var(--sw-warn-text);
}

.sw-message--error {
  background: var(--sw-error-bg);
  border-color: var(--sw-error-border);
  color: var(--sw-error-text);
}

.sw-field {
  margin-bottom: 14px;
}

.sw-field:last-child {
  margin-bottom: 0;
}

.sw-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--sw-text);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.sw-field label span {
  color: var(--sw-muted);
  font-weight: 400;
}

.sw-help {
  margin-top: 6px;
  color: var(--sw-muted);
  font-size: 12px;
  line-height: 1.35;
}

.sw-field input[type="text"],
.sw-field input[type="email"],
.sw-field textarea,
.sw-field select {
  width: 100%;
  border: 1px solid var(--sw-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--sw-text);
  font: inherit;
  font-size: 14px;
}

.sw-field input[type="text"],
.sw-field input[type="email"],
.sw-field select {
  height: 42px;
  padding: 0 12px;
}

.sw-field textarea {
  min-height: 108px;
  padding: 10px 12px;
  resize: vertical;
}

.sw-field input[type="text"]::placeholder,
.sw-field input[type="email"]::placeholder,
.sw-field textarea::placeholder {
  color: var(--sw-placeholder);
}

.sw-field input[type="text"]:focus,
.sw-field input[type="email"]:focus,
.sw-field textarea:focus,
.sw-field select:focus {
  outline: none;
  border-color: var(--sw-brand);
  box-shadow: 0 0 0 2px rgba(115, 93, 254, 0.12);
}

.sw-field select {
  appearance: none;
  padding-right: 36px;
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2370788c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.sw-field--attachments input[type="file"] {
  display: none;
}

.sw-file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--sw-border-strong);
  border-radius: 8px;
  background: #f7f9fd;
  color: #586176;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.sw-file-input-label:hover {
  border-color: var(--sw-brand);
  color: var(--sw-brand);
}

.sw-send {
  min-width: 90px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--sw-brand);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.sw-send:hover:not(:disabled) {
  background: var(--sw-brand-hover);
}

.sw-send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .sw-panel-host {
    right: 10px;
    left: 10px;
    bottom: 56px;
  }

  .sw-panel {
    width: 100%;
    max-width: none;
  }

  .fgl-support-fab-badge {
    min-width: 92px;
    height: 42px;
    padding: 0 14px;
  }
}
