/* Cookie Consent basic styles */
#cookie-consent-banner[hidden],
#cookie-preferences[hidden] {
  display: none !important;
}

#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10900;
  background: #0b1727;
  color: #fff;
  box-shadow: 0 -2px 16px rgba(0,0,0,.2);
}
#cookie-consent-banner .cc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
#cookie-consent-banner .cc-text {
  flex: 1 1 320px;
  font-size: var(--dbim-p2); /* DBIM Body token (12px mobile, 14px desktop) */
  line-height: 1.5;
}
#cookie-consent-banner .cc-actions {
  display: flex;
  gap: 8px;
}
#cookie-consent-banner .cc-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
#cookie-consent-banner .cc-btn.primary {
  background: #0d6efd;
  border-color: #0d6efd;
}
#cookie-consent-banner .cc-link {
  color: #86b7fe;
  text-decoration: underline;
}

/* Preferences overlay */
#cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0,0,0,.5);
}
#cookie-preferences .cc-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100% - 32px));
  background: #fff;
  color: #111;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
#cookie-preferences .cc-header,
#cookie-preferences .cc-footer {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}
#cookie-preferences .cc-header {
  font-weight: 600;
}
#cookie-preferences .cc-body {
  padding: 12px 16px;
}
#cookie-preferences .cc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}
#cookie-preferences .cc-row:last-child {
  border-bottom: 0;
}
#cookie-preferences .cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#cookie-preferences .cc-toggle .form-check {
  min-height: 0;
  margin-bottom: 0;
}
#cookie-preferences .cc-toggle .form-check-input {
  float: none;
  margin: 0;
  cursor: pointer;
}
#cookie-preferences .cc-toggle .form-check-input:disabled {
  cursor: not-allowed;
}
#cookie-preferences .cc-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
#cookie-preferences .cc-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #111;
  cursor: pointer;
}
#cookie-preferences .cc-btn.primary {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}


/* Cookie settings button in footer */
#cookieSettingsBtn {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#cookieSettingsBtn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

#cookieSettingsBtn:focus {
  outline: 2px solid var(--dbim-primary-dark);
  outline-offset: 2px;
}

/* Custom responsive positioning class for accessibility button */
.position-absolute.top-40-zoom {
  top: 40% !important;
}

@media screen and (max-width: 768px) {
  .position-absolute.top-40-zoom {
    top: 50% !important;
  }
}
