.pakherbal-back-to-top[hidden] {
    display: none;
}

.pakherbal-back-to-top {
    position: fixed;
    z-index: 1100;
    right: 24px;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #5aa936;
    border-radius: 50%;
    color: #071721;
    background: #79c943;
    box-shadow: 0 8px 22px rgb(7 23 33 / 20%);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.pakherbal-back-to-top:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
}

.pakherbal-back-to-top:hover,
.pakherbal-back-to-top:focus-visible {
    color: #fff;
    background: #2f7629;
}

.pakherbal-back-to-top:focus-visible {
    outline: 3px solid rgb(121 201 67 / 35%);
    outline-offset: 3px;
}

@media (max-width: 650px) {
    .pakherbal-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pakherbal-back-to-top {
        transition: none;
    }
}
