.kcc-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 25, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  animation: fadeIn 0.4s ease forwards;
  isolation: isolate;
}
.kcc-overlay[hidden] { display: none !important; }
body.kcc-open { overflow: hidden; }
.kcc-modal {
  background: linear-gradient(145deg, #ffffff, #f6f7fb);
  color: #111;
  max-width: 560px;
  width: min(92%, 560px);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  opacity: 0;
  animation: popUp 0.35s ease-out forwards;
  will-change: transform, opacity;
}
.kcc-modal h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  background: linear-gradient(90deg, #0C2474, #3B60E4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kcc-modal p {
  margin: 0 0 14px;
  line-height: 1.5;
  color: #333;
}
.kcc-groups { margin-top: 10px; }
.kcc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.kcc-row em {
  opacity: 0.75;
  font-style: normal;
  color: #555;
}
.kcc-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}
.kcc-btn {
  appearance: none;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  line-height: 1;
  font-weight: 500;
  color: black;
}
.kcc-btn:hover {
  color: black;
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.kcc-btn:active { transform: translateY(0); }
.kcc-btn:focus-visible {
  outline: 2px solid #3B60E4;
  outline-offset: 2px;
}
.kcc-accept {
  background: linear-gradient(135deg, #0C2474, #3B60E4);
  color: #fff;
  border-color: #0C2474;
}
.kcc-accept:hover {
  color: #fff;
  background: linear-gradient(135deg, #0C2474, #274baf);
}
.kcc-manage-btn {
  cursor: pointer;
  color: #0C2474;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  background: #3B60E4;
  border: none;
  padding: 0;
}
.kcc-manage-btn:hover { color: #3B60E4; }
.kcc-manage-btn:focus-visible {
  outline: 2px solid #3B60E4;
  outline-offset: 2px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popUp {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kcc-overlay { animation: none; }
  .kcc-modal { animation: none; transform: none; opacity: 1; }
  .kcc-btn { transition: none; }
}
