button.sm-back-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 880; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; min-width: 46px; padding: 0; border: 1px solid #d9d3f1; border-radius: 50%; background: #fff; color: #2112aa; box-shadow: 0 4px 16px #2112aa22; cursor: pointer; }
button.sm-back-top[hidden] { display: none !important; }
button.sm-back-top:hover, button.sm-back-top:focus { background: #f0edff; color: #2112aa; border-color: #2112aa; }
button.sm-back-top:focus-visible { outline: 3px solid #ffb057; outline-offset: 3px; }
@media (max-width: 600px) { button.sm-back-top { right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

body:has(.sm-floating-cart:not([hidden])):not(.checkout-cart-index):not(.checkout-index-index):not(.checkout-onepage-success) button.sm-back-top { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
body:has(.smai-launch) button.sm-back-top { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
body:has(.smai-launch):has(.sm-floating-cart:not([hidden])):not(.checkout-cart-index):not(.checkout-index-index):not(.checkout-onepage-success) button.sm-back-top { bottom: calc(162px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) {
 body:has(.sm-floating-cart:not([hidden])):not(.checkout-cart-index):not(.checkout-index-index):not(.checkout-onepage-success) button.sm-back-top { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
 body:has(.smai-launch) button.sm-back-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
 body:has(.smai-launch):has(.sm-floating-cart:not([hidden])):not(.checkout-cart-index):not(.checkout-index-index):not(.checkout-onepage-success) button.sm-back-top { bottom: calc(156px + env(safe-area-inset-bottom, 0px)); }
}
