/* v203 — Messenger-inspired private customer conversation, branded for The Shoe Plug. */
#customerChatModal[data-chat-mode="question"]{
  --msg-blue:#0866ff;--msg-blue-deep:#0554d7;--msg-bg:#f0f2f5;--msg-ink:#1c1e21;--msg-muted:#65676b;
}
#customerChatModal[data-chat-mode="question"] .customer-chat-card{background:#fff!important;border-color:rgba(8,102,255,.16)!important;box-shadow:0 28px 72px rgba(7,57,132,.24)!important}
#customerChatModal[data-chat-mode="question"] .customer-chat-card:before{background:linear-gradient(90deg,#0b57d0,#0866ff 43%,#46a6ff)!important}
#customerChatModal[data-chat-mode="question"] .chat-mode-header{background:rgba(255,255,255,.95)!important;border-bottom:1px solid #e4e6eb!important}
#customerChatModal[data-chat-mode="question"] .chat-mode-header .chat-action-pill{color:#65676b!important;text-align:center!important}
#customerChatModal[data-chat-mode="question"] .chat-mode-header .chat-action-pill:before{background:#e7f3ff!important;color:var(--msg-blue)!important}
#customerChatModal[data-chat-mode="question"] .chat-mode-header .chat-action-pill.active{border-color:rgba(8,102,255,.19)!important;background:#e7f3ff!important;color:var(--msg-blue)!important;box-shadow:none!important}
#customerChatModal[data-chat-mode="question"] .chat-head{padding:16px 18px 14px!important;border:0!important;background:linear-gradient(135deg,#f7fbff,#fff)!important}
#customerChatModal[data-chat-mode="question"] .chat-brandline{gap:7px!important}
#customerChatModal[data-chat-mode="question"] .chat-brandline>span:first-child{color:var(--msg-ink)!important;font-size:12px!important;letter-spacing:.02em!important;text-transform:none!important}
#customerChatModal[data-chat-mode="question"] .chat-secure{background:#e7f3ff!important;color:#0866ff!important}
#customerChatModal[data-chat-mode="question"] .chat-product-media{border-color:#dce5f5!important;box-shadow:0 6px 16px rgba(8,102,255,.12)!important}
#customerChatModal[data-chat-mode="question"] .chat-product-info h2{color:var(--msg-ink)!important;font-size:21px!important;letter-spacing:-.025em!important}
#customerChatModal[data-chat-mode="question"] .chat-product-name{color:var(--msg-muted)!important}
#customerChatModal[data-chat-mode="question"] .chat-live-pill{background:#e7f3ff!important;border-color:#c8dcff!important;color:#0866ff!important}
#customerChatModal[data-chat-mode="question"] .chat-main-grid{padding:0 14px 14px!important;gap:10px!important;background:#fff!important}
#customerChatModal[data-chat-mode="question"] .chat-purchase-panel{display:none!important}
#customerChatModal[data-chat-mode="question"] .chat-conversation{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
#customerChatModal[data-chat-mode="question"] .chat-quick-actions{padding:0 0 9px!important;background:#fff!important}
#customerChatModal[data-chat-mode="question"] .chat-checkout-hint{display:none!important}

/* Quick replies and the conversation timeline. */
#customerChatModal .messenger-quick-replies{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 8px;scrollbar-width:none}
#customerChatModal .messenger-quick-replies::-webkit-scrollbar{display:none}
#customerChatModal .messenger-quick-replies button{flex:0 0 auto;min-height:34px;padding:0 12px;border:1px solid #d7e5ff;border-radius:999px;background:#fff;color:#0866ff;font:800 11px/1 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
#customerChatModal .messenger-quick-replies button:hover,#customerChatModal .messenger-quick-replies button:focus-visible{border-color:#0866ff;background:#e7f3ff;outline:0}
#customerChatModal[data-chat-mode="question"] .customer-chat-thread{min-height:250px!important;max-height:38dvh!important;padding:13px 4px!important;background:var(--msg-bg)!important;border-radius:18px!important;scrollbar-color:#bcc0c4 transparent!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble-row{position:relative;display:flex!important;flex-direction:column!important;gap:4px!important;margin:0 0 10px!important;padding:0 8px!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble{max-width:min(82%,490px)!important;padding:9px 12px!important;border:0!important;box-shadow:none!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble small{display:none!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble p{font-size:13px!important;line-height:1.43!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble.seller{position:relative;align-self:flex-start!important;border-radius:18px 18px 18px 5px!important;background:#fff!important;color:var(--msg-ink)!important;box-shadow:0 1px 2px rgba(0,0,0,.08)!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble.seller:before{content:"";position:absolute;left:-29px;bottom:0;width:24px;height:24px;border-radius:50%;background:#0866ff url("assets/shoe-plug-favicon-current.png") center/17px no-repeat;box-shadow:0 1px 3px rgba(0,0,0,.15)}
#customerChatModal[data-chat-mode="question"] .chat-bubble.customer{align-self:flex-end!important;border-radius:18px 18px 5px 18px!important;background:linear-gradient(135deg,#0b6bff,#0059e9)!important;color:#fff!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble.customer p{color:#fff!important}
#customerChatModal[data-chat-mode="question"] .chat-bubble-row:has(.chat-bubble.customer)::after{align-self:flex-end;content:"✓✓";margin-right:4px;color:#0866ff;font:800 9px/1 system-ui,sans-serif;letter-spacing:-3px}
#customerChatModal[data-chat-mode="question"] .chat-message-image{display:block;max-width:100%;margin-top:5px;border-radius:14px!important}
#customerChatModal[data-chat-mode="question"] .chat-empty{display:grid!important;place-items:center!important;min-height:210px!important;margin:0 6px!important;padding:24px!important;border:0!important;border-radius:16px!important;background:#fff!important;color:var(--msg-muted)!important}
#customerChatModal[data-chat-mode="question"] .chat-empty b{color:var(--msg-ink)!important}

/* Messenger-style composer: photos, emoji reactions, text and send are all within reach. */
#customerChatModal[data-chat-mode="question"] .customer-chat-form{padding:10px 14px calc(12px + env(safe-area-inset-bottom))!important;border-top:1px solid #e4e6eb!important;background:#fff!important;box-shadow:none!important}
#customerChatModal[data-chat-mode="question"] .chat-compose-row{display:none!important}
#customerChatModal[data-chat-mode="question"] .chat-input-shell{min-height:44px!important;border:0!important;border-radius:22px!important;background:#f0f2f5!important;box-shadow:none!important}
#customerChatModal[data-chat-mode="question"] .chat-input-shell:focus-within{background:#e9edf2!important;box-shadow:0 0 0 2px rgba(8,102,255,.18)!important}
#customerChatModal[data-chat-mode="question"] #customerChatInput{min-height:44px!important;max-height:112px!important;padding:12px 15px!important;color:var(--msg-ink)!important;font:500 14px/1.42 system-ui,sans-serif!important}
#customerChatModal[data-chat-mode="question"] #customerChatInput::placeholder{color:#65676b!important}
#customerChatModal[data-chat-mode="question"] .chat-live-dot{display:none!important}
#customerChatModal[data-chat-mode="question"] .chat-composer-tools{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;margin-top:8px!important}
#customerChatModal[data-chat-mode="question"] #customerChatAttach{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#e7f3ff!important;color:#0866ff!important;font-size:0!important}
#customerChatModal[data-chat-mode="question"] #customerChatAttach:after{content:"＋";font:900 22px/1 system-ui,sans-serif}
#customerChatModal[data-chat-mode="question"] .messenger-reactions{display:flex;gap:4px;overflow:hidden}
#customerChatModal[data-chat-mode="question"] .messenger-reactions button{width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#0866ff;font-size:16px;cursor:pointer}
#customerChatModal[data-chat-mode="question"] .messenger-reactions button:hover{background:#e7f3ff}
#customerChatModal[data-chat-mode="question"] #customerChatSubmit{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#0866ff!important;box-shadow:0 4px 10px rgba(8,102,255,.24)!important;font-size:0!important}
#customerChatModal[data-chat-mode="question"] #customerChatSubmit:after{content:"➤";display:block;color:#fff;font:900 18px/1 system-ui,sans-serif;transform:translateX(1px)}
#customerChatModal[data-chat-mode="question"] #customerChatSubmit:disabled{background:#bcc0c4!important;box-shadow:none!important}
#customerChatModal[data-chat-mode="question"] .premium-chat-count{right:12px!important;bottom:7px!important;color:#8a8d91!important}
#customerChatModal[data-chat-mode="question"] .chat-order-strip{display:none!important}
#customerChatModal[data-chat-mode="question"] .chat-send-status{margin:4px 0 0!important;color:#65676b!important;font-size:10px!important;text-align:right!important}

@media(max-width:620px){
  #customerChatModal[data-chat-mode="question"] .chat-head{padding:13px 13px 11px!important}
  #customerChatModal[data-chat-mode="question"] .chat-main-grid{padding:0 10px 10px!important}
  #customerChatModal[data-chat-mode="question"] .customer-chat-thread{min-height:230px!important;max-height:41dvh!important;border-radius:15px!important}
  #customerChatModal[data-chat-mode="question"] .chat-bubble{max-width:88%!important}
  #customerChatModal[data-chat-mode="question"] .chat-bubble.seller:before{display:none}
  #customerChatModal[data-chat-mode="question"] .customer-chat-form{padding-inline:10px!important}
  #customerChatModal[data-chat-mode="question"] .messenger-reactions button:nth-child(n+4){display:none}
}
