#srgc-widget {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 999998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: 'Pretendard Variable','Noto Sans KR',-apple-system,sans-serif;
}
.srgc-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  border: none;
  outline: none;
}
.srgc-fab:hover { transform: scale(1.1); }
#srgc-kakao-fab {
  background: #FEE500;
  box-shadow: 0 4px 16px rgba(254,229,0,.55);
}
#srgc-kakao-fab svg { width: 30px; height: 30px; }
#srgc-quote-fab {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,#1B5FCC,#2E86F0);
  box-shadow: 0 4px 20px rgba(27,95,204,.45);
  text-decoration: none;
}
#srgc-quote-fab i { font-size: 26px; color: #fff; line-height: 1; }
#srgc-chat-fab {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,#1B5FCC,#2E86F0);
  box-shadow: 0 4px 20px rgba(27,95,204,.45);
}
#srgc-chat-fab svg { width: 28px; height: 28px; fill: #fff; }
#srgc-chat-fab .fab-open  { display: block; }
#srgc-chat-fab .fab-close { display: none; }
#srgc-chat-fab.is-open .fab-open  { display: none; }
#srgc-chat-fab.is-open .fab-close { display: block; }
.srgc-fab-label {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .15s, transform .15s;
}
.srgc-fab:hover .srgc-fab-label {
  opacity: 1;
  transform: translateX(0);
}
#srgc-kakao-popup {
  display: none;
  position: fixed;
  bottom: 170px;
  right: 24px;
  width: 220px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 36px rgba(0,0,0,.18);
  padding: 24px 20px 20px;
  text-align: center;
  z-index: 999999;
  animation: srgcFadeUp .22s ease;
}
#srgc-kakao-popup.visible { display: block; }
@keyframes srgcFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
#srgc-kakao-popup .kp-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}
#srgc-kakao-popup .kp-close:hover { color: #555; }
#srgc-kakao-popup .kp-qr {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
#srgc-kakao-popup .kp-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#srgc-kakao-popup .kp-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
#srgc-kakao-popup .kp-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  word-break: keep-all;
}
#srgc-kakao-popup .kp-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: #FEE500;
  color: #3C1E1E;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
#srgc-kakao-popup .kp-link:hover { opacity: .85; }
.scp-tabbar {
  display: flex;
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
}
.scp-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-top: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  font-family: inherit;
  transition: all .15s;
}
.scp-tab--active {
  color: #1B5FCC;
  border-top-color: #1B5FCC;
  font-weight: 700;
}
#srgc-chat-panel {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  height: 580px;
  max-height: 580px;
  background: #f2f2f2;
  border-radius: 22px;
  box-shadow: 0 10px 44px rgba(0,0,0,.18);
  overflow: hidden;
  flex-direction: column;
  z-index: 999999;
  animation: srgcFadeUp .22s ease;
}
#srgc-chat-panel.visible { display: flex; }
.scp-header {
  background: linear-gradient(135deg,#1B5FCC,#2E86F0 70%,#36A6F2);
  color: #fff;
  padding: 22px 20px 26px;
  position: relative;
  flex-shrink: 0;
}
.scp-header .scp-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; cursor: pointer;
  border: none; outline: none;
  transition: background .15s;
}
.scp-header .scp-close:hover { background: rgba(255,255,255,.38); }
.scp-header .scp-logo-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.scp-header .scp-logo-row .scp-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; color: #fff; letter-spacing: -.5px;
}
.scp-header .scp-logo-row span { font-size: 13px; font-weight: 600; opacity: .9; }
.scp-header h3 { font-size: 20px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.scp-header p  { font-size: 12px; opacity: .82; word-break: keep-all; line-height: 1.5; }
.scp-home-body { padding: 14px; overflow-y: auto; flex: 1; min-height: 0; }
.scp-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.scp-card .scp-card-title { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 5px; }
.scp-card .scp-card-desc  { font-size: 12px; color: #666; line-height: 1.6; word-break: keep-all; }
.scp-card .scp-hours {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 11px; color: #999;
}
.scp-choices { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.scp-btn {
  width: 100%; padding: 12px 18px;
  border-radius: 12px; border: none; outline: none;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .16s; font-family: inherit;
}
.scp-btn-primary {
  background: linear-gradient(135deg,#1B5FCC,#2E86F0);
  color: #fff;
  box-shadow: 0 3px 10px rgba(27,95,204,.32);
}
.scp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(27,95,204,.42); }
.scp-btn-ghost {
  background: #fff; color: #1B5FCC;
  border: 1.5px solid #1B5FCC;
}
.scp-btn-ghost:hover { background: #EFF5FF; }
.scp-hist-card {
  background: #fff; border-radius: 14px;
  padding: 14px 16px; margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  cursor: pointer; transition: box-shadow .15s;
}
.scp-hist-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.11); }
.scp-hist-card .ht { font-size: 13px; font-weight: 600; color: #111; }
.scp-hist-card .hp { font-size: 11px; color: #888; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scp-hist-card .hm { font-size: 10px; color: #bbb; margin-top: 6px;
  display: flex; justify-content: space-between; }
.scp-status {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 7px; display: inline-block;
}
.scp-status.active { background: #E8F5E9; color: #2E7D32; }
.scp-status.closed { background: #F5F5F5; color: #999; }
.scp-form-body { padding: 16px 14px; overflow-y: auto; flex: 1; }
.scp-form-group { margin-bottom: 13px; }
.scp-form-group label { display: block; font-size: 12px; font-weight: 700; color: #555; margin-bottom: 5px; }
.scp-form-group input {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid #ddd; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff;
  outline: none; box-sizing: border-box; transition: border-color .15s;
}
.scp-form-group input:focus { border-color: #2E86F0; }
.scp-hint { font-size: 11px; color: #aaa; margin-bottom: 14px; line-height: 1.55; word-break: keep-all; }
.scp-back {
  position: absolute; top: 16px; left: 14px;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(255,255,255,.85); cursor: pointer;
  background: none; border: none; outline: none;
}
.scp-back:hover { color: #fff; }
#scp-room {
  display: flex; flex-direction: column; flex: 1; overflow: hidden;
}
.scp-room-header {
  background: #fff; padding: 12px 14px;
  border-bottom: 1px solid #eee;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.scp-room-header .av {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#1B5FCC,#2E86F0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.scp-room-header .ai { flex: 1; }
.scp-room-header .ai .an { font-size: 13px; font-weight: 700; color: #111; }
.scp-room-header .ai .as { font-size: 11px; color: #2E7D32; }
.scp-end-btn {
  padding: 5px 11px;
  border: 1.5px solid #FF3B30; border-radius: 8px;
  font-size: 11px; font-weight: 700; color: #FF3B30;
  cursor: pointer; background: #fff; font-family: inherit;
  transition: all .15s;
}
.scp-end-btn:hover { background: #FF3B30; color: #fff; }
#scp-msg-list {
  flex: 1; overflow-y: auto;
  padding: 12px 12px 8px;
  display: flex; flex-direction: column; gap: 10px;
}
#scp-msg-list::-webkit-scrollbar { width: 3px; }
#scp-msg-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.scp-brow { display: flex; gap: 6px; align-items: flex-end; }
.scp-brow.vm { flex-direction: row-reverse; }
.scp-brow .bav {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#1B5FCC,#2E86F0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9px; font-weight: 700;
}
.scp-bubble {
  max-width: 240px; padding: 9px 13px;
  border-radius: 14px; font-size: 13px; line-height: 1.55;
  word-break: break-word;
}
.scp-brow.am .scp-bubble {
  background: #fff; color: #111;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.scp-brow.vm .scp-bubble {
  background: linear-gradient(135deg,#1B5FCC,#2E86F0);
  color: #fff; border-bottom-right-radius: 4px;
}
.scp-btime { font-size: 10px; color: #c0c0c0; flex-shrink: 0; padding-bottom: 1px; }
.scp-brow.vm .scp-btime { order: -1; }
.scp-sys {
  text-align: center; font-size: 11px; color: #aaa;
  background: rgba(0,0,0,.05); border-radius: 8px;
  padding: 5px 12px; margin: 0 auto; max-width: 90%;
}
.scp-input-area {
  background: #fff; border-top: 1px solid #eee;
  padding: 9px 10px; flex-shrink: 0;
}
.scp-input-row {
  display: flex; align-items: flex-end; gap: 6px;
  background: #f5f5f5; border-radius: 14px;
  padding: 7px 8px; border: 1.5px solid #eee;
  transition: border-color .15s;
}
.scp-input-row:focus-within { border-color: #2E86F0; background: #fff; }
.scp-attach { color: #bbb; cursor: pointer; padding: 1px 3px; font-size: 17px; }
.scp-attach:hover { color: #2E86F0; }
.scp-attach label { cursor: pointer; display: block; }
#scp-file-input { display: none; }
.scp-input-row textarea {
  flex: 1; border: none; background: transparent; outline: none;
  resize: none; font-size: 13px; font-family: inherit;
  color: #111; max-height: 90px; line-height: 1.5; height: 22px;
}
.scp-input-row textarea::placeholder { color: #c0c0c0; }
.scp-send {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#1B5FCC,#2E86F0);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, opacity .15s; border: none;
}
.scp-send:hover { transform: scale(1.1); }
.scp-send.off { opacity: .38; pointer-events: none; }
.scp-send svg { width: 15px; height: 15px; fill: #fff; }
#scp-end-overlay {
  display: none; position: absolute; inset: 0;
  background: rgba(0,0,0,.42); border-radius: 22px;
  z-index: 10; align-items: center; justify-content: center;
}
#scp-end-overlay.visible { display: flex; }
.scp-confirm {
  background: #fff; border-radius: 16px; padding: 26px 22px;
  width: 280px; text-align: center;
}
.scp-confirm h4 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.scp-confirm p  { font-size: 12px; color: #666; word-break: keep-all; line-height: 1.55; margin-bottom: 18px; }
.scp-confirm-btns { display: flex; gap: 8px; }
.scp-confirm-btns button {
  flex: 1; padding: 10px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; font-family: inherit; transition: opacity .15s;
}
.scp-confirm-btns button:hover { opacity: .82; }
.scp-cbtn-cancel { background: #f0f0f0; color: #555; }
.scp-cbtn-end    { background: #FF3B30; color: #fff; }
.scp-typing { display: flex; gap: 4px; padding: 9px 13px; }
.scp-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #ccc;
  animation: scpBounce 1.1s infinite;
}
.scp-typing span:nth-child(2) { animation-delay: .18s; }
.scp-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes scpBounce {
  0%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}
@media (max-width: 420px) {
  #srgc-widget { right: 14px; bottom: 18px; }
  #srgc-chat-panel, #srgc-kakao-popup {
    right: 14px;
    width: calc(calc(100*var(--vw)) - 28px);
  }
}
body:has(.nav-mobile.open) #srgc-widget{display:none}
