/* Match the retaining-wall contact actions without changing button sizing. */
:is(.service-guide-page, .floor-guide) .guide-contact-motion {
  --guide-contact-glint: rgba(255, 255, 255, .18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, background-color .28s ease, border-color .28s ease;
  -webkit-tap-highlight-color: transparent;
}
:is(.service-guide-page, .floor-guide) .guide-contact-motion::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 55%;
  background: linear-gradient(90deg, transparent, var(--guide-contact-glint), transparent);
  opacity: 0;
  transform: translateX(-150%) skewX(-18deg);
  pointer-events: none;
}
:is(.service-guide-page, .floor-guide) .guide-contact-motion.is-contact-revealed::before {
  animation: guide-contact-reveal-glint 1s ease-out .15s both;
}
:is(.service-guide-page, .floor-guide) .guide-contact-motion-outline {
  --guide-contact-glint: rgba(25, 51, 64, .10);
}
:is(.service-guide-page, .floor-guide) .guide-contact-motion:focus-visible {
  outline: 2px solid #b98b58;
  outline-offset: 4px;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(25, 51, 64, .14);
}
:is(.service-guide-page, .floor-guide) .guide-contact-motion:not(.guide-contact-motion-outline):focus-visible {
  background-color: #294c5b;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  :is(.service-guide-page, .floor-guide) .guide-contact-motion:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(25, 51, 64, .14);
  }
  :is(.service-guide-page, .floor-guide) .guide-contact-motion:not(.guide-contact-motion-outline):hover {
    background-color: #294c5b;
    color: #fff;
  }
  :is(.service-guide-page, .floor-guide) .guide-contact-motion:hover::before {
    opacity: 1;
    transform: translateX(260%) skewX(-18deg);
    transition: transform .8s ease, opacity .2s ease;
  }
}
:is(.service-guide-page, .floor-guide) .guide-contact-motion:is(:active, .is-contact-pressed) {
  transform: translateY(0) scale(.975);
  box-shadow: 0 2px 5px rgba(25, 51, 64, .10);
  transition-duration: .12s;
}
@keyframes guide-contact-reveal-glint {
  0% { transform: translateX(-150%) skewX(-18deg); opacity: 0; }
  18%, 75% { opacity: 1; }
  100% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.service-guide-page, .floor-guide) .guide-contact-motion,
  :is(.service-guide-page, .floor-guide) .guide-contact-motion:is(:hover, :focus-visible, :active, .is-contact-pressed) {
    transform: none;
    transition: none;
  }
  :is(.service-guide-page, .floor-guide) .guide-contact-motion::before {
    display: none;
    animation: none;
    transition: none;
  }
}
