/* TRAFx Dante AI chat — triggers and footer banner */

.navbar-dante-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-decoration: none !important;
}

.navbar-dante-icon:hover,
.navbar-dante-icon:focus {
  opacity: 0.9;
}

.navbar-dante-icon img {
  display: block;
  height: 32px;
  width: auto;
}

@media (min-width: 992px) {
  #dante-nav-slot-desktop .navbar-dante-icon img {
    height: 44px;
  }
}

@media (max-width: 991.98px) {
  .navbar .brand {
    padding-left: 0;
  }
}

/* Mobile: icon immediately left of hamburger */
#dante-mobile-nav-bar {
  flex-shrink: 0;
}

/* Desktop: icon immediately left of DataNet Login */
#dante-nav-slot-desktop {
  vertical-align: middle;
  margin-right: 0.5rem;
  margin-top: -10px;
}

#dante-footer-banner {
  cursor: pointer;
  outline: none;
  border: 1px solid #000;
  padding: 0 1rem;
  background-color: #444;
}

#dante-footer-banner:hover,
#dante-footer-banner:focus {
  filter: brightness(1.08);
}

.dante-footer-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.dante-footer-banner__left,
.dante-footer-banner__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dante-footer-banner__center {
  flex: 1 1 220px;
  text-align: center;
  min-width: min(100%, 220px);
}

.dante-footer-banner__headline {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  line-height: 1.35;
}

.dante-footer-banner__expert {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dante-footer-banner__img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .dante-footer-banner__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .dante-footer-banner__center {
    flex: 0 0 auto;
    min-width: 0;
  }
}

#dante-launcher {
  --dante-launcher-aim-x: 0px;
  --dante-launcher-aim-y: 0px;
  position: fixed;
  bottom: 34px;
  right: 34px;
  z-index: 9999;
  cursor: pointer;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: clip;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  transition:
    transform 0.38s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.16s ease-out;
}

#dante-launcher.dante-launcher--near-bottom {
  transform: translate(var(--dante-launcher-aim-x), var(--dante-launcher-aim-y)) scale(0.32);
  opacity: 0;
  pointer-events: none;
}

#dante-launcher img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

#dante-launcher:focus {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

/* Iframe embed mode (#dante-iframe-slot on support.htm) */
/* Overrides site .card { padding: 19px } from extra css — this card only */
.card.dante-embed-card {
  padding: 0;
  overflow: hidden;
}

.dante-iframe-slot {
  min-height: 400px;
  width: 100%;
  position: relative;
}

.dante-iframe-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 600px;
  cursor: pointer;
  background-color: #f5f5f5;
  outline: none;
}

.dante-iframe-placeholder:hover {
  filter: brightness(0.98);
}

.dante-iframe-placeholder:focus {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

.dante-iframe-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  text-align: center;
  max-width: 22rem;
}

.dante-iframe-placeholder img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.dante-iframe-placeholder__cta {
  margin: 0;
  color: #212529;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.4;
}

.dante-iframe-placeholder__accent {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Height is set on the iframe element by dante.js (iframeHeight); min-height is a floor only */
.dante-iframe-slot iframe.dante-iframe-embed {
  width: 100%;
  border: 0;
  display: block;
  min-height: 420px;
}