/* Shared storefront surfaces and action colors. */
:root {
  --bs-brand-blue: #1558bc;
  --bs-brand-blue-hover: #104b9f;
  --bs-brand-blue-tint: #edf5ff;
  --bs-brand-bar-start: #102b43;
  --bs-brand-bar-end: #17446b;
  --bs-brand-bar: linear-gradient(115deg, var(--bs-brand-bar-start), var(--bs-brand-bar-end));
  --bs-brand-bar-text: #f4f8ff;
  --bs-brand-bar-muted: #dbeaff;
}

html:root :is(header.header.header, .bs-initial-header, header.site-chrome, .premium-footer,
  .oem-site-footer, .assistant-panel > header, .bs-inquiry-hero),
html[data-bs-navy="members"] body > header {
  background: var(--bs-brand-bar-start) var(--bs-brand-bar) !important;
  color: var(--bs-brand-bar-text);
}

html :is(.section-header, #header-sticky):has(header.header),
html:root header.header.header::before {
  background: var(--bs-brand-bar-start) !important;
}

html :is(.premium-footer, .oem-site-footer) :is(a, h2, h3, h4, strong),
html header.header :is(.header__icon, .header-icon, .fidelity-menu-top > menu-item > a, [data-language-select]),
html header.site-chrome :is(.header-tools button, .header-tools select, .oem-site-menu > summary),
html[data-bs-navy="members"] body > header a {
  color: var(--bs-brand-bar-text) !important;
}

html :is(.premium-footer, .oem-site-footer) :is(p, small, .bs-footer-sitemap a) {
  color: var(--bs-brand-bar-muted);
}

html header.site-chrome :is(.oem-site-menu a, select option) {
  color: #163047;
}

html header.site-chrome .brand img,
html .oem-site-footer .brand img {
  filter: brightness(0) invert(1);
}

html :is(button, [role="button"]):not(:disabled, [aria-disabled="true"]) {
  accent-color: var(--bs-brand-blue);
}

html :is(
  .premium-button, .wiwu-btn-primary, .bs-inquiry-send, .assistant-send,
  .oc-campaign-content > button, .od-campaign-copy > button,
  .oem-collection .primary, .oem-detail .primary, .access-card .primary,
  .oem-collection .oc-pdf, .oem-detail .od-add, .oem-selection .primary,
  .member-panel button[type="submit"], body > header ~ main .member-panel button[type="submit"],
  input[type="submit"]
):not(:disabled, [aria-disabled="true"]) {
  background: var(--bs-brand-blue) !important;
  border-color: var(--bs-brand-blue) !important;
  color: #fff !important;
}

html :is(
  .premium-button, .wiwu-btn-primary, .bs-inquiry-send, .assistant-send,
  .oc-campaign-content > button, .od-campaign-copy > button,
  .oem-collection .primary, .oem-detail .primary, .access-card .primary,
  .oem-collection .oc-pdf, .oem-detail .od-add, .oem-selection .primary,
  .member-panel button[type="submit"], body > header ~ main .member-panel button[type="submit"],
  input[type="submit"]
):not(:disabled, [aria-disabled="true"]):hover {
  background: var(--bs-brand-blue-hover) !important;
  border-color: var(--bs-brand-blue-hover) !important;
}

html :is(
  .product-item__button, .premium-save, .premium-detail-zoom, .quick-url,
  .fc-view-button, .oc-modes button, .cf-quick > button, .cf-chip,
  .bs-inquiry-close, .bs-inquiry-remove, .bs-inquiry-tabs button,
  .oem-embedded-tools button, .oc-filter-toggle, .oem-collection .oc-card-add,
  .swiper-button-prev, .swiper-button-next
):not(:disabled, [aria-disabled="true"]) {
  color: var(--bs-brand-blue) !important;
  border-color: #a4bfeb;
}

html :is(.fc-view-button, .oc-modes button, .cf-quick > button, .bs-inquiry-tabs button)
:is([aria-pressed="true"], [aria-selected="true"], [aria-expanded="true"]) {
  background: var(--bs-brand-blue-tint);
  color: var(--bs-brand-blue-hover) !important;
}

html :is(.assistant-launch-icon, .header__cart-count, .bs-inquiry-count) {
  background: var(--bs-brand-blue);
  color: #fff;
}

html :is(.assistant-panel button, header.header button, .site-chrome button, .premium-footer button,
  .premium-button, .wiwu-btn-primary, .bs-inquiry-drawer button, .oem-collection button):focus-visible {
  outline-color: var(--bs-brand-blue);
}

/* Keep the footer links above the rule and use the lower band for the mark. */
html .premium-footer.bs-footer-refined {
  --bs-footer-mark-height: clamp(80px, 19vw, 400px);
}
html .premium-footer.bs-footer-refined .premium-wrap {
  padding-bottom: 0;
}
html .premium-footer.bs-footer-refined::after {
  inset-inline: 0;
  width: 100%;
  height: var(--bs-footer-mark-height);
  background-size: 98% auto;
  background-position: center;
  opacity: .038;
}
html .bs-footer-refined .premium-footer-bottom {
  display: block;
  min-height: var(--bs-footer-mark-height);
  padding: 0;
  margin-top: clamp(26px, 5vw, 68px);
}
html .bs-footer-refined .bs-footer-sitemap {
  padding: 0;
  margin-top: 14px;
}
html .bs-footer-refined .bs-footer-sitemap[hidden] {
  display: none;
}
html .bs-footer-refined .bs-footer-legal {
  margin-top: 8px;
  color: var(--bs-brand-bar-muted);
  font-size: .78rem;
}

/* Keep the existing watermark behind the footer content and end at the rule. */
html .premium-footer.bs-footer-refined {
  --bs-footer-mark-height: clamp(72px, 19vw, 400px);
  padding-bottom: 0;
}
html .premium-footer.bs-footer-refined::after {
  bottom: 1px;
  background-size: contain;
  background-position: center bottom;
}
html .bs-footer-refined .premium-footer-bottom {
  min-height: 0;
  margin-top: clamp(14px, 2vw, 28px);
  padding: 0;
}

/* Product quick view: a clear primary action and a lighter secondary action. */
html .fidelity-quick .fidelity-quick-add:not(:disabled) {
  background: var(--bs-brand-blue, #1558bc);
  border-color: var(--bs-brand-blue, #1558bc);
  color: #fff;
}
html .fidelity-quick .fidelity-quick-add:not(:disabled):hover {
  background: var(--bs-brand-blue-hover, #104b9f);
  border-color: var(--bs-brand-blue-hover, #104b9f);
}
html .fidelity-quick .fidelity-quick-details:not(:disabled) {
  background: #fff;
  border-color: var(--bs-brand-blue, #1558bc);
  color: var(--bs-brand-blue, #1558bc);
}
html .fidelity-quick .fidelity-quick-details:not(:disabled):hover {
  background: var(--bs-brand-blue-tint, #edf5ff);
}
html .fidelity-quick :is(.fidelity-quick-add,.fidelity-quick-details):focus-visible {
  outline: 2px solid var(--bs-brand-blue, #1558bc);
  outline-offset: 3px;
}
