:root {
  --consent-ink: #152b4b;
  --consent-red: #ff4b1f;
  --consent-yellow: #ffa80f;
  --consent-line: #dfe4ea;
}

.escape-consent {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  width: min(620px, calc(100vw - 36px));
  padding: 16px;
  color: var(--consent-ink);
  background: #fff;
  border: 1px solid var(--consent-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(21, 43, 75, 0.18);
  font-family: Gabarito, "DM Sans", Arial, sans-serif;
}

.escape-consent[hidden],
.escape-consent-settings[hidden] {
  display: none !important;
}

.escape-consent-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.escape-consent-copy h2 {
  margin: 0 0 4px;
  color: var(--consent-ink);
  font: 700 18px/1.15 Gabarito, "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}

.escape-consent-copy p {
  max-width: 42rem;
  margin: 0;
  color: #40516a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.escape-consent-copy a {
  color: var(--consent-ink);
  text-decoration: underline;
  text-decoration-color: var(--consent-red);
  text-underline-offset: 3px;
}

.escape-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.escape-consent button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--consent-line);
  border-radius: 7px;
  color: var(--consent-ink);
  background: #fff;
  font: 700 12px/1 Gabarito, "DM Sans", Arial, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.escape-consent button:hover,
.escape-consent button:focus-visible {
  border-color: var(--consent-yellow);
  background: #fff7df;
}

.escape-consent .escape-consent-accept,
.escape-consent .escape-consent-save {
  border-color: var(--consent-red);
  color: #fff;
  background: var(--consent-red);
}

.escape-consent .escape-consent-accept:hover,
.escape-consent .escape-consent-accept:focus-visible,
.escape-consent .escape-consent-save:hover,
.escape-consent .escape-consent-save:focus-visible {
  border-color: #e63d17;
  background: #e63d17;
}

.escape-consent-settings {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--consent-line);
}

.escape-consent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.escape-consent-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--consent-line);
  border-radius: 7px;
  color: var(--consent-ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.escape-consent-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--consent-red);
}

.escape-consent-option input:disabled {
  opacity: 1;
}

.escape-consent-manage {
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-footer .escape-consent-manage {
  color: #fff;
  opacity: 0.82;
}

.site-footer .escape-consent-manage:hover,
.site-footer .escape-consent-manage:focus-visible {
  opacity: 1;
}

@media (max-width: 720px) {
  .escape-consent {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .escape-consent-main {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .escape-consent-actions {
    justify-content: stretch;
  }

  .escape-consent-actions button {
    flex: 1 1 auto;
  }

  .escape-consent-options {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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