/* Isolated assistant layer. Below cart/size dialogs; never intercepts checkout. */
#thq-shop-assistant { position:fixed; right:max(12px, env(safe-area-inset-right)); bottom:max(14px, env(safe-area-inset-bottom)); z-index:150; transform:translate3d(var(--thq-avoid-x,0px),var(--thq-avoid-y,0px),0); transition:transform .45s cubic-bezier(.2,.7,.2,1); will-change:transform; font-family:var(--font-ui); color:var(--text-primary); --thq-accent:var(--accent-primary,var(--thq-gold)); --thq-accent-strong:var(--accent-primary-hover,var(--thq-gold-highlight)); --thq-teal-soft:var(--accent-secondary-soft,var(--thq-teal)); --thq-panel:var(--bg-color,var(--thq-bg)); --thq-panel-soft:var(--card-bg,rgba(21,21,25,.82)); --thq-panel-border:var(--border-color,rgba(247,244,236,.11)); }
#thq-shop-assistant * { box-sizing:border-box; }
#thq-shop-assistant [hidden] { display:none !important; }
/* Scroll-triggered, animated THENTIQ mascot with one shared speech bubble. */
.thq-bot-launcher { display:flex; align-items:center; justify-content:flex-end; gap:5px; margin-left:auto; padding:0; min-height:96px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; touch-action:manipulation; }
.thq-bot-icon { position:relative; display:block; width:96px; height:96px; flex:none; background:transparent; border:0; box-shadow:none; animation:thq-mascot-idle-wave 5.6s ease-in-out infinite; transform-origin:58% 78%; isolation:isolate; }
.thq-bot-icon::before { content:none; display:none; }
.thq-bot-mascot { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:contain; filter:none; transition:transform .35s ease, filter .35s ease; }
.thq-bot-mascot-blink { opacity:0; animation:thq-mascot-blink 5.3s linear infinite; }
.thq-bot-mascot-wink { opacity:0; }
#thq-shop-assistant.thq-mascot-winking .thq-bot-mascot-wink { opacity:1; }
#thq-shop-assistant.thq-mascot-winking .thq-bot-mascot-blink { animation-play-state:paused; opacity:0; }
.thq-bot-mouth { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.thq-mouth-state { display:none; }
#thq-shop-assistant[data-mood="idle"] .thq-mouth-state[data-mouth="idle"],
#thq-shop-assistant[data-mood="smile"] .thq-mouth-state[data-mouth="smile"],
#thq-shop-assistant[data-mood="happy"] .thq-mouth-state[data-mouth="happy"],
#thq-shop-assistant[data-mood="talk"] .thq-mouth-state[data-mouth="talk"],
#thq-shop-assistant[data-mood="curious"] .thq-mouth-state[data-mouth="curious"],
#thq-shop-assistant[data-mood="sad"] .thq-mouth-state[data-mouth="sad"] { display:inline; }
#thq-shop-assistant.thq-mascot-moving .thq-bot-icon { animation-play-state:paused; }
#thq-shop-assistant[data-speech='hi'] .thq-bot-icon, #thq-shop-assistant[data-speech='ask'] .thq-bot-icon { animation:thq-mascot-greet-wave 1.25s ease-in-out infinite; }
#thq-shop-assistant[data-speech='choose'] .thq-bot-icon, #thq-shop-assistant[data-speech='tap'] .thq-bot-icon, #thq-shop-assistant[data-speech='hover'] .thq-bot-icon { animation:thq-mascot-listen 2.7s ease-in-out infinite; }
#thq-shop-assistant[data-speech='slow'] .thq-bot-icon { animation:thq-mascot-sad 2.4s ease-in-out infinite; }
.thq-bot-launcher[aria-expanded='true'] .thq-bot-icon { animation:thq-mascot-listen 3.1s ease-in-out infinite; }
#thq-shop-assistant[data-speech='hi'] .thq-bot-mascot, #thq-shop-assistant[data-speech='ask'] .thq-bot-mascot { filter:none; }

.thq-bot-prompt { position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px; border-radius:13px; background:var(--accent-primary); color:var(--text-on-primary); border:1px solid var(--accent-primary-hover); box-shadow:0 6px 22px rgba(11,11,13,.45); max-width:min(250px,calc(100vw - 112px)); white-space:normal; text-align:center; font-family:var(--font-heading); font-size:16px; font-weight:700; line-height:1.2; letter-spacing:.012em; animation:thq-bubble-arrive .45s ease-out both; transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease, background .2s ease; }
.thq-bot-prompt::after { content:''; position:absolute; right:-5px; top:calc(50% - 5px); width:10px; height:10px; background:var(--accent-primary); transform:rotate(45deg); border-top:1px solid var(--accent-primary-hover); border-right:1px solid var(--accent-primary-hover); }
.thq-bot-launcher:hover .thq-bot-prompt, .thq-bot-launcher:focus-visible .thq-bot-prompt { border-color:var(--thq-accent-strong); box-shadow:0 6px 23px rgba(11,11,13,.58),0 0 0 2px rgba(245,197,66,.28); }
.thq-bot-launcher:active .thq-bot-prompt { background:var(--accent-primary-hover); }
.thq-bot-launcher:hover .thq-bot-icon { transform:translateY(-2px) scale(1.02); }
.thq-bot-launcher[aria-expanded="true"] .thq-bot-icon { transform:scale(.98); }
.thq-bot-panel { position:absolute; bottom:102px; right:0; width:min(390px,calc(100vw - 24px)); max-width:calc(100vw - 24px); height:auto; max-height:min(610px,calc(100dvh - 138px)); min-height:0; display:flex; flex-direction:column; border:1px solid rgba(245,197,66,.38); border-radius:19px; overflow:hidden; background:rgba(11,11,13,.70); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:0 20px 70px rgba(11,11,13,.72); }
.thq-bot-header { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; background:rgba(21,21,25,.12); border-bottom:1px solid rgba(245,197,66,.18); }
.thq-bot-header small,.thq-bot-header strong { display:block; }
.thq-bot-header small { color:var(--accent-primary); font-size: 12px; letter-spacing:.13em; margin-bottom:3px; }
.thq-bot-header strong { font-size:16px; letter-spacing:-.02em; }
.thq-bot-close { width:35px; height:35px; display:grid; place-items:center; flex:none; background:var(--bg-color); border:1px solid var(--accent-primary); border-radius:100%; color:var(--accent-primary); font-size:24px; cursor:pointer; line-height:1; box-shadow:none; transition:background .18s ease,border-color .18s ease; }
.thq-bot-close:hover { background:var(--card-bg); border-color:var(--accent-primary); }
/* 70% charcoal shell; lightly tinted internal sections plus backdrop blur preserve readability. */
.thq-bot-content { flex:0 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:16px; min-height:0; background:rgba(21,21,25,.12); }
.thq-bot-question h3 { margin:0 0 7px; font-size:19px; color:var(--text-primary); line-height:1.25; }
.thq-bot-question p { margin:0 0 18px; color:var(--text-secondary); font-size:16px; line-height:1.55; }
.thq-bot-search-form label { display:block; font-size:12px; color:var(--text-primary); margin-bottom:7px; }
.thq-bot-search-row { display:flex; gap:7px; }
.thq-bot-search-row input { flex:1; min-width:0; border-radius:9px; border:1px solid var(--border-color); background:var(--bg-color); color:var(--text-primary); font-size:16px; padding:12px; }
.thq-bot-search-row button,.thq-bot-choice { background:var(--bg-color); color:var(--text-primary); border:1px solid var(--border-color); border-radius:9px; font-weight:700; font-size:14px; padding:11px 12px; cursor:pointer; }
.thq-bot-choice { display:block; width:100%; margin-top:9px; text-align:center; }
.thq-bot-choice:disabled { opacity:.45; cursor:not-allowed; }
.thq-bot-chips,.thq-bot-options { display:flex; flex-wrap:wrap; gap:7px; margin:15px 0; }
.thq-bot-chips .thq-bot-choice,.thq-bot-options .thq-bot-choice { width:auto; margin:0; background:var(--bg-color); color:var(--text-primary); border:1px solid var(--border-color); }
.thq-bot-results { display:grid; gap:8px; margin:0 0 15px; }
.thq-bot-result { display:flex; align-items:center; gap:10px; width:100%; padding:8px; background:var(--bg-color); color:var(--text-primary); border:1px solid var(--border-color); border-radius:12px; text-align:left; cursor:pointer; min-width:0; }
.thq-bot-result img { width:65px; height:65px; object-fit:cover; border-radius:7px; background:var(--card-bg); flex:none; }
.thq-bot-result span:nth-child(2) { flex:1; min-width:0; }
.thq-bot-result strong,.thq-bot-summary strong { display:block; font-size:14px; line-height:1.4; }
.thq-bot-result small { display:block; color:var(--text-secondary); font-size:12px; line-height:1.35; }
.thq-bot-summary { display:flex; gap:12px; align-items:center; background:var(--card-bg); padding:10px; border-radius:13px; margin-bottom:16px; }
.thq-bot-summary img { width:100px; height:100px; object-fit:contain; flex:none; border-radius:10px; background:var(--bg-color); }
.thq-bot-summary span,.thq-bot-summary b { display:block; margin-top:6px; font-size:12px; }
.thq-bot-summary span { color:var(--text-secondary); }.thq-bot-summary b { color:var(--thq-accent); }
.thq-bot-alert { color:var(--accent-alert); border:1px solid var(--accent-alert); border-radius:9px; padding:10px; font-size:14px; line-height:1.5; }
.thq-bot-availability { color:var(--text-secondary); font-size:12px; }
/* Exact storefront teal (var(--thq-teal)) for the selected-shirt subtotal, on a legible badge. */
.thq-bot-basket-subtotal { display:table; max-width:100%; margin:12px 0; padding:7px 10px; border-radius:8px; color:var(--text-primary); background:var(--accent-secondary,var(--thq-teal)); font-size:14px; font-weight:700; line-height:1.45; }
.thq-bot-help { display:block; color:var(--text-secondary); font-size:16px; line-height:1.55; margin:12px 0; }
.thq-bot-foot { display:flex; justify-content:space-between; border-top:1px solid rgba(245,197,66,.15); background:rgba(21,21,25,.12); padding:8px 13px; }
.thq-bot-foot button { border:0; background:transparent; color:var(--accent-primary); font-size:14px; padding:10px 5px; cursor:pointer; }
#thq-shop-assistant button:focus-visible,#thq-shop-assistant input:focus-visible { outline:2px solid var(--accent-primary); outline-offset:3px; }
/* Keep keyboard focus visible without a rectangular frame around the floating mascot. */
#thq-shop-assistant .thq-bot-launcher:focus-visible { outline:none; }
#thq-shop-assistant .thq-bot-launcher:focus-visible .thq-bot-icon::after { content:''; position:absolute; inset:2px; border:2px solid var(--thq-accent); border-radius:50%; pointer-events:none; z-index:2; }
#thq-shop-assistant .thq-bot-close:focus-visible { outline:2px solid var(--accent-primary); outline-offset:3px; box-shadow:0 0 0 5px rgba(245,197,66,.15); }
@keyframes thq-mascot-hover { 0%,100% { transform:translateY(0) rotate(0deg) } 50% { transform:translateY(-4px) rotate(-1.2deg) } }
@keyframes thq-mascot-blink { 0%,46%,50%,100% { opacity:0; } 47%,49% { opacity:1; } }
@keyframes thq-bubble-arrive { from {transform:translateY(5px);opacity:0} to {transform:translateY(0);opacity:1} }
@keyframes thq-mascot-idle-wave {
  0%,100% { transform:translateY(0) rotate(0deg); }
  12% { transform:translateY(-2px) rotate(-6deg); }
  22% { transform:translateY(-1px) rotate(4deg); }
  32% { transform:translateY(-2px) rotate(-5deg); }
  42% { transform:translateY(0) rotate(1deg); }
  70% { transform:translateY(-3px) rotate(-1deg); }
}
@keyframes thq-mascot-greet-wave {
  0%,100% { transform:translateY(-1px) rotate(0deg); }
  18% { transform:translateY(-6px) rotate(-9deg); }
  36% { transform:translateY(-5px) rotate(8deg); }
  54% { transform:translateY(-7px) rotate(-10deg); }
  72% { transform:translateY(-3px) rotate(5deg); }
}
@keyframes thq-mascot-listen {
  0%,100% { transform:translateY(0) rotate(0deg); }
  35% { transform:translateY(-4px) rotate(-3deg); }
  55% { transform:translateY(-5px) rotate(2deg); }
  75% { transform:translateY(-2px) rotate(-1deg); }
}
@keyframes thq-mascot-sad {
  0%,100% { transform:translateY(0) rotate(0deg); }
  40% { transform:translateY(1px) rotate(-4deg); }
  70% { transform:translateY(3px) rotate(2deg); }
}

@media(max-width:600px) { #thq-shop-assistant { right:10px; bottom:max(10px,env(safe-area-inset-bottom)); } .thq-bot-panel { bottom:90px; width:min(370px,calc(100vw - 20px)); max-width:calc(100vw - 20px); max-height:min(580px,calc(100dvh - 120px)); } .thq-bot-launcher { min-height:82px; } .thq-bot-icon { width:84px; height:84px; } .thq-bot-prompt { min-height:38px; font-size:14px; padding:8px 12px; } }
@media(prefers-reduced-motion:reduce) { #thq-shop-assistant .thq-bot-mascot-blink, #thq-shop-assistant .thq-bot-mascot-wink { opacity:0 !important; } #thq-shop-assistant { transition:none !important; } #thq-shop-assistant * { scroll-behavior:auto !important; animation:none !important; transition:none !important; } }

/* One question per screen; review replaces the question without scrolling the storefront. */
.thq-bot-review-bar { padding:0 16px; background:rgba(21,21,25,.35); }
.thq-bot-review-button { display:block; width:100%; padding:10px 2px; font-weight:700; font-size:14px; color:var(--accent-primary); background:none; border:0; border-top:1px solid rgba(245,197,66,.25); cursor:pointer; text-align:left; }
.thq-bot-review-button span { float:right; }
.thq-bot-choice-line { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 2px; border-bottom:1px solid rgba(245,197,66,.16); }
.thq-bot-choice-line small, .thq-bot-choice-line strong { display:block; }
.thq-bot-choice-line small { margin-bottom:3px; color:var(--text-secondary); font-size:12px; }
.thq-bot-choice-line strong { font-size:14px; overflow-wrap:anywhere; }
.thq-bot-edit { padding:9px 12px; border:1px solid var(--accent-primary); border-radius:9px; background:rgba(245,197,66,.1); color:var(--accent-primary); cursor:pointer; font-size:14px; font-weight:700; }
.thq-bot-review-close { margin-top:16px; }

/* Multiple designs are staged inside the assistant and committed together. */
.thq-bot-picked { display:grid; gap:8px; margin:12px 0; }
.thq-bot-picked-row { display:flex; justify-content:space-between; align-items:center; gap:8px; border:1px solid rgba(245,197,66,.24); border-radius:10px; padding:9px 10px; }
.thq-bot-picked-row span { min-width:0; }
.thq-bot-picked-row strong,.thq-bot-picked-row small { display:block; line-height:1.4; }
.thq-bot-picked-row small { color:var(--text-secondary); font-size:12px; margin-top:3px; }
.thq-bot-picked-row .thq-bot-edit { white-space:nowrap; flex-shrink:0; }

/* Equivalent choices are visually neutral until pressed. Primary actions retain exact THENTIQ gold. */
#thq-shop-assistant .thq-bot-choice { background:var(--bg-color); color:var(--text-primary); border-color:var(--border-color); }
#thq-shop-assistant .thq-bot-choice:hover { border-color:var(--accent-secondary); }
#thq-shop-assistant .thq-bot-choice:active,
#thq-shop-assistant .thq-bot-choice[aria-pressed="true"] { background:var(--accent-secondary); color:var(--text-primary); border-color:var(--accent-secondary); }
#thq-shop-assistant .thq-bot-choice.thq-bot-primary,
#thq-shop-assistant .thq-bot-search-row button { background:var(--accent-primary); color:var(--text-on-primary); border-color:var(--accent-primary); }
#thq-shop-assistant .thq-bot-choice.thq-bot-primary:hover,
#thq-shop-assistant .thq-bot-search-row button:hover { background:var(--accent-primary-hover); border-color:var(--accent-primary-hover); }
#thq-shop-assistant .thq-bot-choice.thq-bot-primary:active { background:var(--accent-primary-hover); border-color:var(--accent-primary-hover); color:var(--text-on-primary); }
#thq-shop-assistant .thq-bot-review-link { display:inline-flex; align-items:center; gap:7px; margin:0 0 7px; padding:3px 0 8px; border:0; background:transparent; color:var(--accent-primary); font:700 14px var(--font-ui); text-align:left; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
#thq-shop-assistant .thq-bot-review-link:hover { color:var(--accent-primary-hover); }
#thq-shop-assistant .thq-bot-chips .thq-bot-choice,
#thq-shop-assistant .thq-bot-options .thq-bot-choice { background:var(--bg-color); color:var(--text-primary); border-color:var(--border-color); }
#thq-shop-assistant .thq-bot-chips .thq-bot-choice:hover,
#thq-shop-assistant .thq-bot-options .thq-bot-choice:hover { border-color:var(--accent-secondary); }
#thq-shop-assistant .thq-bot-prompt[data-phase="hover"] { background:var(--accent-secondary); color:var(--text-primary); border-color:var(--accent-secondary-soft); }
#thq-shop-assistant .thq-bot-prompt[data-phase="hover"]::after { background:var(--accent-secondary); border-color:var(--accent-secondary-soft); }
#thq-shop-assistant .thq-bot-prompt[data-phase="slow"] { border-color:var(--accent-alert); }
#thq-shop-assistant .thq-bot-edit:hover { background:rgba(245,197,66,.18); }
#thq-shop-assistant .thq-bot-close:hover { background:var(--card-bg); color:var(--accent-primary-hover); }

/* Mobile panel must size against the viewport, never the 84px launcher. */
@media(max-width:600px) {
  #thq-shop-assistant .thq-bot-panel { width:min(370px,calc(100vw - 20px)); max-width:calc(100vw - 20px); min-width:0; }
}
