/* Superior Fire Plus+ site chat widget */
.sfp-chat-root {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 1200;
  font-family: "Source Sans 3", "Source Sans 3 Fallback", "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1e1e22;
}
.sfp-chat-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #c8102e;
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 11, 12, 0.28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sfp-chat-toggle:hover,
.sfp-chat-toggle:focus-visible {
  background: #9a0c23;
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
}
.sfp-chat-toggle svg { display: block; }
.sfp-chat-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(360px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 140px));
  background: #fff;
  border: 1px solid #e3e0da;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(11, 11, 12, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sfp-chat-panel[hidden] { display: none !important; }
.sfp-chat-header {
  background: #0b0b0c;
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sfp-chat-header strong {
  font-family: "Oswald", "Oswald Fallback", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
}
.sfp-chat-header span {
  display: block;
  font-size: 0.75rem;
  color: #c8c8cc;
  font-weight: 500;
  margin-top: 0.1rem;
}
.sfp-chat-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.sfp-chat-close:hover,
.sfp-chat-close:focus-visible { color: #f3c7c7; }
.sfp-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 0.85rem;
  background: #f4f2ee;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sfp-chat-bubble {
  max-width: 88%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.sfp-chat-bubble.is-bot {
  background: #fff;
  border: 1px solid #e3e0da;
  align-self: flex-start;
  color: #1e1e22;
}
.sfp-chat-bubble.is-user {
  background: #0b0b0c;
  color: #fff;
  align-self: flex-end;
}
.sfp-chat-bubble.is-error {
  background: #f8e6ea;
  border: 1px solid #e3b4bc;
  color: #9a0c23;
  align-self: stretch;
  max-width: none;
}
.sfp-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1px solid #e3e0da;
  background: #fff;
}
.sfp-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e3e0da;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font: inherit;
}
.sfp-chat-form input:focus-visible {
  outline: 2px solid #c8102e;
  border-color: #c8102e;
}
.sfp-chat-send {
  background: #c8102e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.sfp-chat-send:hover,
.sfp-chat-send:focus-visible { background: #9a0c23; }
.sfp-chat-send:disabled,
.sfp-chat-send:disabled:hover {
  opacity: 0.65;
  cursor: wait;
  background: #c8102e;
}
.sfp-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.sfp-chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #e3e0da;
  border-radius: 8px;
  background: #fff;
  color: #0b0b0c;
  cursor: pointer;
  padding: 0;
}
.sfp-chat-icon-btn:hover,
.sfp-chat-icon-btn:focus-visible {
  border-color: #c8102e;
  color: #c8102e;
  outline: 2px solid #c8102e;
  outline-offset: 1px;
}
.sfp-chat-icon-btn svg { display: block; }
.sfp-chat-speaker {
  border-color: transparent;
  background: transparent;
  color: #fff;
  width: 36px;
  height: 36px;
}
.sfp-chat-speaker:hover,
.sfp-chat-speaker:focus-visible {
  color: #f3c7c7;
  border-color: transparent;
  outline: 2px solid #f3c7c7;
  outline-offset: 1px;
}
.sfp-chat-speaker.is-off { color: #9a9a9f; }
.sfp-chat-mic.is-listening {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
  animation: sfp-mic-pulse 1.1s ease-in-out infinite;
}
.sfp-chat-mic.is-listening:hover,
.sfp-chat-mic.is-listening:focus-visible {
  background: #9a0c23;
  color: #fff;
  border-color: #9a0c23;
}
@keyframes sfp-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(200, 16, 46, 0); }
}

.sfp-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem 0.75rem;
  background: #fff;
  border-top: 1px solid #e3e0da;
}
.sfp-chat-chips[hidden] { display: none !important; }
.sfp-chat-chip {
  background: #fff;
  border: 2px solid #c8102e;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: #c8102e;
  cursor: pointer;
  text-align: center;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sfp-chat-chip:hover,
.sfp-chat-chip:focus-visible {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
}

.sfp-chat-reply-tools {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.1rem 0 0.15rem;
}
.sfp-chat-reply-tools[hidden] { display: none !important; }

.sfp-chat-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.1rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #1e1e22;
  font-weight: 600;
}
.sfp-chat-follow-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c8102e;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 36px;
  min-width: 52px;
}
.sfp-chat-follow-yes:hover,
.sfp-chat-follow-yes:focus-visible {
  background: #9a0c23;
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
}

.sfp-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sfp-chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 42px;
  border: 2px solid #0b0b0c;
  color: #0b0b0c;
  background: #fff;
  flex: 1 1 auto;
}
.sfp-chat-action.is-quote {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
}
.sfp-chat-action.is-quote:hover,
.sfp-chat-action.is-quote:focus-visible {
  background: #9a0c23;
  border-color: #9a0c23;
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
}
.sfp-chat-action.is-book:hover,
.sfp-chat-action.is-book:focus-visible,
.sfp-chat-action.is-call:hover,
.sfp-chat-action.is-call:focus-visible {
  border-color: #c8102e;
  color: #c8102e;
  outline: 2px solid #c8102e;
  outline-offset: 2px;
}
.sfp-chat-action.is-call.is-urgent {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
  flex: 1 1 100%;
}
.sfp-chat-action.is-call.is-urgent:hover,
.sfp-chat-action.is-call.is-urgent:focus-visible {
  background: #9a0c23;
  border-color: #9a0c23;
  color: #fff;
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
}

.sfp-chat-more {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sfp-chat-more-btn {
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: 0.15rem 0.1rem;
  color: #c8102e;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sfp-chat-more-btn:hover,
.sfp-chat-more-btn:focus-visible {
  color: #9a0c23;
  outline: 2px solid #c8102e;
  outline-offset: 2px;
  border-radius: 4px;
}
.sfp-chat-chips.is-inline {
  padding: 0;
  background: transparent;
  border-top: 0;
  gap: 0.35rem;
}
.sfp-chat-chips.is-inline .sfp-chat-chip {
  min-height: 32px;
  padding: 0.28rem 0.55rem;
  font-size: 0.76rem;
}


@media (max-width: 700px) {
  .sfp-chat-icon-btn { width: 40px; height: 40px; }
  .sfp-chat-send { padding: 0.6rem 0.7rem; }
  .sfp-chat-chip,
  .sfp-chat-action,
  .sfp-chat-follow-yes {
    min-height: 44px;
  }
  .sfp-chat-action {
    flex: 1 1 calc(50% - 0.4rem);
    font-size: 0.82rem;
  }
  .sfp-chat-action.is-call.is-urgent {
    flex: 1 1 100%;
  }
  .sfp-chat-chip {
    font-size: 0.84rem;
    padding: 0.45rem 0.75rem;
  }
  .sfp-chat-chips.is-inline .sfp-chat-chip {
    min-height: 40px;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
}
@media (max-width: 700px) {
  .sfp-chat-root {
    right: 12px;
    bottom: 80px;
  }
  .sfp-chat-panel {
    width: min(100vw - 16px, 360px);
    height: min(74dvh, 640px);
    bottom: 66px;
  }
}

.sfp-chat-bubble a { color: #c8102e; font-weight: 600; text-decoration: underline; }
