/* ============================================================
   DANCEFLOW — Cookie Consent UI
   ============================================================ */

/* --- Banner (bottom strip) --- */
#df-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: #1c1c1c;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px clamp(1.25rem, 4vw, 4rem);
  display: none;
  box-shadow: 0 -4px 32px rgba(0,0,0,.22);
  animation: dfCookieUp .3s ease;
}
@keyframes dfCookieUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.df-cb__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.df-cb__text { flex: 1; min-width: 220px; }
.df-cb__title {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.df-cb__desc {
  font-family: 'Inter', sans-serif;
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
}
.df-cb__desc a { color: #dcb040; text-decoration: underline; text-underline-offset: 3px; }
.df-cb__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.df-cb__btn {
  font-family: 'Inter', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .15s, border-color .15s, color .15s;
  line-height: 1;
}
.df-cb__btn:hover { transform: translateY(-1px); }
.df-cb__btn--accept {
  background: #dcb040;
  color: #131313;
  border: none;
}
.df-cb__btn--accept:hover { background: #c89a28; }
.df-cb__btn--customize {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.38);
}
.df-cb__btn--customize:hover { border-color: #fff; }
.df-cb__btn--reject {
  background: transparent;
  color: rgba(255,255,255,.5);
  border: 1.5px solid transparent;
  padding: 10px 12px;
}
.df-cb__btn--reject:hover { color: #fff; }

/* --- Re-open settings button (shown after decision) --- */
#df-cookie-settings-btn {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 9997;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c1c1c;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  color: #dcb040;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s, box-shadow .15s;
}
#df-cookie-settings-btn:hover {
  background: #2a2a2a;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}

/* --- Modal overlay --- */
#df-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#df-cookie-modal.open { display: flex; }

/* --- Modal card --- */
.df-cm__card {
  background: #fff;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  max-height: 90dvh;
  overflow-y: auto;
  animation: dfCookieIn .25s ease;
}
@keyframes dfCookieIn {
  from { transform: scale(.96) translateY(8px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);   opacity: 1; }
}
.df-cm__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.df-cm__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #131313;
}
.df-cm__close {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.df-cm__close:hover { background: #f3f3f3; color: #131313; }
.df-cm__desc {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}
.df-cm__desc a { color: #8b6a10; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- Category rows --- */
.df-cm__categories { display: flex; flex-direction: column; }
.df-cm__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.df-cm__cat:last-child { border-bottom: none; }
.df-cm__cat-info { flex: 1; }
.df-cm__cat-name {
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 3px;
}
.df-cm__cat-desc {
  font-family: 'Inter', sans-serif;
  font-size: .8125rem;
  color: #666;
  line-height: 1.5;
}

/* --- Toggle switch --- */
.df-cm__toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  cursor: pointer;
}
.df-cm__toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.df-cm__toggle-track {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 999px;
  transition: background .2s;
}
.df-cm__toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
}
.df-cm__toggle input:checked + .df-cm__toggle-track { background: #dcb040; }
.df-cm__toggle input:checked + .df-cm__toggle-track::after { transform: translateX(20px); }
.df-cm__toggle input:disabled + .df-cm__toggle-track { cursor: not-allowed; opacity: .5; }

/* --- Modal action buttons --- */
.df-cm__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.df-cm__btn {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: center;
  transition: background .15s, transform .15s, border-color .15s, color .15s;
}
.df-cm__btn:hover { transform: translateY(-1px); }
.df-cm__btn--primary {
  background: #dcb040;
  color: #131313;
}
.df-cm__btn--primary:hover { background: #c89a28; }
.df-cm__btn--save {
  background: #1c1c1c;
  color: #fff;
}
.df-cm__btn--save:hover { background: #2a2a2a; }
.df-cm__btn--reject {
  background: transparent;
  color: #555;
  border: 1.5px solid rgba(0,0,0,.15);
}
.df-cm__btn--reject:hover { color: #131313; border-color: rgba(0,0,0,.3); }

/* --- Mobile --- */
@media (max-width: 600px) {
  .df-cb__actions { width: 100%; }
  .df-cb__btn { flex: 1; text-align: center; }
  .df-cm__card { padding: 24px 18px; }
}
