:root {
  --phosphor-brand-red: #c82e27;
  --phosphor-brand-red-bright: #e3332a;
  --phosphor-floating-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.phosphor-icon-host {
  font-family: inherit !important;
}

.phosphor-icon-host::before,
.phosphor-icon-host::after {
  display: none !important;
  content: none !important;
}

.phosphor-icon-host > .phosphor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 1em;
  line-height: 1;
  vertical-align: -0.08em;
}

.fusion-social-network-icon.phosphor-icon-host > .phosphor-icon,
.fb-icon-element.phosphor-icon-host > .phosphor-icon,
.fusion-li-icon.phosphor-icon-host > .phosphor-icon,
.awb-form-icon.phosphor-icon-host > .phosphor-icon {
  width: 1em;
  height: 1em;
}

.awb-menu__m-collapse-icon-open.phosphor-icon-host > .phosphor-icon,
.awb-menu__m-collapse-icon-close.phosphor-icon-host > .phosphor-icon,
.awb-menu__open-nav-submenu_mobile.phosphor-icon-host > .phosphor-icon,
.awb-menu__open-nav-submenu-hover.phosphor-icon-host > .phosphor-icon {
  pointer-events: none;
}

.phosphor-contact-image {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 1em;
  min-height: 1em;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--phosphor-brand-red);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.chaty-svg > .phosphor-contact-image,
.chaty-svg > .phosphor-chaty-close {
  width: 44px;
  height: 44px;
}

.phosphor-chaty-close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--phosphor-brand-red);
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.chaty-svg-img:has(> .phosphor-contact-image) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Persistent contact rail */
.chaty-widget {
  right: 20px !important;
  bottom: 20px !important;
  width: 50px !important;
  height: auto !important;
  z-index: 10002 !important;
}

.chaty-widget .chaty-channels,
.chaty-widget .chaty-channel-list {
  position: static !important;
  display: flex !important;
  width: 50px !important;
  height: auto !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.chaty-widget .chaty-channel-list > .chaty-channel {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.chaty-widget .chaty-channel-list > .chaty-channel > a,
.chaty-widget .chaty-icon,
.chaty-widget .chaty-svg,
.chaty-widget .phosphor-contact-image {
  display: inline-flex !important;
  width: 50px !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
}

.chaty-widget .phosphor-contact-image {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, var(--phosphor-brand-red-bright), var(--phosphor-brand-red));
  box-shadow: var(--phosphor-floating-shadow), inset 0 1px rgba(255, 255, 255, 0.12);
  font-size: 27px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.chaty-widget .chaty-channel-list > .chaty-channel > a:hover .phosphor-contact-image,
.chaty-widget .chaty-channel-list > .chaty-channel > a:focus-visible .phosphor-contact-image {
  background: linear-gradient(145deg, #ef3b31, #b72520);
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.46), 0 0 0 4px rgba(227, 51, 42, 0.18);
  transform: translateY(-2px) scale(1.04);
}

.chaty-widget .chaty-i-trigger {
  display: none !important;
}

/* Redesigned back-to-top control */
.to-top-container {
  display: block !important;
}

#toTop.fusion-top-top-link {
  right: 84px !important;
  bottom: 20px !important;
  display: flex !important;
  width: 50px !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--phosphor-brand-red-bright), var(--phosphor-brand-red)) !important;
  box-shadow: var(--phosphor-floating-shadow), 0 0 0 6px rgba(198, 46, 35, 0.12) !important;
  color: #fff !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(1) !important;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
  z-index: 10002 !important;
}

#toTop.fusion-top-top-link.fusion-to-top-active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

#toTop.fusion-top-top-link > .phosphor-icon {
  width: 26px !important;
  height: 26px !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

#toTop.fusion-top-top-link:hover,
#toTop.fusion-top-top-link:focus-visible {
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.46), 0 0 0 7px rgba(227, 51, 42, 0.2) !important;
  transform: translateY(-2px) scale(1.04) !important;
}

#toTop.fusion-top-top-link:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px !important;
}

@media (max-width: 640px) {
  .chaty-widget {
    right: 14px !important;
    bottom: 14px !important;
  }

  #toTop.fusion-top-top-link {
    right: 78px !important;
    bottom: 14px !important;
  }
}

/* On touch-sized viewports the permanent four-button rail covers headings and
   paragraphs. Keep the same contact options, but reveal them from one compact,
   keyboard-accessible launcher. */
@media (max-width: 1024px) {
  .chaty-widget {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    width: 50px !important;
  }

  .chaty-widget .chaty-channels {
    position: static !important;
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .chaty-widget .chaty-channel-list {
    position: absolute !important;
    right: 0 !important;
    bottom: calc(100% + 10px) !important;
    display: flex !important;
    width: 50px !important;
    height: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) scale(0.96) !important;
    transform-origin: right bottom !important;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease !important;
  }

  .chaty-widget.chaty-mobile-open .chaty-channel-list {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .chaty-widget .chaty-i-trigger {
    position: relative !important;
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .chaty-widget .chaty-i-trigger .chaty-channel,
  .chaty-widget .chaty-i-trigger .chaty-cta-button,
  .chaty-widget .chaty-i-trigger button,
  .chaty-widget .chaty-i-trigger .chaty-svg,
  .chaty-widget .chaty-i-trigger .phosphor-contact-image,
  .chaty-widget .chaty-i-trigger .phosphor-chaty-close {
    width: 50px !important;
    height: 50px !important;
  }

  .chaty-widget .chaty-i-trigger .chaty-cta-button,
  .chaty-widget .chaty-i-trigger button {
    display: inline-grid !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    place-items: center;
    background: transparent !important;
    cursor: pointer;
  }

  .chaty-widget .chaty-i-trigger .chaty-cta-main,
  .chaty-widget .chaty-i-trigger .chaty-cta-main *,
  .chaty-widget.chaty-mobile-open .chaty-i-trigger .chaty-cta-close,
  .chaty-widget.chaty-mobile-open .chaty-i-trigger .chaty-cta-close * {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .chaty-widget .chaty-i-trigger .open-chaty-channel,
  .chaty-widget .chaty-i-trigger .on-hover-text,
  .chaty-widget .chaty-cta-close {
    display: none !important;
  }

  #chaty-widget-0 .chaty-widget .chaty-tooltip::before,
  #chaty-widget-0 .chaty-widget .chaty-tooltip::after {
    display: none !important;
    content: none !important;
  }

  .chaty-widget.chaty-mobile-open .chaty-cta-main {
    display: none !important;
  }

  .chaty-widget.chaty-mobile-open .chaty-cta-close {
    display: block !important;
  }

  #toTop.fusion-top-top-link {
    right: max(78px, calc(64px + env(safe-area-inset-right))) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 480px) {
  #toTop.fusion-top-top-link {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phosphor-icon,
  .phosphor-contact-image,
  .phosphor-chaty-close {
    transition: none !important;
  }

  #toTop.fusion-top-top-link {
    transition: none !important;
  }
}
