/* Atelier customer enquiry chat: isolated selectors to avoid overriding the theme. */
.ac30-chat,.ac30-chat *{box-sizing:border-box}
.ac30-chat{position:fixed;bottom:22px;right:22px;z-index:100010;font-family:Inter,Arial,Helvetica,sans-serif;color:#243c30;font-size:14px;line-height:1.45}
.ac30-chat [hidden]{display:none!important}
.ac30-launch{border:0;display:flex;align-items:center;gap:10px;border-radius:999px;padding:14px 19px;background:#1e4634;color:#fff;box-shadow:0 10px 35px rgba(9,43,25,.28);font-family:inherit;font-weight:700;font-size:13px;line-height:1.3;cursor:pointer;transition:transform .2s,background .2s}
.ac30-launch:hover,.ac30-launch:focus-visible{background:#123322;transform:translateY(-2px)}
.ac30-launch svg{flex:0 0 auto}.ac30-launch:focus-visible,.ac30-close:focus-visible,.ac30-chat button:focus-visible{outline:3px solid #a2caa9;outline-offset:2px}
.ac30-panel{position:absolute;bottom:68px;right:0;width:min(380px,calc(100vw - 24px));max-height:min(620px,calc(100dvh - 110px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dae6db;border-radius:17px;box-shadow:0 24px 80px rgba(18,46,30,.23);font-size:13px}
.ac30-head{background:#193b2b;color:#fff;padding:16px;display:flex;align-items:center;gap:11px;flex-shrink:0}
.ac30-head-mark{display:grid;place-items:center;font:700 18px Georgia,serif;width:38px;height:38px;border-radius:10px;background:#315e46}
.ac30-head strong,.ac30-head small{display:block}.ac30-head strong{font-size:14px}.ac30-head small{color:#d7e6da;font-size:11px;margin-top:2px}
.ac30-head>div:nth-child(2){flex:1}.ac30-close{border:0;background:transparent;color:#fff;cursor:pointer;font-size:27px;line-height:1;padding:3px 8px}
.ac30-greeting{padding:14px 19px 4px;background:#fbfcfa}.ac30-greeting strong{font-size:15px}.ac30-greeting p{margin:6px 0;color:#68776c;font-size:12px;line-height:1.6}
.ac30-start{padding:10px 19px 14px;display:grid;gap:8px;overflow:auto;min-height:0}
.ac30-start label:not(.ac30-consent){display:block;font-weight:700;font-size:11px;color:#37523d}
.ac30-start label small{font-size:10px;color:#8b998f;font-weight:400}
.ac30-start input:not([type="checkbox"]),.ac30-start textarea,.ac30-start select,.ac30-reply textarea{width:100%;display:block;outline:0;resize:vertical;margin-top:4px;padding:10px 11px;background:#fff;border:1px solid #d7e1d7;border-radius:8px;color:#263b2f;font:400 13px Arial,sans-serif}
.ac30-start input:focus,.ac30-start textarea:focus,.ac30-start select:focus,.ac30-reply textarea:focus{border-color:#487557;box-shadow:0 0 0 2px #d9e9dd}
.ac30-start textarea{min-height:65px;max-height:130px}
.ac30-consent{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.5;color:#667a69}.ac30-consent input{margin:2px 0 0;flex-shrink:0}
.ac30-honeypot{position:absolute;left:-9000px;height:1px;overflow:hidden}
.ac30-primary{background:#214c35;color:#fff;border:0;border-radius:8px;padding:12px 13px;cursor:pointer;text-align:center;font-weight:800;font-size:12px}.ac30-primary:hover{background:#113523}.ac30-primary:disabled,.ac30-reply button:disabled{opacity:.55;cursor:wait}
.ac30-thread{display:flex;flex-direction:column;min-height:190px;flex:1;overflow:hidden}
.ac30-messages{padding:14px 13px;overflow-y:auto;flex:1;min-height:115px;background:#f7faf6;display:flex;gap:9px;flex-direction:column;scrollbar-width:thin}
.ac30-bubble{max-width:90%;padding:10px 12px;border-radius:12px;background:#e6efe5;color:#183b2b;align-self:flex-end;overflow-wrap:anywhere}
.ac30-bubble.is-staff{background:#fff;border:1px solid #dde8df;align-self:flex-start}
.ac30-bubble small{font-size:10px;color:#607665;display:block;margin-bottom:4px}.ac30-bubble p{margin:0;white-space:pre-wrap;font-size:12px;line-height:1.6}
.ac30-reply{display:flex;align-items:flex-end;gap:8px;padding:11px;border-top:1px solid #e8eee8;flex-shrink:0}
.ac30-reply textarea{margin:0;min-height:44px;max-height:105px;flex:1}.ac30-reply button{padding:0;border:0;border-radius:9px;width:43px;height:43px;background:#224b34;color:#fff;font-size:18px;cursor:pointer;flex-shrink:0}
.ac30-thread-foot{font-size:10px;color:#839085;padding:0 12px 8px;margin:0}.ac30-feedback{background:#eef6e9;color:#214b35;padding:9px 15px;margin:0;font-size:11px;border-top:1px solid #e2ebdf}
.ac30-foot{border-top:1px solid #ecf0eb;padding:9px 16px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:3px;flex-shrink:0;color:#6d7c70;background:#fff;font-size:10px}.ac30-foot small{font-size:10px}
.ac30-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.ac30-chat{right:12px;bottom:12px}.ac30-launch{padding:12px 14px}.ac30-panel{bottom:60px;right:0;max-height:min(680px,calc(100dvh - 92px));width:min(390px,calc(100vw - 24px));border-radius:14px}.ac30-greeting{padding:11px 14px 3px}.ac30-start{padding:9px 14px 12px}.ac30-foot{padding:8px 12px}}
/* Chat inbox inside Atelier Commerce dashboard */
.ac30-admin-intro{margin-bottom:17px;padding:17px 20px;border:1px solid #dbe9db;border-radius:10px;background:#f5faf4}.ac30-admin-intro strong{font-size:15px}.ac30-admin-intro p{font-size:12px;color:#607864;margin:6px 0 0}
.ac30-inbox{display:grid;grid-template-columns:300px minmax(0,1fr);gap:17px;min-height:450px}
.ac30-inbox-list,.ac30-inbox-detail{background:#fff;border:1px solid #e3ebe2;border-radius:11px;padding:18px;min-width:0}
.ac30-inbox-list h2{font-size:16px;margin:0 0 12px}.ac30-inbox-list h2 small{font-size:12px;color:#617965}
.ac30-inbox-item{display:block;padding:12px 10px;border:1px solid transparent;border-bottom:1px solid #eef2ec;text-decoration:none!important;color:#244332!important;border-radius:7px}
.ac30-inbox-item:hover,.ac30-inbox-item.is-selected{background:#eaf3e9;border-color:#c9e1ce}
.ac30-inbox-item strong,.ac30-inbox-item span,.ac30-inbox-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac30-inbox-item strong{font-size:12px}.ac30-inbox-item span,.ac30-inbox-item small{font-size:11px;color:#6d846f;margin-top:3px}
.ac30-chat-pages{display:flex;gap:12px;padding:15px 6px}.ac30-chat-pages a{font-weight:700;color:#255e3a}
.ac30-inbox-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8ede8}.ac30-inbox-detail-head h2{font-size:17px;margin:0}.ac30-inbox-detail-head p,.ac30-inbox-detail-head small{display:block;font-size:11px;color:#657969;margin:4px 0;overflow-wrap:anywhere}
.ac30-inbox-pill{font-weight:700;font-size:11px;padding:6px 11px;border-radius:20px;background:#e3f1e5;color:#325d3d}
.ac30-inbox-history{max-height:420px;overflow-y:auto;padding:18px 6px;display:flex;flex-direction:column;gap:11px;background:#f9fbf8}
.ac30-admin-message{max-width:86%;background:#eef4ed;border:1px solid #dfe9de;border-radius:10px;padding:11px 13px;align-self:flex-start}.ac30-admin-message.is-staff{align-self:flex-end;background:#e0f0e5}.ac30-admin-message small{font-size:10px;color:#728678}.ac30-admin-message p{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 0}
.ac30-inbox-actions{display:flex;flex-wrap:wrap;gap:13px;margin:13px 0}.ac30-inbox-actions a{font-size:11px;font-weight:700;color:#356547}
.ac30-admin-reply label{font-size:12px;font-weight:700;display:block;margin-bottom:7px}.ac30-admin-reply textarea{width:100%;min-height:75px;border:1px solid #d5e2d5;padding:12px;border-radius:7px;display:block;resize:vertical}.ac30-admin-reply .ac-button{margin-top:9px}
.ac30-admin-state{margin-top:18px;border-top:1px solid #edf0ea;padding-top:12px}.ac30-admin-state button{background:transparent;color:#4a6350;border:0;text-decoration:underline;cursor:pointer;font-size:11px;padding:5px}
.ac30-no-chat{font-size:12px;color:#819384;padding:16px}
@media(max-width:1000px){.ac30-inbox{grid-template-columns:1fr}.ac30-inbox-list{max-height:260px;overflow-y:auto}}

/* V31 circular launcher: native details/summary opens even when a deferred JS file is late. */
details.ac30-chat {position:fixed!important;right:22px!important;bottom:22px!important;z-index:2147483000!important; width:64px; height:64px; margin:0!important; padding:0!important; background:transparent!important; border:0!important; overflow:visible!important; box-shadow:none!important; isolation:isolate;}
details.ac30-chat[open] {z-index:2147483000!important;}
details.ac30-chat:not([open]) > .ac30-panel {display:none!important;}
details.ac30-chat > summary.ac30-launch {list-style:none!important; appearance:none; position:relative; display:grid!important;place-items:center; box-sizing:border-box!important; width:64px!important; height:64px!important; min-width:64px!important;min-height:64px!important; max-width:none!important; margin:0!important; padding:0!important; border:2px solid #ffffff!important; border-radius:50%!important; background:#174b36!important; color:#ffffff!important; box-shadow:0 9px 28px rgba(18,53,32,.35),0 0 0 3px rgba(27,86,54,.12)!important; cursor:pointer; line-height:1!important; text-decoration:none!important; animation:ac31-chat-shake 6.8s ease-in-out infinite!important; transform-origin:50% 80%; -webkit-tap-highlight-color:transparent;}
details.ac30-chat > summary.ac30-launch::-webkit-details-marker {display:none!important;}
details.ac30-chat > summary.ac30-launch::marker {content:'';}
details.ac30-chat > summary.ac30-launch svg {width:30px!important;height:30px!important;display:block!important;stroke:currentColor!important;flex:none!important;pointer-events:none;}
details.ac30-chat > summary.ac30-launch:hover,details.ac30-chat > summary.ac30-launch:focus-visible,details.ac30-chat[open] > summary.ac30-launch {animation-play-state:paused!important; background:#0c3222!important; box-shadow:0 12px 32px rgba(10,40,24,.4)!important; transform:scale(1.06);}
details.ac30-chat > summary.ac30-launch:focus-visible {outline:3px solid #96cda5!important;outline-offset:4px!important;}
details.ac30-chat .ac31-status-dot {position:absolute;top:4px;right:4px;width:13px;height:13px;background:#62d799;border:3px solid #fff;border-radius:50%;pointer-events:none;}
details.ac30-chat[open] .ac31-status-dot {display:none;}
details.ac30-chat .ac30-panel {position:absolute!important;right:0!important;bottom:78px!important;z-index:1;width:min(390px,calc(100vw - 24px))!important;height:auto;max-width:calc(100vw - 24px);max-height:min(640px,calc(100dvh - 116px));padding:0!important;margin:0!important;display:flex!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;overflow:hidden!important;box-sizing:border-box!important;transform:none!important;animation:ac31-panel-enter .18s ease-out both;}
@keyframes ac31-chat-shake {0%,79%,88%,100%{transform:rotate(0deg)}81%{transform:rotate(-9deg)}83%{transform:rotate(9deg)}85%{transform:rotate(-5deg)}87%{transform:rotate(3deg)}}
@keyframes ac31-panel-enter {from{opacity:.3;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){details.ac30-chat {right:14px!important;bottom:max(14px,env(safe-area-inset-bottom))!important;}details.ac30-chat .ac30-panel {bottom:74px!important;max-height:calc(100dvh - 102px)}}
@media(prefers-reduced-motion:reduce){details.ac30-chat > summary.ac30-launch{animation:none!important;}details.ac30-chat .ac30-panel{animation:none!important;}}

/* V32: smaller round launcher with the existing gentle attention animation. */
details.ac30-chat{width:52px!important;height:52px!important;right:16px!important;bottom:16px!important;}
details.ac30-chat > summary.ac30-launch{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;}
details.ac30-chat > summary.ac30-launch svg{width:24px!important;height:24px!important;}
details.ac30-chat .ac31-status-dot{top:1px;right:1px;width:11px;height:11px;}
details.ac30-chat .ac30-panel{bottom:64px!important;}
@media(max-width:600px){details.ac30-chat{right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;}details.ac30-chat .ac30-panel{bottom:62px!important;}}
