.sg-wa-livechat-root {
  position: relative;
  z-index: 9999;
  font-family: var(--sg-font-main, "Space Grotesk", system-ui, -apple-system, sans-serif);
}

.sg-wa-chat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #0b1118;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 211, 102, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-origin: bottom right;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, visibility 0.35s;
}
.sg-wa-chat-window.sg-wa-closed {
  transform: scale(0.85) translateY(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sg-wa-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #111b21 0%, #0c1419 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sg-wa-chat-header .sg-wa-chat-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sg-wa-chat-header .sg-wa-chat-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
}
.sg-wa-chat-header .sg-wa-chat-avatar-wrap .sg-wa-chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.sg-wa-chat-header .sg-wa-chat-avatar-wrap .sg-wa-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #00ff88;
  border: 2px solid #111b21;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
}
.sg-wa-chat-header .sg-wa-chat-title-group {
  display: flex;
  flex-direction: column;
}
.sg-wa-chat-header .sg-wa-chat-title-group .sg-wa-chat-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sg-wa-chat-header .sg-wa-chat-title-group .sg-wa-chat-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.sg-wa-chat-header .sg-wa-chat-title-group .sg-wa-chat-subtitle .sg-wa-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #00ff88;
  border-radius: 50%;
  animation: sgWaPulse 2s infinite;
}
.sg-wa-chat-header .sg-wa-chat-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.sg-wa-chat-header .sg-wa-chat-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sg-wa-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: #0b1118;
  background-image: radial-gradient(rgba(37, 211, 102, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sg-wa-chat-body::-webkit-scrollbar {
  width: 5px;
}
.sg-wa-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.sg-wa-chat-body .sg-wa-date-divider {
  text-align: center;
  margin: 4px 0 8px;
}
.sg-wa-chat-body .sg-wa-date-divider span {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sg-wa-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}
.sg-wa-msg-bubble.incoming {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.sg-wa-msg-bubble.incoming .sg-wa-msg-author {
  color: #25D366;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.sg-wa-msg-bubble.outgoing {
  align-self: flex-end;
  background: #005c4b;
  color: #ffffff;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(37, 211, 102, 0.2);
}
.sg-wa-msg-bubble .sg-wa-msg-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  margin-top: 4px;
}
.sg-wa-msg-bubble .sg-wa-msg-time .sg-wa-check-ico {
  color: #53bdeb;
  margin-left: 3px;
}

.sg-wa-chat-footer {
  padding: 14px 16px;
  background: #111b21;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sg-wa-chat-footer .sg-wa-field-row {
  margin-bottom: 8px;
}
.sg-wa-chat-footer .sg-wa-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sg-wa-chat-footer .sg-wa-input-wrap .sg-wa-input-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  pointer-events: none;
}
.sg-wa-chat-footer .sg-wa-input-wrap .sg-wa-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sg-wa-chat-footer .sg-wa-input-wrap .sg-wa-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.sg-wa-chat-footer .sg-wa-input-wrap .sg-wa-input:focus {
  border-color: #25D366;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}
.sg-wa-chat-footer .sg-wa-field-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 6px;
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-textarea-wrap {
  flex: 1;
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-textarea-wrap .sg-wa-textarea {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  resize: none;
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s;
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-textarea-wrap .sg-wa-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-textarea-wrap .sg-wa-textarea:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-send-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-send-btn:active {
  transform: scale(0.96);
}
.sg-wa-chat-footer .sg-wa-field-msg .sg-wa-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.sg-wa-chat-footer .sg-wa-security-badge {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.sg-wa-success-panel {
  text-align: center;
  padding: 8px 4px 4px;
}
.sg-wa-success-panel .sg-wa-success-badge {
  color: #25D366;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.sg-wa-success-panel .sg-wa-success-subtext {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  line-height: 1.4;
}
.sg-wa-success-panel .sg-wa-direct-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: #25D366;
  color: #0b1118 !important;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
.sg-wa-success-panel .sg-wa-direct-action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}
.sg-wa-success-panel .sg-wa-text-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.sg-wa-success-panel .sg-wa-text-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

#sg-wa-livechat-trigger.sg-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s;
}
#sg-wa-livechat-trigger.sg-floating-wa:hover {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6), 0 0 25px rgba(37, 211, 102, 0.4);
}
#sg-wa-livechat-trigger.sg-floating-wa:active {
  transform: scale(0.95);
}
#sg-wa-livechat-trigger.sg-floating-wa::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: sgRadarPulse 2.4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  pointer-events: none;
}
#sg-wa-livechat-trigger.sg-floating-wa .sg-wa-badge-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 50%;
  border: 2px solid #0b1118;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
  animation: sgBadgeBounce 3s infinite;
}

@keyframes sgWaPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}
@keyframes sgRadarPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
@keyframes sgBadgeBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}
@media (max-width: 575.98px) {
  .sg-wa-chat-window {
    bottom: 84px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    height: 520px;
    max-height: calc(100vh - 100px);
    border-radius: 18px;
  }
  #sg-wa-livechat-trigger.sg-floating-wa {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }
}

/*# sourceMappingURL=sg_whatsapp_livechat.css.map */
