/*
 * Site-wide primary CTA palette.
 *
 * The theme's navy foundation and warm ivory logo are retained. Only the
 * former high-saturation royal-blue solid buttons are moved to a restrained
 * bronze-gold so navigation accents and informational blue labels stay clear.
 */
:root {
  --hx-button-primary: #c08a3e;
  --hx-button-primary-hover: #a66f2c;
  --hx-button-primary-active: #8d5b20;
  --hx-button-primary-text: #071a36;
  --hx-button-primary-ring: rgba(192, 138, 62, 0.38);
}

:where(button, a)[class~="bg-[#005DFF]"],
:where(button, a)[class~="bg-[#0066FF]"],
:where(button, a)[class~="bg-[#0A66FF]"],
:where(button, a)[class~="bg-[#2F86F6]"],
.hx-solutions-button--primary,
.hx-solution-level-two .hx-solution-category-nav__contact,
body.hx-solution-level-one .hx-solutions-reference-row__button {
  color: var(--hx-button-primary-text) !important;
  background-color: var(--hx-button-primary) !important;
  border-color: var(--hx-button-primary) !important;
}

:where(button, a)[class~="bg-[#005DFF]"]:hover,
:where(button, a)[class~="bg-[#005DFF]"]:focus-visible,
:where(button, a)[class~="bg-[#0066FF]"]:hover,
:where(button, a)[class~="bg-[#0066FF]"]:focus-visible,
:where(button, a)[class~="bg-[#0A66FF]"]:hover,
:where(button, a)[class~="bg-[#0A66FF]"]:focus-visible,
:where(button, a)[class~="bg-[#2F86F6]"]:hover,
:where(button, a)[class~="bg-[#2F86F6]"]:focus-visible,
.hx-solutions-button--primary:hover,
.hx-solutions-button--primary:focus-visible,
.hx-solution-level-two .hx-solution-category-nav__contact:hover,
.hx-solution-level-two .hx-solution-category-nav__contact:focus-visible,
body.hx-solution-level-one .hx-solutions-reference-row__button:hover,
body.hx-solution-level-one .hx-solutions-reference-row__button:focus-visible {
  color: var(--hx-button-primary-text) !important;
  background-color: var(--hx-button-primary-hover) !important;
  border-color: var(--hx-button-primary-hover) !important;
}

:where(button, a)[class~="bg-[#005DFF]"]:active,
:where(button, a)[class~="bg-[#0066FF]"]:active,
:where(button, a)[class~="bg-[#0A66FF]"]:active,
:where(button, a)[class~="bg-[#2F86F6]"]:active,
.hx-solutions-button--primary:active,
.hx-solution-level-two .hx-solution-category-nav__contact:active,
body.hx-solution-level-one .hx-solutions-reference-row__button:active {
  background-color: var(--hx-button-primary-active) !important;
  border-color: var(--hx-button-primary-active) !important;
}

:where(button, a)[class~="bg-[#005DFF]"]:focus-visible,
:where(button, a)[class~="bg-[#0066FF]"]:focus-visible,
:where(button, a)[class~="bg-[#0A66FF]"]:focus-visible,
:where(button, a)[class~="bg-[#2F86F6]"]:focus-visible,
.hx-solutions-button--primary:focus-visible,
.hx-solution-level-two .hx-solution-category-nav__contact:focus-visible,
body.hx-solution-level-one .hx-solutions-reference-row__button:focus-visible {
  outline: 3px solid var(--hx-button-primary-ring) !important;
  outline-offset: 3px;
}

/* Product-card contact actions use the light neutral treatment from the catalog design. */
.hongxin-product-grid .hongxin-product-card-contact {
  color: #061733 !important;
  background-color: #EEF1F5 !important;
  border-color: #e4e9ef !important;
  box-shadow: none !important;
}

.hongxin-product-grid .hongxin-product-card-contact:hover,
.hongxin-product-grid .hongxin-product-card-contact:focus-visible {
  color: #061733 !important;
  background-color: #e1e6ed !important;
  border-color: #d8dee7 !important;
}

.hongxin-product-grid .hongxin-product-card-contact:active {
  background-color: #d5dbe4 !important;
  border-color: #cbd3de !important;
}

.hongxin-product-grid .hongxin-product-card-contact:focus-visible {
  outline: 3px solid rgba(6, 23, 51, 0.2) !important;
  outline-offset: 3px;
}

/* Product-detail contact action uses a deeper neutral grey. */
.hongxin-minimal #product-overview > div > div:nth-child(2) > div:last-child > button {
  color: #061733 !important;
  background-color: #DDE3EA !important;
  border-color: #D3DAE3 !important;
  box-shadow: none !important;
}

.hongxin-minimal #product-overview > div > div:nth-child(2) > div:last-child > button:hover,
.hongxin-minimal #product-overview > div > div:nth-child(2) > div:last-child > button:focus-visible {
  color: #061733 !important;
  background-color: #CDD5DF !important;
  border-color: #C4CDD8 !important;
  box-shadow: none !important;
}

.hongxin-minimal #product-overview > div > div:nth-child(2) > div:last-child > button:active {
  background-color: #C0CAD6 !important;
  border-color: #B6C1CF !important;
}

.hongxin-minimal #product-overview > div > div:nth-child(2) > div:last-child > button:focus-visible {
  outline: 3px solid rgba(6, 23, 51, 0.2) !important;
  outline-offset: 3px;
}

/* Solutions landing CTAs use the requested light neutral treatment. */
body.hx-solution-level-one .hx-solutions-button--primary,
body.hx-solution-level-one .hx-solutions-reference-row__button,
body.hx-solution-level-two .hx-solutions-reference-row__button {
  color: #071A36 !important;
  background-color: #DDE3EA !important;
  border-color: #DDE3EA !important;
}

body.hx-solution-level-one .hx-solutions-button--primary:hover,
body.hx-solution-level-one .hx-solutions-button--primary:focus-visible,
body.hx-solution-level-one .hx-solutions-reference-row__button:hover,
body.hx-solution-level-one .hx-solutions-reference-row__button:focus-visible,
body.hx-solution-level-two .hx-solutions-reference-row__button:hover,
body.hx-solution-level-two .hx-solutions-reference-row__button:focus-visible {
  color: #071A36 !important;
  background-color: #CDD5DF !important;
  border-color: #CDD5DF !important;
}

body.hx-solution-level-one .hx-solutions-button--primary:active,
body.hx-solution-level-one .hx-solutions-reference-row__button:active,
body.hx-solution-level-two .hx-solutions-reference-row__button:active {
  background-color: #C0CAD6 !important;
  border-color: #C0CAD6 !important;
}

body.hx-solution-level-one .hx-solutions-button--primary:focus-visible,
body.hx-solution-level-one .hx-solutions-reference-row__button:focus-visible,
body.hx-solution-level-two .hx-solutions-reference-row__button:focus-visible {
  outline: 3px solid rgba(7, 26, 54, 0.2) !important;
  outline-offset: 3px;
}
