.ccb-floating-bubble {
  --ccb-dark: var(--navy-950, #08090d);
  --ccb-deep: var(--navy-900, #111827);
  --ccb-panel: var(--navy-800, #1a2035);
  --ccb-panel-soft: var(--navy-700, #232d44);
  --ccb-blue: var(--b500, #3b82f6);
  --ccb-blue-dark: var(--b600, #2563eb);
  --ccb-gold: var(--a500, #f59e0b);
  --ccb-gold-hover: var(--a400, #fbbf24);
  --ccb-text: var(--tx, #f1f5f9);
  --ccb-muted: var(--txm, #94a3b8);
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 100020;
  width: 74px;
  height: 74px;
  color: var(--ccb-text);
  font-family: var(--font-ui, "Plus Jakarta Sans", system-ui, sans-serif);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ccb-floating-bubble .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ccb-floating-bubble.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.ccb-floating-bubble a,
.ccb-floating-bubble a:hover,
.ccb-floating-bubble a:focus {
  text-decoration: none !important;
}

.ccb-floating-bubble__trigger {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ccb-gold-hover);
  cursor: pointer;
  text-shadow:
    0 4px 0 rgba(8, 9, 13, 0.28),
    0 12px 24px rgba(0, 0, 0, 0.38);
  transition: transform 160ms ease, filter 160ms ease;
}

.ccb-floating-bubble__trigger::before {
  content: none;
}

.ccb-floating-bubble__trigger::after {
  content: none;
}

.ccb-floating-bubble__trigger:hover,
.ccb-floating-bubble__trigger:focus {
  filter: drop-shadow(0 10px 22px rgba(245, 158, 11, 0.22));
  transform: translateY(-4px) scale(1.03);
  outline: 0;
}

.ccb-floating-bubble__trigger-icon {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 46px;
  line-height: 1;
  transform-origin: 50% 88%;
  animation: ccb-floating-trophy-wiggle 2600ms ease-in-out infinite;
}

.ccb-floating-bubble__badge {
  position: absolute;
  top: 8px;
  right: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--ccb-blue-dark);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease;
}

.ccb-floating-bubble__trigger:hover .ccb-floating-bubble__badge,
.ccb-floating-bubble__trigger:focus .ccb-floating-bubble__badge {
  transform: scale(1.08) rotate(8deg);
}

@keyframes ccb-floating-trophy-wiggle {
  0%,
  68%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  74% {
    transform: rotate(-9deg) translateY(-1px);
  }

  80% {
    transform: rotate(8deg) translateY(0);
  }

  86% {
    transform: rotate(-5deg) translateY(-1px);
  }

  92% {
    transform: rotate(3deg) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccb-floating-bubble__trigger-icon {
    animation: none;
  }
}

.ccb-floating-bubble__panel {
  position: absolute;
  right: 0;
  bottom: 92px;
  display: grid;
  gap: 8px;
  width: min(324px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-top: 2px solid var(--ccb-blue);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 6%, rgba(245, 158, 11, 0.12), transparent 30%),
    linear-gradient(145deg, var(--ccb-deep) 0%, var(--ccb-panel) 100%);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ccb-floating-bubble.is-open .ccb-floating-bubble__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ccb-floating-bubble__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ccb-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ccb-floating-bubble__close:hover,
.ccb-floating-bubble__close:focus {
  background: rgba(245, 158, 11, 0.16);
  color: var(--ccb-gold-hover);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
  transform: rotate(90deg) scale(1.06);
  outline: 0;
}

.ccb-floating-bubble__title {
  padding-right: 32px;
  color: var(--ccb-gold-hover);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ccb-floating-bubble__item {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ccb-text);
  text-decoration: none !important;
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ccb-floating-bubble__item::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(16deg) translateX(-200%);
  pointer-events: none;
}

.ccb-floating-bubble__item .ccb-brand-image {
  flex: 0 0 auto;
  width: 46px;
  max-width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  object-fit: contain;
  padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, filter 160ms ease;
}

.ccb-floating-bubble__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ccb-floating-bubble__item:hover,
.ccb-floating-bubble__item:focus {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transform: translateX(-3px);
}

.ccb-floating-bubble__item:hover::before,
.ccb-floating-bubble__item:focus::before {
  animation: ccb-floating-item-shine 720ms ease;
}

.ccb-floating-bubble__item:hover .ccb-brand-image,
.ccb-floating-bubble__item:focus .ccb-brand-image {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.04);
}

@keyframes ccb-floating-item-shine {
  from {
    transform: rotate(16deg) translateX(-200%);
  }

  to {
    transform: rotate(16deg) translateX(700%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccb-floating-bubble,
  .ccb-floating-bubble__trigger,
  .ccb-floating-bubble__badge,
  .ccb-floating-bubble__panel,
  .ccb-floating-bubble__close,
  .ccb-floating-bubble__item,
  .ccb-floating-bubble__item .ccb-brand-image {
    transition: none;
  }

  .ccb-floating-bubble__item:hover::before,
  .ccb-floating-bubble__item:focus::before {
    animation: none;
  }
}

.ccb-floating-bubble__copy strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.ccb-floating-bubble__copy span {
  color: var(--ccb-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .ccb-floating-bubble {
    right: 10px;
    bottom: 78px;
    width: 68px;
    height: 68px;
  }

  .ccb-floating-bubble__trigger {
    width: 68px;
    height: 68px;
  }

  .ccb-floating-bubble__trigger-icon {
    font-size: 42px;
  }

  .ccb-floating-bubble__panel {
    bottom: 84px;
    width: min(280px, calc(100vw - 20px));
  }
}
