/* Plush Pups Live Chat Widget Styles */

#plush-chat-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  z-index: 999999;
  position: fixed;
  bottom: 24px;
  right: 24px;
  direction: ltr;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Floating WhatsApp Button */
.plush-whatsapp-launcher {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.plush-whatsapp-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.45);
}

.plush-whatsapp-launcher svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Floating Launcher Button */
.plush-chat-launcher {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.plush-chat-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.5);
}

.plush-chat-launcher svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.plush-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Chat Card Window */
.plush-chat-card {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plush-chat-card.plush-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.plush-chat-header {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plush-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plush-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.plush-header-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.plush-header-subtitle {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.plush-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.plush-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.plush-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Messages Box */
.plush-messages-box {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Quick Prompts Container */
.plush-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.plush-prompt-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.plush-prompt-btn:hover {
  background: #fef3c7;
  border-color: #d97706;
  color: #b45309;
}

/* Message Item */
.plush-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.plush-msg-row.customer {
  align-self: flex-end;
}

.plush-msg-row.ai,
.plush-msg-row.human {
  align-self: flex-start;
}

.plush-msg-sender {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plush-msg-row.customer .plush-msg-sender {
  text-align: right;
}

.plush-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.plush-msg-row.customer .plush-bubble {
  background: #d97706;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.plush-msg-row.ai .plush-bubble {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.plush-msg-row.human .plush-bubble {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  border-bottom-left-radius: 4px;
}

.plush-msg-time {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 3px;
}

.plush-msg-row.customer .plush-msg-time {
  text-align: right;
}

/* Footer Input Area */
.plush-chat-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plush-chat-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.plush-chat-input:focus {
  border-color: #d97706;
}

.plush-send-btn {
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.plush-send-btn:hover {
  background: #b45309;
  transform: scale(1.05);
}

.plush-send-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}