.chat-launcher{position:fixed;z-index:22;right:24px;bottom:24px;display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 19px;border:1px solid #bc5963;border-radius:30px;background:var(--red);color:#fff;box-shadow:0 5px 24px #55241e26;font-size:12px;font-weight:600;transition:background .2s,transform .2s}
.chat-launcher:hover{background:var(--red-dark);transform:translateY(-2px)}
.chat-launcher>.icon{width:22px;height:22px}
.chat-dialog{position:fixed;inset:auto 24px 24px auto;margin:0;width:min(420px,calc(100% - 48px));height:min(680px,calc(100dvh - 48px));max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid #decfc1;border-radius:18px;background:#fcfaf6;color:var(--ink);box-shadow:0 24px 100px #281c233d}
.chat-dialog[open]{display:flex;flex-direction:column}
.chat-dialog::backdrop{background:#281c2333;backdrop-filter:blur(2px)}
.chat-heading{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:20px;background:#fff;border-bottom:1px solid var(--line)}
.chat-avatar{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border:1px solid #e3cfc1;border-radius:50%;background:#f9f1e6;color:var(--red)}
.chat-eyebrow{font-size:9px;font-weight:600;letter-spacing:1.2px;color:var(--red)}
.chat-heading h2{margin:4px 0 0;font-size:21px;line-height:1.4;letter-spacing:-.6px}
.chat-close{display:grid;place-items:center;min-width:44px;min-height:44px;margin-left:auto;border-radius:50%;color:#79675c}
.chat-close:hover{background:#f6f0e9}
.chat-close>.icon{width:19px;height:19px}
.chat-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:24px 20px}
.chat-welcome-mark{display:block;margin-bottom:9px;font-size:23px;font-weight:600;letter-spacing:-.7px;color:#674b39}
.chat-welcome p{font-size:12px;line-height:1.9;color:#746557}
.chat-suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:20px 0}
.chat-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:42px;padding:9px 13px;border:1px solid #e4d8ca;border-radius:8px;background:#fffdfa;color:#6b5140;text-align:left;font-size:11px}
.chat-suggestions button>span{color:var(--red)}
.chat-suggestions button:hover:not(:disabled){border-color:#b87c6c;background:#fff7f0}
.chat-dialog button:disabled{cursor:default}
.chat-availability{margin:18px 0 0;padding:13px 15px;border:1px dashed #d5c6b7;border-radius:9px;background:#f6efe5;color:#6d5947;font-size:12px;line-height:1.8}
.chat-availability button,.chat-failure button{min-height:36px;margin-top:5px;padding:0;color:var(--red);font-size:11px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.chat-messages{display:flex;flex-direction:column;gap:19px}
.chat-message{min-width:0;max-width:100%}
.chat-message-label{display:block;margin-bottom:6px;color:#7e6c5d;font-size:9px;font-weight:600;letter-spacing:.5px}
.chat-message-content{padding:13px 15px;border:1px solid #e8dfd4;border-radius:2px 13px 13px;background:#fff;color:#493b30;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-message-user{align-self:flex-end;max-width:90%}
.chat-message-user .chat-message-label{text-align:right}
.chat-message-user .chat-message-content{border-color:#a51d2d;border-radius:13px 2px 13px 13px;background:var(--red);color:#fff}
.chat-recommendations{display:flex;flex-direction:column;gap:7px;margin:9px 0 0;padding:0;list-style:none}
.chat-recommendation{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #dfd2c4;border-radius:9px;background:#f6efe5}
.chat-recommendation>div{flex:1;min-width:0}
.chat-recommendation strong{display:block;font-size:11px;line-height:1.7}
.chat-recommendation p{margin-top:3px;font-size:10px;color:#78604d}
.chat-recommendation button{flex-shrink:0;min-height:40px;padding:8px 9px;border:1px solid #dbc1b0;border-radius:6px;background:#fffaf3;color:var(--red);font-size:10px;font-weight:600}
.chat-pending{display:flex;align-items:center;gap:10px;margin-top:17px;color:#7b6858;font-size:11px}
.chat-pending-dots{display:flex;gap:4px}
.chat-pending-dots i{width:5px;height:5px;border-radius:50%;background:#a51d2d;animation:chat-dot 1.2s ease-in-out infinite}
.chat-pending-dots i:nth-child(2){animation-delay:.15s}
.chat-pending-dots i:nth-child(3){animation-delay:.3s}
.chat-failure{margin-top:17px;padding:12px 14px;border:1px solid #e5c9c3;border-radius:9px;background:#fff4f0;color:#844037;font-size:12px;line-height:1.8}
.chat-form{flex-shrink:0;padding:15px 20px 17px;border-top:1px solid var(--line);background:#fff}
.chat-input-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.chat-input-label label{font-size:11px;font-weight:600;color:#675446}
.chat-input-label>span{font-size:9px;color:#817267;font-variant-numeric:tabular-nums}
.chat-compose{display:flex;align-items:flex-end;gap:8px;padding:9px;border:1px solid #d9cabb;border-radius:10px;background:#fcfaf6}
.chat-compose:focus-within{outline:2px solid var(--red);outline-offset:2px}
.chat-compose textarea{flex:1;min-width:0;max-height:120px;min-height:50px;resize:vertical;border:0;padding:3px;background:none;color:var(--ink);font-size:13px;line-height:1.8}
.chat-compose textarea:focus{outline:none}
.chat-compose textarea::placeholder{color:#8c7a6b}
.chat-compose textarea:read-only{opacity:.65}
.chat-compose button{display:grid;place-items:center;flex-shrink:0;min-width:40px;min-height:40px;padding:8px;border-radius:7px;background:var(--red);color:#fff}
.chat-compose button>.icon{width:20px;height:20px;transform:rotate(-90deg)}
.chat-input-hint{margin-top:7px;color:#837367;font-size:9px}
.chat-footer{display:flex;align-items:center;gap:15px;margin-top:12px;padding-top:11px;border-top:1px solid #f0eae3}
.chat-footer p{flex:1;color:#7b6d62;font-size:9px;line-height:1.8}
.chat-footer a{display:flex;align-items:center;gap:7px;flex-shrink:0;min-height:36px;color:var(--red);font-size:10px;font-weight:600}
.chat-dialog :is(button,a):focus-visible,.chat-launcher:focus-visible{outline:3px solid #96571f;outline-offset:3px}
.chat-heading button:focus-visible,.chat-compose button:focus-visible{outline-offset:2px}
@keyframes chat-dot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(max-width:1000px){#mobileCartButton:not([hidden])~.chat-launcher{bottom:88px}}
@media(max-width:740px){
  .chat-launcher{right:16px;bottom:calc(82px + env(safe-area-inset-bottom));min-height:48px;padding:10px 15px;font-size:11px}
  #mobileCartButton:not([hidden])~.chat-launcher{bottom:calc(146px + env(safe-area-inset-bottom))}
  .chat-dialog{inset:auto 10px calc(10px + env(safe-area-inset-bottom)) auto;width:calc(100% - 20px);height:min(680px,calc(100dvh - 20px - env(safe-area-inset-bottom)));border-radius:16px}
  .chat-heading{padding:16px}
  .chat-body{padding:20px 16px}
  .chat-form{padding:13px 16px}
  .chat-compose textarea{font-size:16px;min-height:57px}
  .chat-input-hint{display:none}
}
@media(max-height:550px){.chat-dialog{height:calc(100dvh - 16px);bottom:8px}.chat-heading{padding:10px 16px}.chat-form{padding:9px 16px}.chat-footer{margin-top:6px;padding-top:5px}.chat-compose textarea{min-height:38px;max-height:70px}.chat-input-hint{display:none}.chat-heading h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.chat-launcher{transition:none}.chat-pending-dots i{animation:none}}
