.ccb-popup {
  --ccb-dark: #07351f;
  --ccb-deep: #052719;
  --ccb-green: #145a38;
  --ccb-panel: #1d5b3b;
  --ccb-gold: #f8bd25;
  --ccb-gold-hover: #ffcd38;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

html.ccb-popup-open body {
  overflow: hidden;
}

.ccb-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

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

.ccb-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 27, 17, 0.72);
}

.ccb-popup__dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(248, 189, 37, 0.18);
  border-radius: 14px;
  background: var(--ccb-dark);
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(4, 27, 17, 0.42);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.ccb-popup.is-open .ccb-popup__dialog {
  transform: translateY(0) scale(1);
}

.ccb-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.ccb-popup__header {
  padding: 28px 58px 16px 28px;
  border-top: 4px solid #43c879;
  background:
    radial-gradient(circle at top right, rgba(67, 200, 121, 0.18), transparent 34%),
    linear-gradient(135deg, var(--ccb-deep) 0%, var(--ccb-green) 100%);
  color: #ffffff;
  text-align: center;
}

.ccb-popup__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--ccb-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ccb-popup__header h2 {
  margin: 0;
  color: inherit;
  font-size: 28px;
  line-height: 1.15;
}

.ccb-popup__brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.ccb-popup__brand-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.ccb-popup__brand-card .ccb-brand-image {
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.ccb-popup__brand-card strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.ccb-popup__brand-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.45;
}

.ccb-popup__brand-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--ccb-gold-hover) 0%, var(--ccb-gold) 100%);
  color: #12351f;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(248, 189, 37, 0.18);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ccb-popup__brand-card a:hover,
.ccb-popup__brand-card a:focus {
  background: #ffd85a;
  color: #12351f;
  box-shadow: 0 14px 28px rgba(248, 189, 37, 0.28);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .ccb-popup {
    padding: 12px;
  }

  .ccb-popup__header {
    padding: 24px 54px 14px 18px;
  }

  .ccb-popup__header h2 {
    font-size: 24px;
  }

  .ccb-popup__brands {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .ccb-popup__brand-card {
    min-height: 0;
  }
}
