:root {
  --avr-cta-gold: var(--gold2, #d5af6e);
}

[data-avr-cta="primary"] {
  --avr-cta-background: var(--avr-cta-gold);
  --avr-cta-border: #92703f;
  --avr-cta-color: #171510;
}

[data-avr-cta="information"] {
  --avr-cta-background: color-mix(in srgb, var(--avr-cta-gold) 20%, #fff);
  --avr-cta-border: #92703f;
  --avr-cta-color: #302616;
}

[data-avr-cta="tool"] {
  --avr-cta-background: #faf8f3;
  --avr-cta-border: #a99e8b;
  --avr-cta-color: #203830;
}

[data-avr-cta="alternative"] {
  --avr-cta-background: #ad182b;
  --avr-cta-border: #ad182b;
  --avr-cta-color: #fff;
}

html body [data-avr-cta]:not(.header-first-call, .nav-contact-mobile) {
  display: inline-flex;
}

html body [data-avr-cta] {
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-width: 0;
  max-width: 100%;
  min-height: 2.75rem !important;
  height: auto;
  padding: .45rem .8rem !important;
  border: 1px solid var(--avr-cta-border) !important;
  border-radius: 6px !important;
  color: var(--avr-cta-color) !important;
  background: var(--avr-cta-background) !important;
  font: 600 .875rem/1.35 Arial, Helvetica, sans-serif !important;
  letter-spacing: normal !important;
  white-space: normal !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  overflow-wrap: anywhere;
  hyphens: none;
  vertical-align: middle;
  transition: filter .15s ease;
}

/* Keep the two routes in reading order on a citizenship card. */
.market-card-actions:has(> [data-avr-cta="alternative"]) {
  flex-direction: column;
  align-items: flex-start;
}

html body [data-avr-cta] :is(.arrow, svg) {
  flex: none;
}

html body [data-avr-cta] .arrow {
  color: inherit;
  font: inherit;
}

html body [data-avr-cta="alternative"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body [data-avr-cta]:hover:not([data-avr-cta="alternative"], :disabled, [aria-disabled="true"]) {
  filter: brightness(.94);
}

html body [data-avr-cta="alternative"]:hover:not(:disabled, [aria-disabled="true"]) {
  --avr-cta-background: #a31728;
}

@media (forced-colors: active) {
  html body [data-avr-cta="alternative"] {
    -webkit-text-fill-color: currentColor !important;
  }
}

html body [data-avr-cta]:focus-visible {
  outline: 3px solid #a57e47;
  outline-offset: 4px;
}

html body [data-avr-cta]:is(:disabled, [aria-disabled="true"]) {
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  html body [data-avr-cta] {
    transition: none;
  }
}
