/* Adapt the shared action styles to existing mirror markup and behavior hooks.
   Product dimensions remain governed by product-fulfillment.css. */
body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact) {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #ed7422;
  border-radius: 4px;
  background: transparent;
  color: #0e1d49;
  font-weight: var(--font-weight-label);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  opacity: 1;
  filter: none;
  transition: color 350ms ease;
}

body .hp-placeholder-contact {
  min-height: 44px;
  padding: 10px 18px;
  line-height: 1.5;
}

body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact)::before,
body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact)::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 160%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ed7422;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 350ms cubic-bezier(.2, .7, .3, 1);
}

body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact)::before {
  top: 0;
  left: 0;
}

body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact)::after {
  top: 100%;
  left: 100%;
}

body :is(.hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link) {
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0e1d49;
  font-size: 15px;
  font-weight: var(--font-weight-label);
  line-height: 1.5;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* This captured link has inline presentation styles; only those need priority. */
body .local-jobs-list-link {
  padding-bottom: 10px !important;
  border-bottom: 0 !important;
  color: #0e1d49 !important;
  font-size: 15px !important;
  font-weight: var(--font-weight-label) !important;
  letter-spacing: .02em !important;
}

body :is(.hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link)::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: #ed7422;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease-out;
}

body :is(.local-news-copy > a, .local-jobs-list-link)::after {
  content: "";
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("/sites/ztn-com-39d28867/root-8a5edab2/images/footer-arrow-up-right.svg") center / contain no-repeat;
  transform: rotate(45deg);
  transition: transform 300ms ease;
}

body .hp-esg .hp-esg-closing .hp-esg-button .hp-esg-arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  transition: transform 300ms ease;
}

body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact,
  .hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link):focus-visible {
  outline: 2px solid #ed7422;
  outline-offset: 5px;
}

body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact):focus-visible::before,
body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact):focus-visible::after {
  transform: translate(-50%, -50%) scale(1);
}

body :is(.hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link):focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

body :is(.local-news-copy > a, .local-jobs-list-link):focus-visible::after,
body .hp-esg .hp-esg-closing .hp-esg-button:focus-visible .hp-esg-arrow {
  transform: translateX(6px) rotate(45deg);
}

@media (hover: hover) {
  body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact):hover {
    background: transparent;
    color: #0e1d49;
    opacity: 1;
    filter: none;
  }

  body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact):hover::before,
  body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact):hover::after {
    transform: translate(-50%, -50%) scale(1);
  }

  body :is(.hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link):hover {
    background: transparent;
    color: #0e1d49;
  }

  body :is(.hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link):hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  body :is(.local-news-copy > a, .local-jobs-list-link):hover::after,
  body .hp-esg .hp-esg-closing .hp-esg-button:hover .hp-esg-arrow {
    transform: translateX(6px) rotate(45deg);
  }
}

body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact):active {
  background: #ed7422;
  color: #0e1d49;
}

@media (prefers-reduced-motion: reduce) {
  body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact,
    .hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link),
  body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact,
    .hp-esg .hp-esg-closing .hp-esg-button, .local-news-copy > a, .local-jobs-list-link)::before,
  body :is(.product-content-main .button.haipai-consultation-cta, .hp-placeholder-contact,
    .local-news-copy > a, .local-jobs-list-link)::after,
  body .hp-esg .hp-esg-closing .hp-esg-button .hp-esg-arrow {
    transition: none;
  }

  body :is(.local-news-copy > a, .local-jobs-list-link):is(:hover, :focus-visible)::after,
  body .hp-esg .hp-esg-closing .hp-esg-button:is(:hover, :focus-visible) .hp-esg-arrow {
    transform: rotate(45deg);
  }
}
