.g2d-chat-install{position:fixed;left:16px;right:16px;bottom:calc(96px + env(safe-area-inset-bottom));z-index:999985;background:#fff;border:1px solid rgba(18,78,61,.16);box-shadow:0 14px 36px rgba(20,55,45,.18);border-radius:20px;padding:13px 44px 13px 16px;display:flex;align-items:center;gap:14px;max-width:760px;margin:auto}.g2d-chat-install[hidden]{display:none!important}.g2d-chat-install-copy{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.g2d-chat-install-copy b{color:#173f35;font-size:15px}.g2d-chat-install-copy span{color:#6f7d78;font-size:12px;line-height:1.35}.g2d-chat-install>button[data-g2d-chat-install-button]{border:0;border-radius:14px;background:#176d52;color:#fff;font-weight:800;padding:11px 16px;white-space:nowrap;box-shadow:none}.g2d-chat-install-close{position:absolute;right:10px;top:8px;border:0;background:transparent;color:#65746f;font-size:22px;line-height:1;padding:4px}.g2d-chat-install-notice{position:fixed;left:18px;right:18px;bottom:calc(110px + env(safe-area-inset-bottom));z-index:1000002;background:#fff;border:1px solid rgba(18,78,61,.18);box-shadow:0 16px 40px rgba(20,55,45,.22);border-radius:18px;padding:16px 46px 16px 16px;display:flex;align-items:flex-start;gap:12px}.g2d-chat-install-notice>div{display:flex;flex-direction:column;gap:5px}.g2d-chat-install-notice b{font-size:15px;color:#173f35}.g2d-chat-install-notice span{font-size:13px;line-height:1.5;color:#687771}.g2d-chat-install-notice>button{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:22px;color:#65746f}
@media(min-width:900px){.g2d-chat-install{left:50%;right:auto;transform:translateX(-50%);bottom:22px;width:min(680px,calc(100vw - 40px))}.g2d-chat-install-notice{left:50%;right:auto;transform:translateX(-50%);width:min(600px,calc(100vw - 40px));bottom:28px}}
html.g2d-chat-pwa-mode,body.g2d-chat-pwa-body{height:100%;margin:0;overflow:hidden;background:#f5f8f6}.g2d-chat-pwa-body{font-family:inherit}.g2d-chat-pwa-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f5f8f6}.g2d-chat-pwa-topbar{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;padding:env(safe-area-inset-top) 18px 0;background:#fff;border-bottom:1px solid rgba(18,78,61,.12);box-sizing:content-box;z-index:20}.g2d-chat-pwa-logo{display:flex;align-items:center;gap:10px}.g2d-chat-pwa-logo>div{display:flex;flex-direction:column;line-height:1.15}.g2d-chat-pwa-logo b{font-size:18px;color:#163b32}.g2d-chat-pwa-logo span{font-size:12px;color:#77847f}.g2d-chat-pwa-paw{width:36px;height:36px;border-radius:12px;background:#e8f4ee;color:#176d52!important;display:grid;place-items:center;font-size:14px}.g2d-chat-pwa-site{font-size:13px;font-weight:800;text-decoration:none;color:#176d52;border:1px solid rgba(23,109,82,.2);border-radius:12px;padding:8px 11px}.g2d-chat-pwa-main{flex:1;min-height:0;overflow:hidden}.g2d-chat-pwa-main>.g2d-chat-app{height:100%!important;min-height:0!important;max-height:none!important;border-radius:0!important;border:0!important;margin:0!important;box-shadow:none!important}.g2d-chat-pwa-body .g2d-chat-center{min-height:0!important}.g2d-chat-pwa-body .g2d-chat-messages{min-height:0!important;overflow-y:auto!important}.g2d-chat-pwa-body .g2d-chat-compose{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
@media(max-width:899px){.g2d-chat-pwa-topbar{height:54px;flex-basis:54px;padding-left:14px;padding-right:14px}.g2d-chat-pwa-logo b{font-size:16px}.g2d-chat-pwa-main .g2d-chat-app{height:100%!important}.g2d-chat-pwa-body .g2d-chat-header{top:0!important}.g2d-chat-install{left:14px;right:14px;bottom:calc(96px + env(safe-area-inset-bottom));padding:12px 42px 12px 14px}.g2d-chat-install-copy span{display:block}.g2d-chat-install>button[data-g2d-chat-install-button]{font-size:13px;padding:10px 12px}.g2d-chat-install-notice{left:14px;right:14px;bottom:calc(100px + env(safe-area-inset-bottom))}}

/* v2.2.3 compact mobile installer */
@media(max-width:899px){
  .g2d-chat-install{
    left:14px!important;
    right:auto!important;
    width:min(330px,calc(100vw - 92px))!important;
    max-width:330px!important;
    bottom:calc(98px + env(safe-area-inset-bottom))!important;
    margin:0!important;
    padding:10px 36px 10px 12px!important;
    gap:9px!important;
    border-radius:16px!important;
    box-shadow:0 10px 28px rgba(20,55,45,.16)!important;
    align-items:center!important;
  }
  .g2d-chat-install-copy{gap:1px!important;min-width:0!important}
  .g2d-chat-install-copy b{font-size:13px!important;line-height:1.15!important}
  .g2d-chat-install-copy span{font-size:10.5px!important;line-height:1.25!important;max-width:125px!important}
  .g2d-chat-install>button[data-g2d-chat-install-button]{
    font-size:11px!important;
    line-height:1.1!important;
    padding:9px 10px!important;
    border-radius:11px!important;
    min-height:36px!important;
    flex:0 0 auto!important;
  }
  .g2d-chat-install-close{right:7px!important;top:6px!important;font-size:18px!important;padding:2px!important}
  .g2d-chat-install-notice{
    left:14px!important;right:auto!important;width:min(330px,calc(100vw - 92px))!important;
    bottom:calc(98px + env(safe-area-inset-bottom))!important;
    padding:12px 34px 12px 12px!important;border-radius:15px!important;
  }
  .g2d-chat-install-notice b{font-size:13px!important}
  .g2d-chat-install-notice span{font-size:11px!important;line-height:1.35!important}
}
@media(max-width:390px){
  .g2d-chat-install{width:min(300px,calc(100vw - 82px))!important}
  .g2d-chat-install-copy span{display:none!important}
}


/* v2.2.4 installer is part of the homepage, directly below the category section */
.g2d-chat-install.g2d-chat-install-inline{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  top:auto!important;
  z-index:2!important;
  width:min(760px,calc(100% - 32px))!important;
  max-width:760px!important;
  margin:18px auto 24px!important;
  transform:none!important;
  box-sizing:border-box!important;
  box-shadow:0 8px 24px rgba(20,55,45,.09)!important;
}
body.g2d-hkb-home-categories-only .g2d-chat-install.g2d-chat-install-inline{
  display:flex!important;
}
@media(max-width:899px){
  .g2d-chat-install.g2d-chat-install-inline{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin:14px 14px 20px!important;
    padding:13px 38px 13px 14px!important;
    gap:12px!important;
    border-radius:18px!important;
  }
  .g2d-chat-install.g2d-chat-install-inline .g2d-chat-install-copy span{
    display:block!important;
    max-width:none!important;
    font-size:11.5px!important;
    line-height:1.35!important;
  }
  .g2d-chat-install.g2d-chat-install-inline>button[data-g2d-chat-install-button]{
    font-size:12px!important;
    padding:10px 12px!important;
    min-height:38px!important;
  }
}
@media(max-width:390px){
  .g2d-chat-install.g2d-chat-install-inline{
    width:calc(100% - 24px)!important;
    margin-left:12px!important;
    margin-right:12px!important;
  }
}


/* v2.2.7: installer is a permanent layout block, never a floating overlay */
.g2d-chat-install.g2d-chat-install-inline{
  clear:both!important;
  float:none!important;
  flex:none!important;
}
.g2d-chat-install.g2d-chat-install-inline .g2d-chat-install-close{display:none!important}
body.g2d-route-home .g2d-chat-install.g2d-chat-install-inline,
body.g2d-hkb-home-categories-only .g2d-chat-install.g2d-chat-install-inline{
  position:relative!important;
  transform:none!important;
}
@media(max-width:899px){
  .g2d-chat-install.g2d-chat-install-inline{
    margin-top:18px!important;
    margin-bottom:24px!important;
  }
}
