/* tradrr.com cookie notice. Dark by default (every page is dark), light when
   the home page theme switch sets html[data-theme="light"]. Square corners
   like the rest of the site. */
.site-consent {
  --consent-bg: #111;
  --consent-line: #303030;
  --consent-text: #fff;
  --consent-muted: #b5b5b5;
  --consent-button: #202020;
  --consent-button-hover: #2c2c2c;
  --consent-shadow: rgb(0 0 0 / 45%);

  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: 12px;
  box-sizing: border-box;
  width: min(600px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--consent-line);
  border-radius: 0;
  background: var(--consent-bg);
  box-shadow: 0 8px 24px var(--consent-shadow);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

html[data-theme="light"] .site-consent {
  --consent-bg: #fff;
  --consent-line: #d6d6d6;
  --consent-text: #000;
  --consent-muted: #555;
  --consent-button: #ededed;
  --consent-button-hover: #e0e0e0;
  --consent-shadow: rgb(0 0 0 / 14%);
}

.site-consent.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-consent p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--consent-muted);
  text-wrap: pretty;
}

/* "and&nbsp;scroll?" plus the unbreakable link keep any line from holding a
   single word. */
.site-consent a {
  color: var(--consent-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.site-consent a:hover {
  color: var(--consent-text);
}

.site-consent__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

/* Same size and background for both answers, so saying no is as easy as
   saying yes. Allow only gets the brighter text. */
.site-consent__actions button {
  min-width: 76px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: var(--consent-button);
  color: var(--consent-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-consent__actions button[data-answer="yes"] {
  color: var(--consent-text);
}

.site-consent__actions button:hover {
  background: var(--consent-button-hover);
  color: var(--consent-text);
}

.site-consent__actions button:focus-visible,
.site-consent a:focus-visible {
  outline: 2px solid var(--consent-muted);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .site-consent {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .site-consent__actions button {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-consent {
    transition: none;
  }
}

/* Cookie settings next to "Download logo kit" on pages without a footer. */
.tradrr-brand-download-row [data-cookie-settings] {
  margin-left: 24px;
}
