.tcp-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999999;
  padding: 1rem;
  pointer-events: none;
}

.tcp-banner--bottom {
  bottom: 0;
}

.tcp-banner--top {
  top: 0;
}

.tcp-banner:not([hidden]) {
  pointer-events: auto;
}

.tcp-banner__panel {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  padding: 1.25rem 1.5rem;
}

.tcp-banner__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.tcp-banner__text {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: #444;
}

.tcp-banner__links {
  margin: 0 0 1rem;
}

.tcp-banner__policy {
  color: #c00;
  font-weight: 600;
  text-decoration: underline;
}

.tcp-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tcp-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tcp-btn--primary {
  background: #e00808;
  color: #fff;
}

.tcp-btn--ghost {
  background: #f3f3f3;
  color: #222;
}

.tcp-btn--outline {
  background: transparent;
  border: 1px solid #ccc;
  color: #222;
}

.tcp-prefs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.tcp-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eee;
}

.tcp-pref__label {
  display: block;
  margin-bottom: 0.25rem;
}

.tcp-pref__desc {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
}

.tcp-pref__badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  white-space: nowrap;
}

.tcp-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tcp-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tcp-switch__ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #ccc;
  transition: background 0.2s ease;
}

.tcp-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.tcp-switch input:checked + .tcp-switch__ui {
  background: #e00808;
}

.tcp-switch input:checked + .tcp-switch__ui::after {
  transform: translateX(20px);
}

.tcp-preferences-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.tcp-sr-only-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .tcp-banner__actions {
    flex-direction: column;
  }

  .tcp-btn {
    width: 100%;
  }
}
