.obfc,
.obfc * {
  box-sizing: border-box;
}

.obfc {
  font-family: inherit;
  line-height: 1.8;
}

.obfc--floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
}

.obfc__launcher {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: #1f2937;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
}

.obfc__launcher:hover {
  opacity: .92;
}

.obfc__launcher-icon {
  font-size: 18px;
}

.obfc__panel {
  width: min(360px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}

.obfc--floating .obfc__panel {
  position: absolute;
  right: 0;
  bottom: 58px;
}

.obfc--inline .obfc__panel {
  width: 100%;
  max-width: 680px;
  box-shadow: none;
}

.obfc__panel[hidden] {
  display: none !important;
}

.obfc__header {
  min-height: 52px;
  padding: 12px 14px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.obfc__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.obfc__body {
  max-height: 460px;
  overflow-y: auto;
  padding: 14px;
  background: #f9fafb;
}

.obfc__message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 14px;
}

.obfc__message--bot {
  margin-left: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.obfc__message--user {
  margin-right: auto;
  background: #e5e7eb;
  color: #111827;
}

.obfc__questions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.obfc__question {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  text-align: right;
  padding: 9px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.obfc__question:hover,
.obfc__question:focus {
  border-color: #6b7280;
  outline: none;
}

.obfc__conversation {
  margin-top: 12px;
}

.obfc__footer {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.obfc__contact {
  display: block;
  text-align: center;
  border-radius: 10px;
  padding: 9px 12px;
  background: #111827;
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 600px) {
  .obfc--floating {
    right: 14px;
    bottom: 14px;
  }

  .obfc--floating .obfc__panel {
    position: fixed;
    right: 14px;
    left: 14px;
    bottom: 74px;
    width: auto;
  }

  .obfc__body {
    max-height: min(58vh, 460px);
  }
}
