#bella-chat{position:fixed;right:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:40;font:14px/1.55 'Segoe UI',Tahoma,Arial,sans-serif;color:#302329}
#bella-chat [hidden]{display:none!important}
#bella-chat button{cursor:pointer;font:inherit}
#bella-chat .chat-launcher{display:flex;align-items:center;gap:10px;margin-inline-start:auto;border:1px solid #b39870;border-radius:999px;background:#21141b;color:white;padding:13px 19px;box-shadow:0 4px 20px #0002}
#bella-chat .chat-launcher svg{width:24px;height:24px}
#bella-chat-panel{position:absolute;right:0;bottom:66px;width:370px;max-width:calc(100vw - 32px);height:min(590px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fff;border:1px solid #e6dccc;border-radius:22px;overflow:hidden;box-shadow:0 14px 50px #0003}
#bella-chat .chat-head{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:0;padding:18px;background:#21141b;color:#fff;border:0;flex-shrink:0}
#bella-chat h2{font:600 17px/1.45 'Segoe UI',Tahoma,Arial,sans-serif;margin:0}
#bella-chat .chat-head p{font-size:11px;color:#dfcdae;margin:3px 0 0}
#bella-chat .chat-close{background:transparent;border:0;color:#fff;font-size:27px;padding:0;width:36px;height:36px}
#bella-chat .chat-log{flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}
#bella-chat .chat-message{padding:12px;border-radius:15px;margin-bottom:12px;max-width:100%;overflow-wrap:anywhere}
#bella-chat .chat-message p{margin:0;font-size:13px}
#bella-chat .bot{background:#f5f0e9}
#bella-chat .user{background:#21141b;color:white;margin-inline-start:25px}
#bella-chat .chat-product{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px;border-radius:12px;background:#fff;color:#302329;text-decoration:none}
#bella-chat .chat-product img{width:52px;height:65px;object-fit:cover;border-radius:9px;flex-shrink:0}
#bella-chat .chat-product small{display:block;font-size:11px;margin-top:2px}
#bella-chat .chat-link{display:inline-block;color:#6f502b;text-decoration:underline;margin:10px 10px 0 0;font-size:12px}
#bella-chat .chat-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px}
#bella-chat .chat-suggestions button{border:1px solid #dfd1bc;border-radius:999px;background:#fff;color:#594330;padding:5px 10px;font-size:11px}
#bella-chat .chat-form{display:flex;gap:8px;padding:0 14px 8px;margin:0}
#bella-chat input{width:0;flex:1;min-width:0;padding:10px;border:1px solid #d8cbb9;border-radius:11px;font-size:16px;color:#302329;background:#fff}
#bella-chat .chat-form button{background:#21141b;color:#fff;border:0;border-radius:11px;padding:10px 13px}
#bella-chat .chat-note{margin:0;padding:0 14px 12px;text-align:center;font-size:10px;color:#74675c}
#bella-chat button:focus-visible,#bella-chat a:focus-visible{outline:2px solid #b58c51;outline-offset:2px}
@media(max-width:760px){#bella-chat{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}#bella-chat-panel{width:370px;bottom:61px;height:min(540px,calc(100dvh - 105px))}#bella-chat .chat-launcher{padding:11px 15px}}
#bella-chat .chat-head{order:0}
#bella-chat .chat-log{order:1}
#bella-chat .chat-suggestions{order:2}
#bella-chat .chat-form{order:3}
#bella-chat .chat-voice-status{order:4;margin:0;padding:0 14px 6px;font-size:12px;color:#594330}
#bella-chat .chat-voice-status:empty{display:none}
#bella-chat .chat-note{order:5}
#bella-chat .chat-form .chat-mic{flex:0 0 44px;min-height:44px;display:grid;place-items:center;padding:0}
#bella-chat .chat-form .chat-mic[hidden]{display:none}
#bella-chat .chat-mic svg{width:21px;height:21px}
#bella-chat .chat-form .chat-mic[aria-pressed=true]{background:#a81435}
#bella-chat .chat-read{margin-block-start:8px;padding:6px 10px;border:1px solid #c8adb9;background:#fff;color:#602a5e;border-radius:8px;font-size:12px}
#bella-chat .chat-read[aria-pressed=true]{background:#602a5e;color:#fff}

@media (min-width:761px) {
  #bella-chat .chat-launcher { gap: 6px; min-height: 40px; padding: 8px 12px; font-size: 12px; }
  #bella-chat .chat-launcher svg { width: 19px; height: 19px; }
}

/* Keep the longer French launcher label compact. */
@media (min-width:761px) {
  html[lang="fr"] #bella-chat .chat-launcher > span { font-size:9px; line-height:1.4; }
}

/* Light translucency on the launcher background; keep its contents fully opaque. */
#bella-chat button.chat-launcher {
  background:rgba(96,42,94,.82);
  border-color:rgba(239,191,224,.6);
  box-shadow:0 4px 14px rgba(0,0,0,.12);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  transition:background-color .18s ease,border-color .18s ease;
}
#bella-chat button.chat-launcher:is(:hover,:focus-visible) {
  background:rgba(96,42,94,.94);
  border-color:rgba(239,191,224,.9);
}
@media (min-width:761px) {
 #bella-chat button.chat-launcher{width:48px;height:48px;min-width:48px;min-height:48px;padding:0!important;border-radius:50%;justify-content:center;gap:0}
 #bella-chat button.chat-launcher > span{display:none}
 #bella-chat button.chat-launcher svg{width:22px;height:22px;flex:none}
}
