/* All widget styles are scoped to avoid changes to the host WordPress theme. */
#perticom-assistant-root { --pta-ink: #101113; --pta-coral: #ff7b88; --pta-muted: #737477; --pta-line: #e9e7e4; --pta-paper: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--pta-ink); text-align: left; }
#perticom-assistant-root *, #perticom-assistant-root *::before, #perticom-assistant-root *::after { box-sizing: border-box; }
#perticom-assistant-root button, #perticom-assistant-root textarea, #perticom-assistant-root input { font: inherit; }
#perticom-assistant-root button { appearance: none; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; }
#perticom-assistant-root button:disabled { cursor: not-allowed; }
#perticom-assistant-root button, #perticom-assistant-root a, #perticom-assistant-root textarea, #perticom-assistant-root input, #perticom-assistant-root [tabindex] { -webkit-tap-highlight-color: transparent; }
#perticom-assistant-root :focus-visible { outline: 3px solid #d04459; outline-offset: 3px; }
#perticom-assistant-root [hidden] { display: none !important; }
#perticom-assistant-root h2, #perticom-assistant-root h3, #perticom-assistant-root p { padding: 0; margin: 0; color: inherit; }
#perticom-assistant-root svg { width: 21px; height: 21px; display: block; flex-shrink: 0; }
#perticom-assistant-root .pta-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#perticom-assistant-root .pta-launcher { position: fixed; z-index: 999990; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 11px; min-height: 56px; padding: 15px 20px; border: 1px solid #292a2c; border-radius: 40px; background: var(--pta-ink); box-shadow: 0 8px 30px #10111324; color: white; font-size: 14px; font-weight: 600; transition: transform 180ms, box-shadow 180ms; }
#perticom-assistant-root .pta-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 35px #10111335; }
#perticom-assistant-root .pta-launcher svg { color: var(--pta-coral); }
#perticom-assistant-root .pta-launcher-dot { width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--pta-coral); }
#perticom-assistant-root.pta-is-open .pta-launcher { visibility: hidden; }
#perticom-assistant-root .pta-panel { position: fixed; inset: auto 24px 24px auto; z-index: 999999; width: 422px; height: min(760px, calc(100dvh - 48px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); margin: 0; padding: 0; overflow: hidden; border: 1px solid #deddda; border-radius: 22px; background: var(--pta-paper); color: var(--pta-ink); box-shadow: 0 24px 100px #1011132b, 0 2px 10px #1011130d; font-family: inherit; }
#perticom-assistant-root .pta-panel[open] { display: flex; flex-direction: column; animation: pta-arrive 180ms ease-out; }
#perticom-assistant-root .pta-panel::backdrop { background: #10111320; backdrop-filter: blur(2px); }
#perticom-assistant-root .pta-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 21px 20px; border-bottom: 1px solid var(--pta-line); background: #fff; }
#perticom-assistant-root .pta-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
#perticom-assistant-root .pta-mark { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 50%; background: #fff; overflow: hidden; }
#perticom-assistant-root .pta-brand-image { display: block; width: 43px; height: 43px; max-width: none; object-fit: contain; }
#perticom-assistant-root .pta-launcher-logo { display: block; width: 27px; height: 27px; flex-shrink: 0; object-fit: contain; border-radius: 50%; background: #fff; }
#perticom-assistant-root .pta-heading h2 { font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -.3px; }
#perticom-assistant-root .pta-heading .pta-mode { margin-top: 3px; color: #626366; font-size: 10px; line-height: 1.4; letter-spacing: 0; }
#perticom-assistant-root .pta-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
#perticom-assistant-root .pta-icon-button { display: grid; place-items: center; width: 34px; height: 36px; padding: 7px; border: 0; border-radius: 9px; color: #626366; background: transparent; }
#perticom-assistant-root .pta-icon-button:hover { color: var(--pta-ink); background: #f2f1ef; }
#perticom-assistant-root .pta-icon-button svg { width: 18px; height: 18px; }
#perticom-assistant-root .pta-conversation { flex: 1 1 0; min-height: 100px; padding: 25px 22px 24px; overflow-y: auto; overscroll-behavior: contain; background: #fbfaf8; scrollbar-width: thin; scrollbar-color: #d8d6d2 transparent; }
#perticom-assistant-root .pta-intro { margin-bottom: 25px; }
#perticom-assistant-root .pta-eyebrow { display: block; margin-bottom: 12px; color: #777574; font-size: 9px; font-weight: 650; letter-spacing: 1.8px; }
#perticom-assistant-root .pta-intro h3 { font-family: inherit; white-space: pre-line; font-size: 31px; font-weight: 650; letter-spacing: -1.5px; line-height: 1.13; }
#perticom-assistant-root .pta-intro p { margin-top: 10px; color: #747270; font-size: 12px; }
#perticom-assistant-root .pta-message { max-width: 96%; margin: 18px 0 0; }
#perticom-assistant-root .pta-message-label { display: block; margin: 0 0 6px 2px; color: #777574; font-size: 10px; font-weight: 500; }
#perticom-assistant-root .pta-message-body { padding: 14px 16px; border: 1px solid var(--pta-line); border-radius: 3px 16px 16px 16px; background: #fff; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
#perticom-assistant-root .pta-message-user { margin-left: auto; }
#perticom-assistant-root .pta-message-user .pta-message-label { text-align: right; margin-right: 2px; }
#perticom-assistant-root .pta-message-user .pta-message-body { border: 0; border-radius: 16px 3px 16px 16px; background: var(--pta-ink); color: #fff; }
#perticom-assistant-root .pta-suggestions { display: flex; flex-direction: column; gap: 7px; margin-top: 17px; }
#perticom-assistant-root .pta-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 13px; border: 1px solid #e6e2de; border-radius: 9px; background: transparent; color: #454443; text-align: left; font-size: 12px; font-weight: 500; transition: background 150ms, border-color 150ms; }
#perticom-assistant-root .pta-suggestion:hover { background: #fff0f1; border-color: #efb7bd; }
#perticom-assistant-root .pta-suggestion svg { width: 14px; height: 14px; color: #9c8587; }
#perticom-assistant-root .pta-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 3px; }
#perticom-assistant-root .pta-source { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #e4e0dc; border-radius: 6px; color: #52504f; font-size: 10px; text-decoration: none; }
#perticom-assistant-root .pta-source:hover { border-color: #c17b83; color: #842f3a; }
#perticom-assistant-root .pta-source svg { width: 10px; height: 10px; }
#perticom-assistant-root .pta-thinking { display: flex; gap: 10px; align-items: center; margin-top: 22px; color: #76716e; font-size: 11px; }
#perticom-assistant-root .pta-thinking-dots { display: inline-flex; gap: 4px; }
#perticom-assistant-root .pta-thinking-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #d3707c; animation: pta-dot 1.1s infinite; }
#perticom-assistant-root .pta-thinking-dots i:nth-child(2) { animation-delay: 120ms; }
#perticom-assistant-root .pta-thinking-dots i:nth-child(3) { animation-delay: 240ms; }
#perticom-assistant-root .pta-footer { flex-shrink: 0; padding: 15px 18px 14px; border-top: 1px solid var(--pta-line); background: #fff; }
#perticom-assistant-root .pta-consent { margin-bottom: 12px; padding: 10px; border: 1px solid #e4dfda; border-radius: 8px; background: #faf8f5; }
#perticom-assistant-root .pta-privacy-details { margin: 5px 0 0 23px; font-size: 10px; color: #605357; line-height: 1.5; }
#perticom-assistant-root .pta-privacy-details summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 2px; }
#perticom-assistant-root .pta-privacy-body { max-height: 140px; overflow-y: auto; padding-top: 5px; }
#perticom-assistant-root .pta-privacy-body p { margin: 0 0 8px; }
#perticom-assistant-root .pta-consent label { display: flex; gap: 8px; align-items: flex-start; color: #605357; font-size: 10px; line-height: 1.5; cursor: pointer; }
#perticom-assistant-root .pta-consent input { appearance: auto; flex: 0 0 15px; width: 15px; height: 15px; margin: 2px 0 0; accent-color: #101113; }
#perticom-assistant-root .pta-consent a { color: #852f3b; text-decoration: underline; text-underline-offset: 2px; }
#perticom-assistant-root .pta-consent-emphasis { border-color: #bd4e5d; box-shadow: 0 0 0 2px #ff7b8833; }
#perticom-assistant-root .pta-form { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 5px 5px 5px 12px; border: 1px solid #dcdad7; border-radius: 13px; background: #fff; }
#perticom-assistant-root .pta-form:focus-within { border-color: #a88b8f; box-shadow: 0 0 0 3px #ff7b8812; }
#perticom-assistant-root .pta-input { display: block; flex: 1; width: 100%; min-width: 0; min-height: 40px; max-height: 112px; margin: 0; padding: 10px 0; border: none; outline: none; border-radius: 0; box-shadow: none; resize: none; background: transparent; color: var(--pta-ink); font-size: 13px; line-height: 20px; }
#perticom-assistant-root .pta-input:focus-visible { outline: none; }
#perticom-assistant-root .pta-input::placeholder { opacity: 1; color: #92908d; }
#perticom-assistant-root .pta-send { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; margin-bottom: 1px; padding: 9px; border: none; border-radius: 10px; background: var(--pta-coral); color: #161214; transition: background 150ms; }
#perticom-assistant-root .pta-send:hover:not(:disabled) { background: #ff6275; }
#perticom-assistant-root .pta-send:disabled { color: #aaa39e; background: #f0ece8; }
#perticom-assistant-root .pta-composer-meta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 1px 10px; color: #85817d; font-size: 8px; line-height: 1.4; }
#perticom-assistant-root .pta-count { white-space: nowrap; }
#perticom-assistant-root .pta-footer-links { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 10px; }
#perticom-assistant-root .pta-footer-links a { color: #575452; text-decoration: none; border-bottom: 1px solid #d9d0ca; }
#perticom-assistant-root .pta-footer-links a:hover { color: #a9404f; border-color: #a9404f; }
#perticom-assistant-root .pta-footer-links span { color: #b4aba5; }
#perticom-assistant-root .pta-notice { margin-top: 10px; color: #8c8883; font-size: 8px; text-align: center; }
#perticom-assistant-root .pta-error { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 11px; border: 1px solid #efd5d5; border-radius: 8px; background: #fff5f5; color: #783e43; font-size: 11px; line-height: 1.5; }
#perticom-assistant-root .pta-retry { flex-shrink: 0; padding: 6px 8px; border: 1px solid #b77b80; border-radius: 5px; background: transparent; color: #783e43; font-size: 10px; font-weight: 600; }
@keyframes pta-dot { 0%, 65%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pta-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) {
  #perticom-assistant-root .pta-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 52px; padding: 13px 17px; font-size: 12px; }
  #perticom-assistant-root .pta-panel { inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; width: auto; max-width: none; height: min(760px, calc(100dvh - 16px - env(safe-area-inset-bottom))); max-height: calc(100dvh - 16px - env(safe-area-inset-bottom)); border-radius: 18px; }
  #perticom-assistant-root .pta-header { padding: 16px; }
  #perticom-assistant-root .pta-conversation { padding: 22px 18px; }
  #perticom-assistant-root .pta-input { font-size: 16px; }
  #perticom-assistant-root .pta-footer { padding: 12px 14px; }
  #perticom-assistant-root .pta-heading .pta-mode { font-size: 9px; }
}
@media (max-height: 600px) {
  #perticom-assistant-root .pta-panel { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); bottom: 8px; }
  #perticom-assistant-root .pta-header { padding-top: 12px; padding-bottom: 12px; }
  #perticom-assistant-root .pta-conversation { min-height: 70px; }
  #perticom-assistant-root .pta-intro h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #perticom-assistant-root *, #perticom-assistant-root *::before, #perticom-assistant-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Contact capture: kept separate from the AI conversation. */
#perticom-assistant-root .pta-lead-open { width:100%; padding:10px 14px; margin:0 0 10px; border:1px solid #ddd4ce; border-radius:9px; background:#f8f4f0; color:#282326; font-size:12px; font-weight:600; }
#perticom-assistant-root .pta-lead-open:hover { background:#ffedea; }
#perticom-assistant-root .pta-source-details { margin-top:8px; color:#76716b; font-size:10px; }
#perticom-assistant-root .pta-source-details summary { cursor:pointer; }
#perticom-assistant-root .pta-lead-form { overflow-y:auto; min-height:0; flex:1; padding:22px; background:#faf8f5; color:#242124; }
#perticom-assistant-root .pta-lead-form h3 { margin:0 0 8px; font-size:24px; line-height:1.2; letter-spacing:-.5px; }
#perticom-assistant-root .pta-lead-form > p { font-size:12px; line-height:1.6; margin:0 0 18px; }
#perticom-assistant-root .pta-lead-field { display:block; font-size:12px; font-weight:600; margin:14px 0; }
#perticom-assistant-root .pta-lead-field input, #perticom-assistant-root .pta-lead-field textarea { display:block; width:100%; box-sizing:border-box; margin:6px 0 0; border:1px solid #d9d1cc; border-radius:8px; background:white; padding:11px; font:inherit; font-size:16px; font-weight:400; color:#242124; }
#perticom-assistant-root .pta-lead-field textarea { resize:vertical; min-height:110px; }
#perticom-assistant-root .pta-lead-consent { display:flex; align-items:flex-start; gap:9px; font-size:12px; line-height:1.5; margin:18px 0 10px; }
#perticom-assistant-root .pta-lead-consent input { appearance:auto; width:17px; height:17px; flex:0 0 17px; margin:2px 0 0; }
#perticom-assistant-root .pta-lead-form .pta-lead-privacy { font-size:10px; color:#6a625e; }
#perticom-assistant-root .pta-lead-form a { color:#863846; text-decoration:underline; }
#perticom-assistant-root .pta-lead-submit, #perticom-assistant-root .pta-lead-back { display:block; width:100%; padding:13px; border:0; border-radius:9px; font-size:13px; font-weight:600; background:#ff7b88; color:#211b1e; margin-top:10px; }
#perticom-assistant-root .pta-lead-back { background:transparent; font-weight:400; text-decoration:underline; }
#perticom-assistant-root .pta-lead-status:not(:empty) { background:#f4e6dc; padding:12px; border-radius:8px; color:#573b30; }
#perticom-assistant-root [hidden] { display:none !important; }
