.lsfr-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.lsfr-toggle,
.lsfr-close,
.lsfr-chip,
.lsfr-action,
.lsfr-input,
.lsfr-select,
.lsfr-textarea {
  font: inherit;
}

.lsfr-toggle {
  min-width: 88px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #24425d;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(36, 66, 93, 0.22);
  cursor: pointer;
}

.lsfr-panel {
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(36, 66, 93, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(36, 66, 93, 0.16);
  backdrop-filter: blur(12px);
}

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

.lsfr-head strong {
  color: #24425d;
  font-size: 18px;
  font-weight: 800;
}

.lsfr-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(36, 66, 93, 0.1);
  border-radius: 50%;
  background: #fff;
  color: #24425d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lsfr-group + .lsfr-group {
  margin-top: 14px;
}

.lsfr-label {
  display: block;
  margin-bottom: 8px;
  color: #718699;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lsfr-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lsfr-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(36, 66, 93, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #24425d;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lsfr-chip.is-active {
  border-color: rgba(95, 158, 203, 0.26);
  background: #eef8ff;
  color: #2d6388;
}

.lsfr-path {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7fbff;
  color: #2d6388;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lsfr-input,
.lsfr-select,
.lsfr-textarea {
  width: 100%;
  border: 1px solid rgba(36, 66, 93, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #314b63;
}

.lsfr-input {
  min-height: 42px;
  padding: 0 12px;
}

.lsfr-select {
  min-height: 42px;
  padding: 0 12px;
}

.lsfr-textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 148px;
  line-height: 1.6;
}

.lsfr-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.lsfr-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(36, 66, 93, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #24425d;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lsfr-action-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #efc66f 0%, #f5d48c 100%);
  color: #24425d;
}

.lsfr-status {
  margin-top: 12px;
  color: #718699;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .lsfr-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
  }

  .lsfr-toggle {
    margin-left: auto;
    display: inline-flex;
  }

  .lsfr-panel {
    width: 100%;
    margin-top: 10px;
  }

  .lsfr-actions {
    flex-wrap: wrap;
  }

  .lsfr-action {
    width: 100%;
  }
}
