.ccb-floating-bubble {
  --ccb-forest: var(--navy-900, #0b2e1f);
  --ccb-forest-dark: var(--navy-950, #041a10);
  --ccb-forest-mid: var(--navy-700, #1a5c44);
  --ccb-lime: var(--amber-500, #a8e82c);
  --ccb-lime-hover: var(--amber-400, #b8f044);
  --ccb-lime-soft: var(--amber-100, #f2fcd8);
  --ccb-cream: var(--cream, #faf8f0);
  --ccb-card: var(--card-bg, #ffffff);
  --ccb-border: var(--border, #d5ddd8);
  --ccb-text: var(--text, #1a2a20);
  --ccb-muted: var(--text-muted, #3d5a48);
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 100020;
  width: 74px;
  height: 74px;
  color: var(--ccb-text);
  font-family: var(--font-ui, "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: 1px solid rgba(168, 232, 44, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.2) 28%, transparent 48%),
    linear-gradient(135deg, var(--ccb-forest) 0%, var(--ccb-forest-dark) 100%);
  color: var(--ccb-lime);
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(4, 26, 16, 0.24),
    0 0 0 7px rgba(168, 232, 44, 0.14);
  text-shadow:
    0 3px 0 rgba(4, 26, 16, 0.22),
    0 14px 24px rgba(4, 26, 16, 0.28);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

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

.ccb-floating-bubble__trigger:hover,
.ccb-floating-bubble__trigger:focus {
  filter: drop-shadow(0 12px 22px rgba(168, 232, 44, 0.26));
  box-shadow:
    0 18px 38px rgba(4, 26, 16, 0.28),
    0 0 0 9px rgba(168, 232, 44, 0.2);
  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: var(--ccb-forest-mid);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(4, 26, 16, 0.22);
  transition: background 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-lime);
  color: var(--ccb-forest-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 rgba(26, 92, 68, 0.16);
  border-top: 3px solid var(--ccb-lime);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 6%, rgba(168, 232, 44, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 240, 0.98) 100%);
  box-shadow: 0 18px 52px rgba(4, 26, 16, 0.2);
  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(11, 46, 31, 0.08);
  color: var(--ccb-forest);
  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(168, 232, 44, 0.28);
  color: var(--ccb-forest-dark);
  box-shadow: 0 0 0 3px rgba(168, 232, 44, 0.18);
  transform: rotate(90deg) scale(1.06);
  outline: 0;
}

.ccb-floating-bubble__title {
  padding-right: 34px;
  color: var(--ccb-forest-mid);
  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 rgba(26, 92, 68, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  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(168, 232, 44, 0.24), 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-forest);
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  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: var(--ccb-lime-soft);
  border-color: rgba(26, 92, 68, 0.24);
  color: var(--ccb-text);
  box-shadow: 0 10px 22px rgba(11, 46, 31, 0.12);
  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-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__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));
  }
}
