/* Riverview Global Pointer / Keyboard Focus Correction, 3.2.39
   Includes the independently user-tested quote CTA override.
   Pointer clicks: do not show browser-blue focus outlines / shadows.
   Keyboard focus: retain a clearly visible gold indicator.
   This file loads after the base theme styles. */
:root { --rv-focus-brand-gold-339: #FFC400; }

/* Exactly the tested quote CTA correction, broadened to any quote link. */
html body a[href*="/request-a-quote/"]:focus,
html body a[href*="/request-a-quote/"]:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border-color: #FFC400 !important;
}
html body a[href*="/request-a-quote/"]:focus-visible {
  outline: 3px solid #FFC400 !important;
  outline-offset: 2px !important;
}

/* Pointer input is identified before focus events are dispatched.
   Counter blue borders on links, buttons, header/menu cards, and option controls. */
html.rv-focus-pointer body :is(a[href], button, summary, [role="button"],
  [role="link"], [role="menuitem"], [tabindex]:not([tabindex="-1"]),
  input[type="button"], input[type="submit"], input[type="reset"]):is(:focus,:active),
html.rv-focus-pointer body :is(.card, .card-figure, .card-body, .navPages,
  .navUser, .rv-header, .rv-nav, .rv-showroom-card, .pagination,
  .accordion, .tabs, .tab, .rv-catalog-filters):focus-within {
  outline: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
/* Some native/browser themes paint a border instead of outline. */
html.rv-focus-pointer body :is(a[href], button, summary, [role="button"],
  [role="link"], [role="menuitem"], [tabindex]:not([tabindex="-1"]),
  input[type="button"], input[type="submit"], input[type="reset"]):is(:focus,:active) {
  border-color: var(--rv-focus-brand-gold-339) !important;
}
/* Pointer focus is still visible for inputs used to enter customer data. */
html.rv-focus-pointer body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  select, textarea, [contenteditable="true"]):focus {
  outline: 2px solid var(--rv-focus-brand-gold-339) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
  border-color: var(--rv-focus-brand-gold-339) !important;
}
/* When navigating by keyboard, show a strong accessible gold indicator. */
html.rv-focus-keyboard body :is(a[href], button, input, select, textarea,
  summary, details, [role="button"], [role="link"], [role="menuitem"],
  [tabindex]:not([tabindex="-1"]), [contenteditable="true"]):focus,
html.rv-focus-keyboard body :focus-visible {
  outline: 3px solid var(--rv-focus-brand-gold-339) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
/* Inputs associated with a focused checked option can highlight the label. */
html.rv-focus-pointer body input:focus + label,
html.rv-focus-pointer body input:focus + .form-label {
  outline: none !important;
  box-shadow: none !important;
}
html.rv-focus-keyboard body input:focus + label,
html.rv-focus-keyboard body input:focus + .form-label {
  outline: 3px solid var(--rv-focus-brand-gold-339) !important;
  outline-offset: 3px !important;
}
html body :is(a[href], button, input, select, textarea, summary, details,
  [role="button"], [role="link"], [tabindex]) {
  -webkit-tap-highlight-color: transparent !important;
}
@media (forced-colors: active) {
  html.rv-focus-keyboard body :focus,
  html.rv-focus-keyboard body :focus-visible,
  html.rv-focus-pointer body :is(input,select,textarea):focus {
    outline-color: Highlight !important;
  }
  html.rv-focus-pointer body :is(input,select,textarea):focus {
    border-color: Highlight !important;
  }
}
