#tp-pig{--pig-red:#b7192d;--pig-black:#171717;position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:500;color:#222;font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;max-width:calc(100vw - 32px)}
#tp-pig *{box-sizing:border-box}#tp-pig [hidden]{display:none!important}#tp-pig button{font:inherit;cursor:pointer;text-transform:none;letter-spacing:normal;min-height:36px;border:1px solid #bbb;border-radius:8px;background:#fff;color:#222;padding:7px 10px;box-shadow:none;line-height:1.25}#tp-pig button:focus-visible,#tp-pig a:focus-visible,#tp-pig input:focus-visible{outline:3px solid #bd6500;outline-offset:3px}#tp-pig .tp-pig-launch{display:flex;align-items:center;gap:9px;background:var(--pig-black);border:1px solid #fff;color:#fff;border-radius:32px;padding:6px 15px 6px 6px;box-shadow:0 3px 15px #0004;font-weight:700}#tp-pig .tp-pig-face img{display:block;border-radius:50%;width:40px;height:40px}#tp-pig .tp-pig-panel{width:min(380px,calc(100vw - 32px));height:min(590px,calc(100vh - 40px));height:min(590px,calc(100dvh - 40px));display:flex;flex-direction:column;background:#fff;border:1px solid #bbb;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px #0004}#tp-pig .tp-pig-header{display:flex;gap:10px;align-items:center;padding:12px;background:var(--pig-black);color:#fff}#tp-pig .tp-pig-header img{width:44px;height:44px;flex:none;border-radius:50%}#tp-pig .tp-pig-header strong,#tp-pig .tp-pig-header small{display:block;color:#fff}#tp-pig .tp-pig-header strong{font-size:19px}#tp-pig .tp-pig-header small{font-size:12px}#tp-pig .tp-pig-close{margin-left:auto;background:transparent;color:#fff;border-color:#777;font-size:24px;min-width:40px}#tp-pig .tp-pig-toolbar{display:flex;justify-content:space-between;padding:7px 12px;border-bottom:1px solid #ddd}#tp-pig .tp-pig-toolbar button{font-size:12px}#tp-pig .tp-pig-log{flex:1;min-height:80px;overflow:auto;padding:12px;overscroll-behavior:contain}#tp-pig .tp-pig-bubble{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f1f1;color:#222;padding:10px 12px;border-radius:10px;margin:0 28px 9px 0}#tp-pig .tp-pig-user{background:var(--pig-black);color:#fff;margin-left:28px;margin-right:0}#tp-pig .tp-pig-bubble a{display:block;color:#8f1020;font-weight:700;text-decoration:underline;margin-top:7px}#tp-pig .tp-pig-prompts{display:flex;gap:5px;flex-wrap:wrap;padding:6px 12px}#tp-pig .tp-pig-prompts button{font-size:12px;border-radius:20px}#tp-pig .tp-pig-form{display:flex;gap:6px;padding:8px 12px;margin:0}#tp-pig .tp-pig-form input{flex:1;min-width:0;margin:0;background:#fff;color:#222;border:1px solid #999;border-radius:8px;padding:8px;font:inherit;font-size:16px}#tp-pig .tp-pig-form button{background:var(--pig-red);color:#fff;border-color:var(--pig-red)}#tp-pig .tp-pig-note{font-size:11px;color:#555;padding:0 12px 10px;margin:0;line-height:1.4}#tp-pig .tp-pig-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#tp-pig[data-preview] .tp-pig-launch:after{content:"Preview";font-size:10px;color:#fff;background:#8b1725;padding:3px 5px;border-radius:4px}@media(max-width:480px){#tp-pig{bottom:max(12px,env(safe-area-inset-bottom));left:12px;max-width:calc(100vw - 24px)}#tp-pig .tp-pig-panel{width:calc(100vw - 24px);height:min(560px,calc(100dvh - 24px))}}

#tp-pig .tp-pig-audio-status{font-size:12px;margin:0;padding:6px 12px;background:#fff4e3;color:#45300b}#tp-pig .tp-pig-note a{color:inherit;text-decoration:underline}

#tp-pig .tp-pig-product{display:flex;gap:9px;padding:9px 0;border-top:1px solid #d1d1d1;margin-top:8px;align-items:flex-start}#tp-pig .tp-pig-product img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:5px;flex:none}#tp-pig .tp-pig-product div{min-width:0;flex:1}#tp-pig .tp-pig-product strong,#tp-pig .tp-pig-product small,#tp-pig .tp-pig-price{display:block;overflow-wrap:anywhere}#tp-pig .tp-pig-product small{font-size:12px;color:#444}#tp-pig .tp-pig-price{font-weight:700;margin:3px 0}#tp-pig .tp-pig-lookup-status{font-size:12px;margin-top:8px;color:#444}

#tp-pig .tp-pig-support{padding:7px 12px;background:#f4f4f4;color:#222;border-top:1px solid #ddd;font-size:13px}#tp-pig .tp-pig-support-bar{display:flex;align-items:center;justify-content:space-between;gap:6px}#tp-pig .tp-pig-support button{font-size:13px;padding:5px 8px;min-height:30px}#tp-pig .tp-pig-contact-links a{color:#8c1520;text-decoration:underline}#tp-pig .tp-pig-live-pane[hidden],#tp-pig .tp-pig-support [hidden]{display:none!important}#tp-pig .tp-pig-live-log{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:white;padding:6px}#tp-pig .tp-pig-live-form{display:flex;gap:5px}#tp-pig .tp-pig-live-form input{min-width:0;flex:1}#tp-pig .tp-pig-live-pane p{margin:5px 0}#tp-pig .tp-pig-live-pane{max-height:38vh;overflow:auto}

#tp-pig .tp-pig-availability{display:block;font-size:11px;font-weight:500;max-width:185px;white-space:normal;color:#ddd}#tp-pig .tp-pig-availability:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#aaa;margin-right:5px}#tp-pig .tp-pig-availability[data-state="online"]:before{background:#4ade80}#tp-pig .tp-pig-availability[data-state="online"]{color:#bbf7d0}

/* Stage One mobile layout: XStore off-canvas and fixed mobile toolbar. */
@media (max-width: 992px) {
  #tp-pig { --pig-bottom: calc(max(76px, calc(var(--mobile-panel-height, 60px) + 12px)) + env(safe-area-inset-bottom, 0px)); bottom: var(--pig-bottom); }
  #tp-pig .tp-pig-panel { height: min(560px, calc(100vh - var(--pig-bottom) - 16px)); height: min(560px, calc(100dvh - var(--pig-bottom) - 16px)); }
  #tp-pig .tp-pig-log { min-height: 0; }
  html.et-mini-content-opened #tp-pig,
  html:has(.et_b_header-mobile-menu.et-content-shown) #tp-pig,
  html:has(.et-mobile-panel .et-content-shown) #tp-pig { display: none !important; }
  body:has(#tp-pig .tp-pig-panel:not([hidden])) .back-top { visibility: hidden !important; pointer-events: none !important; }
}

/* XStore Elementor header off-canvas uses a distinct body state. */
@media (max-width: 992px) {
  body.etheme-elementor-off-canvas--shown #tp-pig,
  html:has(.etheme-elementor-off-canvas--active) #tp-pig,
  html:has(.et-off-canvas > .et-mini-content.active) #tp-pig { display: none !important; }
}
