.ccb-floating-bubble {
  --ccb-ink: #172033;
  --ccb-muted: #5f6f86;
  --ccb-surface: #ffffff;
  --ccb-paper: #f6f8fb;
  --ccb-line: #dce4ee;
  --ccb-red: var(--blue, #2563eb);
  --ccb-red-dark: var(--blue-mid, #1d4ed8);
  --ccb-teal: var(--teal, #0891b2);
  --ccb-gold: var(--yellow, #eab308);
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 100020;
  width: 70px;
  height: 70px;
  color: var(--ccb-ink);
  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: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    linear-gradient(135deg, #ffffff, #f6f8fb);
  color: var(--ccb-gold);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(14, 20, 32, 0.2);
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.ccb-floating-bubble__trigger::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ccb-red), var(--ccb-gold), var(--ccb-teal));
  opacity: 0.16;
}

.ccb-floating-bubble__trigger::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -2;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.14);
  animation: ccb-floating-pulse 2200ms ease-out infinite;
}

.ccb-floating-bubble__trigger:hover,
.ccb-floating-bubble__trigger:focus {
  box-shadow: 0 18px 38px rgba(14, 20, 32, 0.24);
  filter: saturate(1.04);
  transform: translateY(-3px) scale(1.03);
  outline: 0;
}

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

.ccb-floating-bubble__badge {
  position: absolute;
  top: 4px;
  right: 3px;
  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-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.3);
  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-teal);
  transform: scale(1.08) rotate(8deg);
}

.ccb-floating-bubble__panel {
  position: absolute;
  right: 0;
  bottom: 86px;
  display: grid;
  gap: 8px;
  width: min(342px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 248, 251, 0.96), rgba(255, 255, 255, 0.98)),
    var(--ccb-surface);
  box-shadow: 0 24px 58px rgba(14, 20, 32, 0.24);
  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__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--ccb-teal), var(--ccb-gold), var(--ccb-red));
}

.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: 1px solid var(--ccb-line);
  border-radius: 50%;
  background: #ffffff;
  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: var(--ccb-ink);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 32, 51, 0.12);
  transform: rotate(90deg);
  outline: 0;
}

.ccb-floating-bubble__title {
  padding: 6px 34px 4px 0;
  color: var(--ccb-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  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-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ccb-ink);
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.06);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.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-ink);
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

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

.ccb-floating-bubble__item:hover,
.ccb-floating-bubble__item:focus {
  background: #fdfefe;
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--ccb-ink);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.12);
  transform: translateX(-3px);
  outline: 0;
}

.ccb-floating-bubble__item:hover .ccb-brand-image,
.ccb-floating-bubble__item:focus .ccb-brand-image {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.06);
}

@keyframes ccb-floating-pulse {
  0% {
    opacity: 0.72;
    transform: scale(0.92);
  }

  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

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

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

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

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

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

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

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

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

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

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