/* Original, brand-coloured interpretations of the public React Bits Pro demos. */
.wb-bits-frame {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
  opacity: .76;
  transition: opacity 240ms ease;
}
.wb-bits-frame svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.wb-bits-frame-trace {
  stroke: var(--cl-accent, #55b1f2);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 19 81;
  opacity: .72;
  animation: wb-bits-frame-orbit 13s linear infinite;
}
.wb-bits-frame-spark {
  stroke: #bdf2ff;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 2.5 97.5;
  filter: drop-shadow(0 0 3px #7bd4ff99);
  animation: wb-bits-frame-orbit 13s linear infinite;
}
.wb-bits-frame-pulse {
  stroke: #a0e9ff;
  stroke-width: 1.6;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.wb-bits-frame.is-pulsing .wb-bits-frame-pulse {
  animation: wb-bits-frame-pulse 800ms cubic-bezier(.2, .65, .25, 1) both;
}
.wb-bits-interactions :is(.cl-benefit, .cl-plan):is(:hover, :focus-within) > .wb-bits-frame {
  opacity: 1;
}
.wb-bits-interactions .cl-benefit:nth-child(2n) .wb-bits-frame-trace,
.wb-bits-interactions .cl-benefit:nth-child(2n) .wb-bits-frame-spark {
  animation-delay: -4.4s;
}
.wb-bits-interactions .cl-benefit:nth-child(3n) .wb-bits-frame-trace,
.wb-bits-interactions .cl-benefit:nth-child(3n) .wb-bits-frame-spark {
  animation-delay: -8.7s;
}
.wb-bits-frame[data-paused] *,
[data-wb-in-view="false"] .wb-bits-frame *,
[data-wb-active="false"] .wb-bits-frame * {
  animation-play-state: paused !important;
}
@keyframes wb-bits-frame-orbit {
  to { stroke-dashoffset: -100; }
}
@keyframes wb-bits-frame-pulse {
  0% { stroke-dashoffset: 100; opacity: 0; }
  16% { opacity: .9; }
  70% { stroke-dashoffset: 0; opacity: .75; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.wb-bits-preview {
  position: fixed;
  z-index: 1600;
  box-sizing: border-box;
  width: 280px;
  padding: 8px;
  border: 1px solid #73b2db66;
  border-radius: 14px;
  background: #0d1017f7;
  color: #c7edf7;
  box-shadow: 0 18px 55px #0009, 0 1px 0 #caf4ff20 inset;
  font-family: "Cortex Landing Manrope", Arial, sans-serif;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(7px) scale(.97);
  transform-origin: center bottom;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(.16, 1, .3, 1);
}
.wb-bits-preview[hidden] { display: none !important; }
.wb-bits-preview[data-open="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: wb-bits-preview-enter 220ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes wb-bits-preview-enter {
  from { opacity: 0; transform: translateY(7px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wb-bits-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  object-position: top center;
  border: 0;
  border-radius: 8px;
  background: #101524;
}
.wb-bits-preview-label {
  display: block;
  padding: 10px 4px 2px;
  overflow: hidden;
  color: #c7edf7;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .wb-bits-frame { display: none; }
  .wb-bits-preview, .wb-bits-preview[data-open="true"] { animation: none; transition: none; transform: none; }
}
@media print, (forced-colors: active) {
  .wb-bits-frame, .wb-bits-preview { display: none !important; }
}
