/* ===========================
   DuctDudes Chat Widget - Scoped Styles
   Matches Scorpion Connect two-column layout
   All classes prefixed with .dd-chat-
   =========================== */

/* Reset within widget scope */
.dd-chat-widget,
.dd-chat-widget *,
.dd-chat-widget *::before,
.dd-chat-widget *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Widget container - hide overflow to prevent panel showing below toolbar */
.dd-chat-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  overflow: hidden;
  pointer-events: none;
}

.dd-chat-widget > * {
  pointer-events: auto;
}

/* ---- Bottom Toolbar ---- */
.dd-chat-toolbar {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: linear-gradient(180deg, #4271a6 0%, #386191 100%);
  height: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  /* Unified shadow matching chat panel and header */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(56, 97, 145, 0.15),
    0 -2px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dd-chat-toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  border-radius: 0;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  gap: 6px;
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
  margin: 0;
  overflow: hidden;
}

.dd-chat-toolbar-btn:first-child {
  border-radius: 0 0 0 8px;
}

.dd-chat-toolbar-btn:last-child {
  border-radius: 0 0 8px 0;
}

/* Only apply hover on devices with precise pointing (not touch screens) */
@media (hover: hover) and (pointer: fine) {
  .dd-chat-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

/* Remove stuck highlight after click */
.dd-chat-toolbar-btn:focus {
  outline: none;
}

.dd-chat-toolbar-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

/* Active state only while mouse is pressed */
.dd-chat-toolbar-btn:active {
  background: rgba(255, 255, 255, 0.18);
}

.dd-chat-toolbar-icon {
  width: 30px;
  height: 30px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.dd-chat-toolbar-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 12px 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ---- Chat Panel (Two-Column) ---- */
.dd-chat-panel {
  position: fixed;
  bottom: 72px;
  right: 0;
  z-index: 99998;
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  /* Subtle shadow with light white outline */
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.15),
    0 -2px 4px rgba(0, 0, 0, 0.06),
    0 -4px 8px rgba(0, 0, 0, 0.08),
    0 -8px 16px rgba(0, 0, 0, 0.08),
    0 -16px 32px rgba(0, 0, 0, 0.08),
    0 -32px 64px rgba(0, 0, 0, 0.06);
  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, box-shadow 0.3s ease;
  pointer-events: none;
  overflow: visible;
  height: 380px;
  max-height: calc(100vh - 72px);
}

.dd-chat-panel.dd-chat-open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
  /* Enhanced elevation glow when open - subtle highlight around entire widget */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(56, 97, 145, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.08),
    0 -8px 16px rgba(0, 0, 0, 0.10),
    0 -16px 32px rgba(0, 0, 0, 0.10),
    0 -32px 64px rgba(0, 0, 0, 0.10),
    0 -64px 128px rgba(0, 0, 0, 0.08);
}

/* ---- Left Column: Company Info ---- */
.dd-chat-info-col {
  display: none;
}

.dd-chat-company-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #386191;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-chat-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dd-chat-company-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.dd-chat-company-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.dd-chat-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.dd-chat-info-icon {
  width: 16px;
  height: 16px;
  fill: #6b7280;
  flex-shrink: 0;
  margin-top: 2px;
}

.dd-chat-info-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

.dd-chat-info-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 4px;
  margin-bottom: 6px;
}

.dd-chat-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  padding: 2px 0;
}

/* ---- Right Column: Chat ---- */
.dd-chat-convo-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f9fafb;
  position: relative;
  border-radius: 0;
  overflow: visible;
}

/* Chat Header Image */
.dd-chat-header-image {
  position: absolute;
  top: -381px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  /* Side shadows to match chat panel - creates unified appearance */
  filter: drop-shadow(-4px 0 8px rgba(0, 0, 0, 0.08))
          drop-shadow(4px 0 8px rgba(0, 0, 0, 0.08))
          drop-shadow(0 0 20px rgba(56, 97, 145, 0.12));
}

.dd-chat-header-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: auto;
}

.dd-chat-close-btn {
  position: absolute;
  top: 20px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #4b5563;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
  pointer-events: auto;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.dd-chat-close-btn:hover {
  background: #ffffff;
  color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dd-chat-close-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Messages Area */
.dd-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.dd-chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: dd-chat-fadeIn 0.3s ease;
}

@keyframes dd-chat-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dd-chat-msg-ai {
  background: #ffffff;
  color: #1f2937;
  align-self: flex-start;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.dd-chat-msg-visitor {
  background: #386191;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.dd-chat-typing {
  display: none;
  align-self: flex-start;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.dd-chat-typing.dd-chat-visible {
  display: flex;
  gap: 4px;
  align-items: center;
}

.dd-chat-typing-dot {
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  animation: dd-chat-bounce 1.4s infinite ease-in-out both;
}

.dd-chat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.dd-chat-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.dd-chat-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes dd-chat-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Welcome Heading */
.dd-chat-welcome {
  align-self: center;
  text-align: center;
  padding: 12px 16px;
  width: 100%;
}

.dd-chat-welcome-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.dd-chat-welcome-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

/* Conversation Starters */
.dd-chat-starters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 12px 16px;
}

.dd-chat-starter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.dd-chat-starter-btn:hover {
  background: #f9fafb;
  border-color: #386191;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(56, 97, 145, 0.15);
}

.dd-chat-starter-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Quick Actions (large blue cards like Scorpion Connect) */
.dd-chat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: stretch;
  max-width: 100%;
}

.dd-chat-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: #386191;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  min-height: 90px;
}

.dd-chat-action-btn:hover {
  background: #2d5078;
  transform: translateY(-1px);
}

.dd-chat-action-icon {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Input Area */
.dd-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: #ffffff;
}

.dd-chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  color: #1f2937;
  transition: border-color 0.15s;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
}

.dd-chat-input:focus {
  border-color: #386191;
}

.dd-chat-input::placeholder {
  color: #9ca3af;
}

.dd-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #386191;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.dd-chat-send-btn:hover {
  background: #146297;
}

.dd-chat-send-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.dd-chat-send-icon {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Footer */
.dd-chat-footer {
  padding: 4px 16px 6px;
  text-align: center;
  background: #ffffff;
  flex-shrink: 0;
}

.dd-chat-footer-label {
  font-size: 12px;
  font-weight: 500;
  color: #386191;
}

/* Lead Capture Form */
.dd-chat-lead-form {
  display: none;
  padding: 14px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.dd-chat-lead-form.dd-chat-visible {
  display: block;
}

.dd-chat-lead-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.dd-chat-lead-field {
  margin-bottom: 6px;
}

.dd-chat-lead-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  background: #ffffff;
}

.dd-chat-lead-input:focus {
  border-color: #386191;
}

.dd-chat-lead-input::placeholder {
  color: #9ca3af;
}

.dd-chat-lead-submit {
  width: 100%;
  padding: 9px;
  background: #386191;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Poppins', sans-serif;
  margin-top: 4px;
}

.dd-chat-lead-submit:hover {
  background: #146297;
}

.dd-chat-lead-submit:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

/* ---- Email Screen ---- */
.dd-email-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.dd-email-screen.dd-email-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.dd-email-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  flex-shrink: 0;
}

.dd-email-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
  margin-left: -8px;
  color: #374151;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-email-back-btn:hover {
  color: #386191;
}

.dd-email-back-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.dd-email-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.dd-email-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  color: #6b7280;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-email-close-btn:hover {
  color: #1f2937;
}

.dd-email-close-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.dd-email-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
}

.dd-email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dd-email-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dd-email-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.dd-email-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  transition: border-color 0.2s;
}

.dd-email-input:focus {
  outline: none;
  border-color: #386191;
}

.dd-email-input::placeholder {
  color: #9ca3af;
}

.dd-email-textarea {
  resize: vertical;
  min-height: 80px;
}

.dd-email-submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: #386191;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Poppins', sans-serif;
  margin-top: 8px;
}

.dd-email-submit-btn:hover {
  background: #146297;
}

.dd-email-submit-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.dd-email-alternative {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.dd-email-link {
  color: #386191;
  text-decoration: none;
  font-weight: 600;
}

.dd-email-link:hover {
  text-decoration: underline;
}

.dd-email-success {
  text-align: center;
  padding: 40px 20px;
}

.dd-email-success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
  animation: dd-success-pop 0.4s ease;
}

@keyframes dd-success-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.dd-email-success-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.dd-email-success-text {
  font-size: 14px;
  color: #6b7280;
}

/* ---- WhatsApp Screen ---- */
.dd-whatsapp-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.dd-whatsapp-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  flex-shrink: 0;
}

.dd-whatsapp-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
  margin-left: -8px;
  color: #374151;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-whatsapp-back-btn:hover {
  color: #386191;
}

.dd-whatsapp-back-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.dd-whatsapp-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.dd-whatsapp-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  color: #6b7280;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-whatsapp-close-btn:hover {
  color: #1f2937;
}

.dd-whatsapp-close-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.dd-whatsapp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.dd-whatsapp-icon {
  width: 80px;
  height: 80px;
  fill: #25D366;
  margin-bottom: 24px;
  animation: dd-whatsapp-bounce 1s ease infinite;
}

@keyframes dd-whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.dd-whatsapp-heading {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.dd-whatsapp-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 360px;
}

.dd-whatsapp-connect-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25D366;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.dd-whatsapp-connect-btn:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.dd-whatsapp-btn-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.dd-whatsapp-number {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  color: #6b7280;
}

.dd-whatsapp-number-link {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.dd-whatsapp-number-link:hover {
  text-decoration: underline;
}

/* ---- Quote Screen ---- */
.dd-quote-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.dd-quote-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  flex-shrink: 0;
}

.dd-quote-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
  margin-left: -8px;
  color: #374151;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-quote-back-btn:hover {
  color: #386191;
}

.dd-quote-back-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.dd-quote-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.dd-quote-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  color: #6b7280;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-quote-close-btn:hover {
  color: #1f2937;
}

.dd-quote-close-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.dd-quote-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.dd-quote-icon {
  width: 80px;
  height: 80px;
  fill: #386191;
  margin-bottom: 24px;
  animation: dd-quote-pulse 2s ease infinite;
}

@keyframes dd-quote-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.dd-quote-heading {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.dd-quote-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 360px;
}

.dd-quote-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dd-quote-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #374151;
}

.dd-quote-check {
  width: 20px;
  height: 20px;
  background: #6cc518;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.dd-quote-start-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #386191;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(56, 97, 145, 0.3);
}

.dd-quote-start-btn:hover {
  background: #146297;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 97, 145, 0.4);
}

.dd-quote-btn-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

/* ---- Responsive ---- */

/* Mobile: hide info column, full width */
@media (max-width: 600px) {
  .dd-chat-panel {
    flex-direction: column;
    height: calc(100vh - 72px);
  }

  .dd-chat-info-col {
    display: none;
  }

  .dd-chat-convo-col {
    flex: 1;
  }
}

/* Tablet: narrower info column */
@media (min-width: 601px) and (max-width: 900px) {
  .dd-chat-info-col {
    width: 220px;
    min-width: 220px;
  }

  .dd-chat-panel {
    height: 460px;
  }
}

/* Scroll-aware: hide toolbar while scrolling, show when stopped */
.dd-chat-toolbar.dd-chat-scrolling {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dd-chat-toolbar:not(.dd-chat-scrolling) {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Desktop: sizing only (positioning handled by site CSS) */
@media (min-width: 901px) {
  .dd-chat-toolbar {
    width: 380px;
  }

  .dd-chat-panel {
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 380px;
  }
}
