.ccb-sticky-bottom {
  --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-soft: var(--amber-100, #f2fcd8);
  --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: 0;
  bottom: 0;
  left: 0;
  z-index: 99990;
  color: var(--ccb-text);
  font-family: var(--font-ui, "DM Sans", system-ui, sans-serif);
  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: 16px;
  align-items: center;
  width: min(1140px, calc(100% - 24px));
  margin: 0 auto 12px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(26, 92, 68, 0.16);
  border-top: 3px solid var(--ccb-lime);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 20%, rgba(168, 232, 44, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 240, 0.98) 100%);
  box-shadow: var(--sh-lg, 0 16px 48px rgba(11, 46, 31, 0.1));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.ccb-sticky-bottom__inner:hover {
  border-color: rgba(26, 92, 68, 0.26);
  box-shadow: var(--sh-hover, 0 8px 28px rgba(11, 46, 31, 0.14));
  transform: translateY(-2px);
}

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

.ccb-sticky-bottom__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 312px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(26, 92, 68, 0.12);
  border-radius: 14px;
  background: rgba(242, 252, 216, 0.62);
}

.ccb-sticky-bottom__brand .ccb-banner-image {
  flex: 0 0 auto;
  width: 152px;
  height: 152px;
  border-radius: 12px;
  object-fit: contain;
  padding: 4px;
  background: transparent;
  transition: transform 180ms ease, filter 180ms ease;
}

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

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

.ccb-sticky-bottom__label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ccb-forest-mid);
  font-size: 11px;
  font-weight: 800;
  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-lime);
  box-shadow: 0 0 0 4px rgba(168, 232, 44, 0.22);
}

.ccb-sticky-bottom__brand strong {
  color: var(--ccb-forest);
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.08;
}

.ccb-sticky-bottom__text {
  margin: 0;
  color: var(--ccb-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.ccb-sticky-bottom__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ccb-lime) 0%, #7dd63e 100%);
  color: var(--ccb-forest-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(168, 232, 44, 0.28);
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.ccb-sticky-bottom__cta:hover,
.ccb-sticky-bottom__cta:focus {
  color: var(--ccb-forest-dark);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(168, 232, 44, 0.36);
  transform: translateY(-2px);
}

.ccb-sticky-bottom__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 46, 31, 0.08);
  color: var(--ccb-forest);
  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(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;
}

@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: 12px;
  }

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

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

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

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

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

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