:root {
  --faxando-consent-copper: #a85f35;
  --faxando-consent-dark: #231f1c;
  --faxando-consent-cream: #fffaf4;
  --faxando-consent-line: #dccfc2;
}

.faxando-consent[hidden],
.faxando-consent-trigger[hidden],
.faxando-consent [hidden] {
  display: none !important;
}

.faxando-consent {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  width: min(560px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 24px;
  color: var(--faxando-consent-dark);
  background: var(--faxando-consent-cream);
  border: 1px solid var(--faxando-consent-line);
  border-top: 5px solid var(--faxando-consent-copper);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(35, 31, 28, 0.24);
  font-family: inherit;
  line-height: 1.55;
}

.faxando-consent__eyebrow {
  margin: 0 0 5px;
  color: var(--faxando-consent-copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.faxando-consent h2 {
  margin: 0 38px 10px 0;
  color: var(--faxando-consent-dark);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.18;
}

.faxando-consent p {
  margin: 0 0 14px;
  font-size: 15px;
}

.faxando-consent__close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--faxando-consent-dark);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 32px;
}

.faxando-consent__close:hover,
.faxando-consent__close:focus-visible {
  background: #eee4d9;
}

.faxando-consent__current {
  padding: 8px 10px;
  background: #f2e8dd;
  border-radius: 5px;
  font-weight: 700;
}

.faxando-consent__error {
  padding: 9px 11px;
  color: #7d1717;
  background: #ffe8e8;
  border: 1px solid #e8b3b3;
  border-radius: 5px;
}

.faxando-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.faxando-consent__choice {
  min-height: 48px;
  padding: 11px 14px;
  color: #fff;
  background: var(--faxando-consent-dark);
  border: 2px solid var(--faxando-consent-dark);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.faxando-consent__choice:hover,
.faxando-consent__choice:focus-visible {
  color: var(--faxando-consent-dark);
  background: #fff;
  outline: 3px solid rgba(168, 95, 53, 0.28);
  outline-offset: 2px;
}

.faxando-consent__privacy {
  color: var(--faxando-consent-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faxando-consent-trigger {
  position: fixed;
  z-index: 2147482999;
  right: 14px;
  bottom: 14px;
  padding: 10px 13px;
  color: #fff;
  background: var(--faxando-consent-dark);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(35, 31, 28, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.faxando-consent-trigger:hover,
.faxando-consent-trigger:focus-visible {
  background: var(--faxando-consent-copper);
  outline: 3px solid rgba(168, 95, 53, 0.28);
  outline-offset: 2px;
}

.faxando-consent-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .faxando-consent {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 20px;
  }

  .faxando-consent__actions {
    grid-template-columns: 1fr;
  }

  .faxando-consent-trigger {
    right: 8px;
    bottom: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .faxando-consent,
  .faxando-consent-trigger {
    animation: faxando-consent-in 180ms ease-out;
  }
}

@keyframes faxando-consent-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

