/* Shahid Anwar University – Live Chat (visitor popup) */
:root {
  --su-chat-brand: #141e2d;
  --su-chat-msg-bg: #1a2332;
  --su-chat-navy: #1a2b4a;
  --su-chat-send: #1a2b4a;
  --su-chat-send-hover: #243a5c;
  --su-chat-composer-h: 36px;
  --su-chat-navy-light: #2a4070;
  --su-chat-link: #4da6ff;
  --su-chat-link-dark: #3588e8;
  --su-chat-link-soft: rgba(77, 166, 255, 0.14);
  --su-chat-link-border: rgba(77, 166, 255, 0.28);
  --su-chat-gold: #f5c842;
  --su-chat-gold-dark: #e8b820;
  --su-chat-online: #25d366;
  --su-chat-z: 10050;
  --su-chat-panel-h: min(520px, calc(100dvh - 112px));
  --su-chat-scroll: rgba(77, 166, 255, 0.35);
  --su-chat-scroll-hover: rgba(77, 166, 255, 0.55);
  --su-fab-size: 42px;
  --su-fab-pill-w: calc(11.75rem - 40px);
  --su-fab-pill-pr: 4px;
  --su-fab-pill-pl: 8px;
  --su-fab-pill-h: 46px;
  --su-fab-icon: 30px;
  --su-fab-gap: 8px;
  --su-fab-font: 13px;
  --su-fab-icon-font: 1rem;
  --su-fab-stack-gap: 8px;
  --su-fab-bottom: 20px;
  --su-fab-bottom-sm: 16px;
}

.su-live-chat * { box-sizing: border-box; }

/* Reset site dark-theme text so chat body stays readable */
.su-live-chat {
  color: var(--su-chat-brand);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.su-live-chat__launcher {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--su-fab-bottom) + env(safe-area-inset-bottom));
  z-index: var(--su-chat-z);
  width: var(--su-fab-pill-w);
  min-width: var(--su-fab-pill-w);
  max-width: var(--su-fab-pill-w);
  height: var(--su-fab-pill-h);
  min-height: var(--su-fab-pill-h);
  padding: 0 var(--su-fab-pill-pr) 0 var(--su-fab-pill-pl);
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--su-chat-gold) 0%, var(--su-chat-gold-dark) 100%);
  color: var(--su-chat-navy);
  box-shadow: 0 10px 32px rgba(26, 43, 74, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--su-fab-gap);
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--su-fab-font);
  letter-spacing: 0.02em;
  animation: suChatPulseFab 2.5s ease-in-out infinite;
}

@keyframes suChatPulseFab {
  0%, 100% { box-shadow: 0 10px 32px rgba(26, 43, 74, 0.28); }
  50% { box-shadow: 0 10px 36px rgba(245, 200, 66, 0.45); }
}

.su-live-chat__launcher.is-open {
  animation: none;
  border-radius: 50%;
  width: var(--su-fab-pill-h);
  height: var(--su-fab-pill-h);
  min-width: var(--su-fab-pill-h);
  padding: 0;
  justify-content: center;
}

.su-live-chat__launcher.is-open .su-live-chat__launcher-text {
  display: none;
}

.su-live-chat__launcher-icon {
  width: var(--su-fab-icon);
  height: var(--su-fab-icon);
  min-width: var(--su-fab-icon);
  border-radius: 50%;
  background: rgba(26, 43, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.su-live-chat__launcher-icon i { font-size: var(--su-fab-icon-font); }

.su-live-chat__launcher-text { white-space: nowrap; }

/* Shared hover/interaction – Contact Us + Live Chat launcher only */
.contact-float-btn,
.su-live-chat__launcher {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.contact-float-btn:hover,
.su-live-chat__launcher:not(.is-open):hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(26, 43, 74, 0.35);
}

.contact-float-btn:active,
.su-live-chat__launcher:not(.is-open):active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 8px 24px rgba(26, 43, 74, 0.22);
  transition-duration: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .contact-float-btn,
  .su-live-chat__launcher {
    animation: none !important;
    transition: none !important;
  }
}

.su-live-chat__status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  margin-right: 4px;
  vertical-align: middle;
}

.su-live-chat__status-dot.is-online {
  background: var(--su-chat-online);
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.35);
}


.su-live-chat__agent-sub {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.88);
}

.su-live-chat__connected-label {
  color: rgba(255, 255, 255, 0.92);
}

.su-live-chat__agent-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.su-live-chat__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  display: none;
}

.su-live-chat__badge.is-visible { display: block; }

.su-live-chat__panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: calc(var(--su-chat-z) + 1);
  width: min(380px, calc(100vw - 24px));
  height: var(--su-chat-panel-h);
  min-height: 400px;
  max-height: var(--su-chat-panel-h);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8f9fc 0%, #eef1f6 100%);
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 24px 56px rgba(20, 30, 45, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.su-live-chat__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.su-live-chat__header {
  flex-shrink: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, var(--su-chat-brand) 0%, #1e2f45 55%, #243a5c 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: none;
}

.su-live-chat__header-logo,
.su-live-chat__agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--su-chat-gold), var(--su-chat-gold-dark));
  color: var(--su-chat-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: none;
}

.su-live-chat__agent-avatar.is-connecting,
.su-live-chat__agent-avatar.is-agent {
  background: linear-gradient(145deg, var(--su-chat-link) 0%, var(--su-chat-link-dark) 100%);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.35);
}

.su-live-chat__agent-avatar.is-agent {
  animation: suChatAvatarPulse 2.2s ease-in-out infinite;
}

.su-live-chat__agent-avatar.is-brand {
  background: linear-gradient(145deg, var(--su-chat-gold), var(--su-chat-gold-dark));
  color: var(--su-chat-brand);
  box-shadow: none;
  animation: none;
}

@keyframes suChatAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 5px rgba(77, 166, 255, 0.15); transform: scale(1.04); }
}

.su-live-chat__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
}

.su-live-chat__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: suChatDotBounce 1.2s ease-in-out infinite;
}

.su-live-chat__dots i:nth-child(2) { animation-delay: 0.15s; }
.su-live-chat__dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes suChatDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.su-live-chat__header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.su-live-chat__header-text h2,
.su-live-chat__agent-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.su-live-chat__header-text p { margin: 0; }

.su-live-chat__header-btns { display: flex; gap: 6px; }

.su-live-chat__icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.su-live-chat__icon-btn:hover {
  background: rgba(77, 166, 255, 0.25);
  transform: scale(1.04);
}

.su-live-chat__forwarding {
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--su-chat-link-soft);
  font-size: 13px;
  font-weight: 600;
  color: #1e4a7a;
  display: none;
  align-items: center;
  gap: 8px;
}

.su-live-chat__forwarding.is-visible { display: flex; }

.su-live-chat__forwarding i { color: var(--su-chat-link); }

.su-live-chat__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(ellipse 100% 60% at 80% 0%, rgba(77, 166, 255, 0.08), transparent 50%),
    #f4f6fa;
}

.su-live-chat__messages {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--su-chat-scroll) transparent;
}

.su-live-chat__messages::-webkit-scrollbar {
  width: 7px;
}

.su-live-chat__messages::-webkit-scrollbar-track {
  margin: 8px 0;
  background: transparent;
  border-radius: 99px;
}

.su-live-chat__messages::-webkit-scrollbar-thumb {
  background: var(--su-chat-scroll);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.su-live-chat__messages::-webkit-scrollbar-thumb:hover {
  background: var(--su-chat-scroll-hover);
  background-clip: padding-box;
}

.su-live-chat__waiting-slot {
  display: none;
  flex-shrink: 0;
  padding: 0 14px 10px;
}

.su-live-chat__waiting-slot.is-visible {
  display: block;
}

.su-live-chat__waiting-card {
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(26, 43, 74, 0.08);
  text-align: left;
}

.su-live-chat__waiting-card .su-live-chat__connecting-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.su-live-chat__waiting-card .su-live-chat__connecting-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.45;
  text-align: left;
  width: 100%;
}

.su-live-chat__waiting-card .su-live-chat__connecting-wait {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--su-chat-link-dark);
  text-align: left;
}

.su-live-chat__waiting-card .su-live-chat__pulse-dots {
  flex-shrink: 0;
  align-items: center;
  line-height: 1;
}

.su-live-chat__waiting-card .su-live-chat__wait-timer {
  white-space: nowrap;
  line-height: 1.3;
}

.su-live-chat__waiting-card--unavailable {
  text-align: left;
}

.su-live-chat__waiting-card--unavailable .su-live-chat__unavailable-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.45;
  text-align: left;
}

.su-live-chat__waiting-card--unavailable .su-live-chat__unavailable-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  text-align: left;
}

.su-live-chat__unavailable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.su-live-chat__btn-connect-again,
.su-live-chat__btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.su-live-chat__btn-connect-again {
  border: none;
  background: var(--su-chat-navy);
  color: #fff;
}

.su-live-chat__btn-connect-again:hover {
  background: var(--su-chat-send-hover);
}

.su-live-chat__btn-contact {
  border: 1px solid var(--su-chat-link-border);
  background: var(--su-chat-link-soft);
  color: var(--su-chat-link-dark);
}

.su-live-chat__btn-contact:hover {
  background: rgba(77, 166, 255, 0.22);
}

.su-live-chat__typing {
  display: none;
  flex-shrink: 0;
  margin: 0 14px 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.06);
  align-items: center;
  gap: 8px;
}

.su-live-chat__typing.is-visible {
  display: inline-flex;
}

.su-live-chat__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.su-live-chat__typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--su-chat-link);
  animation: suChatDotBounce 1.2s ease-in-out infinite;
}

.su-live-chat__typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.su-live-chat__typing-dots i:nth-child(3) { animation-delay: 0.3s; }

.su-live-chat__status-bar {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(77, 166, 255, 0.08), rgba(26, 35, 50, 0.04));
  font-size: 12px;
  font-weight: 600;
  color: var(--su-chat-link-dark);
  border: none;
}

.su-live-chat__status-bar.is-visible {
  display: flex;
}

.su-live-chat__pulse-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.su-live-chat__pulse-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.su-live-chat__pulse-dots .dot--grey {
  background: #9ca3af;
  animation: suChatDotFade 1.4s ease-in-out infinite;
}

.su-live-chat__pulse-dots .dot--green {
  background: var(--su-chat-link);
  animation: suChatDotFade 1.4s ease-in-out infinite 0.35s;
}

.su-live-chat__pulse-dots .dot--grey:last-child {
  animation-delay: 0.7s;
}

@keyframes suChatDotFade {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.su-live-chat__error {
  margin: 16px 12px;
  padding: 14px;
  background: #fef2f2;
  border: none;
  border-radius: 12px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.su-live-chat__error > i {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.su-live-chat__error p { margin: 0; }

.su-live-chat__error-link {
  color: var(--su-chat-link-dark);
  font-weight: 700;
  text-decoration: none;
}

.su-live-chat__error-link:hover {
  text-decoration: underline;
}

.su-live-chat__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.su-live-chat__msg {
  max-width: 88%;
  width: max-content;
  animation: suChatIn 0.28s ease;
}
@keyframes suChatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.su-live-chat__msg--out {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
  max-width: min(88%, 300px);
}

.su-live-chat__msg--in {
  align-self: flex-start;
  margin-right: auto;
  margin-left: 0;
}

.su-live-chat__msg--system {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 96%;
  width: auto;
}

.su-live-chat__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(20, 30, 45, 0.06);
  color: var(--su-chat-brand);
}

/* Your messages — brand navy from design */
.su-live-chat__msg--out .su-live-chat__bubble {
  background: var(--su-chat-msg-bg);
  border: none;
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.35);
}

.su-live-chat__msg--out .su-live-chat__meta {
  color: #6b7280;
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}

.su-live-chat__msg--out .su-live-chat__seen {
  color: var(--su-chat-link);
}

.su-live-chat__msg--in .su-live-chat__bubble {
  background: #fff;
  border: none;
  color: var(--su-chat-brand);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.08);
}

.su-live-chat__msg--system .su-live-chat__bubble,
.su-live-chat__msg--welcome .su-live-chat__bubble {
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.06);
  font-size: 13px;
  text-align: center;
  color: #4a5568;
  max-width: 100%;
}

.su-live-chat__msg.system--connecting .su-live-chat__bubble,
.su-live-chat__msg.system--connected .su-live-chat__bubble {
  background: #fff;
  color: #4a5568;
  font-weight: 500;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.06);
}

.su-live-chat__msg.system--connected .su-live-chat__bubble {
  color: var(--su-chat-link-dark);
  font-weight: 600;
}

.su-live-chat__msg.system--connecting {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 96%;
}

.su-live-chat__msg.system--connecting .su-live-chat__bubble {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.su-live-chat__connecting-block {
  text-align: center;
  padding: 4px 2px;
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.su-live-chat__connecting-title {
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  line-height: 1.45;
  margin: 0;
}

.su-live-chat__connecting-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--su-chat-link-dark);
  min-height: 18px;
}

.su-live-chat__connecting-wait .su-live-chat__pulse-dots .dot--green {
  background: var(--su-chat-link);
}

.su-live-chat__msg--welcome {
  align-self: center;
  max-width: 92%;
}

.su-live-chat__msg.system--divider .su-live-chat__bubble {
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 4px 8px;
}

.su-live-chat__msg.system--divider .su-live-chat__meta {
  display: none;
}

.su-live-chat__meta {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  padding: 0 6px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.su-live-chat__msg--in .su-live-chat__meta,
.su-live-chat__msg--system .su-live-chat__meta {
  justify-content: flex-start;
}

.su-live-chat__seen { color: var(--su-chat-link-dark); font-weight: 600; }

/* Composer — slim, subtle corners + circular send */
.su-live-chat__composer {
  flex-shrink: 0;
  padding: 8px 10px 10px;
  background: #eef2f7;
  border-top: none;
  box-shadow: none;
}

.su-live-chat__composer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--su-chat-composer-h);
}

.su-live-chat__composer-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: var(--su-chat-composer-h);
  min-height: var(--su-chat-composer-h);
  padding: 0 10px;
  background: #fff;
  border: 1px solid rgba(26, 43, 74, 0.12);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(20, 30, 45, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.su-live-chat__composer-box.is-multiline {
  height: auto;
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: 6px;
}

.su-live-chat__composer-box:focus-within {
  border-color: rgba(26, 43, 74, 0.22);
  box-shadow: 0 0 0 2px var(--su-chat-link-soft);
}

.su-live-chat__input {
  flex: 1;
  width: 100%;
  height: var(--su-chat-composer-h);
  min-height: var(--su-chat-composer-h);
  max-height: var(--su-chat-composer-h);
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: var(--su-chat-composer-h);
  font-family: inherit;
  font-weight: 400;
  color: #1e293b;
  background: transparent;
  resize: none;
  outline: none;
  overflow-y: hidden;
  scrollbar-width: none;
  box-sizing: border-box;
}

.su-live-chat__composer-box.is-multiline .su-live-chat__input {
  line-height: 1.35;
  max-height: 72px;
  overflow-y: auto;
}

.su-live-chat__input::-webkit-scrollbar {
  display: none;
}

.su-live-chat__input::placeholder {
  color: #9ca3af;
  opacity: 1;
  font-weight: 400;
}

.su-live-chat__send {
  width: var(--su-chat-composer-h);
  height: var(--su-chat-composer-h);
  min-width: var(--su-chat-composer-h);
  border: none;
  border-radius: 50%;
  background: var(--su-chat-send);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.su-live-chat__send-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.su-live-chat__send-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.su-live-chat__send:hover:not(:disabled) {
  background: var(--su-chat-send-hover);
  transform: scale(1.04);
  box-shadow: 0 3px 12px rgba(26, 43, 74, 0.4);
}

.su-live-chat__send:active:not(:disabled) {
  transform: scale(0.96);
}

.su-live-chat__send:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Chat confirmation modal */
.su-live-chat__confirm {
  position: fixed;
  inset: 0;
  z-index: calc(var(--su-chat-z) + 50);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.su-live-chat__confirm.is-visible {
  display: flex;
  pointer-events: auto;
}

.su-live-chat__confirm-card {
  width: min(360px, 100%);
  padding: 26px 22px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 24px 56px rgba(20, 30, 45, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  border: none;
  text-align: center;
  animation: su-chat-confirm-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes su-chat-confirm-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.su-live-chat__confirm-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.su-live-chat__confirm.is-destructive .su-live-chat__confirm-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.su-live-chat__confirm.is-primary .su-live-chat__confirm-icon {
  background: rgba(245, 200, 66, 0.22);
  color: #c9970f;
}

.su-live-chat__confirm-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--su-chat-brand);
}

.su-live-chat__confirm-text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #5a6578;
}

.su-live-chat__confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.su-live-chat__confirm-no,
.su-live-chat__confirm-yes {
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.su-live-chat__confirm-no {
  background: #f1f5f9;
  color: #334155;
}

.su-live-chat__confirm-no:hover {
  background: #e2e8f0;
}

.su-live-chat__confirm-no:focus-visible {
  outline: 2px solid var(--su-chat-link);
  outline-offset: 2px;
}

.su-live-chat__confirm-yes {
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 30, 45, 0.12);
}

.su-live-chat__confirm.is-destructive .su-live-chat__confirm-yes {
  background: linear-gradient(145deg, #dc2626, #b91c1c);
}

.su-live-chat__confirm.is-destructive .su-live-chat__confirm-yes:hover {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  transform: translateY(-1px);
}

.su-live-chat__confirm.is-primary .su-live-chat__confirm-yes {
  background: linear-gradient(145deg, var(--su-chat-gold), var(--su-chat-gold-dark));
  color: var(--su-chat-navy);
  box-shadow: 0 4px 16px rgba(245, 200, 66, 0.35);
}

.su-live-chat__confirm.is-primary .su-live-chat__confirm-yes:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.su-live-chat__confirm-yes:focus-visible {
  outline: 2px solid var(--su-chat-link);
  outline-offset: 2px;
}

.btn-live-chat-open {
  cursor: pointer;
  border: none;
  font-family: inherit;
  width: 100%;
}

.quick-card-icon.livechat {
  background: rgba(245, 200, 66, 0.2);
  color: var(--su-chat-gold);
}

@media (max-width: 63.9375rem) {
  .su-live-chat__launcher {
    width: var(--su-fab-size);
    height: var(--su-fab-size);
    min-height: var(--su-fab-size);
    min-width: var(--su-fab-size);
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(var(--su-fab-bottom-sm) + env(safe-area-inset-bottom));
    animation: none;
  }

  .su-live-chat__launcher.is-open {
    width: var(--su-fab-size);
    height: var(--su-fab-size);
    min-width: var(--su-fab-size);
  }

  .su-live-chat__launcher-icon {
    width: 100%;
    height: 100%;
    background: transparent;
  }

  .su-live-chat__launcher-icon i {
    font-size: 1.05rem;
  }

  .contact-float-btn {
    width: var(--su-fab-size);
    height: var(--su-fab-size);
    min-width: var(--su-fab-size);
    min-height: var(--su-fab-size);
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    top: auto;
    transform: none;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(var(--su-fab-bottom-sm) + var(--su-fab-size) + var(--su-fab-stack-gap) + env(safe-area-inset-bottom));
    z-index: 9001;
  }

  .contact-float-btn span {
    display: none;
  }

  .contact-float-btn i {
    width: auto;
    height: auto;
    min-width: 0;
    background: transparent;
    font-size: 1.05rem;
  }

  .contact-float-btn:hover,
  .su-live-chat__launcher:not(.is-open):hover {
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(26, 43, 74, 0.28);
  }

  .contact-float-btn:active,
  .su-live-chat__launcher:not(.is-open):active {
    transform: scale(0.98);
    box-shadow: 0 6px 18px rgba(26, 43, 74, 0.2);
  }

  .su-live-chat__launcher-text { display: none; }

  .su-live-chat__panel {
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    height: min(88dvh, 640px);
    min-height: 360px;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
  }

}
