/* ---- Back to Top button (site-wide) ---- */
#rc-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--rc-primary, #A12E33);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

/* On shop catalogue pages the shopping-list summary bar is fixed to the
   bottom of the viewport when items are in the list — sit above it there. */
body.page-template-page-shop-catalogue-php #rc-back-to-top {
  bottom: 90px;
}

#rc-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#rc-back-to-top:hover .rc-back-to-top-arrow {
  transform: translateY(-2px);
}

.rc-back-to-top-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.rc-back-to-top-ring-bg {
  fill: none;
  stroke: rgba(161, 46, 51, 0.15);
  stroke-width: 3;
}

.rc-back-to-top-ring-progress {
  fill: none;
  stroke: var(--rc-primary, #A12E33);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.rc-back-to-top-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

@media (max-width: 640px) {
  #rc-back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  body.page-template-page-shop-catalogue-php #rc-back-to-top {
    bottom: 100px;
  }

  .rc-back-to-top-ring {
    width: 46px;
    height: 46px;
  }
}