/* ── BubbleKids Cookie Consent — Modal design ─────────────────────────────── */

/* Blurred overlay */
#bk-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: bkCcFadeIn .3s ease;
}
@keyframes bkCcFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Card */
#bk-cookie-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.25rem 2rem 2rem;
  max-width: 430px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .28);
  animation: bkCcSlideUp .38s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes bkCcSlideUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Icon */
.bk-cc-icon {
  font-size: 2.4rem;
  margin-bottom: .65rem;
  line-height: 1;
}

/* Headings */
#bk-cookie-card h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1a2332;
  margin: 0 0 .55rem;
  line-height: 1.3;
}

/* Main view body text */
.bk-cc-desc {
  font-size: .875rem;
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.6rem;
}

/* Action button group */
.bk-cc-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.bk-cc-btn {
  display: block;
  width: 100%;
  padding: .72rem 1.2rem;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
.bk-cc-btn:hover  { opacity: .87; transform: translateY(-1px); }
.bk-cc-btn:active { transform: translateY(0); opacity: 1; }

.bk-cc-btn-primary {
  background: linear-gradient(135deg, #0288d1, #29b6f6);
  color: #fff;
  box-shadow: 0 5px 18px rgba(41, 182, 246, .38);
  font-size: .95rem;
}
.bk-cc-btn-primary:hover { box-shadow: 0 7px 24px rgba(41, 182, 246, .48); }

.bk-cc-btn-outline {
  background: transparent;
  border-color: #dee2e6;
  color: #555;
}
.bk-cc-btn-ghost {
  background: transparent;
  border: none;
  color: #adb5bd;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ── Settings view ───────────────────────────────────────────────────────── */
.bk-cc-intro {
  font-size: .83rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 1.1rem;
}
.bk-cc-category {
  border: 2px solid #e9ecef;
  border-radius: 14px;
  padding: .85rem 1rem;
  margin-bottom: .55rem;
}
.bk-cc-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.bk-cc-cat-label {
  font-size: .88rem;
  font-weight: 800;
  color: #1a2332;
}
.bk-cc-cat-desc {
  font-size: .78rem;
  color: #868e96;
  line-height: 1.5;
  margin: .4rem 0 0;
}
.bk-cc-modal-btns {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: 1.1rem;
}

/* ── Toggle switch ───────────────────────────────────────────────────────── */
.bk-cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}
.bk-cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.bk-cc-toggle-track {
  position: absolute;
  inset: 0;
  background: #ced4da;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.bk-cc-toggle input:checked + .bk-cc-toggle-track { background: #0288d1; }
.bk-cc-toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.bk-cc-toggle input:checked + .bk-cc-toggle-track::after { transform: translateX(20px); }
.bk-cc-toggle input:disabled + .bk-cc-toggle-track { cursor: not-allowed; opacity: .5; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #bk-cookie-card { padding: 1.75rem 1.25rem 1.5rem; border-radius: 20px; }
  #bk-cookie-card h2 { font-size: 1.15rem; }
}
