#sgstec-widget-root{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:999999;
  font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
}
.sgs-fab{
  position:relative;
  width:138px;
  height:92px;
  border-radius:24px;
  border:none;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(145deg,#0a54d1,#2a82ff);
  box-shadow:0 10px 30px rgba(14,71,177,.45),inset 0 0 0 1px rgba(255,255,255,.28);
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:10px 12px;
  text-align:center;
  font-weight:800;
  line-height:1;
  overflow:visible;
  transform:translateZ(0);
  animation:sgsFabFloat 2.8s ease-in-out infinite;
}
.sgs-fab::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:30px;
  border:1px solid rgba(89,174,255,.6);
  box-shadow:0 0 18px rgba(89,174,255,.48);
  animation:sgsPulse 1.7s ease-out infinite;
}
.sgs-fab::after{
  content:"⚡";
  position:absolute;
  top:-13px;
  left:-12px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#73ddff,#00bdf7 58%,#00a4e6 100%);
  color:#001e38;
  font-size:19px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 18px rgba(2,194,255,.50),0 0 18px rgba(3,203,255,.42);
}
.sgs-fab-label{
  text-align:center;
  font-size:14px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.35px;
  text-shadow:0 1px 0 rgba(8,23,67,.24),0 0 14px rgba(138,215,255,.20);
}

.sgs-panel{
  display:none;
  width:540px;
  max-width:calc(100vw - 20px);
  height:780px;
  max-height:calc(100vh - 26px);
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(90,125,200,.28);
  box-shadow:0 30px 60px rgba(7,21,56,.35);
  background:#f4f7fb;
  backdrop-filter:blur(8px);
}
.sgs-header{
  position:relative;
  padding:14px 14px 12px 14px;
  color:#fff;
  background:linear-gradient(140deg,#0d2c6f 0%,#1d56ba 55%,#2d8cff 100%);
}
.sgs-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:rgba(255,255,255,.35);
}
.sgs-header-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.sgs-header-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.sgs-logo{
  width:210px;
  max-width:32vw;
  max-height:54px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  padding:7px 10px;
  display:none;
}
.sgs-title{font-size:15px;font-weight:750;line-height:1.2}
.sgs-sub{font-size:11px;opacity:.9;margin-top:4px;line-height:1.35}

.sgs-langbar{
  display:flex;
  gap:5px;
  align-items:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.38);
  border-radius:999px;
  padding:2px;
}
.sgs-flag-btn{
  min-width:64px;
  height:30px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:#fff;
  cursor:pointer;
  font-size:12px;
  padding:0 7px;
  line-height:1;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:none;
  transition:all .18s ease;
}
.sgs-flag-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.18)}
.sgs-flag-btn.active{
  background:linear-gradient(145deg,#fff7ec,#ffe7c9);
  color:#6c3f11;
  border-color:#ffc98c;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 4px 10px rgba(8,24,64,.22);
}
.sgs-flag-emoji{
  font-size:16px;
  line-height:1;
  filter:saturate(1.2) contrast(1.08);
}
.sgs-flag-label{font-size:12px}

.sgs-close{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(255,255,255,.16);
  color:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(7,24,62,.18);
  transition:background .16s ease, transform .16s ease;
}
.sgs-close:hover{
  background:rgba(255,255,255,.28);
  transform:translateY(-1px);
}

.sgs-modebar{
  margin-top:12px;
  display:flex;
  gap:8px;
}
.sgs-mode-btn{
  flex:1;
  border:1px solid rgba(255,255,255,.38);
  border-radius:12px;
  background:rgba(255,255,255,.14);
  color:#e9f2ff;
  font-size:11px;
  letter-spacing:.3px;
  padding:9px 10px;
  cursor:pointer;
}
.sgs-mode-btn.active{
  background:#fff;
  color:#153f95;
  border-color:#fff;
  font-weight:700;
}

.sgs-body{display:flex;flex-direction:column;height:calc(100% - 130px)}
.sgs-chat{
  flex:1;
  overflow:auto;
  padding:14px;
  background:radial-gradient(circle at 20% -20%,#e9f3ff,#f6f9fc 42%,#f8fbff 100%);
}
.sgs-msg{
  padding:11px 13px;
  border-radius:16px;
  margin-bottom:11px;
  line-height:1.5;
  font-size:12px;
  max-width:94%;
}
.sgs-msg.bot{
  background:#fff;
  border:1px solid #d9e6fb;
  color:#1d2f4f;
  box-shadow:0 6px 14px rgba(39,89,168,.08);
  border-top-left-radius:6px;
}
.sgs-msg.user{
  background:linear-gradient(135deg,#1b4ea9,#2f79f5);
  color:#fff;
  margin-left:auto;
  border-bottom-right-radius:6px;
  box-shadow:0 8px 16px rgba(32,84,173,.25);
}
.sgs-choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.sgs-choice-wrap{display:inline-flex;align-items:center;gap:6px}
.sgs-choice{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border:1px solid #cad9f5;
  border-radius:999px;
  background:#f8fbff;
  color:#18438f;
  cursor:pointer;
  font-size:10px;
}
.sgs-choice:hover{border-color:#8bb4ff;background:#edf5ff;color:#18438f}
.sgs-choice-q{
  position:relative;
  display:inline-flex;
  margin-left:6px;
  width:16px;
  height:16px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:#e9f1ff;
  border:1px solid #c1d5fb;
  color:#1e4ea1;
  font-size:11px;
  font-weight:800;
  line-height:1;
  cursor:help;
}
.sgs-choice-q::after{
  content:attr(data-help);
  position:absolute;
  left:50%;
  bottom:125%;
  transform:translateX(-50%);
  min-width:170px;
  max-width:220px;
  padding:7px 8px;
  border-radius:8px;
  background:#0f2859;
  color:#fff;
  font-size:11px;
  line-height:1.35;
  box-shadow:0 8px 16px rgba(5,18,44,.28);
  opacity:0;
  pointer-events:none;
  visibility:hidden;
  transition:opacity .06s ease, visibility .06s ease;
  z-index:10;
}
.sgs-choice-q:hover::after{opacity:1;visibility:visible}
.sgs-help{
  position:relative;
  width:19px;
  height:19px;
  border-radius:50%;
  background:#eaf2ff;
  border:1px solid #b8cdf6;
  color:#1d4fa2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  cursor:help;
}
.sgs-help-tip{
  position:absolute;
  left:50%;
  bottom:130%;
  transform:translateX(-50%);
  min-width:160px;
  max-width:220px;
  padding:8px 9px;
  border-radius:10px;
  background:#0f2859;
  color:#fff;
  font-size:11px;
  line-height:1.35;
  box-shadow:0 10px 18px rgba(5,18,44,.32);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:all .14s ease;
}
.sgs-help:hover .sgs-help-tip,.sgs-help:focus .sgs-help-tip{opacity:1;visibility:visible;bottom:145%}

.sgs-inputbar{
  display:flex;
  gap:8px;
  padding:11px;
  border-top:1px solid #dce8fb;
  background:#fff;
}
.sgs-input{
  flex:1;
  border:1px solid #bfd2f4;
  border-radius:12px;
  padding:11px 12px;
  font-size:12px;
  background:#f9fbff;
}
.sgs-input:focus{outline:none;border-color:#4c8aff;box-shadow:0 0 0 3px rgba(76,138,255,.14)}
.sgs-send{
  border:none;
  background:linear-gradient(135deg,#1c4fae,#2d79f4);
  color:#fff;
  border-radius:12px;
  padding:0 14px;
  cursor:pointer;
  font-size:11px;
  letter-spacing:.2px;
  font-weight:700;
}

.sgs-footer{padding:9px 12px 12px 12px;border-top:1px solid #e2ecfb;background:#fff}
.sgs-actions{display:flex;gap:8px;flex-wrap:wrap}
.sgs-link{display:inline-block;background:#0b5ed7;color:#fff;text-decoration:none;padding:9px 11px;border-radius:10px;font-size:11px}
.sgs-link.alt{background:#1ebf5e}
.sgs-link.whatsapp{
  background:linear-gradient(135deg,#12b14f,#1dd667);
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
}
.sgs-link.report{
  background:linear-gradient(135deg,#0e65da,#2f8cff);
}
.sgs-wa-ico{font-size:13px;line-height:1}
.sgs-small{font-size:10px;color:#6f809f;margin-top:9px;line-height:1.45;text-align:center;letter-spacing:.1px;white-space:pre-line}
.sgs-vehicle-card{margin-top:10px}
.sgs-vehicle-img{
  width:100%;
  max-width:220px;
  border-radius:12px;
  border:1px solid #cfe0fb;
  background:#fff;
  box-shadow:0 6px 12px rgba(27,72,150,.14);
}

.sgs-decision-card{
  margin:10px 0 8px 0;
  border:1px solid #c9daf8;
  border-radius:12px;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  padding:8px 9px;
}
.sgs-decision-title{
  font-size:11px;
  font-weight:800;
  color:#16428f;
  margin-bottom:6px;
}
.sgs-decision-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:11px;
  line-height:1.35;
  color:#2a426d;
  padding:2px 0;
}
.sgs-decision-row span{opacity:.86}
.sgs-decision-row strong{
  color:#0f2f6f;
  text-align:right;
}
.sgs-decision-row.final{
  margin-top:4px;
  padding-top:6px;
  border-top:1px dashed #b8cdf3;
}
.sgs-mini-note{
  margin:8px 0;
  border:1px solid #d6e4fb;
  border-radius:10px;
  background:#f7fbff;
  color:#2c446f;
  font-size:11px;
  line-height:1.45;
  padding:8px 9px;
}

.sgs-compare-wrap{
  margin:8px 0 4px 0;
  border:1px solid #ccdcf8;
  border-radius:12px;
  background:#ffffff;
  overflow:auto;
}
.sgs-compare-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:11px;
  color:#1d345c;
  min-width:520px;
}
.sgs-compare-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:linear-gradient(180deg,#eff6ff 0%,#e7f0ff 100%);
  color:#123b84;
  text-align:left;
  font-weight:800;
  letter-spacing:.2px;
  border-bottom:1px solid #c8daf8;
  padding:8px 8px;
  white-space:nowrap;
}
.sgs-compare-table td{
  border-bottom:1px solid #e6eefc;
  padding:8px 8px;
  vertical-align:top;
  line-height:1.4;
}
.sgs-compare-table tbody tr:last-child td{
  border-bottom:none;
}
.sgs-compare-note{
  margin-top:4px;
  font-size:10px;
  color:#5a6f95;
}

.sgs-feedback-row{
  margin:-2px 0 11px 0;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  font-size:11px;
  color:#5f7396;
}
.sgs-feedback-label{margin-right:2px}
.sgs-feedback-btn{
  border:1px solid #cad9f5;
  background:#f7fbff;
  color:#1d4d99;
  border-radius:999px;
  padding:4px 9px;
  font-size:11px;
  cursor:pointer;
}
.sgs-feedback-btn:hover{
  border-color:#92b5f2;
  background:#eef5ff;
}

.sgs-typing{display:flex;align-items:center;gap:4px}
.sgs-dot{width:7px;height:7px;border-radius:50%;background:#84a3d7;animation:sgsblink 1.2s infinite}
.sgs-dot:nth-child(2){animation-delay:.2s}
.sgs-dot:nth-child(3){animation-delay:.4s}

@keyframes sgsblink{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}
@keyframes sgsPulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.16);opacity:0}}
@keyframes sgsFabFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}

@media (max-width:640px){
  #sgstec-widget-root{right:10px;bottom:10px}
  .sgs-panel{width:calc(100vw - 12px);height:84vh;border-radius:18px}
  .sgs-fab{width:126px;height:86px;border-radius:22px}
  .sgs-fab-label{font-size:12px}
}
