/*

 Version: 1.0.0
  Author: Amir Rezaie
 Website:
    Repo: https://amir-rezaie.ir
 */


a._collapz_parant._close:after {
    content: "\F618";
    font-family: bootstrap-icons, serif !important;
    font-size: 30px;
    position: relative;
    top: 8px;
    font-style: normal;
    color: #fff;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

a._collapz_parant._open:after {
    content: "\F62A";
    font-family: bootstrap-icons, serif !important;
    font-size: 30px;
    position: relative;
    top: 8px;
    font-style: normal;
    color: #fff;
    transition: 0.3s;
}

a._collapz_parant {
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: block;
    text-decoration: none;
    position: fixed;
    right: 50px;
    bottom: 45px;
    -webkit-transition: -webkit-transform .1s linear 0ms;
    -moz-transition: -moz-transform .1s linear 0ms;
    transition: transform .1s linear 0ms;
}

a._collapz_parant._close {
    background-color: #e45353;
}

a._collapz_parant._close:after {
    left: 0;
}

a._collapz_parant._open {
    background-color: #2f353e;
}

ul._child_collapzion {
    padding-right: 0;
    width: 300px;
    background: #fff;
    position: fixed;
    margin: 0;
    list-style: none;
    bottom: 38px;
    left: calc(100vw - 370px);
    overflow: auto;
    z-index: 10;
    transform: translate3d(0, 0, 0);
    -webkit-transition: -webkit-transform .3s ease-in-out;
    -moz-transition: -moz-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    display: none;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
}

ul._child_collapzion li a._collapz_child {
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: #e45353;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

ul._child_collapzion li {
    padding-bottom: 5px;
    width: 100%;
    border-bottom: 1px dashed #ddd;
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
}

ul._child_collapzion li:hover {
    background-color: #0763f641;
}

ul._child_collapzion li:hover a {
    color: #515151;
}

ul._child_collapzion li:nth-last-child(1) {
    margin-bottom: 0;
    border-bottom: none;
}

ul._child_collapzion li a._collapz_child i {
    font-size: 18px;
    color: #fff;
}

ul._child_collapzion li span._title {
    position: relative;
    left: 8px;
    top: -6px;
    padding: 3px;
    font-size: 14px;
    font-weight: 100;
}

._col_shadow {
    box-shadow: 0 4px 17px 0 rgba(0, 0, 0, .14), 0 1px 32px 0 rgba(0, 0, 0, .12), 0 2px 9px -1px rgba(0, 0, 0, .2);
}

.float-contact {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    transition: 0.3s;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    background: #fff;
    margin-bottom: 5px;
}

.float-contact .icon {
    width: 40px;
    height: 40px;
    background: #FFA41B;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-contact .icon i {
    color: #fff;
}

li:nth-child(2) .float-contact .icon {
    background: #1c39bb;
}

li:nth-child(2) .float-contact .icon i {
    color: #fff;
}

li:nth-child(3) .float-contact .icon {
    background: #0b8502;
}

.float-contact .icon i {
    font-size: 20px;
    display: inherit;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgb(0 0 0 / 50%);
    z-index: 800;
    transition: 0.7s;
    -webkit-transition: 0.7s;
    -moz-transition: 0.7s;
    -ms-transition: 0.7s;
    -o-transition: 0.7s;
}

.contactFire {
    transform: scale(1);
    animation: pulse 3s infinite;
    transition: 0.3s all ease-in-out;
    animation-delay: 10s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 106, 13, 0.775);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}


a._collapz_parant._open+ul._child_collapzion {
    display: flex;
}




@media (max-width: 991px) {

    a._collapz_parant {
        right: 20px;
        bottom: 85px;
    }

    a._collapz_parant:after {
        font-size: 24px;
        top: 6px;
        left: 0;
    }


    ul._child_collapzion {
        width: auto;
        min-width: 150px;
        max-width: 250px;
        left: auto;
        right: 70px;
        bottom: 80px;
        font-size: 14px;
        display: none;
    }

    ul._child_collapzion li a._collapz_child {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    ul._child_collapzion li span._title {
        font-size: 13px;
        left: 6px;
        top: -4px;
    }

    .float-contact .icon {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }

    .float-contact .icon i {
        font-size: 18px;
    }
}


@media (max-width: 575px) {
    a._collapz_parant {
        right: 15px;
        bottom: 80px;
    }

    a._collapz_parant ::after {
        font-size: 10px;
        left: 0;
        top: -10px;
    }

    ul._child_collapzion {
        width: auto;
        min-width: 120px;
        max-width: 220px;
        right: 60px;
        bottom: 70px;
    }

    ul._child_collapzion li a._collapz_child {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    ul._child_collapzion li span._title {
        font-size: 12px;
        left: 5px;
        top: -3px;
    }

    .float-contact .icon {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .float-contact .icon i {
        font-size: 16px;
    }
}

/* ============= Dark Mode: Floating Contact ============= */
.dark-mode a._collapz_parant._close {
    background-color: #3a3b9c;
}

.dark-mode a._collapz_parant._open {
    background-color: #2a2a4a;
}

.dark-mode ul._child_collapzion {
    background: #1a1a2e;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.dark-mode ul._child_collapzion li {
    border-bottom-color: #3a3b9c;
}

.dark-mode ul._child_collapzion li:hover {
    background-color: #3a3b9c;
}

.dark-mode ul._child_collapzion li:hover a {
    color: #ffffff;
}

.dark-mode ul._child_collapzion li a._collapz_child {
    background-color: #3a3b9c;
}

.dark-mode ul._child_collapzion li span._title {
    color: #ffffff;
}

.dark-mode .float-contact {
    background-color: #1a1a2e;
    border: 1px solid #3a3b9c;
}

.dark-mode .float-contact .icon {
    background: #3a3b9c;
}

.dark-mode li:nth-child(2) .float-contact .icon {
    background: #45147e;
}

.dark-mode li:nth-child(3) .float-contact .icon {
    background: #189D0E;
}

.dark-mode .overlay {
    background-color: rgb(0 0 0 / 70%);
}
