.rh-scroll-top-button {
    position: fixed !important;
    bottom: 35px !important;
    right: 75px;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background-color: var(--main_color);
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    display: none; 
    opacity: 0.6;
    z-index: 999999 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    font-size: 20px !important;
    line-height: 40px !important;
    text-align: center !important;
}

.rh-scroll-top-flex {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rh-scroll-top-button:hover {
    opacity: 1;
    background-color: var(--main_color_hover);
}

.rh-scroll-top-flex .services_item_button{
	position: fixed !important;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotateZ(-90deg);
}

.rh-scroll-top-button svg path {
    fill: none !important;
}

/* Размеры для SVG — пусть задаются только через CSS */
.rh-scroll-top-button svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: currentColor; /* гарантируем, что SVG использует цвет родителя */
}
.rh-scroll-top-button,
.rh-scroll-top-button svg,
.rh-scroll-top-button path {
    -webkit-transform: translate3d(0,0,0);
}

/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 767px) {
    .rh-scroll-top-button {
        bottom: 90px !important;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .rh-scroll-top-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Медиа-запрос для очень маленьких экранов */
@media screen and (max-width: 360px) {
    .rh-scroll-top-button {
        bottom: 15px !important;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .rh-scroll-top-button svg {
        width: 18px;
        height: 18px;
    }
}