/* Loaded before the existing component layers so their legacy fills can be overridden. */
@layer cordtex-button-palette {
  :is(
    .cnc-hero__primary,
    .cutting-primary,
    .button-dark:not(main .button-dark),
    .ct-button--primary,
    .fv2-mobile--hub .fv2-list > .fv2-line-action,
    .lpf-actions > .lpf-button,
    .r103-primary,
    .r121-card-action,
    .ct-cookie-notice button,
    .fv2-cookie-notice button,
    .p86-grid button[aria-pressed="true"],
    main.r103-product:not(.ct-catalog-ready) .r103-thickness-grid button[aria-pressed="true"]
  ):not(:disabled) {
    background-color: var(--cordtex-button-gray, #e9e9e8) !important;
    border-color: var(--cordtex-button-gray, #e9e9e8) !important;
    color: #242424 !important;

    & > :is([data-r100-accent-arrow], span[aria-hidden="true"]:last-child, b[aria-hidden="true"]:last-child) {
      color: #806b37 !important;
    }

    &:is(:hover, :focus-visible):not([aria-disabled="true"]) {
      --cordtex-button-gray: #dededd;
    }

    &:active:not([aria-disabled="true"]) {
      --cordtex-button-gray: #d3d3d2;
    }
  }
}
