.ccb-floating-bubble {
  --ccb-card: #111827;
  --ccb-alt: #151c2e;
  --ccb-text: #f1f5f9;
  --ccb-muted: #94a3b8;
  --ccb-light: #64748b;
  --ccb-accent: #3dc372;
  --ccb-accent-light: #6ee7a8;
  --ccb-accent-dark: #0a0e1a;
  --ccb-orange: #f5a623;
  --ccb-orange-light: #ffbe55;
  --ccb-border: rgba(255, 255, 255, 0.09);
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 100020;
  width: 74px;
  height: 74px;
  color: var(--ccb-text);
  font-family: "DM 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:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(135deg, var(--ccb-orange-light) 0%, var(--ccb-orange) 48%, #e8930a 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    inset 0 -10px 18px rgba(10, 14, 26, 0.2),
    0 0 0 8px rgba(61, 195, 114, 0.1),
    0 16px 36px rgba(10, 14, 26, 0.28);
  text-shadow:
    0 3px 0 rgba(10, 14, 26, 0.2),
    0 14px 24px rgba(10, 14, 26, 0.32);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.ccb-floating-bubble__trigger::before,
.ccb-floating-bubble__trigger::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.ccb-floating-bubble__trigger::before {
  background:
    conic-gradient(from 0deg, rgba(61, 195, 114, 0.18), rgba(245, 166, 35, 0.28), rgba(255, 255, 255, 0.08), rgba(61, 195, 114, 0.18));
  filter: blur(1px);
  opacity: 0.9;
  animation: ccb-floating-bg-spin 5200ms linear infinite;
}

.ccb-floating-bubble__trigger::after {
  inset: -18px;
  background: radial-gradient(circle, rgba(61, 195, 114, 0.2) 0%, rgba(61, 195, 114, 0.1) 34%, transparent 68%);
  animation: ccb-floating-bg-pulse 2400ms ease-in-out infinite;
}

.ccb-floating-bubble__trigger:hover,
.ccb-floating-bubble__trigger:focus {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 -10px 18px rgba(10, 14, 26, 0.18),
    0 0 0 10px rgba(61, 195, 114, 0.14),
    0 20px 42px rgba(10, 14, 26, 0.34);
  filter: drop-shadow(0 14px 24px rgba(245, 166, 35, 0.22));
  transform: translateY(-3px) scale(1.03);
  outline: 0;
}

.ccb-floating-bubble__trigger-icon {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 50px;
  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: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #e44e56;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.26);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ccb-floating-bubble__trigger:hover .ccb-floating-bubble__badge,
.ccb-floating-bubble__trigger:focus .ccb-floating-bubble__badge {
  background: var(--ccb-orange);
  color: var(--ccb-accent-dark);
  transform: scale(1.08) rotate(8deg);
}

.ccb-floating-bubble__panel {
  position: absolute;
  right: 0;
  bottom: 88px;
  display: grid;
  gap: 8px;
  width: min(342px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--ccb-border);
  border-top: 3px solid var(--ccb-accent);
  border-radius: var(--rl, 16px);
  background:
    radial-gradient(circle at 88% 6%, rgba(245, 166, 35, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(21, 28, 46, 0.98) 100%);
  box-shadow: 0 22px 58px rgba(4, 6, 11, 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: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  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, 166, 35, 0.14);
  color: var(--ccb-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.14);
  transform: rotate(90deg) scale(1.06);
  outline: 0;
}

.ccb-floating-bubble__title {
  padding-right: 34px;
  color: var(--ccb-accent-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ccb-floating-bubble__item {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--ccb-border);
  border-radius: var(--r, 12px);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ccb-text);
  text-decoration: none !important;
  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: 56px;
  max-width: 56px;
  height: 56px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  padding: 0;
  background: transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

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

.ccb-floating-bubble__copy strong {
  color: var(--ccb-text);
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

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

.ccb-floating-bubble__item:hover,
.ccb-floating-bubble__item:focus {
  background: rgba(61, 195, 114, 0.09);
  border-color: rgba(61, 195, 114, 0.28);
  color: var(--ccb-text);
  box-shadow: 0 12px 28px rgba(4, 6, 11, 0.22);
  transform: translateX(-3px);
  outline: 0;
}

.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.06);
}

@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);
  }
}

@keyframes ccb-floating-bg-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ccb-floating-bg-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.84;
    transform: scale(1.08);
  }
}

@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__trigger-icon,
  .ccb-floating-bubble__trigger::before,
  .ccb-floating-bubble__trigger::after,
  .ccb-floating-bubble__item:hover::before,
  .ccb-floating-bubble__item:focus::before {
    animation: none;
  }
}

@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: 46px;
  }

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