.cb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.cb-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cb-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(440px, calc(100% - 24px));
  background: #fffdf9;
  border: 1px solid rgba(54, 75, 62, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 90;
}

.cb-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cb-inner {
  padding: 20px;
}

.cb-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cb-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(54, 75, 62, 0.08);
  display: grid;
  place-items: center;
  color: #364b3e;
  flex: 0 0 auto;
}

.cb-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cb-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.cb-text {
  color: #6b665c;
  font-size: 0.95rem;
}

.cb-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cb-btn {
  appearance: none;
  border: 1px solid rgba(54, 75, 62, 0.12);
  background: #fff;
  color: #1f1d18;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.cb-btn--accept {
  background: #364b3e;
  color: #fff;
  border-color: transparent;
}

.cb-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(54, 75, 62, 0.12);
}

.cb-settings.open {
  display: block;
}

.cb-setting-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.cb-setting-name {
  font-weight: 700;
}

.cb-setting-desc {
  color: #6b665c;
  font-size: 0.9rem;
}

.cb-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.cb-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.cb-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd3cd;
}

.cb-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.cb-toggle input:checked + .cb-toggle-track {
  background: #364b3e;
}

.cb-toggle input:checked + .cb-toggle-track::after {
  transform: translateX(20px);
}

@media (max-width: 640px) {
  .cb-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .cb-buttons {
    flex-direction: column;
  }
}
