.ccb-floating-bubble {
  --ccb-card: var(--white, #ffffff);
  --ccb-alt: var(--surface-2, #f0ecfc);
  --ccb-text: var(--text, #1a1433);
  --ccb-muted: var(--text-2, #4a4068);
  --ccb-light: var(--text-3, #7b72a0);
  --ccb-accent: var(--violet, #5233a0);
  --ccb-accent-light: var(--lilac, #7c5cbf);
  --ccb-accent-dark: var(--ink, #0d0720);
  --ccb-orange: var(--gold, #f5c518);
  --ccb-orange-light: var(--gold-l, #ffd84d);
  --ccb-border: var(--border, #dcd5f0);
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 100020;
  width: 74px;
  height: 74px;
  color: var(--ccb-text);
  font-family: var(--f, "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-orange);
  cursor: pointer;
  text-shadow:
    0 3px 0 rgba(13, 7, 32, 0.18),
    0 14px 24px rgba(13, 7, 32, 0.26);
  transition: transform 160ms ease, filter 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(245, 197, 24, 0.28));
  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-accent);
  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(255, 214, 0, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 236, 252, 0.98) 100%);
  box-shadow: var(--sh-lg, 0 4px 16px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06)), 0 18px 52px rgba(0, 0, 0, 0.14);
  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(0, 0, 0, 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(255, 214, 0, 0.1);
  color: var(--ccb-accent);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.12);
  transform: rotate(90deg) scale(1.06);
  outline: 0;
}

.ccb-floating-bubble__title {
  padding-right: 34px;
  color: var(--ccb-accent);
  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.76);
  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: var(--fb, "Cormorant Garamond", Georgia, 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(82, 51, 160, 0.08);
  border-color: rgba(82, 51, 160, 0.26);
  color: var(--ccb-text);
  box-shadow: var(--sh, 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04));
  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));
  }
}
