/* Customer chat links are available as soon as the HTML loads. */
.sg-chat-float,.sg-chat-footer,.sg-chat-footer-link { box-sizing:border-box; font-family:system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; }
a.sg-chat-float,a.sg-chat-footer-link { display:inline-flex; align-items:center; justify-content:center; gap:9px; text-decoration:none; color:#332513; background:#fee500; font-weight:800; letter-spacing:-.035em; line-height:1.2; }
a.sg-chat-float { position:fixed; z-index:115; right:max(24px,env(safe-area-inset-right)); bottom:calc(26px + env(safe-area-inset-bottom)); min-height:50px; padding:10px 17px; border:1px solid rgba(69,50,0,.14); border-radius:999px; box-shadow:0 3px 12px #44361529; font-size:15px; }
.sg-chat-icon { position:relative; flex:none; display:inline-grid; place-items:center; width:25px; height:20px; border-radius:50%; background:#332513; }
.sg-chat-icon::after { content:""; position:absolute; left:4px; bottom:-3px; width:8px; height:8px; background:#332513; clip-path:polygon(15% 0,100% 0,0 100%); }
.sg-chat-icon i { width:3px; height:3px; background:#fee500; border-radius:100%; box-shadow:-5px 0 #fee500,5px 0 #fee500; }
.sg-chat-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 24px; width:min(960px,calc(100% - 40px)); margin:28px auto; padding:20px clamp(18px,3vw,32px); border:1px solid #e6debd; border-radius:16px; color:#30291f; background:#fffbeb; text-align:left; }
.sg-chat-footer-copy strong { color:#30291f; font-size:19px; font-weight:800; line-height:1.4; }
.sg-chat-footer .sg-chat-footer-copy p { margin:4px 0 0; color:#564d40; font-size:15px; line-height:1.5; }
a.sg-chat-footer-link { min-height:44px; padding:9px 16px; border:1px solid #e7ce0b; border-radius:10px; font-size:15px; }
.sg-chat-arrow { font-size:22px; line-height:1; }
a.sg-chat-float:focus-visible,a.sg-chat-footer-link:focus-visible { outline:3px solid #284d75; outline-offset:3px; }
@media(hover:hover) { a.sg-chat-float:hover,a.sg-chat-footer-link:hover { background:#ffdc24; color:#21190f; } }
@media(max-width:760px) {
  a.sg-chat-float { right:max(12px,env(safe-area-inset-right)); bottom:calc(76px + env(safe-area-inset-bottom)); width:64px; min-height:61px; flex-direction:column; gap:6px; padding:9px 3px; border-radius:19px; font-size:12px; }
  .sg-chat-footer { width:calc(100% - 32px); margin:24px auto; padding:18px; }
  body:has(.sg-chat-footer-link:focus-visible) a.sg-chat-float,
  body:is(.login-modal-open,.repair-modal-open,.conversion-modal-open,.campaign-popup-open) a.sg-chat-float,
  body:has(input:focus,textarea:focus,select:focus,dialog[open]) a.sg-chat-float { visibility:hidden; }
}
@media(max-width:680px) {
  body.sponsor-dock-ready a.sg-chat-float { bottom:calc(156px + env(safe-area-inset-bottom)); }
  body.sponsor-dock-ready.has-mobile-action a.sg-chat-float { bottom:calc(220px + env(safe-area-inset-bottom)); }
}
@media(max-width:480px) { a.sg-chat-footer-link { width:100%; } }
@media print { a.sg-chat-float,.sg-chat-footer { display:none; } }

#sg-auth-dialog a.sg-auth-chat { display:flex; align-items:center; justify-content:center; min-height:44px; margin:8px 0; padding:4px 12px; border:1px solid #dfc900; border-radius:10px; background:#fffbe5; color:#332513; text-decoration:none; font-weight:700; }
