/* ========== RESET & BASE – APPLIED TO SPECIFIC ELEMENTS ONLY ========== */
#sc-root, #sc-launcher-wrap, #sc-launch-btn, #sc-panel, #sc-hdr, #sc-dialog, #sc-footer, 
#sc-input-box, #sc-textarea, #sc-send-btn, .sc-user-msg, .sc-bot-row, .sc-bot-bubble,
.sc-choice-btn, #sc-new-chat-btn, #sc-scroll-btn, .sc-hdr-btn, #sc-privacy-overlay,
#sc-confirm-overlay, .sc-confirm-actions button, #sc-priv-accept-btn, #sc-priv-policy-btn {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sc-primary: #FEE715;               /* #BCA443 */
  --sc-secondary: #101820;    /* #000000 */
  --sc-bg: #FBFAF8;               /* #F8F6EC */
  --sc-text: #000000;                   /* #26210D */
  --sc-hover-btn: #FFC600;        /* #8f7530 */
  --sc-side-gap: 24px;
  --sc-bottom-gap: 24px;       /* 24px */
  --sc-z-index: 9999;
  --sc-text-rgb: 38, 33, 13;
  --sc-font-size: 15px;
}

body {
  font-family: 'Bricolage Grotesque', Roboto, sans-serif;
}

/* ── LAUNCHER BUTTON ── */
#sc-launcher-wrap {
  position: fixed;
  bottom: var(--sc-bottom-gap);
  right: var(--sc-side-gap);
  z-index: var(--sc-z-index);
  font-family: inherit;
}
#sc-launch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sc-primary);
  color: var(--sc-text);
  border: none;
  border-radius: 50px;
  padding: 6px 10px 6px 6px;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(188, 164, 67, 0.4);
  transition: transform 0.18s, box-shadow 0.18s, background 0.15s;
  font-family: inherit;
  font-size: var(--sc-font-size);
  font-weight: 700;
  letter-spacing: 0.01em;
  user-select: none;
}
#sc-launch-btn:hover {
  background: var(--sc-hover-btn);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(188, 164, 67, 0.5);
}
#sc-launch-img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sc-secondary);
  color: var(--sc-primary);
}
#sc-launch-label { white-space: nowrap; }
#sc-launch-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: -2px;
}
#sc-launch-btn[aria-expanded="true"] #sc-launch-chevron { transform: rotate(180deg); }

/* ── CHAT PANEL ── */
#sc-panel {
  position: fixed;
  bottom: calc(var(--sc-bottom-gap) + 64px);
  right: var(--sc-side-gap);
  width: 350px;
  max-height: calc(100vh - 110px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: calc(var(--sc-z-index) - 1);
  font-family: inherit;
  height: 600px;
}
#sc-panel.sc-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
#sc-panel:has(#sc-privacy-overlay:not(.sc-hidden)) #sc-restart-btn {
  display: none !important;
}

/* ── HEADER ── */
#sc-hdr {
  background: var(--sc-primary);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
#sc-hdr-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0);
  flex-shrink: 0;
  background: rgba(var(--sc-text-rgb), 0);
}
#sc-hdr-title {
  flex: 1;
  font-size: calc(var(--sc-font-size) - 1px);
  font-weight: 700;
  color: var(--sc-text);
  line-height: 1.35;
}
.sc-hdr-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sc-text);
  padding: 5px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s;
}
.sc-hdr-btn:hover { background: rgba(0, 0, 0, 0.1); }
.sc-hdr-btn svg { width: 20px; height: 20px; }

/* ── DIALOG (MESSAGES) ── */
#sc-dialog {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: var(--sc-bg);
  /* NEW: Firefox Scrollbar Support */
  scrollbar-width: thin; 
  scrollbar-color: rgba(var(--sc-text-rgb), 0.2) transparent;
}
#sc-dialog::-webkit-scrollbar { width: 4px; }
#sc-dialog::-webkit-scrollbar-track { background: transparent; }
#sc-dialog::-webkit-scrollbar-thumb { background: rgba(var(--sc-text-rgb), 0.2); border-radius: 4px; }

/* Assistant info card */
#sc-bot-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px 6px;
  gap: 8px;
}
#sc-bot-info-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(var(--sc-primary), 0.5);
  background: rgba(var(--sc-text-rgb), 0.2);
}
#sc-bot-info-name {
  font-size: calc(var(--sc-font-size) + 1px);
  font-weight: 700;
  color: var(--sc-text);
}
#sc-bot-info-desc {
  font-size: calc(var(--sc-font-size) - 2px);
  color: rgba(var(--sc-text-rgb), 0.65);
  line-height: 1.55;
  max-width: 270px;
}
.sc-divider {
  width: 100%;
  height: 1px;
  background: rgba(var(--sc-text-rgb), 0.12);
  margin: 2px 0 6px;
}

/* Messages */
.sc-user-msg {
  align-self: flex-end;
  background: var(--sc-primary);
  color: var(--sc-text);
  padding: 9px 13px;
  border-radius: 14px 14px 4px 14px;
  font-size: var(--sc-font-size);
  max-width: 78%;
  line-height: 1.55;
  word-break: break-word;
  font-weight: 500;
}
.sc-bot-row {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 85%;
  animation: scfadeIn 0.3s ease-in-out;
}
@keyframes scfadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.sc-bot-row-inner {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.sc-bot-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 3px;
  background: rgba(var(--sc-text-rgb), 0.2);
}
.sc-bot-bubble {
  background: #FFFFFF;
  color: var(--sc-text);
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  font-size: var(--sc-font-size);
  line-height: 1.6;
  border: 1px solid rgba(var(--sc-text-rgb), 0.12);
  word-break: break-word;
  flex: 1;
}
/* Quick replies container */
.sc-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 33px; /* align with bubble */
  margin-top: 4px;
}
.sc-quick-reply-btn {
  background: none;
  border: 1.6px solid var(--sc-primary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: calc(var(--sc-font-size) - 2px);
  font-weight: 600;
  color: var(--sc-text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, transform 0.05s;
}
.sc-quick-reply-btn:hover {
  background: rgba(var(--sc-primary), 0.15);
  transform: scale(0.98);
}
.sc-quick-reply-btn:active {
  background: var(--sc-primary);
  color: var(--sc-text);
}

.sc-personalize-btn {
  background-color: var(--sc-primary) !important;
  color: var(--sc-text) !important;
  border: 1px solid var(--sc-primary) !important;
  font-weight: bold;
  transition: all 0.2s ease-in-out !important;
}

.sc-personalize-btn:hover {
  background-color: var(--sc-hover-btn) !important;
  transform: translateY(-2px);
}

/* ===== CHAT WITH AI BUTTON ===== */
.sc-ai-btn {
  background-color: var(--sc-secondary) !important;
  color: var(--sc-primary) !important;
  border: 1px solid var(--sc-secondary) !important;
  font-weight: bold !important;
  transition: all 0.2s ease-in-out !important;
}

.sc-ai-btn:hover {
  background-color: var(--sc-primary) !important;
  border-color: var(--sc-primary) !important;
  color: var(--sc-secondary) !important;
  transform: translateY(-2px);
}

/* Typing animation */
.sc-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px 2px;
}
.sc-typing span {
  width: 7px; height: 7px;
  background: var(--sc-primary);
  border-radius: 50%;
  display: inline-block;
  animation: scBounce 1.2s ease-in-out infinite;
}
.sc-typing span:nth-child(2) { animation-delay: 0.18s; }
.sc-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes scBounce {
  0%,80%,100% { transform: scale(0.65); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

/* Legacy choice wrap (kept for compatibility) */
.sc-choice-wrap {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-left: 33px;
}
.sc-choice-btn {
  background: none;
  border: 1.5px solid var(--sc-primary);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: calc(var(--sc-font-size) - 1px);
  font-weight: 600;
  color: var(--sc-text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.sc-choice-btn:hover { background: rgba(var(--sc-primary), 0.15); }

/* ── FOOTER ── */
#sc-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(var(--sc-text-rgb), 0.12);
  padding: 9px 12px 11px;
  flex-shrink: 0;
}
#sc-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
#sc-new-chat-btn {
  background: none;
  border: 1.5px solid rgba(var(--sc-text-rgb), 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: calc(var(--sc-font-size) - 2px);
  font-weight: 600;
  color: var(--sc-text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
#sc-new-chat-btn:hover { background: rgba(var(--sc-primary), 0.1); }
#sc-scroll-btn {
  background: rgba(var(--sc-primary), 0.1);
  border: 1px solid rgba(var(--sc-text-rgb), 0.12);
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--sc-text);
  transition: background 0.12s;
}
#sc-scroll-btn:hover { background: rgba(var(--sc-primary), 0.2); }
#sc-scroll-btn svg { width: 17px; height: 17px; }
#sc-input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--sc-bg);
  border: 1.5px solid rgba(var(--sc-text-rgb), 0.18);
  border-radius: 12px;
  padding: 7px 8px 7px 12px;
  transition: border-color 0.15s;
}
#sc-input-box:focus-within { border-color: var(--sc-primary); }
#sc-textarea {
  flex: 1;
  border: none;
  background: none;
  font-family: inherit;
  font-size: var(--sc-font-size);
  color: var(--sc-text);
  resize: none;
  outline: none;
  max-height: 100px;
  line-height: 1.5;
  min-height: 21px;
  padding: 0;
}
#sc-textarea::placeholder { color: rgba(var(--sc-text-rgb), 0.5); }
#sc-send-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--sc-primary);
  color: var(--sc-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s;
}
#sc-send-btn:hover:not(:disabled) { background: var(--sc-hover-btn); }
#sc-send-btn:disabled { background: rgba(var(--sc-text-rgb), 0.2); cursor: not-allowed; }
#sc-send-btn svg { width: 17px; height: 17px; }
#sc-brand {
  text-align: center;
  font-size: calc(var(--sc-font-size) - 3px);
  color: rgba(var(--sc-text-rgb), 0.45);
  margin-top: 7px;
  letter-spacing: 0.02em;
}

/* ── SOCIAL CHAT CHANNELS ── */
#sc-social-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  margin-right: auto; /* Pushes the scroll button to the far right */
}
#sc-social-label {
  font-size: calc(var(--sc-font-size) - 3px);
  font-weight: 600;
  color: rgba(var(--sc-text-rgb), 0.5);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sc-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.sc-social-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}
.sc-social-wa { background: #25D366; }
.sc-social-tg { background: #229ED9; }
.sc-social-btn svg { width: 12px; height: 12px; fill: currentColor; }

/* Adjust Mobile for the extra footer items */
@media (max-width: 500px) {
  #sc-social-wrap { margin-left: 8px; }
}
@media (max-width: 360px) {
  #sc-social-label { display: none; } /* Hide text on small screens */
}

/* ── PRIVACY & WELCOME OVERLAYS (Site24x7 Style) ── */
#sc-privacy-overlay {
  position: absolute;
  top: 65px;
  left: 0; right: 0; bottom: 0;
  background: var(--sc-bg);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
}
#sc-privacy-overlay.sc-hidden { display: none; }

.sc-view-card {
  background: var(--sc-primary);
  width: 100%;
  animation: scSlideUp 0.3s ease-out;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 42vh;
  justify-content: flex-end;
  align-items: center;
}
@keyframes scSlideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

#sc-welcome-view { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; }
#sc-welcome-view.sc-hidden, #sc-priv-view.sc-hidden { display: none; }
.sc-priv-icon {
  width: 54px; height: 54px;
  background: var(--sc-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sc-priv-icon svg { width: 26px; height: 26px; color: var(--sc-text); }

/* Privacy Typography */
#sc-priv-title { font-size: calc(var(--sc-font-size) + 4px); font-weight: 700; color: var(--sc-text); margin-bottom: 10px; }
#sc-priv-desc { font-size: var(--sc-font-size); color: rgba(var(--sc-text-rgb), 0.7); line-height: 1.6; padding: 5px 20px; }
.sc-card-actions { display: flex; flex-direction: column; gap: 10px; }
#sc-priv-view {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
  height: 100%;
  justify-content: center;
  background: transparent;
}

/* Welcome Typography */
.sc-welcome-header { align-items: center; margin-bottom: 14px; text-align: left; }
.sc-welcome-avatar {
  width: 68px; height: 68px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 4px;
  background: transparent;
}
.sc-welcome-title { font-size: calc(var(--sc-font-size) + 6px); font-weight: 700; color: var(--sc-text); }
.sc-welcome-desc { font-size: var(--sc-font-size); color: rgba(var(--sc-text-rgb), 0.75); line-height: 1.5; margin-bottom: 24px; width: 90%;}
.sc-welcome-chat-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sc-primary); color: var(--sc-text); border: none; border-radius: 12px; padding: 14px 24px; font-size: calc(var(--sc-font-size) + 1px); font-weight: 700; cursor: pointer; font-family: inherit; width: 100%; transition: transform 0.1s, background 0.12s;
  box-shadow: 0 4px 14px rgba(188, 164, 67, 0.3);
}
.sc-welcome-chat-btn:hover { background: var(--sc-hover-btn); transform: translateY(-1px); }
.sc-welcome-chat-btn svg { width: 18px; height: 18px; }

/* Shared Buttons */
.sc-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sc-bg); color: var(--sc-text);
  border: none; border-radius: 8px; padding: 15px !important;
  font-size: calc(var(--sc-font-size) + 1px); font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background 0.15s, transform 0.1s; width: 80%;
  margin-bottom: -37px; /* Pull up over the card edge */
}
.sc-action-btn:hover { background: var(--sc-hover-btn); transform: translateY(-1px); }
.sc-action-btn svg { width: 30px; height: 30px; }

#sc-priv-accept-btn {
    background: var(--sc-primary); color: var(--sc-text); border: none; padding: 12px 25px !important; font-size: var(--sc-font-size); font-weight: 600; cursor: pointer; font-family: inherit; width: 100%; transition: transform 0.1s, background 0.12s;
    box-shadow: 0 4px 14px rgba(124, 124, 123, 0.3); border-radius: 100px;
}

#sc-priv-policy-btn {
  background: none; border: 1px solid rgba(var(--sc-text-rgb), 0.15); border-radius: 8px; border-radius: 100px;
  color: var(--sc-text); padding: 12px 25px; font-size: var(--sc-font-size); font-weight: 600; cursor: pointer; transition: background 0.15s; width: 100%; font-family: inherit;
}
#sc-priv-policy-btn:hover { background: rgba(var(--sc-text-rgb), 0.03); }

/* ── SOCIAL CHAT CHANNELS ── */
.sc-social-divider { font-size: calc(var(--sc-font-size) - 3px); font-weight: 600; color: rgba(var(--sc-text-rgb), 0.5); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; margin-bottom: 1px; }
.sc-social-grid { display: flex; gap: 12px; width: 94%; box-sizing: border-box; }

.sc-social-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #FFFFFF; border: 1px solid rgba(var(--sc-text-rgb), 0.08); border-radius: 10px;
  padding: 16px 8px; text-decoration: none; color: var(--sc-text); font-size: calc(var(--sc-font-size) - 1px); font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s; height: 60px;
}
.sc-social-card:hover { border-color: var(--sc-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
a.sc-social-card:visited { color: var(--sc-text); }
a.sc-social-card:hover { color: var(--sc-primary);}
a.sc-social-card:active { color: var(--sc-text); }

.sc-social-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.sc-social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.sc-social-wa { background: #25D366; }
.sc-social-tg { background: #229ED9; }
.sc-social-fb { background: #0084FF; }

/* ── WIDGET POSITIONING (Left/Right) ── */
.sc-pos-left #sc-launcher-wrap { right: auto; left: var(--sc-side-gap); }
.sc-pos-left #sc-panel { right: auto; left: var(--sc-side-gap); }

@media (max-width: 500px) {
  .sc-pos-left #sc-launcher-wrap { right: auto; left: 14px; }
  .sc-pos-left #sc-panel { 
    left: 0; 
    right: 0; 
    width: 100%; 
  } 
  .sc-view-card { margin-bottom: 30px; height: 57vh; }
  .sc-welcome-desc { max-width: 100% !important; text-align: center !important; margin-bottom: 20px !important;}
}

/* Small Footer Icons */
#sc-social-wrap { display: flex; align-items: center; gap: 6px; margin-left: 12px; margin-right: auto; }
#sc-social-label { font-size: calc(var(--sc-font-size) - 3px); font-weight: 600; color: rgba(var(--sc-text-rgb), 0.5); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.sc-social-btn { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #FFFFFF; text-decoration: none; width: 22px; height: 22px; transition: transform 0.15s; }
.sc-social-btn:hover { transform: scale(1.1); }
.sc-social-btn svg { width: 12px; height: 12px; fill: currentColor; }

@media (max-width: 500px) {
  #sc-social-label { display: none; }
  #sc-social-wrap { margin-left: 8px; }
}

#sc-welcome-socials { 
    margin-top: 64px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    width: 100%; 
    animation: scSlideUp 0.4s ease-out; 
}
.sc-welcome-social-title { font-size: calc(var(--sc-font-size) - 3px); font-weight: 600; color: rgba(var(--sc-text-rgb), 0.5); text-transform: uppercase; letter-spacing: 0.03em; }
.sc-welcome-social-row { display: flex; gap: 14px; }

/* ── HOME BUTTON ── */
#sc-home-btn {
  background: none;
  border: 1.5px solid rgba(var(--sc-text-rgb), 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: calc(var(--sc-font-size) - 2px);
  font-weight: 600;
  color: var(--sc-text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  margin-right: auto; /* Pushes the scroll button to the far right */
}
#sc-home-btn:hover {
  background: rgba(var(--sc-hover-btn), 0.1);
}
#sc-home-btn svg {
  width: 14px;
  height: 14px;
}

/* ── CONFIRM OVERLAY (restart dialog) ── */
#sc-confirm-overlay {
  position: absolute;
  inset: 0;
  background: var(--sc-bg);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 26px;
  text-align: center;
  gap: 16px;
  z-index: 21;
}
#sc-confirm-overlay.sc-hidden { display: none; }
.sc-confirm-icon {
  width: 58px; height: 58px;
  background: rgba(var(--sc-primary), 0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sc-confirm-icon svg { width: 50px; height: 50px; }
#sc-confirm-text {
  font-size: var(--sc-font-size);
  color: rgba(var(--sc-text-rgb), 0.8);
  line-height: 1.6;
  max-width: 260px;
}
.sc-confirm-actions { display: flex; gap: 9px; width: 100%; }
.sc-confirm-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  font-size: var(--sc-font-size);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
#sc-confirm-yes-btn {
  background: var(--sc-primary);
  color: var(--sc-text);
  border: none;
  border-radius: 200px;
}
#sc-confirm-yes-btn:hover { background: var(--sc-hover-btn); }
#sc-confirm-no-btn {
  background: none;
  color: var(--sc-text);
  border: 1.5px solid rgba(var(--sc-text-rgb), 0.2);
  border-radius: 200px;
}
#sc-confirm-no-btn:hover { background: rgba(var(--sc-primary), 0.08); }

input#sc-u-name:focus { outline: none; outline-offset: 1px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc-primary) 35%, transparent); }
#sc-u-msg:focus { outline: none; outline-offset: 1px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc-primary) 35%, transparent); }
input#sc-u-email:focus { outline: none; outline-offset: 1px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc-primary) 35%, transparent); }
input#sc-u-mobile-num:focus { outline: none; outline-offset: 1px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc-primary) 35%, transparent); }
#sc-country-code:focus { outline: none; outline-offset: 1px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc-primary) 35%, transparent); }
/* ── MOBILE ADJUSTMENTS ── */
@media (max-width: 500px) {
  #sc-panel {
    right: 0; left: 0; bottom: 0;
    width: 100%;
    border-radius: 0;
    max-height: 100%;
    min-height: 100%;
    z-index: 10001;
  }
  #sc-launch-btn { padding: 8px; gap: 5px; background: var(--sc-secondary); }
  #sc-launch-btn:hover { background: var(--sc-secondary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sc-secondary) 35%, transparent); }
  #sc-launch-label { font-size: calc(var(--sc-font-size) - 2px); }
  .sc-quick-replies { margin-left: 26px; }
  #sc-confirm-overlay { border-radius: 0; }
  #sc-privacy-overlay { border-radius: 0; }
  .sc-welcome-header { text-align: center; display: flex !important; flex-wrap: nowrap; flex-direction: column; gap: 10px; }
  #sc-launch-label, #sc-launch-chevron {display: none;}
  #sc-launch-img {width: 42px !important; height: 42px !important;}
  #sc-welcome-socials { margin-top: 48px; }
}
@media (min-width: 500px) {
    .sc-welcome-header {
      display: grid;
      width: 90%; 
    }
    .sc-welcome-desc { margin-bottom: 8px; text-align: left; }
}

#sc-welcome-chat-btn {
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* =========================================================
   CUSTOM SCROLLBAR FOR PERSONALIZE FORM
   ========================================================= */

#sc-chat-user-form { 
  scrollbar-width: thin; 
  scrollbar-color: var(--sc-primary) transparent; 
}
#sc-chat-user-form::-webkit-scrollbar {
  width: 4px;
}

#sc-chat-user-form::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 8px;
}

#sc-chat-user-form::-webkit-scrollbar-thumb {
  background-color: var(--sc-primary);
  border-radius: 8px; 
}

#sc-chat-user-form::-webkit-scrollbar-thumb:hover {
  background-color: var(--sc-hover-btn);
}

/* ── LAUNCHER TOOLTIP BUBBLE ── */
#sc-tooltip {
  position: absolute;
  bottom: calc(100% + 16px); /* Sits above the launcher */
  right: 0;
  background: #FFFFFF;
  color: var(--sc-text);
  padding: 10px 34px 11px 16px;
  border-radius: 12px;
  font-size: var(--sc-font-size);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(var(--sc-text-rgb), 0.08);
  animation: scFloat 3s ease-in-out infinite;
  z-index: 10;
  font-family: inherit;
  display: block;
}

/* The pointing triangle */
#sc-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-right: 1px solid rgba(var(--sc-text-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--sc-text-rgb), 0.08);
  transform: rotate(45deg);
}

/* Move tooltip to the left if the widget is on the left */
.sc-pos-left #sc-tooltip {
  right: auto;
  left: 0;
}
.sc-pos-left #sc-tooltip::after {
  right: auto;
  left: var(--sc-side-gap);
}

/* Tooltip Close Button */
#sc-tooltip-close {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(var(--sc-text-rgb), 0.4);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
#sc-tooltip-close:hover {
  color: var(--sc-text);
}

/* Floating animation */
@keyframes scFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 500px) {
  #sc-tooltip {
    display: none !important;
  }
}