/* aacc-modal.css — Settings modal, DARK theme */

#aacc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

#aacc-modal.aacc-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

#aacc-modal .aacc-modal__dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(1120px, calc(100vw - 32px));
  min-height: min(620px, calc(100vh - 48px));
  max-height: min(94vh, 920px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.34);
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
}

#aacc-modal .aacc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

#aacc-modal .aacc-modal__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  flex: 1 1 auto;
  min-width: 0;
}

#aacc-modal .aacc-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

#aacc-modal .aacc-modal__close:hover {
  background: #e5e7eb;
  color: #111827;
}

#aacc-modal .aacc-modal__body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 28px 18px;
  -webkit-overflow-scrolling: touch;
}

#aacc-modal #aacc-modal-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

#aacc-modal .aacc-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 28px 22px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

#aacc-modal .aacc-modal__footer .aacc-btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

/* Category cards */
#aacc-modal .aacc-category {
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

#aacc-modal .aacc-category:last-child { margin-bottom: 0; }

#aacc-modal .aacc-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#aacc-modal .aacc-category__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

#aacc-modal .aacc-category__state {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
}

#aacc-modal .aacc-category__description {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

#aacc-modal .aacc-category__switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

#aacc-modal .aacc-category > label.aacc-switch + .aacc-category__description {
  margin-top: 10px;
}

/* CCPA row */
#aacc-modal .aacc-ccpa-modal-row {
  flex: 1 1 100%;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 12px;
}

#aacc-modal .aacc-ccpa-link {
  font-size: 12px;
  color: #7dd3fc;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

#aacc-modal .aacc-ccpa-done { font-size: 12px; color: #4b5563; }

@media (min-width: 860px) {
  #aacc-modal {
    padding: 24px;
  }

  #aacc-modal .aacc-modal__body {
    padding: 24px 32px 22px;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 640px) {
  #aacc-modal .aacc-modal__dialog {
    max-width: calc(100vw - 20px);
    min-height: min(76vh, 720px);
  }
}
