﻿/* Back-to-top circle with guaranteed visible icon */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #7CB780; /* theme green */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    z-index: 99999;
    text-decoration: none;
    transition: transform .18s ease, opacity .25s ease;
    opacity: 0;
    visibility: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* IMPORTANT: let the icon be visible (no clipping) */
    overflow: visible !important;
}

/* Icon inside the circle */
.back-to-top__icon {
    display: inline-block;
    font-size: 22px; /* adjust for desired size */
    line-height: 1;
    color: #ffffff; /* visible on green */
    transform: translateY(-1px); /* small vertical tweak for optical centering */
    text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

/* show state */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* hover */
.back-to-top:hover {
    transform: translateY(-4px);
    background: #69a968;
}

/* smaller on very small screens */
@media (max-width: 575px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }

    .back-to-top__icon {
        font-size: 18px;
    }
}
.back-to-top__svg {
    display: block;
}