@import url('../../chat/style.css');
.public-shop .chat-page{max-width:600px;margin:24px auto 48px;border:1px solid #dce6f5;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 10px 36px #1b4e8c12}
.public-shop .chat-brand-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#2259a3;color:#fff;padding:18px 20px}
.public-shop .chat-brand-mark{background:#ffffffed;color:#2259a3}
.public-shop .chat-home-link{color:#fff;text-decoration:none;padding:8px 0}
.public-shop .chat-start{display:flex;flex-direction:column;gap:16px;padding:28px 24px 24px}
.public-shop .chat-start h2,.public-shop .chat-start p{margin:0}
.public-shop .chat-start label{display:grid;gap:8px}
.public-shop .chat-start-symbol{width:60px;height:60px;background:#e9f3ff;color:#2379f3;display:grid;place-items:center;border-radius:50%}
.public-shop .chat-start button{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:#2379f3;color:#fff;padding:14px 20px;border-radius:12px;min-height:52px;cursor:pointer}
.public-shop .chat-start button:disabled{opacity:.6}
.public-shop .chat-room h2{margin:0}
.public-shop .chat-room button{font:inherit}
.public-shop .chat-note{color:#60738f;overflow-wrap:anywhere}
.public-shop .chat-send-button{width:52px;border-radius:50%;padding:14px}
.public-shop .chat-send-button span{display:none}
.public-shop .chat-page [hidden]{display:none}

.public-shop .chat-widget-launcher{position:fixed;z-index:70;right:calc(var(--chat-widget-right,12px) + env(safe-area-inset-right));bottom:calc(var(--chat-widget-bottom,16px) + env(safe-area-inset-bottom));box-sizing:border-box;width:45px;height:45px;min-width:45px;min-height:45px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#2379f3;color:#fff;box-shadow:0 4px 18px #184e9360;text-decoration:none}
.public-shop .chat-widget-launcher svg{width:23px;height:23px}
.public-shop .chat-widget-launcher:hover{background:#155fca}
.public-shop .chat-widget-launcher:focus-visible,.public-shop .chat-widget-close:focus-visible{outline:3px solid #79acff;outline-offset:3px}
.public-shop .chat-widget-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;border:2px solid #fff;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none}
.public-shop .chat-widget-badge[hidden]{display:none}
.public-shop .chat-floating{position:fixed;z-index:71;right:calc(var(--chat-widget-right,12px) + env(safe-area-inset-right));left:auto;bottom:auto;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:none;margin:0;padding:0;border:1px solid #dce6f5;border-radius:18px;background:#fff;color:#172b4d;overflow:hidden;box-shadow:0 10px 48px #14386935}
.public-shop .chat-floating[open]{display:flex}
.public-shop .chat-floating .chat-page{display:flex;flex-direction:column;min-width:0;width:100%;height:100%;margin:0;border:0;border-radius:inherit;box-shadow:none}
.public-shop .chat-floating .chat-brand-bar{flex-wrap:nowrap;flex-shrink:0;padding:12px}
.public-shop .chat-floating .chat-brand{flex:1;gap:8px}
.public-shop .chat-floating .chat-brand-mark{width:32px;height:32px}
.public-shop .chat-widget-close{width:44px;height:44px;flex-shrink:0;padding:10px;border:0;border-radius:50%;display:grid;place-items:center;background:#ffffff18;color:#fff;cursor:pointer}
.public-shop .chat-widget-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.public-shop .chat-floating .chat-start{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;gap:14px}
.public-shop .chat-floating [data-chat-customer-room]{flex:1;min-height:0;min-width:0}
.public-shop .chat-floating [data-chat-customer-room]:not([hidden]){display:flex}
.public-shop .chat-floating .chat-room{flex:1;height:100%;min-height:0}
.public-shop .chat-widget[data-chat-keyboard] .chat-widget-launcher{visibility:hidden}
.public-shop .chat-widget[data-chat-keyboard] .chat-room-head{display:none}
.public-shop .chat-widget[data-chat-keyboard] .chat-brand-text{display:none}

@media(max-width:600px){
 .public-shop .chat-page{margin:12px auto 24px;border-color:#e9e6f0;border-radius:20px;box-shadow:0 8px 28px #30204d0c}
 .public-shop .chat-brand-bar{padding:16px;background:linear-gradient(115deg,var(--app-accent),#a21caf)}
 .public-shop .chat-brand-mark{color:var(--app-accent)}
 .public-shop .chat-start{padding:24px 20px;gap:18px}
 .public-shop .chat-start-symbol{background:#f4eeff;color:var(--app-accent)}
 .public-shop .chat-start button{background:#b20a55;border-radius:14px}
 .public-shop .chat-room-head .chat-mode-pill{display:none}
 .public-shop .chat-widget .chat-widget-launcher{background:var(--app-hot);box-shadow:0 4px 18px #9d125442}
}
