/* Override only after checking checkout controls and cookie banners on real pages. */
#thpl-chat-root { --thpl-chat-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); --thpl-chat-right: 16px; --thpl-chat-z: 9998; font: 14px/1.4 system-ui,sans-serif; }
#thpl-chat-root[hidden],#thpl-chat-panel[hidden] { display:none!important; }
#thpl-chat-root .thpl-chat-launch,#thpl-shopping-controls .thpl-chat-launch { position:fixed; right:var(--thpl-chat-right); bottom:var(--thpl-chat-launch-bottom,var(--thpl-chat-bottom)); z-index:var(--thpl-chat-z); border:0; border-radius:28px; background:#204f40; color:#fff; min-width:64px; min-height:48px; padding:12px 18px; box-shadow:0 3px 16px #0003; cursor:pointer; transition:none; }
#thpl-chat-panel { position:fixed; right:var(--thpl-chat-right); bottom:calc(var(--thpl-chat-panel-bottom,var(--thpl-chat-bottom)) + 58px); max-height:calc(100vh - var(--thpl-chat-panel-bottom,var(--thpl-chat-bottom)) - 66px); max-height:calc(100dvh - var(--thpl-chat-panel-bottom,var(--thpl-chat-bottom)) - 66px); z-index:var(--thpl-chat-z); width:min(380px,calc(100vw - 32px)); height:min(570px,calc(100vh - 190px)); height:min(570px,calc(100dvh - 190px - env(safe-area-inset-bottom, 0px))); min-height:160px; background:#fff; color:#182f2a; border:1px solid #d4ddd4; border-radius:12px; box-shadow:0 5px 30px #0003; overflow:hidden; }
#thpl-chat-panel>header { display:flex; align-items:center; justify-content:space-between; height:44px; padding:4px 12px; background:#f5f7f0; }
#thpl-chat-panel .thpl-chat-close { width:36px; height:36px; border:0; background:transparent; color:#182f2a; font:26px/1 system-ui,sans-serif; cursor:pointer; }
#thpl-chat-panel .thpl-chat-frame { height:calc(100% - 44px); }
#thpl-chat-panel iframe { display:block; width:100%; height:100%; border:0; }
#thpl-chat-root button:focus-visible,#thpl-shopping-controls button:focus-visible { outline:3px solid #b26a35; outline-offset:3px; }
#thpl-chat-panel .thpl-chat-feedback { height:calc(100% - 44px); min-height:0; overflow:auto; padding:28px 22px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; text-align:center; gap:18px; }
#thpl-chat-panel .thpl-chat-feedback[hidden],#thpl-chat-panel .thpl-chat-frame[hidden],#thpl-chat-panel .thpl-chat-recovery[hidden] { display:none!important; }
#thpl-chat-panel .thpl-chat-status { position:static; width:auto; height:auto; overflow:visible; clip-path:none; margin:0; font-size:15px; line-height:1.5; }
#thpl-chat-panel .thpl-chat-feedback[data-state="loading"]::before { content:""; width:30px; height:30px; border:3px solid #d4ddd4; border-top-color:#204f40; border-radius:50%; animation:thpl-chat-spin 1s linear infinite; }
#thpl-chat-panel .thpl-chat-recovery { display:flex; flex-direction:column; align-items:center; gap:18px; flex-shrink:0; }
#thpl-chat-panel .thpl-chat-retry { background:#204f40; color:#fff; padding:11px 20px; border:0; border-radius:6px; font:inherit; cursor:pointer; min-height:44px; }
#thpl-chat-panel .thpl-chat-recovery a { color:#204f40; text-decoration:underline; }
@keyframes thpl-chat-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { #thpl-chat-panel .thpl-chat-feedback[data-state="loading"]::before { animation:none; } }
#thpl-shopping-controls { font:14px/1.4 system-ui,sans-serif; color:#182f2a; background:#f5f7f0; border-bottom:1px solid #d4ddd4; }
@media(max-height:480px) { #thpl-chat-panel { top:8px; bottom:auto; height:calc(100vh - 16px); height:calc(100dvh - 16px); min-height:0; max-height:none; } }
