/* Purpose: keep both Ava modes equal but compact enough to read as premium actions, not full-width banners. */
.mws-chat-demo-button,
._phoneAction_f78o1_316 {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  width: 340px;
  max-width: 100%;
  min-height: 72px;
  padding: 0 22px 0 16px;
  gap: 12px;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.mws-chat-demo-button {
  border: 1px solid rgba(235, 151, 116, 0.58);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(190, 94, 61, 0.96), rgba(74, 29, 27, 0.96));
  box-shadow: 0 18px 46px rgba(95, 39, 27, 0.34), inset 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mws-chat-demo-button:hover,
.mws-chat-demo-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 190, 161, 0.88);
  box-shadow: 0 24px 58px rgba(95, 39, 27, 0.44), 0 0 28px rgba(190, 94, 61, 0.16);
  outline: none;
}

.mws-chat-demo-button .mws-chat-demo-icon,
._phoneAction_f78o1_316 .mws-voice-demo-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(3, 10, 24, 0.34);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.mws-chat-demo-button .mws-chat-demo-icon::before {
  content: "";
  width: 17px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 5px;
}

.mws-chat-demo-button .mws-chat-demo-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  width: 7px;
  height: 7px;
  border-left: 2px solid #fff;
  transform: skewY(-35deg);
}

._phoneAction_f78o1_316 {
  border: 1px solid rgba(128, 168, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(58, 116, 255, 0.92), rgba(18, 48, 92, 0.94));
  box-shadow: 0 18px 46px rgba(20, 56, 118, 0.3), inset 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

._phoneAction_f78o1_316:hover,
._phoneAction_f78o1_316:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(174, 200, 255, 0.9);
  box-shadow: 0 24px 58px rgba(20, 56, 118, 0.42), 0 0 28px rgba(58, 116, 255, 0.16);
  outline: none;
}

._phoneAction_f78o1_316 .mws-voice-demo-icon::before {
  content: "";
  width: 8px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 999px;
}

._phoneAction_f78o1_316 .mws-voice-demo-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 20px;
  width: 14px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.mws-chat-demo-button .mws-chat-demo-copy,
._phoneAction_f78o1_316 .mws-voice-demo-copy {
  display: grid;
  gap: 2px;
}

.mws-chat-demo-button .mws-chat-demo-copy small,
._phoneAction_f78o1_316 .mws-voice-demo-copy small {
  color: rgba(224, 234, 255, 0.72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mws-chat-demo-button .mws-chat-demo-copy strong,
._phoneAction_f78o1_316 .mws-voice-demo-copy strong {
  color: #fff;
  font-size: 16px;
  font-weight: 760;
}

.mws-chat-demo-button .mws-chat-demo-copy small {
  color: rgba(255, 224, 211, 0.74);
}

/*
 * Desktop + sticky dock: Ava lives inside the bottom bar.
 * Hide the free-floating launcher; keep the panel parked above the dock.
 */
@media (min-width: 781px) {
  body:has(.mws-has-sticky-lead) .crm-chat-preview .crm-chat-launcher {
    display: none !important;
  }

  body:has(.mws-has-sticky-lead) .crm-chat-preview {
    right: 18px !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Purpose: keep Ava visually consistent with the illustrated Voice banner while retaining the accessible button control. */
.crm-chat-preview .crm-chat-launcher {
  width: 52px !important;
  height: 52px !important;
  padding: 4px !important;
  gap: 0 !important;
  border: 1px solid rgba(160, 187, 224, 0.4) !important;
  border-radius: 50% !important;
  background: rgba(4, 8, 14, 0.92) !important;
  overflow: visible !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.12) !important;
  animation: mws-launcher-glow 2.6s ease-in-out infinite;
}

.crm-chat-preview .crm-chat-launcher:hover,
.crm-chat-preview .crm-chat-launcher:focus-visible {
  border-color: rgba(174, 202, 244, 0.75) !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62), 0 0 28px rgba(105, 214, 173, 0.22) !important;
  outline: none;
  animation: none;
}

.crm-chat-preview .crm-chat-launcher-copy {
  display: none !important;
}

.crm-chat-preview .crm-chat-logo {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 50% !important;
  background: url("/mws-ava-avatar-v2.png") center 32% / cover no-repeat !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(7, 18, 39, 0.45) !important;
  animation: mws-avatar-breathe 2.4s ease-in-out infinite;
}

.crm-chat-preview .crm-chat-logo > b,
.crm-chat-preview .crm-chat-logo > i {
  display: none !important;
}

.crm-chat-preview .crm-chat-launcher > i {
  top: 1px !important;
  right: 2px !important;
  width: 9px !important;
  height: 9px !important;
  border: 2px solid #070a0f !important;
  background: #69d6ad !important;
  box-shadow: 0 0 0 3px rgba(105, 214, 173, 0.16) !important;
  animation: mws-presence-pulse 1.8s ease-in-out infinite;
}

.crm-chat-preview .crm-chat-launcher::after {
  content: "Chat with Ava";
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  padding: 9px 12px;
  color: rgba(245, 247, 248, 0.92);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 15, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.crm-chat-preview .crm-chat-launcher:hover::after,
.crm-chat-preview .crm-chat-launcher:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.crm-chat-preview .crm-chat-avatar {
  border-radius: 50% !important;
  background: url("/mws-ava-avatar-v2.png") center 32% / cover no-repeat !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 9px 24px rgba(0, 0, 0, 0.34) !important;
}

.crm-chat-preview .crm-chat-avatar > b,
.crm-chat-preview .crm-chat-avatar > i {
  display: none !important;
}

.mws-chat-demo-button,
._phoneAction_f78o1_316 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mws-chat-demo-button > *,
._phoneAction_f78o1_316 > * {
  position: relative;
  z-index: 1;
}

.mws-chat-demo-button::after,
._phoneAction_f78o1_316::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -45%;
  left: -32%;
  width: 18%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
  transform: skewX(-18deg) translateX(-520%);
  animation: mws-cta-light-pass 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes mws-avatar-breathe {
  0%, 100% { transform: scale(1); filter: saturate(0.96) brightness(0.98); }
  50% { transform: scale(1.045); filter: saturate(1.08) brightness(1.06); }
}

@keyframes mws-launcher-glow {
  0%, 100% {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(105, 214, 173, 0.28), inset 0 1px rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(105, 214, 173, 0), 0 0 22px rgba(105, 214, 173, 0.35), inset 0 1px rgba(255, 255, 255, 0.12);
  }
}

@keyframes mws-presence-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(105, 214, 173, 0.14); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(105, 214, 173, 0), 0 0 14px rgba(105, 214, 173, 0.45); transform: scale(1.08); }
}

@keyframes mws-cta-light-pass {
  0%, 72% { transform: skewX(-18deg) translateX(-520%); }
  88%, 100% { transform: skewX(-18deg) translateX(920%); }
}

/* Purpose: dissolve the final conversion section into the footer without a visible border or color seam. */
._finalCta_f78o1_313 {
  position: relative;
  overflow: hidden;
}

._finalCta_f78o1_313::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(110px, 12vw, 190px);
  background: linear-gradient(to bottom, transparent, rgba(2, 3, 4, 0.76) 54%, #020304 100%);
  pointer-events: none;
}

._finalCta_f78o1_313 > * {
  position: relative;
  z-index: 1;
}

._footer_1e32e_1 {
  border-top: 0 !important;
  isolation: isolate;
}

._footer_1e32e_1::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(120px, 14vw, 220px);
  background: linear-gradient(to bottom, #020304 0%, rgba(2, 3, 4, 0.9) 28%, rgba(2, 3, 4, 0.38) 66%, transparent 100%);
  pointer-events: none;
}

._footer_1e32e_1 > * {
  position: relative;
  z-index: 1;
}

._footerDirectory_1e32e_66 {
  border-top: 0 !important;
}

/* Purpose: restore an alternating editorial rhythm by leading Connected Operations with its visual on wide screens. */
@media (min-width: 981px) {
  ._systemsSection_f78o1_290 {
    grid-template-columns: 1.2fr 0.8fr;
  }

  ._systemsVisual_f78o1_296 {
    order: -1;
  }

  ._systemsCopy_f78o1_291 {
    order: 1;
  }
}

@media (max-width: 780px) {
  /* Sticky dock hidden — restore compact floating Ava in the corner. */
  body:has(.mws-has-sticky-lead) .crm-chat-preview .crm-chat-launcher {
    display: flex !important;
  }

  body:has(.mws-has-sticky-lead) .crm-chat-preview {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 640px) {
  /* Preserve Ava as an obvious entry point without covering mobile quote choices. */
  .crm-chat-preview {
    right: 8px !important;
    bottom: 8px !important;
  }

  .crm-chat-preview .crm-chat-launcher {
    width: 48px !important;
    height: 48px !important;
    padding: 4px !important;
  }

  .crm-chat-preview .crm-chat-logo {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  .mws-chat-demo-button,
  ._phoneAction_f78o1_316 {
    display: flex;
    width: 100%;
    padding: 0 22px 0 16px;
  }

  .crm-chat-preview .crm-chat-launcher::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mws-chat-demo-button,
  ._phoneAction_f78o1_316 {
    transition: none;
  }

  .crm-chat-preview .crm-chat-launcher,
  .crm-chat-preview .crm-chat-logo,
  .crm-chat-preview .crm-chat-launcher > i,
  .mws-chat-demo-button::after,
  ._phoneAction_f78o1_316::after {
    animation: none !important;
  }
}
