/* CGS Infotech — cgs/css/integration.css
   Readable stylesheet. Existing selectors, values and cascade order are preserved. */
/* Only the added audit and chat controls; v12 content styling stays intact. */
.cgs-engage {
  --cgs-plum: #bc007c;
  --cgs-pink: #bc007c;
  --cgs-line: #eaddE5;
  --cgs-soft: #fff6fb;
  font-family: Manrope, Arial, sans-serif;
}
.cgs-engage .cgs-chat-launcher,
.cgs-engage .cgs-chat-header,
.cgs-engage .cgs-primary {
  background: linear-gradient(120deg, #c50082, #8f005e);
}
.cgs-engage .cgs-chat-send,
.cgs-engage .cgs-chat-bubble.cgs-user {
  background: #b90079;
}
.cgs-engage .cgs-chat-bubble.cgs-user p {
  color: #fff;
}
.cgs-engage .cgs-chat-panel {
  border-radius: 20px;
}
.cgs-engage .cgs-chat-bubble p {
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: normal;
  margin: 0 0 8px;
}
.cgs-engage .cgs-chat-header small {
  color: #fff2fa;
  letter-spacing: 0;
}
.cgs-engage .cgs-audit-dock {
  background: #ffdf00;
  border-color: #ffdf00;
  color: #29212b;
  font-weight: 800;
}
.cgs-engage .cgs-service-chip:first-child {
  background: #fff9d8;
}
.cgs-engage .cgs-chat-launcher:focus-visible,
.cgs-engage .cgs-chat-close:focus-visible {
  outline: 3px solid #ffdf00;
}
.cgs-live-note {
  font-size: 14px !important;
  color: #655a64 !important;
  margin-bottom: 14px !important;
}
body:has(.cgs-engage) > .whatsapp-float {
  left: 24px;
  right: auto;
}
body:has(.cgs-engage) > .back-top {
  left: 92px;
  right: auto;
  bottom: 24px;
}
.cgs-engage .cgs-launcher-label {
  font-size: 13px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cgs-audit-page .topbar .brand {
  color: #ba007a;
}
.cgs-audit-page {
  padding-bottom: 120px;
}

/* SECTION: @media (max-width: 760px) */
@media (max-width: 760px) {
  body:has(.mobile-contact) .cgs-chat-launcher {
    bottom: 88px;
    right: 16px;
  }
  body:has(.mobile-contact) .cgs-audit-dock {
    bottom: 159px;
    right: 16px;
  }
  body:has(.mobile-contact) .cgs-chat-panel {
    right: 10px;
    bottom: 159px;
    width: calc(100vw - 20px);
    height: min(620px, calc(100dvh - 180px));
    min-height: 240px;
  }
  body:has(.mobile-contact) > .whatsapp-float {
    left: 16px;
    bottom: 90px;
  }
  body:has(.mobile-contact) > .back-top {
    left: 82px;
    bottom: 96px;
  }
  .cgs-engage .cgs-launcher-label {
    display: none;
  }
  .cgs-engage .cgs-chat-scroll {
    padding: 15px;
  }
  .cgs-engage .cgs-chat-header {
    padding: 12px 14px;
  }
  .cgs-engage .cgs-chat-header strong {
    font-size: 16px;
  }
  .cgs-engage .cgs-inchat-form input,
  .cgs-engage .cgs-inchat-form select,
  .cgs-engage .cgs-chat-compose textarea {
    font-size: 16px;
  }
  .cgs-engage .cgs-chat-voice-row {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

/* SECTION: @media (max-width: 380px) */
@media (max-width: 380px) {
  .cgs-engage .cgs-inchat-grid {
    grid-template-columns: 1fr;
  }
  .cgs-engage .cgs-service-grid {
    gap: 7px;
  }
  .cgs-engage .cgs-service-chip {
    padding: 10px;
  }
}

/* SECTION: @media (prefers-reduced-motion: reduce) */
@media (prefers-reduced-motion: reduce) {
  .cgs-engage * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* SECTION: @media (max-width: 760px) */
@media (max-width: 760px) {
  .cgs-engage .cgs-chat-panel {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
  }
}

.cgs-audit-page .cgs-audit-dock {
  display: none;
}

/* Keep both India contact numbers readable at every width. */
.cgs-alternate-contact {
  margin-inline-start: 8px;
}
.top-contacts .cgs-alternate-contact,
li > .cgs-alternate-contact {
  margin-inline-start: 0;
}
.nav-drawer-footer {
  flex-wrap: wrap;
}
.form-direct-links {
  flex-wrap: wrap;
}
.cgs-engage .cgs-chat-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.cgs-engage .cgs-chat-contacts > span {
  flex-basis: 100%;
  color: #73646c;
}
.cgs-engage .cgs-chat-contacts > a {
  color: #980063;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
