#agfci-root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP",sans-serif;position:fixed;bottom:22px;right:22px;z-index:2147482000;font-size:14px;color:#2e3832}#agfci-root *{box-sizing:border-box}#agfci-launch{background:#3a6356;color:#fff;border:0;border-radius:35px;padding:14px 18px;font:inherit;font-weight:700;box-shadow:0 5px 24px #0002;cursor:pointer}#agfci-launch span{margin-left:8px}#agfci-panel{position:absolute;right:0;bottom:64px;width:min(370px,calc(100vw - 28px));height:min(530px,calc(100dvh - 105px));background:#fff;border:1px solid #e1e8e4;border-radius:18px;box-shadow:0 12px 55px #0003;overflow:hidden;display:flex;flex-direction:column}#agfci-panel[hidden]{display:none!important}.agfci-head{padding:15px 17px;display:flex;justify-content:space-between;align-items:center;background:#3a6356;color:#fff}.agfci-head strong,.agfci-head small{display:block}.agfci-head small{font-size:11px;margin-top:3px;opacity:.8}#agfci-close{background:none;color:white;border:0;font-size:26px;cursor:pointer;line-height:1}#agfci-messages{padding:15px;overflow-y:auto;flex:1;background:#f6f8f7}.agfci-msg{max-width:92%;padding:10px 13px;border-radius:13px;margin-bottom:11px;line-height:1.7;overflow-wrap:anywhere}.agfci-msg p{margin:0;white-space:pre-wrap}.agfci-msg a{display:inline-block;margin-top:8px;color:#2a6653;text-decoration:underline}.agfci-msg.bot{background:#fff;border:1px solid #e4e9e6}.agfci-msg.user{background:#dcece5;margin-left:auto}.agfci-notice{font-size:10px;color:#68776e;padding:6px 13px;margin:0;background:white;line-height:1.5}#agfci-form{display:flex;padding:10px;gap:7px;background:white;border-top:1px solid #edf0ed}#agfci-input{flex:1;min-width:0;border:1px solid #cdd8d1;border-radius:7px;padding:10px;color:#26342c;background:#fff;font:inherit}#agfci-form button{border:0;border-radius:7px;background:#3a6356;color:#fff;padding:10px 13px;cursor:pointer;font:inherit}#agfci-form button:disabled{opacity:.55}#agfci-root :focus-visible{outline:2px solid #bd9962;outline-offset:2px}@media(max-width:480px){#agfci-root{right:14px;bottom:14px}#agfci-panel{bottom:60px}}

/* Mobile: keep the chat button above the fixed bottom cart bar. */
@media screen and (max-width: 767px) {
  #agfci-root { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  #agfci-panel { bottom: 60px; height: min(530px, calc(100dvh - 175px)); }
}

/* v0.4.2: Float the launcher above the company badge and sticky cart bar.
   Keep the support panel inside viewport on compact laptop and phones. */
#agfci-root {
  right: 24px;
  bottom: calc(164px + env(safe-area-inset-bottom, 0px));
}
#agfci-panel {
  right: 0;
  bottom: 66px;
  height: min(530px, calc(100dvh - 265px));
  max-height: calc(100dvh - 265px);
}
@media screen and (max-width: 767px) {
  #agfci-root {
    right: 14px;
    bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  }
  #agfci-panel {
    right: 0;
    bottom: 63px;
    height: min(500px, calc(100dvh - 250px));
    max-height: calc(100dvh - 250px);
  }
}
@media screen and (max-height: 540px) {
  #agfci-root { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  #agfci-panel { height: calc(100dvh - 180px); max-height: calc(100dvh - 180px); }
}
