/* First-party CN consent banner. No vendor requests. */
.cn-consent-bar,
.cn-consent-dialog {
  --cn-consent-primary: #4D7136;
  --cn-consent-deep: #345025;
  --cn-consent-ink: #222A20;
  --cn-consent-text: #444D3D;
  --cn-consent-paper: #FFFFFF;
  --cn-consent-canvas: #FAFAF6;
  --cn-consent-line: #DEE5D6;
  --cn-consent-focus: #4D7136;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cn-consent-ink);
}
.cn-consent-bar *,
.cn-consent-dialog * { box-sizing: border-box; }
.cn-consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: var(--cn-consent-paper);
  border-top: 1px solid var(--cn-consent-line);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  /* Fixed to the viewport bottom so it does not mid-page-cover the finder. Does not change document flow (no CLS). */
  bottom: 0;
  box-shadow: 0 -1px 2px rgb(25 42 35 / 4%), 0 -6px 20px rgb(25 42 35 / 6%);
}
.cn-consent-bar[hidden],
.cn-consent-dialog[hidden] { display: none !important; }
.cn-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}
.cn-consent-copy {
  flex: 1 1 280px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--cn-consent-text);
}
.cn-consent-copy a {
  color: var(--cn-consent-deep);
  text-decoration: underline;
}
.cn-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cn-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 7.5rem;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.cn-consent-btn:focus-visible {
  outline: 3px solid var(--cn-consent-focus);
  outline-offset: 3px;
}
.cn-consent-btn-accept,
.cn-consent-btn-decline {
  /* Equal weight: same size, same outlined style, same contrast. Legal required equal weight. */
  background: var(--cn-consent-paper);
  border: 1px solid var(--cn-consent-deep);
  color: var(--cn-consent-deep);
}
.cn-consent-btn-accept:hover,
.cn-consent-btn-decline:hover {
  background: var(--cn-consent-canvas);
}
.cn-consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(34 42 32 / 45%);
  padding: 16px;
}
.cn-consent-dialog-panel {
  background: var(--cn-consent-paper);
  color: var(--cn-consent-ink);
  border: 1px solid var(--cn-consent-line);
  border-radius: 14px;
  max-width: 32rem;
  width: 100%;
  padding: 24px;
  box-shadow: 0 6px 20px rgb(25 42 35 / 10%);
}
.cn-consent-dialog-panel h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
}
.cn-consent-dialog-panel p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--cn-consent-text);
}
.cn-cookie-settings-link { cursor: pointer; }

/* Compact mobile bar: shorter so it does not cover the home state field.
   Fixed positioning only — no document-flow padding (no layout shift). */
@media (max-width: 600px) {
  .cn-consent-bar {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .cn-consent-inner {
    gap: 8px 12px;
  }
  .cn-consent-copy {
    flex: 1 1 100%;
    font-size: 13px;
    line-height: 1.35;
  }
  .cn-consent-actions {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }
  .cn-consent-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
}
