/* ----------------------------------------
   START: Back to Top CSS
---------------------------------------- */

.back-to-top-wrapper {
    position: fixed;
    right: 60px;
    bottom: 0;
    display: block;
    border-radius: 50%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Show state */
.back-to-top-btn-show {
    visibility: visible;
    opacity: 1;
    bottom: 60px;
}

.back-to-top-btn-show:hover {
    transform: translateY(-6px);
}

.back-to-top-btn-show:hover .back_to_top_icon i {
    transform: translateY(-40px);
    transition: all 0.3s ease-in-out;
}

/* Button */
.back-to-top-btn {
    color: var(--color-heading-primary);
    line-height: 1;
    font-weight: var(--fw-sbold);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    padding: 0;
}

/* Icon */
.back-to-top-btn .back_to_top_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 10px;
    color: var(--color-theme-bg);
    background-color: var(--color-theme-primary);
    border-radius: 50%;
    text-shadow: 0 40px 0 var(--color-theme-dark);
    overflow: hidden;
}

/* Text */
.back-to-top-btn .back_to_top_text {
    font-weight: var(--fw-medium);
    line-height: 1;
    letter-spacing: 0;
    text-align: right;
    writing-mode: vertical-lr;
    transform: scale(-1);
}

/* -------------------------
   Responsive
------------------------- */

/* XL */
@media (max-width: 1399px) {
    .back-to-top-btn-show {
        right: 50px;
    }
}

/* LG + MD */
@media (max-width: 1199px) {
    .back-to-top-wrapper {
        right: 45px;
    }

    .back-to-top-btn-show {
        right: 30px;
        bottom: 30px;
    }
}

/* SM + XS */
@media (max-width: 767px) {
    .back-to-top-wrapper {
        right: 15px;
    }

    .back-to-top-btn-show {
        bottom: 25px;
    }

    .back-to-top-btn .back_to_top_text {
        display: none;
    }
}

/* ----------------------------------------
   END: Back to Top CSS
---------------------------------------- */