/* Shared, non-modal customer assistance for every demo storefront. */
:root{--assist-bottom:24px;--assist-left:max(24px,env(safe-area-inset-left));--assist-right:max(24px,env(safe-area-inset-right));--assist-surface:var(--navy);--assist-accent:#ffac70}
/* Only the buttons accept pointer input; the space between them stays usable. */
.experience-dock{position:fixed;left:var(--assist-left);right:var(--assist-right);bottom:var(--assist-bottom);z-index:105;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none;font-family:var(--ui-font-family)}
.experience-dock>button{pointer-events:auto}
.assistant-actions{display:flex;align-items:center;gap:12px;margin-left:auto;pointer-events:auto;flex:none}
.assistant-actions .ai-launch{margin-left:0}
.assistant-actions>button:focus-visible{outline:2px solid var(--assist-accent);outline-offset:4px}
.bag-count{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;border-radius:12px;display:grid;place-items:center;padding:0 4px;background:var(--assist-accent);color:var(--assist-surface);border:2px solid var(--assist-surface);font-size:9px;font-weight:700}
.bag-launch.is-open .bag-count{display:none}
.experience-dock .guide-launch{position:static;background:var(--assist-surface);min-height:48px;font-family:inherit;font-size:12px;line-height:18px;padding:12px 18px;white-space:nowrap;box-shadow:0 6px 24px #14203320}
.experience-dock .guide-launch .icon{color:var(--assist-accent)}
.experience-dock .guide-launch small{font-size:10px}
.ai-launch{position:relative;flex:none;margin-left:auto;display:grid;place-items:center;width:54px;height:54px;background:var(--assist-surface);color:var(--assist-accent);border:1px solid #41536a;border-radius:50%;box-shadow:0 8px 26px #14203324;transition:transform .18s,box-shadow .18s}
.ai-launch>.icon{width:24px;height:24px}
.ai-launch-label{position:absolute;bottom:-2px;right:-2px;border:2px solid var(--assist-surface);border-radius:8px;background:var(--assist-accent);color:var(--assist-surface);font-size:9px;font-weight:700;line-height:16px;padding:0 4px;letter-spacing:.02em}
@media(hover:hover){.ai-launch:hover{transform:translateY(-2px);box-shadow:0 10px 30px #14203332}}
.experience-dock>button:focus-visible{outline:2px solid var(--assist-accent);outline-offset:4px}
.ai-launch.is-open{background:var(--assist-surface);color:var(--assist-accent);border-color:#41536a}
.ai-launch.is-open .ai-launch-label{display:none}
.chat-popover{position:fixed;right:var(--assist-right);bottom:calc(var(--assist-bottom) + 68px);z-index:104;width:min(390px,calc(100% - 32px));height:min(580px,calc(100dvh - var(--assist-bottom) - 92px));max-height:calc(100dvh - var(--assist-bottom) - 92px);display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #dce3ea;border-radius:22px;overflow:hidden;box-shadow:0 18px 65px #10243b2e,0 3px 12px #10243b12;font-family:var(--ui-font-family);color:var(--navy);transform-origin:bottom right}
.chat-popover-head{flex:none;display:flex;align-items:center;gap:12px;padding:18px;background:var(--navy);color:#fff}
.chat-avatar{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:13px;background:#ffffff12;color:#ffb581;border:1px solid #ffffff1a}
.chat-avatar .icon{width:22px;height:22px}
.chat-popover-head>div{min-width:0;flex:1}
.chat-kicker{display:block;font-size:10px;line-height:16px;color:#fdbb8b;letter-spacing:.025em}
.chat-popover-head h2{font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.025em;margin:1px 0 0}
.chat-popover-head .icon-btn{width:30px;height:30px;flex:none;background:#ffffff12;border-color:#ffffff20;color:white}
.chat-popover-head .icon-btn .icon{width:16px;height:16px}
.chat-popover-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px;background:linear-gradient(#f8fafc,#fff);scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.chat-popover .chat-feed{gap:12px}
.chat-popover .chat-message{font-size:13px;line-height:1.65;max-width:94%;padding:13px 14px;background:#eef2f6;border-radius:4px 16px 16px 16px;overflow-wrap:anywhere}
.chat-popover .chat-message.user{border-radius:16px 4px 16px 16px;background:var(--navy);color:white}
.chat-popover .chat-message small{font-size:9px;line-height:15px;letter-spacing:.045em;font-weight:600;opacity:.65;margin-bottom:6px}
.chat-product-context{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;border-bottom:1px solid #e2e8f0;flex:none;min-width:0}
.chat-product-context img{width:44px;height:44px;flex:none;object-fit:contain;border-radius:9px;background:#f6f3ef}
.chat-product-context>div{min-width:0}
.chat-product-context strong{display:block;font-size:12px;line-height:18px;font-weight:600}
.chat-product-context span{display:block;font-size:10px;line-height:16px;color:#788493;margin-top:2px}
.chat-popover-footer{flex:none;padding:14px 16px 12px;border-top:1px solid #e2e8f0;background:#fff}
.chat-popover .chat-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.chat-popover .chat-chips button{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px 8px;border:1px solid;white-space:normal;transition:background-color .18s ease,border-color .18s ease}
.chat-popover .chat-chips button:last-child{grid-column:1/-1}
.chat-popover .chat-chips button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.chat-popover-footer>p{font-size:10px;line-height:15px;color:#768392;margin:9px 2px 0}
.account-popover{position:fixed;right:24px;top:116px;width:min(290px,calc(100% - 24px));z-index:110;background:white;border:1px solid #e2e8f0;border-radius:18px;padding:16px;box-shadow:0 14px 45px #10243b24;font-family:var(--ui-font-family);color:var(--navy);animation:assistantIn .15s ease-out}
.account-popover-head{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid #edf0f4}
.account-avatar{display:grid;place-items:center;flex:none;width:38px;height:38px;background:#f1f5f9;border-radius:50%}
.account-avatar .icon{width:20px;height:20px}
.account-popover-head>div{flex:1;min-width:0}
.account-popover h2{font-size:14px;line-height:21px;margin:0;font-weight:600;overflow-wrap:anywhere}
.account-popover p{font-size:11px;line-height:18px;color:#75808c;margin:2px 0 0}
.account-popover-head .icon-btn{width:28px;height:28px;flex:none}
.account-popover-head .icon-btn .icon{width:15px;height:15px}
.account-popover nav{display:flex;flex-direction:column;gap:3px;padding-top:9px}
.account-popover nav button{display:flex;align-items:center;gap:10px;min-height:44px;border-radius:9px;padding:10px;background:white;text-align:left;font-family:inherit;font-size:12px;font-weight:500;color:var(--navy)}
.account-popover nav button:hover{background:#f1f5f9}
.account-popover nav button>span{margin-left:auto;color:#75808c;font-size:11px}
@keyframes assistantIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:760px){
  :root{--assist-bottom:max(14px,env(safe-area-inset-bottom));--assist-left:max(14px,env(safe-area-inset-left));--assist-right:max(14px,env(safe-area-inset-right))}
  body[data-store-ui="reference"]{--assist-bottom:96px}
  body[data-store-ui="reference"] .experience-dock .guide-launch{display:flex}
  .experience-dock{gap:9px}
  .experience-dock .guide-launch{min-height:46px;font-size:11px;padding:11px 14px;gap:7px}
  .experience-dock .guide-launch small{font-size:9px}
  .ai-launch{width:48px;height:48px}
  .chat-popover{width:min(390px,calc(100% - 28px));bottom:calc(var(--assist-bottom) + 60px);height:min(580px,calc(100dvh - var(--assist-bottom) - 80px));max-height:calc(100dvh - var(--assist-bottom) - 80px);border-radius:20px}
  .guide-card,body[data-store-ui="reference"] .guide-card{bottom:calc(var(--assist-bottom) + 66px)!important;max-height:min(48vh,calc(100dvh - var(--assist-bottom) - 90px))}
}
@media(max-width:620px){
  .chat-popover-head{padding:14px;gap:10px}
  .chat-popover-head h2{font-size:15px;line-height:22px}
  .chat-avatar{width:34px;height:34px;border-radius:11px}
  .chat-popover-body{padding:14px}
  .chat-popover-footer{padding:12px}
}
@media(max-width:380px){
  body[data-store-ui="reference"] .store-header-inner{gap:8px}
  body[data-store-ui="reference"] .store-logo{max-width:105px;font-size:15px}
  body[data-store-ui="reference"] .store-search{width:20px}
  body[data-store-ui="reference"] .store-header-actions{gap:6px}
  body[data-store-ui="reference"] .store-header-actions .icon-btn{width:30px;height:30px}
  .experience-dock .guide-launch{padding:11px 12px;font-size:10px;gap:6px}
  .experience-dock .guide-launch small{display:none}
}
@media(prefers-reduced-motion:reduce){.chat-popover,.account-popover{animation:none}.ai-launch,.experience-dock .guide-launch{transition:none;transform:none}}
/* Conversational input and an actionable product card, without remounting the chat. */
.chat-popover{height:min(640px,calc(100dvh - var(--assist-bottom) - 92px))}
.chat-popover .chat-recommend{background:#fff;padding:13px;align-items:flex-start;gap:12px;margin-top:16px;box-shadow:0 2px 8px #1e293b06}
.chat-popover .chat-recommend>img{width:82px;height:100px;flex:none;object-fit:contain;background:#f4f0e9}
.chat-popover .chat-recommend>div{min-width:0;flex:1}
.chat-recommend-brand{display:block;font-size:9px;line-height:15px;color:#738093;letter-spacing:.04em;margin-bottom:3px}
.chat-popover .chat-recommend h3{font-size:12px;line-height:18px;overflow-wrap:anywhere;margin:0 0 5px}
.chat-popover .chat-recommend p{font-size:10px;line-height:16px;overflow-wrap:anywhere;margin:0 0 5px}
.chat-recommend-price{display:block;font-size:12px;line-height:18px;margin-bottom:9px}
.chat-popover .chat-recommend .btn{font-family:inherit;font-size:11px;line-height:17px;min-height:36px;padding:8px 11px;white-space:normal;gap:6px}
.chat-popover .chat-recommend .btn .icon{width:14px;height:14px;flex:none}
.chat-popover .chat-form{margin-top:12px;gap:8px;align-items:center}
.chat-popover .chat-form input{font-family:inherit;font-size:13px;line-height:20px;padding:10px 13px;background:#f8fafc;color:#1e293b;border:1px solid #dce3ea;border-radius:22px;height:42px}
.chat-popover .chat-form input::placeholder{color:#84909d}
.chat-popover .chat-form input:focus{outline:2px solid #f8731760;outline-offset:1px;border-color:#f87317;background:#fff}
.chat-popover .chat-form button{width:40px;height:40px;flex:none;background:var(--navy);color:#ffac70}
.chat-popover .chat-form button:hover{background:#334155}
.chat-popover .chat-form button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.chat-popover .chat-unavailable{margin-top:7px;color:#8b5a27}
@media(max-width:760px){.chat-popover{height:min(640px,calc(100dvh - var(--assist-bottom) - 80px))}.chat-popover .chat-form input{font-size:16px}}
@media(max-height:600px){.chat-popover{bottom:12px;max-height:calc(100dvh - 24px);height:calc(100dvh - 24px);z-index:106}.chat-popover-head{padding:10px 14px}.chat-popover-footer{padding:10px 12px}.chat-popover .chat-chips button{min-height:32px;padding:5px 8px}.chat-popover .chat-form{margin-top:8px}.chat-popover-footer>p{margin-top:6px}}
/* Both selection and concierge panels share the same responsive dimensions. */
.bag-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px 14px;border-bottom:1px solid #e2e8f0;flex:none}
.bag-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 8px;border-radius:10px;background:#f4f6f8;border:1px solid transparent;color:#64748b;font-size:12px;font-weight:500;line-height:18px;font-family:inherit}
/* One visual language for the selected bag tab and related assistant actions. */
.bag-tabs button,.chat-popover .chat-chips button,.addition-view{font-family:var(--ui-font-family);font-size:12px;font-weight:500;line-height:18px;border-radius:10px;box-shadow:none}
.chat-popover .chat-chips button,.addition-view{background:#fff;border-color:#dce3ea;color:#475569}
.bag-tabs button[aria-selected="true"],.chat-popover .chat-chips button:focus-visible,.chat-popover .chat-chips button:active,.addition-view:focus-visible,.addition-view:active{background:#fff5ed;border-color:#f8d4b8;color:#9a4715}
@media(hover:hover){.chat-popover .chat-chips button:hover,.addition-view:hover{background:#fff5ed;border-color:#f8d4b8;color:#9a4715}}
@media(prefers-reduced-motion:reduce){.chat-popover .chat-chips button{transition:none}}
.bag-tabs button>span{font-size:10px;min-width:20px;line-height:20px;border-radius:50%;background:#ffffffb3;color:inherit}
.bag-tabs button:focus-visible,.bag-footer .btn:focus-visible,.bag-body:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}
.bag-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 18px;background:#fff}
.bag-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #edf0f4}
.bag-item:last-child{border-bottom:0}
.bag-item>img{width:70px;height:84px;border-radius:10px;object-fit:contain;background:#f4f0e9;flex:none}
.bag-item>div{flex:1;min-width:0}
.bag-item-brand{display:block;font-size:9px;line-height:15px;letter-spacing:.04em;color:#64748b;overflow-wrap:anywhere}
.bag-item h3{font-size:12px;line-height:19px;font-weight:600;margin:3px 0 5px;overflow-wrap:anywhere}
.bag-item p{font-size:11px;line-height:18px;color:#64748b;margin:0;overflow-wrap:anywhere}
.bag-item-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;font-size:11px;line-height:18px;color:#64748b}
.bag-item-meta strong{font-size:12px;color:var(--navy)}
.bag-empty{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 12px}
.bag-empty>.icon{width:32px;height:32px;color:#97a4b4;margin-bottom:16px}
.bag-empty h3{font-size:16px;line-height:23px;margin:0 0 8px;font-weight:600}
.bag-empty p{max-width:265px;font-size:12px;line-height:20px;color:#64748b;margin:0}
.bag-footer{padding:16px 18px;border-top:1px solid #e2e8f0;flex:none;background:#fbfcfd}
.bag-footer>p{font-size:11px;line-height:18px;color:#64748b;margin:0 0 12px}
.bag-total{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:14px}
.bag-total strong{font-size:16px}
.bag-footer .btn{font-family:inherit;min-height:44px;font-size:12px}
@media(max-width:760px){.assistant-actions{gap:9px}}
@media(max-width:380px){.experience-dock .guide-launch{max-width:calc(100% - 114px);white-space:normal;text-align:left}.experience-dock .guide-launch>.icon{flex:none}}

.bag-item-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.bag-quantity{display:flex;align-items:center;border:1px solid #dce3ea;border-radius:9px;overflow:hidden;background:white}
.bag-quantity button,.bag-remove{display:grid;place-items:center;width:34px;height:34px;flex:none;background:white;color:var(--navy)}
.bag-quantity output{min-width:27px;text-align:center;font-size:12px;line-height:20px;font-variant-numeric:tabular-nums}
.bag-quantity button .icon,.bag-remove .icon{width:15px;height:15px}
.bag-quantity button:disabled{color:#aab3bf;background:#fafbfc;cursor:default}
.bag-remove{border:1px solid #e5e9ee;border-radius:9px;color:#718096}
.bag-quantity button:focus-visible,.bag-remove:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}
@media(hover:hover){.bag-quantity button:not(:disabled):hover,.bag-remove:hover{background:#fff5ed;color:var(--orange-dark)}}
@media(pointer:coarse){.bag-quantity button,.bag-remove{width:40px;height:40px}.bag-item-controls{gap:8px}.bag-quantity output{min-width:24px}}
