/*!
 * BMG Chat-Exit-Intent — Layer-Styles (v1, 2026-08-03)
 * Light-Glass, Navy/Teal, W300. Bewusst KEIN Dark-Mode-Block.
 * Praefix bmgxi- kollidiert nicht mit bmgcb- (Chatbot-SDK).
 */

.bmgxi-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* ueber dem Chat-Widget */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 26, 47, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bmgxi-overlay.bmgxi-visible { opacity: 1; }

.bmgxi-box {
  position: relative;
  width: 100%;
  max-width: 30rem;
  padding: 2.75rem 2.5rem 2.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(10, 26, 47, 0.18);
  text-align: center;
  font-family: inherit;
  font-weight: 300;
  color: #0a1a2f;
  transform: translateY(8px);
  transition: transform 0.24s ease;
}

.bmgxi-visible .bmgxi-box { transform: translateY(0); }

.bmgxi-x {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(10, 26, 47, 0.35);
  cursor: pointer;
  transition: color 0.15s ease;
}
.bmgxi-x:hover { color: #0a1a2f; }

.bmgxi-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f9b8e;
}

.bmgxi-title {
  margin: 0 0 0.9rem;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.3;
  color: #0a1a2f;
}

.bmgxi-text {
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10, 26, 47, 0.75);
}
.bmgxi-text strong { font-weight: 500; color: #0a1a2f; }

.bmgxi-code {
  display: block;
  margin: 0 0 0.7rem;
  padding: 1rem 1.25rem;
  background: #f7fcff;
  border: 1px dashed rgba(31, 155, 142, 0.5);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bmgxi-code:hover,
.bmgxi-code:focus {
  background: #f0f9fc;
  border-color: #1f9b8e;
  outline: none;
}

.bmgxi-code-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #0a1a2f;
}

.bmgxi-code-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(10, 26, 47, 0.5);
}
.bmgxi-code.bmgxi-copied { border-style: solid; border-color: #1f9b8e; }
.bmgxi-code.bmgxi-copied .bmgxi-code-hint { color: #1f9b8e; }

.bmgxi-note {
  margin: 0 0 1.6rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(10, 26, 47, 0.55);
}

.bmgxi-decline {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(10, 26, 47, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.bmgxi-decline:hover { color: #0a1a2f; }

@media (max-width: 480px) {
  .bmgxi-box { padding: 2.25rem 1.5rem 1.75rem; }
  .bmgxi-title { font-size: 1.2rem; }
  .bmgxi-code-value { font-size: 1.3rem; }
}
