/* Omnisc cookie consent banner — 2026-05-01 (iteration 2) */

.omnisc-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--omnisc-card, #ffffff);
  border-top: 1px solid var(--omnisc-border, #d9d5ce);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  color: var(--omnisc-black, #1a1a1a);
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
  max-height: 90vh;
  overflow-y: auto;
}

.omnisc-consent-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Desktop: 2-column grid, with categories on its own row when visible.
   The `hidden` attribute on .omnisc-consent-banner__categories
   sets display:none, which collapses grid-row 2 to zero height. */
@media (min-width: 900px) {
  .omnisc-consent-banner__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "text       actions"
      "categories categories";
    align-items: center;
    gap: 14px 24px;
  }
  .omnisc-consent-banner__text       { grid-area: text; }
  .omnisc-consent-banner__actions    { grid-area: actions; }
  .omnisc-consent-banner__categories { grid-area: categories; }
}

.omnisc-consent-banner__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--omnisc-black, #1a1a1a);
}

.omnisc-consent-banner__desc {
  margin: 0;
  font-size: 13px;
  color: var(--omnisc-gray, #8a8580);
}

.omnisc-consent-banner__desc + .omnisc-consent-banner__desc {
  margin-top: 6px;
}

.omnisc-consent-banner__desc a {
  color: var(--omnisc-accent, #d04a2e);
  text-decoration: underline;
}

.omnisc-consent-banner__desc a:hover {
  text-decoration: none;
}

.omnisc-consent-banner__categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--omnisc-border, #d9d5ce);
}

.omnisc-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.omnisc-consent-category__name {
  color: var(--omnisc-black, #1a1a1a);
  font-weight: 500;
}

.omnisc-consent-category__locked {
  color: var(--omnisc-gray, #8a8580);
  font-size: 12px;
  font-style: italic;
}

.omnisc-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* All buttons share IDENTICAL baseline styling.
   FTC dark-pattern compliance: no primary Accept, no de-emphasized Reject. */
.omnisc-consent-btn {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 10px 16px;
  border: 1px solid var(--omnisc-border, #d9d5ce);
  border-radius: 6px;
  background: var(--omnisc-card, #ffffff);
  color: var(--omnisc-black, #1a1a1a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s, border-color 0.15s;
}

.omnisc-consent-btn:hover {
  background: var(--omnisc-subtle, #edebe6);
  border-color: var(--omnisc-light-gray, #c8c4bc);
}

.omnisc-consent-btn:focus-visible {
  outline: 2px solid var(--omnisc-accent, #d04a2e);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .omnisc-consent-btn {
    flex: 0 0 auto;
  }
}
