/* v2.7.3: Restore the SWELL-compatible bottom-right page-top button on detached homepage only. */
body.cse-detached-home .p-fixBtnWrap.cse-v273-fixbtn {
  position:fixed!important;
  right:clamp(12px, 2vw, 30px)!important;
  bottom:calc(18px + env(safe-area-inset-bottom, 0px))!important;
  left:auto!important;
  top:auto!important;
  z-index:9999!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  margin:0!important;
  padding:0!important;
  transform:translateY(12px)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .2s ease, transform .2s ease, visibility .2s!important;
}
body.cse-detached-home .p-fixBtnWrap.cse-v273-fixbtn.cse-v273-visible {
  transform:translateY(0)!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
/* Prefer the real SWELL theme styling for #pagetop. These are usable fallbacks. */
body.cse-detached-home .cse-v273-pagetop {
  box-sizing:border-box!important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  min-width:52px;
  min-height:52px;
  padding:4px;
  margin:0;
  border:0;
  border-radius:50%;
  background:var(--color_main, #324f65);
  color:#fff;
  box-shadow:0 3px 12px rgba(0,0,0,.18);
  cursor:pointer;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
body.cse-detached-home .cse-v273-pagetop:focus-visible {
  outline:3px solid #f5bc43;
  outline-offset:3px;
}
body.cse-detached-home .cse-v273-pagetop .c-fixBtn__icon {
  font-size:20px;
  line-height:1;
}
body.cse-detached-home .cse-v273-pagetop .c-fixBtn__label {
  font-size:9px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.05em;
}
@media (max-width: 640px) {
  body.cse-detached-home .p-fixBtnWrap.cse-v273-fixbtn {
    right:12px!important;
    bottom:calc(14px + env(safe-area-inset-bottom, 0px))!important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.cse-detached-home .p-fixBtnWrap.cse-v273-fixbtn {transition:none!important;}
}
