/* Brushed silver controls. Load last; the finish does not change button behavior. */
:is(.button.button-light, .header-cta, .rollout-button--primary) {
  --metal-star-size: 12px;
  --metal-star-inset: 15px;
  --metal-finish:
    linear-gradient(112deg, transparent 30%, #ffffff38 43%, #ffffff80 48%, transparent 63%) 110% 50% / 260% 100% no-repeat,
    repeating-linear-gradient(0deg, #ffffff14 0 .5px, #00000007 .5px 1.5px) 0 0 / 100% 100% no-repeat,
    linear-gradient(112deg, #d2d2d2 0%, #eeeeee 19%, #bcbcbc 43%, #e4e4e4 71%, #c2c2c2 100%) 0 0 / 100% 100% no-repeat #cecece;
  position: relative;
  isolation: isolate;
  padding-inline-start: 42px;
  border: 1px solid;
  border-color: #efefef #a0a0a0 #7b7b7b #d7d7d7;
  border-radius: 2px;
  color: #181818;
  background: var(--metal-finish);
  box-shadow:
    inset 0 1px 0 #ffffffb3,
    inset 0 -1px 0 #ffffff2e,
    0 1px 0 #000000d9,
    0 5px 11px -8px #000000e6;
  text-shadow: 0 1px 0 #ffffff59;
  transform: none;
  filter: none;
  opacity: 1;
  transition: background-position 420ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

/* The hallmark uses the exact eight-point Novelle outline and no generated text. */
:is(.button.button-light, .header-cta, .rollout-button--primary)::before {
  content: "";
  position: absolute;
  left: var(--metal-star-inset);
  top: 50%;
  width: var(--metal-star-size);
  height: var(--metal-star-size);
  transform: translateY(-50%);
  background: #3a3a3a;
  clip-path: polygon(50% 0%, 59% 37%, 85.4% 14.6%, 63% 41%, 100% 50%, 63% 59%, 85.4% 85.4%, 59% 63%, 50% 100%, 41% 63%, 14.6% 85.4%, 37% 59%, 0% 50%, 37% 41%, 14.6% 14.6%, 41% 37%);
  pointer-events: none;
}

.site-header .header-cta {
  --metal-star-size: 10px;
  --metal-star-inset: 12px;
  padding-inline-start: 32px;
}

:is(.button.button-light, .header-cta, .rollout-button--primary) > svg {
  color: inherit;
  flex-shrink: 0;
}

:is(.button.button-light, .header-cta, .rollout-button--primary):focus-visible {
  outline: 2px solid #f4f4f4;
  outline-offset: 5px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #ffffff40, 0 0 0 3px #080808;
}

:is(.button.button-light, .header-cta, .rollout-button--primary):hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--metal-finish);
  color: #181818;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  :is(.button.button-light, .header-cta, .rollout-button--primary):hover:not(:disabled):not([aria-disabled="true"]) {
    background-position: -10% 50%, 0 0, 0 0;
    border-color: #fff #b9b9b9 #999 #ececec;
    color: #111;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #ffffff59, 0 1px 0 #000, 0 7px 15px -10px #000;
    transform: none;
  }
}

:is(.button.button-light, .header-cta, .rollout-button--primary):active:not(:disabled):not([aria-disabled="true"]) {
  background-position: 55% 50%, 0 0, 0 0;
  border-color: #858585 #bcbcbc #d3d3d3 #9c9c9c;
  box-shadow: inset 0 1px 3px #00000040, inset 0 -1px 0 #ffffff52;
  transform: none;
}

:is(.button.button-light, .header-cta, .rollout-button--primary):is(:disabled, [aria-disabled="true"]) {
  color: #4b4b4b;
  background: #b7b7b7;
  border-color: #c7c7c7 #9b9b9b #929292 #b5b5b5;
  box-shadow: inset 0 1px 0 #ffffff30;
  text-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  transition: none;
}

:is(.button.button-light, .header-cta, .rollout-button--primary):is(:disabled, [aria-disabled="true"])::before {
  background: #666;
}

@media (max-width: 580px) {
  :is(.button.button-light, .rollout-button--primary) {
    --metal-star-size: 11px;
    --metal-star-inset: 12px;
    padding-inline-start: 36px;
  }
  .site-header .header-cta {
    --metal-star-size: 9px;
    --metal-star-inset: 9px;
    padding-inline-start: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.button.button-light, .header-cta, .rollout-button--primary) {
    transition: none;
  }
  :is(.button.button-light, .header-cta, .rollout-button--primary):hover:not(:disabled):not([aria-disabled="true"]),
  :is(.button.button-light, .header-cta, .rollout-button--primary):active:not(:disabled):not([aria-disabled="true"]) {
    background-position: 110% 50%, 0 0, 0 0;
  }
}

@media (forced-colors: active) {
  :is(.button.button-light, .header-cta, .rollout-button--primary),
  :is(.button.button-light, .header-cta, .rollout-button--primary):hover:not(:disabled):not([aria-disabled="true"]),
  :is(.button.button-light, .header-cta, .rollout-button--primary):active:not(:disabled):not([aria-disabled="true"]) {
    background: ButtonFace;
    border: 1px solid ButtonText;
    color: ButtonText;
    box-shadow: none;
    text-shadow: none;
  }
  :is(.button.button-light, .header-cta, .rollout-button--primary)::before {
    background: ButtonText;
    forced-color-adjust: none;
  }
  :is(.button.button-light, .header-cta, .rollout-button--primary):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 5px;
  }
  :is(.button.button-light, .header-cta, .rollout-button--primary):is(:disabled, [aria-disabled="true"]) {
    color: GrayText;
    border-color: GrayText;
  }
  :is(.button.button-light, .header-cta, .rollout-button--primary):is(:disabled, [aria-disabled="true"])::before {
    background: GrayText;
  }
}
