.ccb-sticky-bottom {
  --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: 0;
  bottom: 0;
  left: 0;
  z-index: 99990;
  color: var(--ccb-ink);
  font-family: "DM Sans", system-ui, sans-serif;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 180ms ease, opacity 180ms ease;
  animation: ccb-sticky-slide-in 500ms 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 rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.94)),
    var(--ccb-surface);
  box-shadow: 0 18px 46px rgba(14, 20, 32, 0.18);
  pointer-events: auto;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.ccb-sticky-bottom__inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ccb-red), var(--ccb-gold), var(--ccb-teal));
  pointer-events: none;
}

.ccb-sticky-bottom__inner:hover {
  box-shadow: 0 22px 54px rgba(14, 20, 32, 0.22);
  transform: translateY(-2px);
}

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

.ccb-sticky-bottom__brand .ccb-banner-image {
  flex: 0 0 auto;
  width: 108px;
  height: 76px;
  border-radius: 6px;
  object-fit: contain;
  padding: 7px;
  background:
    linear-gradient(135deg, rgba(20, 125, 116, 0.08), rgba(243, 183, 53, 0.12)),
    #ffffff;
  box-shadow: inset 0 0 0 1px var(--ccb-line);
  transition: transform 180ms ease, filter 180ms ease;
}

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

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

.ccb-sticky-bottom__label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f5f3;
  color: var(--ccb-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.ccb-sticky-bottom__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ccb-gold);
}

.ccb-sticky-bottom__brand strong {
  color: var(--ccb-ink);
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.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: 42px;
  padding: 0 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ccb-red), var(--ccb-red-dark));
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
  transition: background 160ms ease, 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: #ffffff;
  background: linear-gradient(135deg, var(--ccb-red-dark), var(--ccb-red));
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
  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: 1px solid var(--ccb-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ccb-muted);
  cursor: pointer;
  font-size: 23px;
  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: var(--ccb-ink);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 32, 51, 0.12);
  transform: rotate(90deg);
  outline: 0;
}

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

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

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

  .ccb-sticky-bottom__inner,
  .ccb-sticky-bottom__brand .ccb-banner-image,
  .ccb-sticky-bottom__cta,
  .ccb-sticky-bottom__cta::after,
  .ccb-sticky-bottom__close {
    transition: 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 10px 10px;
  }

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

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

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

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

  .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: 12px;
    right: 10px;
  }
}
