/* Cookie Consent Bar */
#cookie-bar {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#cookie-bar .cb-inner {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
}

#cookie-bar .cb-text { margin-bottom: 24px; }
#cookie-bar .cb-text strong { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; }
#cookie-bar .cb-text p { color: #999; font-size: 13px; margin: 0; line-height: 1.6; }
#cookie-bar .cb-btns { display: flex; flex-direction: column; gap: 8px; }
#cookie-bar .cb-btn { font-family: inherit; font-size: 15px; font-weight: 600; height: 44px; line-height: 44px; padding: 0 24px; border-radius: 50px; border: none; cursor: pointer; white-space: nowrap; display: block; width: 100%; }
#cookie-bar .cb-btn.cb-primary { background: #dc2626; color: #fff; }
#cookie-bar .cb-btn.cb-primary:hover { background: #b91c1c; }
#cookie-bar .cb-btn.cb-outline { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; line-height: 42px; }
#cookie-bar .cb-btn.cb-outline:hover { background: rgba(255,255,255,0.15); }

/* Consent Modal */
#consent-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#consent-modal .cm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#consent-modal .cm-modal {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  max-width: 540px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

/* Header */
#consent-modal .cm-header {
  padding: 28px 28px 0;
}

#consent-modal .cm-header h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

/* Body */
#consent-modal .cm-body {
  padding: 16px 28px 8px;
}

#consent-modal .cm-body > p {
  color: #999;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

#consent-modal .cm-body > p a {
  color: #dc2626;
  text-decoration: none;
}

#consent-modal .cm-body > p a:hover {
  text-decoration: underline;
}

/* Purpose Group */
#consent-modal .cm-purpose {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 16px;
}

#consent-modal .cm-purpose-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

#consent-modal .cm-purpose-info {
  flex: 1;
}

#consent-modal .cm-purpose-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

#consent-modal .cm-purpose-desc {
  color: #888;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

#consent-modal .cm-expand {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  display: inline-block;
  font-family: inherit;
}

#consent-modal .cm-expand:hover {
  text-decoration: underline;
}

/* Individual Services (inside expanded purpose) */
#consent-modal .cm-services {
  margin-top: 12px;
  padding-left: 54px;
}

#consent-modal .cm-service {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

#consent-modal .cm-service:last-child {
  border-bottom: none;
}

#consent-modal .cm-service-info { flex: 1; }
#consent-modal .cm-service-title { color: #ccc; font-size: 14px; font-weight: 600; display: block; }
#consent-modal .cm-service-desc { color: #666; font-size: 12px; display: block; margin-top: 2px; }

/* Master Toggle */
#consent-modal .cm-master {
  margin-bottom: 8px;
  padding-top: 8px;
}

/* Toggle Switch */
#consent-modal .cm-toggle {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

#consent-modal .cm-toggle-sm {
  width: 34px;
  min-width: 34px;
  height: 18px;
}

#consent-modal .cm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

#consent-modal .cm-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 22px;
  transition: background 0.2s;
  cursor: pointer;
}

#consent-modal .cm-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

#consent-modal .cm-toggle-sm .cm-toggle-slider::before {
  width: 12px;
  height: 12px;
}

#consent-modal .cm-toggle input:checked + .cm-toggle-slider {
  background: #dc2626;
}

#consent-modal .cm-toggle input:checked + .cm-toggle-slider::before {
  transform: translateX(18px);
}

#consent-modal .cm-toggle-sm input:checked + .cm-toggle-slider::before {
  transform: translateX(16px);
}

/* Footer */
#consent-modal .cm-footer {
  padding: 20px 28px 28px;
}

#consent-modal .cm-footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#consent-modal .cm-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  height: 48px;
  line-height: 48px;
  padding: 0 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

#consent-modal .cm-btn:hover {
  background: rgba(255,255,255,0.15);
}

#consent-modal .cm-btn-accept-all {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

#consent-modal .cm-btn-accept-all:hover {
  background: #b91c1c !important;
}
