/*
 * Boklyft footer back-to-top microinteraction.
 * Adapted from "Button" by satyamchaudharydev, Uiverse.io:
 * https://uiverse.io/satyamchaudharydev/hungry-parrot-44
 * MIT License — Copyright (c) 2026 satyamchaudharydev (satyam).
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included
 * in all copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Scoped to the footer only. Semantic #top anchor works even with JS disabled.
 */
footer .bl-to-top-row {
  display:flex;align-items:center;justify-content:flex-start;
  padding-top:22px;margin-top:27px;
  border-top:1px solid rgba(255,255,255,.12);
}
footer .bl-to-top {
  position:relative;isolation:isolate;display:inline-flex;
  align-items:center;justify-content:space-between;
  flex:0 0 auto;gap:18px;
  min-width:174px;height:56px;padding:2px 4px 13px 4px;
  background:none!important;color:#f6f7fb!important;border:0;
  border-radius:0;font:650 14px/1.15 Inter,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:-.015em;text-decoration:none!important;
  cursor:pointer;overflow:hidden;
}
footer .bl-to-top::before {
  content:'';position:absolute;left:0;right:0;bottom:5px;
  height:1.5px;background:currentColor;
  transform:scaleX(0);transform-origin:bottom right;
  transition:transform .3s cubic-bezier(.22,1,.36,1);
}
footer .bl-to-top:is(:hover,:focus-visible)::before {
  transform:scaleX(1);transform-origin:bottom left;
}
footer .bl-to-top-motion {
  position:relative;display:grid;align-content:center;
  min-width:112px;height:38px;overflow:hidden;
}
footer .bl-to-top-text,footer .bl-to-top-clone {
  grid-area:1 / 1;
  display:flex;align-items:center;gap:4px;
  justify-content:flex-start;
  white-space:nowrap;
  transition:transform .38s cubic-bezier(.215,.61,.355,1),opacity .25s ease;
}
footer .bl-to-top-text{transform:translateY(0);opacity:1}
footer .bl-to-top-clone{transform:translateY(45px);opacity:0}
footer .bl-to-top-text>span,footer .bl-to-top-clone>span{
  display:inline-block;transition:transform .35s cubic-bezier(.215,.61,.355,1);
}
footer .bl-to-top:is(:hover,:focus-visible) .bl-to-top-text{
  transform:translateY(-45px);opacity:0;
}
footer .bl-to-top:is(:hover,:focus-visible) .bl-to-top-clone{
  transform:translateY(0);opacity:1;
}
footer .bl-to-top-clone>span:nth-child(2){transition-delay:60ms}
footer .bl-to-top-arrow{
  position:static!important;flex:none;display:block;
  width:21px!important;height:21px!important;margin:0;
  transform:rotate(-50deg);
  stroke:currentColor;
  transition:transform .36s cubic-bezier(.215,.61,.355,1);
}
footer .bl-to-top:is(:hover,:focus-visible) .bl-to-top-arrow{transform:rotate(-90deg)}
footer .bl-to-top:focus-visible{
  outline:2px solid #a9bbff!important;outline-offset:6px;border-radius:2px;
}
@media(max-width:690px){
  footer .bl-to-top-row{margin-top:18px;padding-top:17px;justify-content:flex-start}
  footer .bl-to-top{min-height:48px;height:52px}
}
@media(prefers-reduced-motion:reduce){
  footer .bl-to-top::before,footer .bl-to-top-arrow,
  footer .bl-to-top-text,footer .bl-to-top-clone,
  footer .bl-to-top-text>span,footer .bl-to-top-clone>span{
    transition:none!important;
  }
  footer .bl-to-top-clone{display:none}
  footer .bl-to-top-text{transform:none!important;opacity:1!important}
}
