/*
 * consent.css — the cookie-choice banner.
 *
 * Loaded by both the marketing pages (warm dark palette, jobseekers.css /
 * employers.css) and the app pages (cool dark palette, styles.css). Rather
 * than read either page's custom properties — the two use different variable
 * names — the banner carries its own neutral dark palette, which sits
 * acceptably on both without inheriting one page's accent onto the other.
 *
 * Fixed to the bottom rather than a centre-screen modal: this is not a
 * decision the visitor has to make before reading the page, and blocking the
 * content to force a choice is the pattern regulators object to.
 */

.lv-consent {
  position: fixed;
  z-index: 9999;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.lv-consent-card {
  pointer-events: auto;
  width: 100%;
  max-width: 56rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid #3a3f4d;
  border-radius: 12px;
  background: #1a1d25;
  box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
  color: #e8ecf4;
}

.lv-consent-copy {
  flex: 1 1 22rem;
  min-width: 0;
}

.lv-consent-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.lv-consent-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #a6afc0;
}

.lv-consent-link {
  color: #e8ecf4;
}

.lv-consent-link:hover {
  color: #7c9cff;
}

.lv-consent-link:focus-visible {
  outline: 2px solid #7c9cff;
  outline-offset: 2px;
}

/* Full-width so the checkboxes drop below the copy instead of squeezing it. */
.lv-consent-options {
  flex: 1 1 100%;
  display: grid;
  gap: 0.6rem;
  padding-top: 0.25rem;
  border-top: 1px solid #2a2f3b;
}

/*
 * A `display` rule beats the `hidden` attribute's UA default, so the panel and
 * the Manage/Save buttons need this to actually stay hidden until asked for.
 */
.lv-consent [hidden] {
  display: none;
}

.lv-consent-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #a6afc0;
  cursor: pointer;
}

.lv-consent-option input {
  margin-top: 0.2rem;
  flex: none;
  accent-color: #7c9cff;
}

.lv-consent-option strong {
  display: block;
  color: #e8ecf4;
  font-weight: 600;
}

.lv-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lv-consent-btn {
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}

/*
 * Accept and Reject share one class and therefore one weight. Making "Accept"
 * the prominent button and "Reject" a faint link is the dark pattern that gets
 * consent banners ruled invalid, so the two stay visually equal.
 */
.lv-consent-btn-primary {
  background: #262b36;
  border-color: #3a3f4d;
  color: #e8ecf4;
}

.lv-consent-btn-primary:hover {
  background: #2f3542;
  border-color: #4a5161;
}

.lv-consent-btn-link {
  background: none;
  border-color: transparent;
  color: #a6afc0;
  text-decoration: underline;
  padding-inline: 0.5rem;
}

.lv-consent-btn-link:hover {
  color: #e8ecf4;
}

.lv-consent-btn:focus-visible {
  outline: 2px solid #7c9cff;
  outline-offset: 2px;
}

@media (max-width: 34rem) {
  .lv-consent-actions {
    width: 100%;
  }

  .lv-consent-actions .lv-consent-btn-primary {
    flex: 1 1 auto;
  }
}
