/* Cookie consent banner - DN Detector */
.dnd-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid #334155;
  color: #f1f5f9;
  padding: 1rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.dnd-cookie-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.dnd-cookie-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.dnd-cookie-text a {
  color: #818cf8;
  text-decoration: underline;
}

.dnd-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dnd-cookie-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.dnd-cookie-btn:hover,
.dnd-cookie-btn:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.dnd-cookie-accept {
  background: #4338ca;
  border-color: #4338ca;
  color: #ffffff;
}

.dnd-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dnd-cookie-modal[hidden] {
  display: none !important;
}

.dnd-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.dnd-cookie-modal-panel {
  position: relative;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  max-width: 28rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  color: #f1f5f9;
  max-height: 90vh;
  overflow-y: auto;
}

.dnd-cookie-modal-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.dnd-cookie-modal-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.dnd-cookie-pref {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #334155;
}

.dnd-cookie-pref label {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dnd-cookie-pref p {
  margin: 0.35rem 0 0 1.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.dnd-cookie-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #10b981;
}

.dnd-cookie-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.dnd-cookie-banner[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .dnd-cookie-actions {
    width: 100%;
  }
  .dnd-cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
