/* Cookie consent banner + modal: complements Tailwind on pages */
#as-cookie-banner,
#as-cookie-modal {
  font-family: Inter, system-ui, sans-serif;
}

#as-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 1rem;
  pointer-events: none;
}

#as-cookie-banner .as-cookie-inner {
  pointer-events: auto;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: rgb(255 255 255);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  padding: 1.25rem 1.25rem 1rem;
}

.dark #as-cookie-banner .as-cookie-inner {
  border-color: rgb(51 65 85);
  background: rgb(15 23 42);
}

#as-cookie-banner .as-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

#as-cookie-banner .as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

#as-cookie-banner .as-btn-primary {
  background: rgb(79 70 229);
  color: white;
}
#as-cookie-banner .as-btn-primary:hover {
  background: rgb(67 56 202);
}

#as-cookie-banner .as-btn-secondary {
  background: rgb(241 245 249);
  color: rgb(15 23 42);
}
.dark #as-cookie-banner .as-btn-secondary {
  background: rgb(51 65 85);
  color: rgb(241 245 249);
}
#as-cookie-banner .as-btn-secondary:hover {
  background: rgb(226 232 240);
}
.dark #as-cookie-banner .as-btn-secondary:hover {
  background: rgb(71 85 105);
}

#as-cookie-banner .as-btn-ghost {
  background: transparent;
  color: rgb(71 85 105);
  border: 1px solid rgb(203 213 225);
}
.dark #as-cookie-banner .as-btn-ghost {
  color: rgb(148 163 184);
  border-color: rgb(71 85 105);
}
#as-cookie-banner .as-btn-ghost:hover {
  background: rgb(248 250 252);
}
.dark #as-cookie-banner .as-btn-ghost:hover {
  background: rgb(30 41 59);
}

#as-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(15 23 42 / 0.55);
  backdrop-filter: blur(4px);
}

#as-cookie-modal.as-open {
  display: flex;
}

#as-cookie-modal .as-modal-panel {
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 32rem);
  overflow: auto;
  border-radius: 1rem;
  background: white;
  border: 1px solid rgb(226 232 240);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.dark #as-cookie-modal .as-modal-panel {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
}

#as-cookie-modal .as-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(15 23 42);
  margin-bottom: 1rem;
}
.dark #as-cookie-modal .as-modal-title {
  color: rgb(248 250 252);
}

#as-cookie-modal .as-opt {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(241 245 249);
}
.dark #as-cookie-modal .as-opt {
  border-color: rgb(51 65 85);
}

#as-cookie-modal .as-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

#as-cookie-modal .as-opt-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgb(15 23 42);
}
.dark #as-cookie-modal .as-opt-label {
  color: rgb(248 250 252);
}

#as-cookie-modal .as-opt-desc {
  font-size: 0.8125rem;
  color: rgb(100 116 139);
  line-height: 1.45;
}

#as-cookie-modal input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: rgb(79 70 229);
}

#as-cookie-modal .as-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

#as-cookie-modal .as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

#as-cookie-modal .as-btn-primary {
  background: rgb(79 70 229);
  color: white;
}
#as-cookie-modal .as-btn-primary:hover {
  background: rgb(67 56 202);
}

#as-cookie-modal .as-btn-secondary {
  background: rgb(241 245 249);
  color: rgb(15 23 42);
}
.dark #as-cookie-modal .as-btn-secondary {
  background: rgb(51 65 85);
  color: rgb(241 245 249);
}
