.cc-banner-wrapper {
  position: fixed;
  inset: auto 0 0;
  z-index: 20000;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.cc-banner {
  width: min(100%, 1100px);
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  border-radius: 16px 16px 0 0;
  padding: 1rem 1rem 1.25rem;
  color: #f0f0f0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}

.cc-banner h2 {
  font-size: 1rem;
  margin: 0 0 .75rem;
  line-height: 1.3;
}

.cc-banner p {
  margin: 0 0 .75rem;
  color: #b3b3b3;
  line-height: 1.6;
  font-size: .92rem;
}

.cc-banner .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
  min-width: 250px;
}

.cc-button,
.cc-footer-button {
  border-radius: 999px;
  padding: .92rem 1.2rem;
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}

.cc-button {
  background: #f0f0f0;
  color: #0d0d0d;
}

.cc-button:hover {
  background: #ffffff;
}

.cc-secondary {
  background: transparent;
  color: #e7e7e7;
  border-color: rgba(255,255,255,.2);
}

.cc-secondary:hover {
  color: #f7f7f7;
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
}

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20001;
  background: rgba(3, 3, 3, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cc-modal {
  width: min(100%, 600px);
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
}

.cc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cc-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cc-modal-body {
  overflow-y: auto;
  margin-top: 1rem;
  padding-right: .25rem;
}

.cc-cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cc-cookie-row:last-child {
  border-bottom: none;
}

.cc-cookie-title {
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .98rem;
  line-height: 1.35;
  margin-top: 0;
}

.cc-cookie-description {
  color: #b3b3b3;
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

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

.cc-toggle input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

.cc-toggle-track {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  transition: background .18s ease;
}

.cc-toggle-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 50%;
  transition: transform .18s ease, background .18s ease;
}

.cc-toggle input:checked + .cc-toggle-track {
  background: #f0f0f0;
}

.cc-toggle input:checked + .cc-toggle-track .cc-toggle-handle {
  transform: translateX(18px);
  background: #0d0d0d;
}

.cc-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.cc-close-button {
  border: none;
  background: transparent;
  color: #b3b3b3;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cc-always-on {
  color: #f0f0f0;
  font-size: .78rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: .86;
}

.cc-link-row {
  margin-top: .75rem;
  font-size: .92rem;
  color: #b3b3b3;
}

.cc-footer-insert {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color .18s ease;
}

.cc-footer-insert:hover {
  color: #f0f0f0;
}

@media (max-width: 640px) {
  .cc-banner {
    border-radius: 14px 14px 0 0;
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .cc-banner-wrapper {
    padding: 0;
  }

  .cc-banner h2 {
    font-size: 1rem;
  }

  .cc-banner .cc-actions {
    min-width: 0;
    justify-content: stretch;
  }

  .cc-banner .cc-actions .cc-button {
    flex: 1 1 140px;
  }

  .cc-modal {
    width: 100%;
    padding: 1rem;
    border-radius: 18px;
  }

  .cc-cookie-row {
    grid-template-columns: 1fr;
    gap: .75rem;
    align-items: start;
  }

  .cc-modal-footer {
    justify-content: stretch;
  }

  .cc-modal-footer .cc-button {
    flex: 1 1 180px;
  }
}
