/* ==========================================================================
   GIGOCloud Support Widget Styles
   ========================================================================== */

/* Main Container - CHANGED to left */
.act-support-widget-container {
  position: fixed;
  bottom: 24px;
  left: 24px;  /* Changed from right: 24px to left: 24px */
  z-index: 99999;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

/* Hide Support Widget when Mobile Navigation Drawer is Open */
body.mobile-menu-open .act-support-widget-container,
body:has(#mobile-menu-overlay.active) .act-support-widget-container,
body:has(#mobile-menu-overlay[style*="display: block"]) .act-support-widget-container,
body:has(.mobile-menu-overlay.active) .act-support-widget-container,
.mobile-menu-overlay.active ~ .act-support-widget-container,
.mobile-menu-overlay.active ~ * .act-support-widget-container {
  display: none !important;
}

/* --------------------------------------------------------------------------
   1. Minimized Pill Floating Button - CHANGED to BLUE
   -------------------------------------------------------------------------- */
.act-support-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);  /* Changed from dark to blue */
  padding: 8px 16px 8px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);  /* Slightly brighter border */
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);  /* Blue shadow */
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle background glow in pill - CHANGED to blue */
.act-support-pill::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.act-support-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.act-support-pill:active {
  transform: translateY(-1px) scale(0.99);
}

.act-pill-left-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 19px;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.act-support-pill:hover .act-pill-left-icon {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.22);
}

.act-pill-text-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.act-pill-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.act-pill-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.act-pill-right-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
  margin-left: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.act-support-pill:hover .act-pill-right-icon {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   2. Expanded Support Card Modal - KEPT ORIGINAL
   -------------------------------------------------------------------------- */
.act-support-card {
  width: 350px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  animation: actCardPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom left;  /* Changed from bottom right to bottom left */
}

.act-support-card.d-none {
  display: none !important;
}

@keyframes actCardPopIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Background Soft Glow Accents - KEPT ORIGINAL */
.act-card-glow-tr {
  position: absolute;
  top: -35px;
  right: -35px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.act-card-glow-bl {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header - KEPT ORIGINAL */
.act-support-card-header {
  position: relative;
  z-index: 1;
  padding: 22px 20px 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.act-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.act-header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #16181d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(22, 24, 29, 0.2);
}

.act-header-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.act-header-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.act-header-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

.act-support-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  border: none;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 6px;
}

.act-support-close-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
  transform: scale(1.08);
}

/* Card Body / Buttons Stack - KEPT ORIGINAL */
.act-support-card-body {
  position: relative;
  z-index: 1;
  padding: 0 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.act-support-btn {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.act-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.act-btn-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.act-btn-subtitle {
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.2;
}

/* WhatsApp Button - KEPT ORIGINAL */
.act-btn-whatsapp {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.act-btn-whatsapp .act-btn-icon {
  font-size: 26px;
  margin-right: 14px;
  flex-shrink: 0;
}

.act-btn-whatsapp .act-btn-title {
  color: #ffffff;
}

.act-btn-whatsapp .act-btn-subtitle {
  color: rgba(255, 255, 255, 0.92);
}

.act-btn-whatsapp:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.38);
  color: #ffffff;
}

/* Knowledge Base Button - KEPT ORIGINAL */
.act-btn-kb {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.15);
}

.act-btn-kb .act-btn-icon {
  font-size: 20px;
  margin-right: 14px;
  flex-shrink: 0;
}

.act-btn-kb .act-btn-title {
  color: #ffffff;
}

.act-btn-kb .act-btn-subtitle {
  color: #9ca3af;
}

.act-btn-kb:hover {
  background: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.25);
  color: #ffffff;
}

/* Call Support Button - KEPT ORIGINAL */
.act-btn-call {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  justify-content: space-between;
}

.act-btn-call .act-btn-left {
  display: flex;
  align-items: center;
}

.act-btn-call .act-btn-icon {
  font-size: 20px;
  color: #0f172a;
  margin-right: 14px;
  flex-shrink: 0;
}

.act-btn-call .act-btn-title {
  color: #0f172a;
}

.act-btn-call .act-btn-subtitle {
  color: #475569;
  font-weight: 600;
}

.act-flag-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.act-btn-call:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  color: #0f172a;
}

/* Card Footer Metadata - KEPT ORIGINAL */
.act-support-card-footer {
  position: relative;
  z-index: 1;
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.act-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.act-meta-item i {
  font-size: 13px;
  color: #64748b;
}

/* Mobile responsive fixes - UPDATED to left */
@media (max-width: 480px) {
  .act-support-widget-container {
    bottom: 16px;
    left: 16px;  /* Changed from right: 16px to left: 16px */
  }
  .act-support-card {
    width: calc(100vw - 32px);
    border-radius: 20px;
    transform-origin: bottom left;  /* Changed from bottom right to bottom left */
  }
  .act-support-pill {
    padding: 6px 12px 6px 6px;
    gap: 8px;
  }
  .act-pill-title {
    font-size: 14px;
  }
  .act-pill-subtitle {
    font-size: 11px;
  }
}