.ccb-sticky-bottom {
  --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: 0;
  bottom: 0;
  left: 0;
  z-index: 99990;
  color: var(--ccb-text);
  font-family: var(--f, "Plus Jakarta Sans", system-ui, sans-serif);
  pointer-events: none;
  transform: translateY(0);
  transition: transform 180ms ease, opacity 180ms ease;
  animation: ccb-sticky-slide-in 520ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.ccb-sticky-bottom.is-hidden {
  animation: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}

.ccb-sticky-bottom a,
.ccb-sticky-bottom a:hover,
.ccb-sticky-bottom a:focus {
  text-decoration: none !important;
}

.ccb-sticky-bottom__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto 10px;
  padding: 8px 10px 8px 8px;
  overflow: hidden;
  border: 1px solid var(--ccb-border);
  border-left: 4px solid var(--ccb-orange);
  border-radius: var(--rl, 16px);
  background:
    linear-gradient(90deg, rgba(255, 214, 0, 0.12) 0%, transparent 22%),
    radial-gradient(circle at 92% 18%, rgba(82, 51, 160, 0.14), 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 46px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ccb-sticky-bottom__inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 214, 0, 0.68), rgba(82, 51, 160, 0.36), transparent);
  pointer-events: none;
}

.ccb-sticky-bottom__inner::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -24%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(18deg) translateX(-160%);
  pointer-events: none;
}

.ccb-sticky-bottom__inner:hover {
  border-color: rgba(82, 51, 160, 0.28);
  box-shadow: var(--sh-lg, 0 4px 16px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06)), 0 20px 52px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.ccb-sticky-bottom__inner:hover::after {
  animation: ccb-sticky-shine 900ms ease;
}

.ccb-sticky-bottom__brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 278px;
  padding: 4px 12px 4px 4px;
  border-right: 1px solid var(--ccb-border);
}

.ccb-sticky-bottom__brand .ccb-banner-image {
  flex: 0 0 auto;
  width: 108px;
  height: 84px;
  border-radius: var(--rs, 8px);
  object-fit: contain;
  padding: 7px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 214, 0, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--ccb-border);
  transition: transform 180ms ease, filter 180ms ease;
}

.ccb-sticky-bottom__inner:hover .ccb-sticky-bottom__brand .ccb-banner-image {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.03);
}

.ccb-sticky-bottom__brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ccb-sticky-bottom__label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(255, 214, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 214, 0, 0.08);
  color: var(--ccb-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ccb-sticky-bottom__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ccb-orange-light);
  box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.12);
}

.ccb-sticky-bottom__brand strong {
  color: var(--ccb-text);
  font-family: var(--fb, "Cormorant Garamond", Georgia, serif);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.ccb-sticky-bottom__text {
  position: relative;
  margin: 0;
  padding-left: 4px;
  color: var(--ccb-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

.ccb-sticky-bottom__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--g-gold, linear-gradient(135deg, #c9a000 0%, #f5c518 50%, #c9a000 100%));
  color: var(--text-on-gold, #0d0720);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--gold-glow, rgba(255, 214, 0, 0.25));
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.ccb-sticky-bottom__cta::after {
  content: ">";
  margin-left: 8px;
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}

.ccb-sticky-bottom__cta:hover,
.ccb-sticky-bottom__cta:focus {
  color: var(--text-on-gold, #0d0720);
  filter: brightness(1.04);
  box-shadow: 0 8px 26px var(--gold-glow, rgba(255, 214, 0, 0.34));
  transform: translateY(-2px);
  outline: 0;
}

.ccb-sticky-bottom__cta:hover::after,
.ccb-sticky-bottom__cta:focus::after {
  transform: translateX(3px);
}

.ccb-sticky-bottom__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ccb-muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ccb-sticky-bottom__close:hover,
.ccb-sticky-bottom__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;
}

@keyframes ccb-sticky-slide-in {
  from {
    opacity: 0;
    transform: translateY(112%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ccb-sticky-shine {
  from {
    transform: rotate(18deg) translateX(-160%);
  }

  to {
    transform: rotate(18deg) translateX(680%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccb-sticky-bottom {
    animation: none;
  }

  .ccb-sticky-bottom__inner,
  .ccb-sticky-bottom__inner::after,
  .ccb-sticky-bottom__brand .ccb-banner-image,
  .ccb-sticky-bottom__close {
    transition: none;
  }

  .ccb-sticky-bottom__inner:hover::after {
    animation: none;
  }
}

@media (max-width: 760px) {
  .ccb-sticky-bottom__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: calc(100% - 16px);
    margin-bottom: 8px;
    padding: 10px;
  }

  .ccb-sticky-bottom__brand,
  .ccb-sticky-bottom__text {
    grid-column: 1 / -1;
  }

  .ccb-sticky-bottom__brand {
    min-width: 0;
    padding-right: 0;
    border-right: 0;
  }

  .ccb-sticky-bottom__brand .ccb-banner-image {
    width: 98px;
    height: 76px;
  }

  .ccb-sticky-bottom__brand strong {
    font-size: 22px;
  }

  .ccb-sticky-bottom__text {
    font-size: 13px;
  }

  .ccb-sticky-bottom__cta {
    grid-column: 1 / -1;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .ccb-sticky-bottom__close {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}
