/* CRM-backed AI consultant. The remote iframe is loaded only after the visitor opens it. */

.pdl-ai-consultant { position: relative; z-index: 1200; }
.pdl-ai-nudge { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: calc(max(22px, env(safe-area-inset-bottom)) + 76px); z-index: 1202; display: grid; grid-template-columns: minmax(0, 1fr) 34px; width: min(316px, calc(100vw - 44px)); overflow: hidden; color: #17364f; background: #fff; border: 1px solid rgba(16, 59, 91, .16); border-radius: 8px; box-shadow: 0 18px 44px rgba(5, 29, 51, .2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.pdl-ai-nudge[hidden] { display: none; }
.pdl-ai-nudge.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pdl-ai-nudge-main { min-width: 0; padding: 14px 8px 14px 16px; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
.pdl-ai-nudge-main strong, .pdl-ai-nudge-main span { display: block; }
.pdl-ai-nudge-main strong { color: #102941; font-size: .92rem; line-height: 1.4; }
.pdl-ai-nudge-main span { margin-top: 5px; color: #63798a; font-size: .76rem; line-height: 1.55; }
.pdl-ai-nudge-main:hover strong, .pdl-ai-nudge-main:focus-visible strong { color: #075bc7; }
.pdl-ai-nudge-main:focus-visible, .pdl-ai-nudge-dismiss:focus-visible { outline: 3px solid rgba(37, 191, 171, .42); outline-offset: -3px; }
.pdl-ai-nudge-dismiss { display: grid; place-items: center; align-self: start; width: 34px; height: 34px; margin: 6px 6px 0 0; padding: 0; color: #6b8192; background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.pdl-ai-nudge-dismiss:hover { color: #102941; background: #edf4f8; }
.pdl-ai-nudge-dismiss svg { width: 17px; height: 17px; }
.pdl-ai-launcher { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 1201; display: inline-grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 178px; min-height: 62px; padding: 9px 15px 9px 10px; color: #fff; text-align: left; background: #075bc7; border: 1px solid rgba(255, 255, 255, .24); border-radius: 8px; box-shadow: 0 14px 34px rgba(7, 49, 94, .24); cursor: pointer; transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.pdl-ai-launcher:hover, .pdl-ai-launcher:focus-visible { background: #064da9; box-shadow: 0 17px 40px rgba(7, 49, 94, .3); transform: translateY(-2px); }
.pdl-ai-launcher:focus-visible, .pdl-ai-close:focus-visible { outline: 3px solid rgba(37, 191, 171, .48); outline-offset: 3px; }
.pdl-ai-launcher-icon, .pdl-ai-heading-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #075bc7; background: #fff; border-radius: 6px; }
.pdl-ai-launcher-icon svg, .pdl-ai-heading-icon svg { width: 23px; height: 23px; }
.pdl-ai-launcher-copy strong, .pdl-ai-launcher-copy small, .pdl-ai-heading strong, .pdl-ai-heading small { display: block; }
.pdl-ai-launcher-copy strong { font-size: .93rem; line-height: 1.3; }
.pdl-ai-launcher-copy small { margin-top: 3px; color: rgba(255, 255, 255, .78); font-size: .69rem; line-height: 1.35; }
.pdl-ai-shell { position: fixed; z-index: 1210; inset: 0; }
.pdl-ai-shell[hidden] { display: none; }
.pdl-ai-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(7, 28, 48, .38); border: 0; cursor: default; opacity: 0; transition: opacity 180ms ease; }
.pdl-ai-dialog { position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(420px, calc(100vw - 44px)); height: min(760px, calc(100dvh - 44px)); min-height: 520px; overflow: hidden; background: #fff; border: 1px solid rgba(16, 59, 91, .16); border-radius: 8px; box-shadow: 0 24px 72px rgba(5, 29, 51, .34); opacity: 0; transform: translateY(18px); transition: opacity 180ms ease, transform 180ms ease; }
.pdl-ai-shell.is-open .pdl-ai-backdrop, .pdl-ai-shell.is-open .pdl-ai-dialog { opacity: 1; }
.pdl-ai-shell.is-open .pdl-ai-dialog { transform: translateY(0); }
.pdl-ai-header { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px 14px; background: #f1f7fb; border-bottom: 1px solid rgba(16, 59, 91, .12); }
.pdl-ai-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; min-width: 0; }
.pdl-ai-heading-icon { color: #fff; background: #075bc7; }
.pdl-ai-heading strong { color: #102941; font-size: 1rem; line-height: 1.35; }
.pdl-ai-heading small { margin-top: 3px; color: #6b8192; font-size: .72rem; line-height: 1.4; }
.pdl-ai-close { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; color: #35566e; background: transparent; border: 0; border-radius: 6px; cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.pdl-ai-close:hover { color: #102941; background: #e3eef5; }
.pdl-ai-close svg { width: 21px; height: 21px; }
.pdl-ai-body { position: relative; min-height: 0; overflow: hidden; background: #f7fafc; }
.pdl-ai-frame { display: block; width: 100%; height: 100%; background: #fff; border: 0; opacity: 0; transition: opacity 160ms ease; }
.pdl-ai-frame.is-ready { opacity: 1; }
.pdl-ai-loading, .pdl-ai-error { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; padding: 32px; color: #17364f; text-align: center; background: #f7fafc; }
.pdl-ai-loading[hidden], .pdl-ai-error[hidden] { display: none; }
.pdl-ai-loading > span { width: 34px; height: 34px; margin-bottom: 16px; border: 3px solid #ccdfeb; border-top-color: #075bc7; border-radius: 50%; animation: pdl-ai-spin 700ms linear infinite; }
.pdl-ai-loading strong, .pdl-ai-error strong { color: #102941; font-size: 1rem; }
.pdl-ai-loading small { margin-top: 7px; color: #728696; font-size: .78rem; }
.pdl-ai-error p { max-width: 290px; margin: 11px 0 20px; color: #63798a; font-size: .86rem; line-height: 1.65; }
.pdl-ai-error > div { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.pdl-ai-error .pdl-button { min-height: 42px; padding: 9px 16px; font-size: .82rem; }
.pdl-ai-note { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); color: #6d8191; background: #f1f7fb; border-top: 1px solid rgba(16, 59, 91, .1); font-size: .68rem; line-height: 1.55; }
body.pdl-ai-is-open { overflow: hidden; }
@keyframes pdl-ai-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .pdl-ai-nudge { right: max(12px, env(safe-area-inset-right)); bottom: calc(136px + env(safe-area-inset-bottom)); width: min(300px, calc(100vw - 24px)); }
  .pdl-ai-nudge-main { padding: 12px 6px 12px 13px; }
  .pdl-ai-nudge-main strong { font-size: .86rem; }
  .pdl-ai-nudge-main span { font-size: .72rem; }
  .pdl-ai-launcher { right: max(12px, env(safe-area-inset-right)); bottom: calc(72px + env(safe-area-inset-bottom)); grid-template-columns: 38px minmax(0, 1fr); min-width: 0; min-height: 52px; padding: 7px 11px 7px 7px; }
  .pdl-ai-launcher-icon { width: 38px; height: 38px; }
  .pdl-ai-launcher-copy small { display: none; }
  .pdl-ai-dialog { inset: 0; width: 100%; height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
  .pdl-ai-header { min-height: 68px; padding-top: max(10px, env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  .pdl-ai-consultant *, .pdl-ai-consultant *::before, .pdl-ai-consultant *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
