/* BPP sales chat widget — scoped to #bpp-chat-root so Elementor kit button
   rules cannot leak. Tokens extracted from live businessprofilepro.com CSS. */
#bpp-chat-root {
  --bpp-chat-orange: #FF5E29;
  --bpp-chat-amber: #FF9D00;
  --bpp-chat-orange-hover: #E5501A;
  --bpp-chat-gradient: linear-gradient(95deg, #FF5E29 50%, #FF9D00 100%);
  --bpp-chat-brown: #471800;
  --bpp-chat-brown-deep: #250A06;
  --bpp-chat-ink: #18181B;
  --bpp-chat-text: #52525C;
  --bpp-chat-muted: #71717B;
  --bpp-chat-accent-text: #C24100;
  --bpp-chat-placeholder: #A1A1AA;
  --bpp-chat-bg: #FFFFFF;
  --bpp-chat-panel: #FFFAF7;
  --bpp-chat-chip: #F4F4F5;
  --bpp-chat-border: #E4E4E7;
  --bpp-chat-radius: 14px;
  --bpp-chat-radius-btn: 10px;
  --bpp-chat-shadow: 0 20px 44px -24px rgba(37, 10, 6, 0.4), 0 0 0 1px rgba(228, 228, 231, 0.8);
  --bpp-chat-cta-shadow: 0 10px 22px -10px rgba(255, 94, 41, 0.8);
  --bpp-chat-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bpp-chat-font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: relative;
  z-index: 2147483000;
  font-family: var(--bpp-chat-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--bpp-chat-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-transform: none;
  letter-spacing: 0;
}

#bpp-chat-root *,
#bpp-chat-root *::before,
#bpp-chat-root *::after {
  box-sizing: border-box;
  font-family: inherit;
  text-transform: none;
  letter-spacing: inherit;
}

#bpp-chat-root button {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--bpp-chat-font);
  text-transform: none !important;
  letter-spacing: 0;
  margin: 0;
}

#bpp-chat-root .bpp-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483001;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--bpp-chat-gradient) !important;
  background-color: var(--bpp-chat-orange) !important;
  box-shadow: var(--bpp-chat-cta-shadow);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

#bpp-chat-root .bpp-chat-launcher:hover,
#bpp-chat-root .bpp-chat-launcher:focus {
  background: var(--bpp-chat-gradient) !important;
  background-color: var(--bpp-chat-orange-hover) !important;
  filter: brightness(1.04);
  transform: translateY(-1px);
  border: 0;
}

#bpp-chat-root .bpp-chat-launcher:focus-visible {
  outline: 3px solid var(--bpp-chat-brown);
  outline-offset: 2px;
}

#bpp-chat-root .bpp-chat-launcher:active {
  transform: scale(0.98);
  filter: none;
}

#bpp-chat-root .bpp-chat-icon {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
  color: #fff;
}

#bpp-chat-root .bpp-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 2147483001;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 120px));
  background: var(--bpp-chat-bg);
  border: 1px solid var(--bpp-chat-border);
  border-radius: var(--bpp-chat-radius);
  box-shadow: var(--bpp-chat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--bpp-chat-text);
}

#bpp-chat-root .bpp-chat-panel[hidden] {
  display: none !important;
}

#bpp-chat-root .bpp-chat-header {
  background: var(--bpp-chat-bg);
  color: var(--bpp-chat-brown);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--bpp-chat-border);
}

#bpp-chat-root .bpp-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#bpp-chat-root .bpp-chat-logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: 108px;
  flex: none;
  object-fit: contain;
}

#bpp-chat-root .bpp-chat-brand-text {
  min-width: 0;
  flex: 1;
}

#bpp-chat-root .bpp-chat-header strong {
  font-family: var(--bpp-chat-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bpp-chat-brown);
  display: block;
  letter-spacing: -0.2px;
}

#bpp-chat-root .bpp-chat-header span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--bpp-chat-muted);
  display: block;
}

#bpp-chat-root .bpp-chat-close {
  flex: none;
  width: 32px;
  height: 32px;
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  border-radius: 8px;
  color: var(--bpp-chat-brown) !important;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
}

#bpp-chat-root .bpp-chat-close:hover,
#bpp-chat-root .bpp-chat-close:focus {
  background: var(--bpp-chat-chip) !important;
  color: var(--bpp-chat-brown) !important;
  border: 0;
}

#bpp-chat-root .bpp-chat-close:focus-visible {
  outline: 3px solid var(--bpp-chat-brown);
  outline-offset: 2px;
}

#bpp-chat-root .bpp-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--bpp-chat-panel);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#bpp-chat-root .bpp-chat-msg {
  max-width: 88%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bpp-chat-ink);
  white-space: pre-wrap;
}

#bpp-chat-root .bpp-chat-msg.bot {
  align-self: flex-start;
  background: var(--bpp-chat-chip);
  color: var(--bpp-chat-ink);
  border-radius: 12px 12px 12px 4px;
}

#bpp-chat-root .bpp-chat-msg.user {
  align-self: flex-end;
  background: var(--bpp-chat-orange);
  color: var(--bpp-chat-brown);
  border-radius: 12px 12px 4px 12px;
}

#bpp-chat-root .bpp-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
  background: var(--bpp-chat-panel);
}

#bpp-chat-root .bpp-chat-quick button {
  border: 1px solid var(--bpp-chat-border);
  background: #fff !important;
  background-color: #fff !important;
  color: var(--bpp-chat-brown) !important;
  border-radius: var(--bpp-chat-radius-btn);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none !important;
}

#bpp-chat-root .bpp-chat-quick button:hover,
#bpp-chat-root .bpp-chat-quick button:focus {
  border-color: var(--bpp-chat-orange);
  background: #FFF3F0 !important;
  color: var(--bpp-chat-accent-text) !important;
}

#bpp-chat-root .bpp-chat-quick button:focus-visible {
  outline: 3px solid var(--bpp-chat-brown);
  outline-offset: 2px;
}

#bpp-chat-root .bpp-chat-composer {
  border-top: 1px solid var(--bpp-chat-border);
  padding: 10px;
  display: flex;
  gap: 8px;
  background: #fff;
  align-items: center;
}

#bpp-chat-root .bpp-chat-composer input,
#bpp-chat-root .bpp-chat-form input[type="text"],
#bpp-chat-root .bpp-chat-form input[type="email"],
#bpp-chat-root .bpp-chat-form input[type="tel"],
#bpp-chat-root .bpp-chat-form select {
  flex: 1;
  border: 1px solid var(--bpp-chat-border) !important;
  border-radius: var(--bpp-chat-radius-btn);
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  font-family: var(--bpp-chat-font);
  color: var(--bpp-chat-brown) !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: 0;
  min-width: 0;
  height: auto;
}

#bpp-chat-root .bpp-chat-composer input::placeholder,
#bpp-chat-root .bpp-chat-form input::placeholder {
  color: var(--bpp-chat-placeholder);
}

#bpp-chat-root .bpp-chat-composer input:focus,
#bpp-chat-root .bpp-chat-form input[type="text"]:focus,
#bpp-chat-root .bpp-chat-form input[type="email"]:focus,
#bpp-chat-root .bpp-chat-form input[type="tel"]:focus,
#bpp-chat-root .bpp-chat-form select:focus {
  border-color: var(--bpp-chat-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 41, 0.28) !important;
  color: var(--bpp-chat-brown) !important;
}

#bpp-chat-root .bpp-chat-composer button,
#bpp-chat-root .bpp-chat-form .submit {
  border: 0;
  border-radius: var(--bpp-chat-radius-btn);
  background: var(--bpp-chat-gradient) !important;
  background-color: var(--bpp-chat-orange) !important;
  color: #fff !important;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: var(--bpp-chat-cta-shadow);
  text-shadow: 0 1px 2px rgba(37, 10, 6, 0.25);
  white-space: nowrap;
}

#bpp-chat-root .bpp-chat-composer button:hover,
#bpp-chat-root .bpp-chat-form .submit:hover,
#bpp-chat-root .bpp-chat-composer button:focus,
#bpp-chat-root .bpp-chat-form .submit:focus {
  background: var(--bpp-chat-gradient) !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff !important;
  border: 0;
}

#bpp-chat-root .bpp-chat-composer button:focus-visible,
#bpp-chat-root .bpp-chat-form .submit:focus-visible,
#bpp-chat-root .bpp-chat-form .skip:focus-visible {
  outline: 3px solid var(--bpp-chat-brown);
  outline-offset: 2px;
}

#bpp-chat-root .bpp-chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
  width: 100%;
}

#bpp-chat-root .bpp-chat-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--bpp-chat-brown);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#bpp-chat-root .bpp-chat-form .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bpp-chat-muted);
}

#bpp-chat-root .bpp-chat-form .consent input {
  margin-top: 3px;
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--bpp-chat-orange);
}

#bpp-chat-root .bpp-chat-form .actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

#bpp-chat-root .bpp-chat-form .actions button {
  flex: 1;
  border: 0;
  border-radius: var(--bpp-chat-radius-btn);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

#bpp-chat-root .bpp-chat-form .skip {
  background: var(--bpp-chat-chip) !important;
  background-color: var(--bpp-chat-chip) !important;
  color: var(--bpp-chat-ink) !important;
  box-shadow: none !important;
}

#bpp-chat-root .bpp-chat-form .skip:hover,
#bpp-chat-root .bpp-chat-form .skip:focus {
  background: #E4E4E7 !important;
  color: var(--bpp-chat-ink) !important;
  border: 0;
}

#bpp-chat-root .bpp-chat-note {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bpp-chat-muted);
  padding: 0 14px 8px;
  background: var(--bpp-chat-panel);
}

#bpp-chat-root .bpp-chat-note a {
  color: var(--bpp-chat-accent-text);
  text-decoration: underline;
}

@media (max-width: 640px) {
  #bpp-chat-root .bpp-chat-launcher {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 16px;
  }
  #bpp-chat-root .bpp-chat-icon {
    width: 22px;
    height: 22px;
  }
  #bpp-chat-root .bpp-chat-panel {
    right: 8px;
    left: 8px;
    bottom: 72px;
    width: auto;
    height: min(520px, calc(100vh - 96px));
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bpp-chat-root .bpp-chat-launcher,
  #bpp-chat-root .bpp-chat-composer button,
  #bpp-chat-root .bpp-chat-form .submit {
    transition: none;
  }
  #bpp-chat-root .bpp-chat-launcher:hover,
  #bpp-chat-root .bpp-chat-composer button:hover,
  #bpp-chat-root .bpp-chat-form .submit:hover {
    transform: none;
  }
}

#bpp-chat-root .bpp-chat-privacy {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bpp-chat-muted);
  margin: 2px 0 0;
}
#bpp-chat-root .bpp-chat-privacy a {
  color: var(--bpp-chat-accent-text);
  text-decoration: underline;
}
#bpp-chat-root .bpp-chat-privacy a:focus-visible {
  outline: 3px solid var(--bpp-chat-brown);
  outline-offset: 2px;
}
#bpp-chat-root .bpp-chat-form .consent a {
  color: var(--bpp-chat-accent-text);
  text-decoration: underline;
}

#bpp-chat-root .bpp-chat-teaser {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 2147483002;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 260px;
  padding: 10px 8px 10px 12px;
  background: #fff;
  color: var(--bpp-chat-brown);
  border: 1px solid var(--bpp-chat-border);
  border-radius: var(--bpp-chat-radius);
  box-shadow: var(--bpp-chat-shadow);
  font-family: var(--bpp-chat-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
#bpp-chat-root .bpp-chat-teaser[hidden] {
  display: none !important;
}
#bpp-chat-root .bpp-chat-teaser-msg {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bpp-chat-brown) !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
#bpp-chat-root .bpp-chat-teaser-msg:hover,
#bpp-chat-root .bpp-chat-teaser-msg:focus {
  background: transparent !important;
  color: var(--bpp-chat-brown) !important;
  border: 0;
}
#bpp-chat-root .bpp-chat-teaser-msg:focus-visible,
#bpp-chat-root .bpp-chat-teaser-close:focus-visible {
  outline: 3px solid var(--bpp-chat-brown);
  outline-offset: 2px;
}
#bpp-chat-root .bpp-chat-teaser-close {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--bpp-chat-brown) !important;
  box-shadow: none !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#bpp-chat-root .bpp-chat-teaser-close:hover,
#bpp-chat-root .bpp-chat-teaser-close:focus {
  background: var(--bpp-chat-chip) !important;
  color: var(--bpp-chat-brown) !important;
  border: 0;
}
@media (max-width: 640px) {
  #bpp-chat-root .bpp-chat-teaser {
    right: 12px;
    bottom: 72px;
    max-width: 210px;
    padding: 8px 6px 8px 10px;
    font-size: 12px;
    border-radius: 12px;
  }
  #bpp-chat-root .bpp-chat-teaser-close {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #bpp-chat-root .bpp-chat-teaser {
    transition: none;
  }
}
