/**
 * Unokidz cookie consent / privacy settings modal.
 */
.uc-consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  min-height: 100vh;
}

.uc-consent-modal {
  width: min(560px, 100%);
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.uc-consent-head {
  padding: 1.1rem 1.25rem 0.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.uc-consent-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.uc-consent-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.55);
}

.uc-consent-close:hover {
  color: rgba(15, 23, 42, 0.8);
}

.uc-consent-body {
  padding: 0.35rem 1.25rem 1.15rem;
}

.uc-consent-text {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
}

.uc-consent-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #ea580c;
}

.uc-consent-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.uc-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  border: 2px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.uc-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.uc-btn:active {
  transform: translateY(0);
}

.uc-btn:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.65);
  outline-offset: 3px;
}

.uc-btn--primary {
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(118deg, #38bdf8, #a78bfa, #fbbf24);
  color: #0b1220;
}

.uc-prefs {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 0.85rem;
  display: none;
}

.uc-prefs.is-open {
  display: block;
}

.uc-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
}

.uc-pref-row:last-child {
  border-bottom: none;
}

.uc-pref-meta {
  min-width: 0;
}

.uc-pref-name {
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  font-size: 0.95rem;
}

.uc-pref-sub {
  margin: 0.15rem 0 0;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.45;
}

.uc-toggle {
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.55);
  background: rgba(226, 232, 240, 0.65);
  position: relative;
  cursor: pointer;
}

.uc-toggle[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
}

.uc-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transition: left 0.16s ease;
}

.uc-toggle.is-on {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.55);
}

.uc-toggle.is-on::after {
  left: 26px;
}

