/* EcomGator AI Sales Assistant Widget Styles */
#ecomgator-chat-root {
  font-family: 'Poppins', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 999999;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

/* Bulletproof Launcher Balloon: Solid Ivory background (#FFFFF0) framed by Golden border (#D4AF37) */
#ecomgator-chat-root .eg-launcher-btn,
#ecomgator-chat-root button.eg-launcher-btn,
.eg-launcher-btn,
.eg-launcher-btn:visited,
.eg-launcher-btn:link {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  flex: 0 0 60px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background-color: #FFFFF0 !important;
  background: #FFFFF0 !important;
  color: #174A32 !important;
  border: 2.5px solid #D4AF37 !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  outline-color: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  text-decoration: none !important;
}

#ecomgator-chat-root .eg-launcher-btn:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45) !important;
  background-color: #FFFFF0 !important;
  background: #FFFFF0 !important;
  color: #174A32 !important;
  border-color: #D4AF37 !important;
  outline: none !important;
}

#ecomgator-chat-root .eg-launcher-btn:focus,
#ecomgator-chat-root .eg-launcher-btn:active,
#ecomgator-chat-root .eg-launcher-btn:focus-visible,
#ecomgator-chat-root button.eg-launcher-btn:focus,
#ecomgator-chat-root button.eg-launcher-btn:active {
  outline: none !important;
  outline-color: transparent !important;
  background-color: #FFFFF0 !important;
  background: #FFFFF0 !important;
  color: #174A32 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45), 0 12px 30px rgba(23, 74, 50, 0.35) !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Base Chat Window */
.eg-chat-window,
#ecomgator-chat-box,
#eg-chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 110px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(200, 166, 75, 0.35);
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

/* Explicit Active vs Inactive State (Enforced with !important) */
.eg-chat-window.active,
#ecomgator-chat-box.active,
#eg-chat-window.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.eg-chat-window:not(.active),
#ecomgator-chat-box:not(.active),
#eg-chat-window:not(.active) {
  display: none !important;
}

.eg-header {
  background: #174A32;
  color: #F8F7F4;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #C8A64B;
}

.eg-header-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #F8F7F4;
}

.eg-header-info p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #C8A64B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eg-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  display: inline-block;
}

.eg-close-btn {
  background: transparent;
  border: none;
  color: #F8F7F4;
  font-size: 24px;
  cursor: pointer;
  padding: 6px 8px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.eg-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.eg-messages-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #F8F7F4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
}

.eg-msg {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
}

.eg-msg-bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: #242628;
  border: 1px solid #EAEAEA;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.eg-msg-user {
  align-self: flex-end;
  background: #174A32;
  color: #F8F7F4;
  border-top-right-radius: 4px;
}

.eg-quick-links-panel {
  background: #FFFFFF;
  border: 1px solid rgba(200, 166, 75, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eg-quick-links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.eg-quick-links-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #174A32;
  text-transform: uppercase;
}

.eg-quick-links-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #174A32;
  background: #EBF5F0;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
}

.eg-quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.eg-quick-link-btn {
  background: #FAF9F5;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  text-decoration: none !important;
}

.eg-quick-link-btn:hover {
  background: #EBF5F0;
  border-color: #174A32;
  transform: translateY(-1px);
}

.eg-quick-link-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C8A64B;
  flex-shrink: 0;
}

.eg-quick-link-text {
  font-size: 10.5px;
  font-weight: 700;
  color: #174A32;
  line-height: 1.25;
  flex: 1;
}

.eg-quick-link-arrow {
  font-size: 10.5px;
  color: #9CA3AF;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.eg-quick-link-btn:hover .eg-quick-link-arrow {
  color: #174A32;
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .eg-quick-links-grid {
    grid-template-columns: 1fr;
  }
}

.eg-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.eg-chip {
  background: #FFFFFF;
  border: 1px solid #C8A64B;
  color: #174A32;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eg-chip:hover {
  background: #174A32;
  color: #F8F7F4;
}

.eg-lead-form-box {
  background: #FFFFFF;
  border: 1px solid #C8A64B;
  border-radius: 10px;
  padding: 14px;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.eg-lead-form-box h5 {
  margin: 0 0 8px 0;
  color: #174A32;
  font-size: 13px;
}

.eg-lead-form-box input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
  box-sizing: border-box;
}

.eg-lead-form-box button {
  width: 100%;
  background: #174A32;
  color: #C8A64B;
  border: none;
  padding: 9px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
}

.eg-footer-input {
  padding: 12px;
  background: #FFFFFF;
  border-top: 1px solid #EAEAEA;
  display: flex;
  gap: 8px;
}

.eg-footer-input input {
  flex: 1;
  border: 1px solid #E0E0E0;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
}

.eg-footer-input input:focus {
  border-color: #174A32;
}

.eg-send-btn {
  background: #174A32 !important;
  color: #C8A64B !important;
  border: none !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 15px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
  outline: none !important;
  box-shadow: 0 2px 5px rgba(23, 74, 50, 0.25) !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
}

.eg-send-btn:hover {
  background: #0E2A20 !important;
  transform: scale(1.05) !important;
}

.eg-send-btn svg,
.eg-send-btn span {
  display: block !important;
  line-height: 1 !important;
}

/* Service Offer Cards in Chat */
.eg-offer-card {
  background: #FFFFFF;
  border: 1px solid #C8A64B;
  border-left: 4px solid #C8A64B;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-offer-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #174A32;
  background: #EAE6DB;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.eg-offer-title {
  font-weight: 700;
  color: #174A32;
  font-size: 13px;
}

.eg-offer-desc {
  font-size: 11.5px;
  color: #555;
  line-height: 1.4;
}

.eg-offer-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.eg-offer-btn-primary {
  background: #174A32 !important;
  color: #C8A64B !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.eg-offer-btn-secondary {
  background: #F3F1EC !important;
  color: #174A32 !important;
  border: 1px solid #C8A64B !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.eg-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  border-top-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.eg-typing-label {
  font-size: 11.5px;
  color: #666;
  font-style: italic;
}

.eg-typing-dots {
  display: flex;
  gap: 4px;
}

.eg-dot {
  width: 5px;
  height: 5px;
  background: #C8A64B;
  border-radius: 50%;
  animation: egBounce 1.4s infinite ease-in-out both;
}

.eg-dot:nth-child(1) { animation-delay: -0.32s; }
.eg-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes egBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* WhatsApp-Style Reading State */
.eg-reading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #C8A64B;
  border-radius: 14px;
  border-top-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(200, 166, 75, 0.15);
  animation: egPulseSoft 2s infinite ease-in-out;
}

.eg-reading-label {
  font-size: 11.5px;
  color: #174A32;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

@keyframes egPulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* WhatsApp-Style Tick Marks on User Messages */
.eg-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.85;
}

.eg-tick {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
  margin-left: 2px;
}

.eg-tick-sending {
  color: #D1D5DB;
  font-size: 9px;
  letter-spacing: 0;
}

.eg-tick-sent {
  color: #E5E7EB;
}

.eg-tick-delivered {
  color: #E5E7EB;
}

.eg-tick-read {
  color: #34B7F1 !important; /* WhatsApp Official Cyan Blue Read Ticks */
  text-shadow: 0 0 2px rgba(52, 183, 241, 0.4);
}

.eg-header-emblem-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFF0 !important;
  background-color: #FFFFF0 !important;
  border: 2px solid #D4AF37 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
  overflow: hidden;
}

.eg-header-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.eg-launcher-emblem {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)) !important;
  transition: transform 0.2s ease;
  display: block !important;
  margin: 0 auto !important;
  pointer-events: none;
}

.eg-launcher-online-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #22C55E;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
  display: block;
}

.eg-launcher-btn:hover .eg-launcher-emblem {
  transform: scale(1.08);
}

/* Open/Close Icon Toggle inside Floating Launcher */
.eg-launcher-icon-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.eg-launcher-emblem {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
  pointer-events: none !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18)) !important;
}

/* Keep the launcher emblem centered even when a theme styles button padding. */
#ecomgator-chat-root .eg-launcher-icon-open .eg-launcher-emblem {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
}

#ecomgator-chat-root .eg-launcher-btn:hover .eg-launcher-icon-open .eg-launcher-emblem {
  transform: translate(-50%, -50%) scale(1.08) !important;
}

.eg-launcher-online-dot {
  position: absolute !important;
  bottom: 3px !important;
  right: 3px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #22C55E !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25) !important;
  display: block !important;
}

/* Anchor the desktop online dot to the button at the lower-right rim, above the corner. */
@media screen and (min-width: 641px) {
  #ecomgator-chat-root .eg-launcher-btn {
    position: relative !important;
    overflow: visible !important;
  }
  #ecomgator-chat-root .eg-launcher-btn .eg-launcher-icon-open {
    position: static !important;
  }
  #ecomgator-chat-root .eg-launcher-btn .eg-launcher-online-dot {
    right: -6px !important;
    bottom: 9px !important;
    top: auto !important;
    z-index: 2 !important;
  }
}

.eg-launcher-icon-close {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.eg-launcher-icon-close svg,
.eg-launcher-icon-close .eg-close-svg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  stroke: #174A32 !important;
  stroke-width: 3px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
  margin: auto !important;
  filter: drop-shadow(0 1px 2px rgba(23, 74, 50, 0.25)) !important;
}

.eg-launcher-icon-close svg line,
.eg-launcher-icon-close .eg-close-svg line {
  stroke: #174A32 !important;
  stroke-width: 3px !important;
  stroke-linecap: round !important;
}

#ecomgator-chat-root .eg-launcher-btn.eg-is-open .eg-launcher-icon-open,
.eg-launcher-btn.eg-is-open .eg-launcher-icon-open,
#ecomgator-chat-bubble.eg-is-open .eg-launcher-icon-open,
#eg-launcher.eg-is-open .eg-launcher-icon-open {
  display: none !important;
}

#ecomgator-chat-root .eg-launcher-btn.eg-is-open .eg-launcher-icon-close,
.eg-launcher-btn.eg-is-open .eg-launcher-icon-close,
#ecomgator-chat-bubble.eg-is-open .eg-launcher-icon-close,
#eg-launcher.eg-is-open .eg-launcher-icon-close {
  display: flex !important;
}

#ecomgator-chat-root .eg-launcher-btn.eg-is-open:hover,
.eg-launcher-btn.eg-is-open:hover,
#ecomgator-chat-bubble.eg-is-open:hover,
#eg-launcher.eg-is-open:hover {
  transform: rotate(90deg) scale(1.06) !important;
}

/* ==========================================================
   Mobile-Optimized Responsive Chat Architecture
   Supports all iPhone & Android screen sizes, Safe Areas, Notches,
   Virtual Keyboards & Landscape Orientation
   ========================================================== */
@media screen and (max-width: 640px) {
  /* Prevent background body scroll when chat modal is active */
  body.eg-chat-active-body {
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* Root Container on Mobile */
  #ecomgator-chat-root {
    position: fixed !important;
    /* Keep the closed launcher clear of the site's fixed mobile section bar. */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 108px) !important;
    right: max(16px, env(safe-area-inset-right, 16px)) !important;
    z-index: 9999999 !important;
  }

  /* When Chat is open, expand root to full viewport */
  #ecomgator-chat-root.eg-chat-is-open {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }

  /* When Chat is open on mobile, hide the floating launcher bubble */
  #ecomgator-chat-root.eg-chat-is-open .eg-launcher-btn,
  #ecomgator-chat-root.eg-chat-is-open #ecomgator-chat-bubble,
  #ecomgator-chat-root.eg-chat-is-open #eg-launcher {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Launcher Bubble when Closed on mobile */
  #ecomgator-chat-root:not(.eg-chat-is-open) .eg-launcher-btn,
  #ecomgator-chat-root:not(.eg-chat-is-open) #ecomgator-chat-bubble,
  #ecomgator-chat-root:not(.eg-chat-is-open) #eg-launcher {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 58px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 24px rgba(23, 74, 50, 0.3) !important;
  }

  /* Center the emblem independently of theme button styles. */
  #ecomgator-chat-root:not(.eg-chat-is-open) .eg-launcher-icon-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  #ecomgator-chat-root:not(.eg-chat-is-open) .eg-launcher-emblem {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  #ecomgator-chat-root:not(.eg-chat-is-open) .eg-launcher-btn:hover .eg-launcher-emblem {
    transform: translate(-50%, -50%) scale(1.08) !important;
  }

  /* Fullscreen Native Mobile Chat Window */
  .eg-chat-window,
  #ecomgator-chat-box,
  #eg-chat-window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    display: none;
    flex-direction: column !important;
    z-index: 99999999 !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .eg-chat-window.active,
  #ecomgator-chat-box.active,
  #eg-chat-window.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Mobile Header with iPhone Notch & Safe Area Inset Support */
  .eg-chat-window .eg-header {
    padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
    padding-bottom: 12px !important;
    padding-left: max(16px, env(safe-area-inset-left, 16px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 16px)) !important;
    background: #174A32 !important;
    border-bottom: 2px solid #C8A64B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .eg-chat-window .eg-header-info h4 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #F8F7F4 !important;
    margin: 0 !important;
  }

  .eg-chat-window .eg-header-info p {
    font-size: 11.5px !important;
    color: #C8A64B !important;
    margin: 2px 0 0 0 !important;
  }

  /* Easy-to-use, Touch-Friendly 44px Close Button (Apple HIG Spec) */
  .eg-chat-window .eg-close-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(200, 166, 75, 0.4) !important;
    border-radius: 50% !important;
    color: #F8F7F4 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    flex-shrink: 0 !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
  }

  .eg-chat-window .eg-close-btn:active {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(0.92) !important;
  }

  /* Mobile Messages Scrollable Feed */
  .eg-chat-window .eg-messages-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: max(14px, env(safe-area-inset-left, 14px)) !important;
    padding-right: max(14px, env(safe-area-inset-right, 14px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    background: #F8F7F4 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .eg-chat-window .eg-msg {
    max-width: 90% !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  /* Mobile Footer Input & Send Button (Pinned above keyboard, safe area aware) */
  .eg-chat-window .eg-footer-input {
    flex-shrink: 0 !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    padding-top: 10px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    padding-left: max(12px, env(safe-area-inset-left, 12px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 12px)) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 16px Font Size on Input: STRICTLY prevents iOS Safari from automatically zooming into page */
  .eg-chat-window .eg-footer-input input {
    flex: 1 !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 16px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 22px !important;
    padding: 0 16px !important;
    background: #F8FAFC !important;
    color: #1E293B !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
  }

  /* The composer is a textarea; keep it the same size and touch style as the send button. */
  .eg-chat-window .eg-footer-input textarea {
    display: block !important;
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 22px !important;
    background: #F8FAFC !important;
    color: #1E293B !important;
    font: inherit !important;
    font-size: 16px !important;
    line-height: 22px !important;
    resize: none !important;
    overflow-y: auto !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
  }

  .eg-chat-window .eg-footer-input textarea:focus {
    border-color: #174A32 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 2px rgba(23, 74, 50, 0.15) !important;
  }

  .eg-chat-window .eg-footer-input input:focus {
    border-color: #174A32 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 2px rgba(23, 74, 50, 0.15) !important;
  }

  /* Send Button on Mobile */
  .eg-chat-window .eg-send-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: #174A32 !important;
    color: #C8A64B !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Quick Links on Mobile: Single Column, Easy Touch */
  .eg-quick-links-panel {
    margin-top: 6px !important;
    padding: 10px 12px !important;
  }

  .eg-quick-links-grid {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .eg-quick-link-btn {
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
  }

  .eg-quick-link-text {
    font-size: 12px !important;
  }

  /* Forms on Mobile: Inputs >= 16px, Full Touch Buttons */
  .eg-sample-report-card,
  .eg-human-form-card,
  .eg-quick-form-card,
  .eg-lead-form-box,
  .eg-booking-card,
  .eg-offer-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 14px !important;
    border-radius: 12px !important;
    margin: 8px 0 !important;
  }

  .eg-sr-input,
  .eg-hf-input,
  .eg-lead-form-box input,
  .eg-quick-form-card input,
  .eg-quick-form-card textarea {
    font-size: 16px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
  }

  .eg-phone-input-wrap {
    min-height: 42px !important;
  }

  .eg-country-btn {
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  .eg-sr-submit-btn,
  .eg-hf-submit-btn,
  .eg-qf-submit-btn,
  .eg-hf-direct-call-btn,
  .eg-booking-choice-btn,
  .eg-booking-direct-btn {
    min-height: 44px !important;
    font-size: 13.5px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Country Dropdown list on mobile */
  .eg-country-dropdown {
    max-height: 200px !important;
    z-index: 9999999 !important;
  }
}

/* ==========================================================
   Mobile Landscape Orientation Optimization (phones turned sideways)
   Compact header and footer to preserve maximum chat readability
   ========================================================== */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .eg-chat-window .eg-header {
    padding-top: max(6px, env(safe-area-inset-top, 6px)) !important;
    padding-bottom: 6px !important;
    padding-left: max(12px, env(safe-area-inset-left, 12px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 12px)) !important;
  }

  .eg-chat-window .eg-header-emblem-wrap {
    width: 28px !important;
    height: 28px !important;
    padding: 2px !important;
  }

  .eg-chat-window .eg-header-info h4 {
    font-size: 13px !important;
  }

  .eg-chat-window .eg-header-info p {
    font-size: 10.5px !important;
  }

  .eg-chat-window .eg-close-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 20px !important;
  }

  .eg-chat-window .eg-footer-input {
    padding-top: 6px !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 6px)) !important;
    padding-left: max(10px, env(safe-area-inset-left, 10px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 10px)) !important;
  }

  .eg-chat-window .eg-footer-input input,
  .eg-chat-window .eg-footer-input textarea {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 15px !important;
  }

  .eg-chat-window .eg-footer-input textarea {
    max-height: 38px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .eg-chat-window .eg-send-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

/* Clickable Links inside Chat Messages */
.eg-link {
  color: #174A32 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  transition: color 0.15s ease !important;
  word-break: break-all;
}

.eg-link:hover {
  color: #C8A64B !important;
}

.eg-msg-user .eg-link {
  color: #C8A64B !important;
}

.eg-msg-user .eg-link:hover {
  color: #F8F7F4 !important;
}

/* Voice Message Card */
.eg-msg-voice {
  border-left: 3px solid #C8A64B;
  background: #EBF5F0;
  color: #174A32;
}

/* Footer Icon Action Buttons (Attachment & Mic) */
.eg-icon-btn {
  background: transparent !important;
  border: 1px solid #E0E0E0 !important;
  color: #555 !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.eg-icon-btn:hover {
  background: #EBF5F0 !important;
  color: #174A32 !important;
  border-color: #174A32 !important;
}

.eg-voice-btn.eg-voice-active {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
  animation: egVoicePulse 1.2s infinite ease-in-out !important;
}

@keyframes egVoicePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Dual Booking & Scheduling Card */
.eg-booking-card {
  background: #FFFFFF;
  border: 1.5px solid #C8A64B;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(23, 74, 50, 0.08);
}

.eg-booking-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.eg-booking-badge {
  background: #0E2A20;
  color: #C8A64B;
  border: 1px solid #C8A64B;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
}

.eg-booking-pathways {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-booking-choice-btn {
  width: 100%;
  background: #F8F7F4;
  color: #174A32;
  border: 1px solid #174A32;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eg-booking-choice-btn:hover {
  background: #EBF5F0;
  border-color: #C8A64B;
}

.eg-booking-direct-btn,
.eg-booking-easify-btn {
  width: 100%;
  background: #174A32 !important;
  color: #F8F7F4 !important;
  border: 1.5px solid #D4AF37 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.eg-booking-direct-btn:hover,
.eg-booking-easify-btn:hover {
  background: #0E2A20 !important;
  color: #D4AF37 !important;
  border-color: #D4AF37 !important;
}

/* Quick Information Form Card */
.eg-quick-form-card {
  background: #FFFFFF;
  border: 2px solid #C8A64B;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.eg-quick-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #174A32;
}

.eg-quick-form-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
}

.eg-quick-form-subtitle {
  font-size: 11.5px;
  color: #666;
  margin: 4px 0 10px 0;
}

.eg-quick-form-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eg-quick-form-card input,
.eg-quick-form-card textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 12px;
  box-sizing: border-box;
  font-family: inherit;
}

.eg-quick-form-card input:focus,
.eg-quick-form-card textarea:focus {
  outline: none;
  border-color: #174A32;
}

.eg-qf-submit-btn {
  background: #174A32 !important;
  color: #C8A64B !important;
  border: 1px solid #C8A64B !important;
  padding: 9px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.eg-qf-submit-btn:hover {
  background: #0E2A20 !important;
}

/* File Preview Inside Chat */
.eg-file-preview-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.04);
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 12px;
}

.eg-file-name {
  font-weight: 600;
  display: block;
}

.eg-file-size {
  font-size: 10px;
  color: #888;
}

/* ==========================================================
   Human Escalation Mini-Form & Meeting Booking CTA
   ========================================================== */
.eg-human-form-card {
  background: #FFFFFF;
  border: 1.5px solid #134E3F;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(13, 59, 46, 0.08);
}

.eg-hf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E2E8F0;
}

.eg-hf-badge {
  background: #0D3B2E;
  color: #C8A64B;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eg-hf-followup-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
}

.eg-hf-intro {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 10px;
}

.eg-human-escalation-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eg-hf-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eg-hf-label {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
}

.eg-req {
  color: #DC2626;
}

.eg-hf-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  color: #1E293B !important;
  background: #F8FAFC !important;
  outline: none !important;
  transition: border-color 0.15s, background-color 0.15s;
}

.eg-hf-input:focus {
  border-color: #134E3F !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(19, 78, 63, 0.15) !important;
}

.eg-hf-hint {
  font-size: 10px;
  color: #64748B;
  margin-top: 1px;
}

.eg-hf-submit-btn {
  background: #0D3B2E !important;
  color: #C8A64B !important;
  border: 1px solid #0D3B2E !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 4px !important;
  box-shadow: 0 2px 6px rgba(13, 59, 46, 0.2) !important;
  transition: all 0.15s ease !important;
}

.eg-hf-submit-btn:hover {
  background: #134E3F !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 59, 46, 0.3) !important;
}

.eg-hf-submit-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.eg-hf-direct-call-wrap {
  margin-top: 12px;
  text-align: center;
}

.eg-hf-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0 8px 0;
  color: #94A3B8;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.eg-hf-or-divider::before,
.eg-hf-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.eg-hf-or-divider span {
  padding: 0 8px;
}

.eg-hf-direct-call-btn {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #F8FAFC !important;
  color: #0D3B2E !important;
  border: 1.5px dashed #0D3B2E !important;
  padding: 9px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
}

.eg-hf-direct-call-btn:hover {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border-style: solid !important;
  transform: translateY(-1px);
}

.eg-hf-confirmed-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.eg-hf-confirmed-icon {
  font-size: 20px;
  line-height: 1;
}

.eg-hf-confirmed-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: #065F46;
}

/* ==========================================================================
   Free Product Research Sample Report In-Chat Form & Country Dropdown
   ========================================================================== */
.eg-sample-report-card {
  background: #FFFFFF;
  border: 1px solid #C8A64B;
  border-top: 3px solid #003f32;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0 6px 0;
  box-shadow: 0 4px 14px rgba(0, 63, 50, 0.08);
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

.eg-sr-header {
  margin-bottom: 12px;
}

.eg-sr-badge {
  display: inline-block;
  background: #003f32;
  color: #F8F7F4;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2.5px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.eg-sr-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 800;
  color: #003f32;
}

.eg-sr-subtitle {
  margin: 0;
  font-size: 11.5px;
  color: #4A5568;
  line-height: 1.45;
}

.eg-sample-report-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.eg-sr-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eg-sr-label {
  font-size: 11px;
  font-weight: 700;
  color: #263B34;
}

.eg-sr-label .eg-req {
  color: #DC2626;
  font-weight: bold;
}

.eg-sr-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  font-size: 12.5px !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  background: #FAFAFA !important;
  color: #1E293B !important;
  outline: none !important;
  transition: all 0.15s ease !important;
}

.eg-sr-input:focus {
  border-color: #003f32 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(0, 63, 50, 0.15) !important;
}

/* WhatsApp Phone Input with Interactive Country Selector */
.eg-phone-input-wrap {
  display: flex !important;
  align-items: stretch !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  background: #FAFAFA !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.eg-phone-input-wrap:focus-within {
  border-color: #003f32 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(0, 63, 50, 0.15) !important;
}

.eg-country-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 9px !important;
  background: #F1F5F9 !important;
  border: none !important;
  border-right: 1px solid #CBD5E1 !important;
  border-radius: 5px 0 0 5px !important;
  color: #1E293B !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  outline: none !important;
  transition: background-color 0.15s ease !important;
  user-select: none !important;
}

.eg-country-btn:hover {
  background: #E2E8F0 !important;
}

.eg-country-flag {
  font-size: 15px !important;
  line-height: 1 !important;
}

.eg-country-dial {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #003f32 !important;
}

.eg-country-arrow {
  font-size: 9px !important;
  color: #64748B !important;
  margin-left: 1px !important;
}

.eg-phone-input-wrap .eg-sr-phone {
  border: none !important;
  border-radius: 0 5px 5px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1 !important;
}

/* Floating Country Dropdown List */
.eg-country-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: #FFFFFF !important;
  border: 1px solid #003f32 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  animation: egFadeIn 0.15s ease-out !important;
}

@keyframes egFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.eg-country-search-wrap {
  padding: 7px 8px !important;
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.eg-country-search-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 5px 8px !important;
  font-size: 11.5px !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 4px !important;
  outline: none !important;
}

.eg-country-search-input:focus {
  border-color: #003f32 !important;
}

.eg-country-list {
  max-height: 170px !important;
  overflow-y: auto !important;
  padding: 2px 0 !important;
}

.eg-country-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: background-color 0.1s ease !important;
  color: #1E293B !important;
}

.eg-country-item:hover {
  background: #F0FDF4 !important;
  color: #003f32 !important;
}

.eg-country-item.active {
  background: #ECFDF5 !important;
  font-weight: 700 !important;
  color: #003f32 !important;
}

.eg-ci-left {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.eg-ci-name {
  font-size: 11.5px !important;
}

.eg-ci-dial {
  font-size: 11px !important;
  color: #64748B !important;
  font-weight: 700 !important;
}

/* Submit Button */
.eg-sr-submit-btn {
  background: #003f32 !important;
  color: #F8F7F4 !important;
  border: 1px solid #896c22 !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  margin-top: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 63, 50, 0.2) !important;
  transition: all 0.15s ease !important;
}

.eg-sr-submit-btn:hover {
  background: #095444 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 63, 50, 0.3) !important;
}

.eg-sr-submit-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Error Display Slot */
.eg-sr-error-slot {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

/* Success Confirmation Box */
.eg-sr-success-box {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.eg-sr-success-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.eg-sr-success-title {
  font-size: 14px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 4px;
}

.eg-sr-success-text {
  font-size: 12.5px;
  color: #15803D;
  margin: 0 0 6px 0;
  line-height: 1.45;
  font-weight: 600;
}

.eg-sr-success-meta {
  font-size: 11px;
  color: #4B5563;
}

.eg-footer-input textarea { flex:1; width:0; min-width:0; height:40px; min-height:40px; max-height:40px; resize:none; overflow-y:auto; box-sizing:border-box; border:1px solid #CBD5E1; border-radius:20px; padding:9px 16px; background:#F8FAFC; color:#1E293B; font:inherit; font-size:13px; line-height:20px; outline:none; }
.eg-footer-input textarea:focus { border-color:#174A32; }
.eg-footer-input textarea::placeholder { color:#64748B; opacity:1; }
