/* Scoped customer-facing ProQuip Caddie widget; inherits the shop's Titillium Web font. */
#pqn-root {
    --pqn-navy: #142b49;
    --pqn-blue: #215d9c;
    --pqn-text: #1c2d40;
    --pqn-muted: #566778;
    --pqn-line: #e0e7ee;
    --pqn-soft: #f2f6f9;
    color: var(--pqn-text);
    font-family: "Titillium Web", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    letter-spacing: normal;
}
#pqn-root *, #pqn-root *::before, #pqn-root *::after { box-sizing: border-box; }
#pqn-root [hidden] { display: none !important; }
#pqn-root button, #pqn-root textarea, #pqn-root a { font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; }
#pqn-root button { margin: 0; appearance: none; cursor: pointer; box-shadow: none; }
#pqn-root button:disabled { cursor: default; opacity: .5; }
#pqn-root button:focus-visible, #pqn-root a:focus-visible, #pqn-root textarea:focus-visible { outline: 3px solid #89b9e8; outline-offset: 3px; }
#pqn-root a { color: var(--pqn-blue); text-decoration: underline; text-underline-offset: 3px; }
#pqn-root .pqn-launcher {
    position: fixed;
    z-index: 99970;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 19px;
    border: 1px solid var(--pqn-navy);
    border-radius: 28px;
    background: var(--pqn-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgb(20 43 73 / 18%);
}
#pqn-root .pqn-launcher:hover { background: var(--pqn-blue); border-color: var(--pqn-blue); }
#pqn-root .pqn-launcher svg { flex: 0 0 22px; }
#pqn-root.pqn-obscured .pqn-launcher, #pqn-root.pqn-obscured .pqn-teaser { visibility: hidden; pointer-events: none; }
#pqn-root .pqn-panel {
    position: fixed;
    z-index: 99980;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 64px));
    width: min(400px, calc(100vw - 32px));
    height: min(680px, calc(100dvh - 116px));
    min-height: 360px;
    display: flex;
    flex-direction: column;
    border: 1px solid #d7e0e9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 56px rgb(20 43 73 / 20%);
    overflow: hidden;
}
#pqn-root .pqn-header { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-height: 82px; padding: 17px 16px 17px 20px; background: var(--pqn-navy); color: #fff; }
#pqn-root .pqn-avatar { flex: 0 0 46px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; padding: 2px; border: 1px solid rgb(255 255 255 / 38%); border-radius: 50%; background: rgb(255 255 255 / 8%); overflow: hidden; }
#pqn-root .pqn-avatar-logo { display: block; width: 40px; height: 40px; object-fit: contain; }
#pqn-root .pqn-titles { flex: 1 1 auto; min-width: 0; }
#pqn-root .pqn-title { padding: 0; margin: 0; color: #fff; font-family: inherit; font-size: 21px; line-height: 1.2; font-weight: 600; text-transform: none; letter-spacing: normal; }
#pqn-root .pqn-subtitle { margin: 3px 0 0; color: #d5e0ec; font-size: 13px; line-height: 1.35; font-weight: 400; }
#pqn-root .pqn-subtitle:empty { display: none; }
#pqn-root .pqn-close { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: #fff; }
#pqn-root .pqn-close:hover { background: rgb(255 255 255 / 13%); }
#pqn-root .pqn-preview { flex: 0 0 auto; padding: 7px 16px; background: #fff2d5; color: #704907; font-size: 11px; text-align: center; line-height: 1.4; }
#pqn-root .pqn-context { display: flex; flex: 0 0 auto; flex-direction: column; gap: 2px; padding: 11px 20px; background: var(--pqn-soft); border-bottom: 1px solid var(--pqn-line); }
#pqn-root .pqn-context-label { color: var(--pqn-muted); font-size: 11px; }
#pqn-root .pqn-context-name { font-size: 13px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
#pqn-root .pqn-context-size { color: var(--pqn-muted); font-size: 12px; }
#pqn-root .pqn-conversation { flex: 1 1 auto; min-height: 80px; padding: 19px 18px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; scrollbar-width: thin; }
#pqn-root .pqn-log { display: flex; flex-direction: column; gap: 18px; }
#pqn-root .pqn-message { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
#pqn-root .pqn-message-user { align-items: flex-end; }
#pqn-root .pqn-speaker { padding: 0 4px 4px; color: var(--pqn-muted); font-size: 11px; font-weight: 600; }
#pqn-root .pqn-bubble { max-width: 95%; padding: 12px 14px; border-radius: 4px 15px 15px 15px; background: var(--pqn-soft); color: var(--pqn-text); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
#pqn-root .pqn-welcome-message .pqn-bubble { max-width: 100%; padding: 14px 15px; background: #eef5fb; border: 1px solid #d9e6f2; font-size: 15px; line-height: 1.55; }
#pqn-root .pqn-message-user .pqn-bubble { border-radius: 15px 4px 15px 15px; background: var(--pqn-navy); color: #fff; }
#pqn-root .pqn-typing-bubble { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 42px; padding: 10px 14px; }
#pqn-root .pqn-typing-dots { display: inline-flex; align-items: center; gap: 5px; height: 10px; }
#pqn-root .pqn-typing-dot { width: 7px; height: 7px; border-radius: 50%; background: #75879a; opacity: .35; animation: pqn-typing-dot 1.15s infinite ease-in-out; }
#pqn-root .pqn-typing-dot:nth-child(2) { animation-delay: .16s; }
#pqn-root .pqn-typing-dot:nth-child(3) { animation-delay: .32s; }
@keyframes pqn-typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
#pqn-root .pqn-back-menu { display: inline-flex; align-items: center; width: auto; min-height: 34px; margin: 14px 0 0; padding: 5px 2px; border: 0; background: transparent; color: var(--pqn-blue); font-size: 13px; line-height: 1.3; font-weight: 600; text-align: left; }
#pqn-root .pqn-back-menu:hover:not(:disabled) { color: var(--pqn-navy); text-decoration: underline; }
#pqn-root .pqn-suggestions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 16px 0 0; }
#pqn-root .pqn-question { width: 100%; min-height: 39px; padding: 8px 12px; border: 1px solid #cbd9e7; border-radius: 9px; background: #fff; color: var(--pqn-blue); text-align: left; font-size: 13px; font-weight: 500; white-space: normal; }
#pqn-root .pqn-question:hover:not(:disabled) { background: var(--pqn-soft); border-color: var(--pqn-blue); }
#pqn-root .pqn-status { flex: 0 0 auto; padding: 8px 19px 0; color: var(--pqn-muted); font-size: 12px; line-height: 1.45; }
#pqn-root .pqn-status-error { color: #8b3a20; }
#pqn-root .pqn-form { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 8px; margin: 10px 16px 10px; padding: 4px 4px 4px 12px; border: 1px solid #c5d1de; border-radius: 12px; background: #fff; }
#pqn-root .pqn-form:focus-within { border-color: var(--pqn-blue); box-shadow: 0 0 0 2px rgb(33 93 156 / 10%); }
#pqn-root .pqn-input { flex: 1 1 auto; min-width: 0; min-height: 32px; height: 32px; max-height: 96px; margin: 0; padding: 5px 0; border: 0; border-radius: 0; background: #fff; color: var(--pqn-text); caret-color: var(--pqn-blue); resize: none; box-shadow: none; font-size: 16px; line-height: 1.35; overflow-y: auto; }
#pqn-root .pqn-input::placeholder { color: #617283; opacity: 1; }
#pqn-root .pqn-input:focus-visible { outline: 0; animation: pqn-caret-blink 1s steps(1,end) infinite; }
@keyframes pqn-caret-blink { 0%, 49% { caret-color: var(--pqn-blue); } 50%, 100% { caret-color: transparent; } }
#pqn-root .pqn-input:disabled { background: #fff; color: var(--pqn-muted); opacity: 1; }
#pqn-root .pqn-send { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; margin: 0; padding: 8px; border: 0; border-radius: 9px; background: var(--pqn-blue); color: #fff; }
#pqn-root .pqn-send:hover:not(:disabled) { background: var(--pqn-navy); }
#pqn-root .pqn-footer { flex: 0 0 auto; padding: 12px 18px 14px; border-top: 1px solid var(--pqn-line); background: #f8fafc; }
#pqn-root .pqn-contact { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding: 0 0 12px; font-size: 13px; }
#pqn-root .pqn-contact-label { width: 100%; margin: 0; color: var(--pqn-navy); text-align: left; font-size: 16px; line-height: 1.35; font-weight: 700; }
#pqn-root .pqn-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; }
#pqn-root .pqn-contact-link { display: flex; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; min-width: 0; min-height: 54px; padding: 10px 12px; border: 1px solid #b8c9da; border-radius: 10px; background: #fff; color: var(--pqn-navy); font-size: 14px; line-height: 1.2; font-weight: 700; white-space: normal; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
#pqn-root .pqn-contact-icon { flex: 0 0 22px; width: 22px; height: 22px; }
#pqn-root .pqn-contact-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
#pqn-root .pqn-contact-action { font-size: 12px; font-weight: 600; color: var(--pqn-muted); }
#pqn-root .pqn-contact-value { font-size: 13px; font-weight: 700; color: var(--pqn-navy); overflow-wrap: anywhere; }
#pqn-root .pqn-contact-actions > .pqn-contact-link:only-child { grid-column: 1 / -1; }
#pqn-root .pqn-contact-link:hover { border-color: var(--pqn-blue); background: var(--pqn-soft); }
#pqn-root .pqn-notice { margin: 0; color: var(--pqn-muted); font-size: 11px; text-align: center; line-height: 1.5; }
#pqn-root .pqn-privacy { color: var(--pqn-muted); }
#pqn-root .pqn-teaser { display: flex; align-items: center; gap: 4px; position: fixed; z-index: 99970; right: max(22px, env(safe-area-inset-right)); bottom: max(86px, calc(env(safe-area-inset-bottom) + 64px)); max-width: min(330px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--pqn-line); border-radius: 13px; background: #fff; box-shadow: 0 5px 24px rgb(20 43 73 / 12%); }
#pqn-root .pqn-teaser-action { padding: 8px 10px; border: 0; background: #fff; color: var(--pqn-text); text-align: left; font-size: 14px; white-space: normal; }
#pqn-root .pqn-teaser-close { display: flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 34px; padding: 7px; border: 0; border-radius: 50%; background: #fff; color: var(--pqn-muted); }
#pqn-root .pqn-teaser-close:hover { background: var(--pqn-soft); }
#pqn-root .pqn-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; }

#pqn-root .pqn-rating { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:7px 4px 0; color:var(--pqn-muted); font-size:11px; }
#pqn-root .pqn-rating-label { margin-right:2px; }
#pqn-root .pqn-rating-button { min-height:30px; padding:5px 9px; border:1px solid #cbd9e7; border-radius:999px; background:#fff; color:var(--pqn-navy); font-size:11px; line-height:1.2; }
#pqn-root .pqn-rating-button:hover:not(:disabled), #pqn-root .pqn-rating-button.is-selected { background:var(--pqn-soft); border-color:var(--pqn-blue); }
#pqn-root .pqn-rating-button:disabled { opacity:.75; cursor:default; }
#pqn-root .pqn-handoff { width:100%; min-height:42px; margin-top:1px; padding:9px 12px; border:1px solid #b8c9da; border-radius:10px; background:#eef5fb; color:var(--pqn-navy); font-size:13px; line-height:1.3; font-weight:700; text-align:center; }
#pqn-root .pqn-handoff:hover:not(:disabled) { border-color:var(--pqn-blue); background:#e5f0fa; }
#pqn-root .pqn-handoff:disabled { opacity:.65; cursor:default; }
#pqn-root .pqn-message-human .pqn-bubble { background:#eaf4ff; border:1px solid #c9def2; }
@media (max-width: 600px) {
    #pqn-root .pqn-launcher { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); min-height: 48px; padding: 11px 15px; font-size: 14px; }
    #pqn-root.pqn-open .pqn-launcher { visibility: hidden; pointer-events: none; }
    #pqn-root .pqn-panel { right: 0; top: var(--pqn-viewport-top, 0); bottom: auto; width: 100%; height: var(--pqn-viewport-height, 100dvh); min-height: 0; max-height: var(--pqn-viewport-height, 100dvh); border: 0; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); background: #fff; }
    #pqn-root .pqn-header { min-height: 74px; padding: 12px 12px 12px 17px; }
    #pqn-root .pqn-close { width: 44px; height: 44px; flex-basis: 44px; }
    #pqn-root .pqn-context { padding: 10px 17px; }
    #pqn-root .pqn-conversation { padding: 17px 14px; }
    #pqn-root .pqn-question { min-height: 44px; font-size: 14px; }
    #pqn-root .pqn-form { margin-right: 12px; margin-left: 12px; }
    #pqn-root .pqn-footer { padding-right: 12px; padding-left: 12px; padding-bottom: 10px; }
    #pqn-root .pqn-contact { gap: 8px; }
    #pqn-root .pqn-contact-link { min-height: 52px; padding: 12px 14px; font-size: 14px; }
    #pqn-root .pqn-teaser { right: 14px; bottom: max(74px, calc(env(safe-area-inset-bottom) + 62px)); }
}
@media (max-height: 600px) and (min-width: 601px) {
    #pqn-root .pqn-panel { height: calc(100dvh - 32px); min-height: 280px; bottom: 16px; right: 90px; }
    #pqn-root .pqn-launcher { width: 52px; height: 52px; padding: 14px; }
    #pqn-root .pqn-launcher-label { display: none; }
    #pqn-root .pqn-header { min-height: 65px; padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { #pqn-root *, #pqn-root *::before, #pqn-root *::after { scroll-behavior: auto; animation: none; transition: none; } }
