.ccb-floating-bubble {
  --ccb-dark: #07351f;
  --ccb-green: #145a38;
  --ccb-gold: #f8bd25;
  --ccb-gold-hover: #ffcd38;
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 99980;
  width: 74px;
  height: 74px;
  color: #ffffff;
  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: 2px solid rgba(255, 232, 139, 0.88);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffdc61 0%, var(--ccb-gold-hover) 38%, var(--ccb-gold) 100%);
  color: #07351f;
  cursor: pointer;
  box-shadow:
    0 0 0 6px rgba(248, 189, 37, 0.16),
    0 16px 36px rgba(4, 39, 25, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ccb-floating-bubble__trigger::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 2px solid rgba(67, 200, 121, 0.42);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.88);
  animation: ccb-floating-pulse 1800ms ease-out infinite;
}

.ccb-floating-bubble__trigger:hover,
.ccb-floating-bubble__trigger:focus {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 6px rgba(248, 189, 37, 0.22),
    0 18px 40px rgba(4, 39, 25, 0.34);
  outline: 0;
}

.ccb-floating-bubble__trigger-icon {
  font-size: 30px;
  line-height: 1;
}

.ccb-floating-bubble__badge {
  position: absolute;
  top: 8px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #e33a32;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

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

  70% {
    opacity: 0;
    transform: scale(1.24);
  }

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

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

.ccb-floating-bubble__panel {
  position: absolute;
  right: 0;
  bottom: 92px;
  display: grid;
  gap: 8px;
  width: min(300px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(248, 189, 37, 0.18);
  border-top: 3px solid #43c879;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ccb-dark) 0%, var(--ccb-green) 100%);
  box-shadow: 0 18px 48px rgba(4, 39, 25, 0.34);
  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.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.ccb-floating-bubble__title {
  padding-right: 32px;
  color: var(--ccb-gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ccb-floating-bubble__item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none !important;
  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;
  max-width: 70px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

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

.ccb-floating-bubble__item:hover,
.ccb-floating-bubble__item:focus {
  background: rgba(248, 189, 37, 0.16);
  border-color: rgba(248, 189, 37, 0.34);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(4, 39, 25, 0.18);
  transform: translateX(-3px);
}

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

.ccb-floating-bubble__copy span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  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__panel {
    bottom: 84px;
    width: min(280px, calc(100vw - 20px));
  }
}
