/* Arrow Fill Button, adapted from the user-supplied Hyperiux component. */
.button {
  --button-bg: var(--orange);
  --button-text: #000;
  --button-fill: #fff;
  --button-fill-text: #000;
  --button-border: var(--button-bg);
  --button-height: 60px;
  --button-icon: 44px;
  --button-inset: 7px;
  --button-fill-edge: 2px;
  --button-left: 28px;
  --button-right: 72px;
  --button-duration: 420ms;
  --button-ease: cubic-bezier(.25, .1, .25, 1);
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: var(--button-height);
  padding: 0 var(--button-right) 0 var(--button-left);
  overflow: hidden;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font: 500 16px/1.2 var(--font-body);
  letter-spacing: -.025em;
  white-space: nowrap;
  cursor: pointer;
}

.button-label {
  position: relative;
  z-index: 3;
  color: var(--button-text);
  transition: color 120ms linear;
}
.button-fill {
  position: absolute;
  z-index: 2;
  top: var(--button-inset);
  right: var(--button-inset);
  bottom: var(--button-inset);
  left: calc(100% - var(--button-inset) - var(--button-icon));
  pointer-events: none;
  border-radius: 999px;
  background: var(--button-fill);
  will-change: top, right, bottom, left;
}
.buttons-ready .button-fill {
  transition:
    top var(--button-duration) var(--button-ease),
    right var(--button-duration) var(--button-ease),
    bottom var(--button-duration) var(--button-ease),
    left var(--button-duration) var(--button-ease);
}
.button-fill-label { display: none; }
.button-icon {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: var(--button-inset);
  width: var(--button-icon);
  height: var(--button-icon);
  overflow: hidden;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--button-fill);
  color: var(--button-fill-text);
  pointer-events: none;
}
.button-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%);
  transition: transform var(--button-duration) var(--button-ease);
}
.button-arrow-enter { transform: translate(-170%, -50%) scale(0); }

.button:is(:focus-visible, :active, [data-pressed="true"]) .button-fill {
  inset: var(--button-fill-edge);
}
.button:is(:focus-visible, :active, [data-pressed="true"]) .button-label {
  color: var(--button-fill-text);
  transition-delay: 90ms;
}
.button:is(:focus-visible, :active, [data-pressed="true"]) .button-arrow-exit {
  transform: translate(70%, -50%) scale(0);
}
.button:is(:focus-visible, :active, [data-pressed="true"]) .button-arrow-enter {
  transform: translate(-50%, -50%) scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover .button-fill {
    inset: var(--button-fill-edge);
  }
  .button:hover .button-label {
    color: var(--button-fill-text);
    transition-delay: 90ms;
  }
  .button:hover .button-arrow-exit { transform: translate(70%, -50%) scale(0); }
  .button:hover .button-arrow-enter { transform: translate(-50%, -50%) scale(1); }
}

.button-black { --button-bg: #000; --button-text: #fff; }
.button-white,
.button-outline {
  --button-bg: #fff;
  --button-fill: #000;
  --button-fill-text: #fff;
}
.button-outline { --button-bg: transparent; --button-border: #000; }
.nav-cta {
  --button-height: 46px;
  --button-icon: 32px;
  --button-inset: 6px;
  --button-left: 20px;
  --button-right: 54px;
  font-size: 14px;
}
.nav-cta .button-arrow { width: 19px; height: 19px; }
.hero-actions .button-orange { min-width: 315px; }
.hero-actions .button-black { min-width: 285px; }
.selfcheck-card .button {
  --button-height: 54px;
  --button-icon: 38px;
  --button-left: 23px;
  --button-right: 62px;
  font-size: 15px;
  flex-shrink: 0;
}
.person-bottom .button { flex-shrink: 0; }
.closing-copy .button { margin-top: 30px; }
.conversation-cta { display: none; }

@media (max-width: 1150px) {
  .nav-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .button { --button-left: 24px; --button-right: 66px; }
  .hero-actions .button { min-width: 0; }
  .selfcheck-card .button { --button-left: 20px; --button-right: 60px; }
}
@media (max-width: 600px) {
  .button { --button-height: 56px; --button-icon: 40px; }
  .hero-actions .button { width: 100%; }
  .selfcheck-card .button { font-size: 16px; }
  .person-bottom .button { font-size: 15px; }
  .closing-copy .button { display: none; }
  .conversation-cta {
    display: inline-grid;
    width: calc(100% - 16px);
    margin: 24px 8px 0;
  }
}
@media (max-width: 340px) {
  .button { --button-left: 20px; --button-right: 60px; font-size: 15px; }
  .selfcheck-card .button { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .buttons-ready .button-fill,
  .button-label,
  .button-arrow { transition: none; }
}
