﻿
.fb-share,   .zalo-share, .twitter-share, .more-share {
    position: relative;
    width: 32px;
    height: 32px;
}

    .fb-share.large i, .zalo-share.large i, .more-share.large i {
        display: block;
        position: absolute;
        top: 8px;
        left: 32px;
        color: #fff;
        font-size: 13px;
        font-style: normal;
    }

.large .icon-share {
    width: 115px;
    border-radius: 2px;
}

.large .icon-fb {
    background: #3b5998;
}

.large .icon-zalo {
    background: #018fe5;
}

.large .icon-more {
    background: #4caf50;
}

.fb-share.large, .zalo-share.large, .more-share.large,   .twitter-share.large {
    width: 108px;
    border-radius: 3px;
}

    .fb-share.large::before {
        content: "Facebook";
        display: block;
        font-size: 14px;
        position: absolute;
        left: 30px;
        top: 0;
        color: #fff;
    }

    .zalo-share.large::before {
        content: "Zalo";
        display: block;
        font-size: 14px;
        position: absolute;
        left: 30px;
        top: 0;
        color: #fff;
    }

    

    .twitter-share.large::before {
        content: "Twitter";
        display: block;
        font-size: 14px;
        position: absolute;
        left: 30px;
        top: 0;
        color: #fff;
    }

    .more-share::before {
        content: "Chia sẻ";
        display: block;
        font-size: 14px;
        position: absolute;
        left: 35px;
        top: 50%;
        font-size:16px;
        transform:translateY(-50%);
        color: #fff;
    }
.sharebox .fb-share i, .sharebox .zalo-share i, .sharebox .more-share i {
    display: none;
}

.sharebox .fb-share.large i, .sharebox .zalo-share.large i, .sharebox .more-share.large i {
    display: block;
}
.dialog-share .hide{display:none}
.dialog-share .fb-share i, .dialog-share .zalo-share i {
    display: block;
}

.dialog-share .fb-share,  .dialog-share .zalo-share, .dialog-share .more-share, .dialog-share .twitter-share, .dialog-share .qrcode-share {
    background: #fff;
}

 .fb-share.square-share, .zalo-share.square-share, .twitter-share.square-share, .more-share.square-share {
    border-radius: 3px;
}

.icon-share {
    width: 32px;
    height: 32px;
    display: block;
}

.dialog-share .share-title {
    color: rgba(0,0,0,.87);
    font-size: 20px;
    font-weight: bold;
    padding: 12px 0;
    padding-left: 24px;
    margin-bottom: 16px;
    line-height: 24px;
    border-bottom: solid 1px #eee;
}

.fb-share, .icon-fb {
    background: #3b5998;
    width: 32px;
    height: 32px;
    display: block;
    border-radius: 30px;
}

    .fb-share::after {
        content: " ";
        background: url(images/facebook.png) no-repeat;
        width: 16px;
        height: 16px;
        position: absolute;
        left: 8px;
        top: 8px;
        display: block;
    }
.bookmark.saved::after {
    background: url(/themes/default/images/bookmark-on.png) no-repeat;
}
        .bookmark::after {
            content: " ";
            background: url(/themes/default/images/bookmark.png) no-repeat;
            width: 16px;
            height: 16px;
            position: absolute;
            left: 8px;
            top: 8px;
            display: block;
        }
.bookmark{
    position:relative;
}
.check-bookmark {
    display: block;
    width: 100px;
    font-size: 11px;
    color: rgba(0,0,0,.87);
    position: absolute;
    top: 32px;
    line-height: 18px;
    right: -37px;
}

.dialog-share a i {
    position: absolute;
    top: 0;
    font-style: normal;
    left: 48px;
}

.more-share {
    background: #4caf50;
    position: relative;
    width: 32px;
    display: inline-block;
    margin-left: 16px;
    border-radius: 30px;
    vertical-align: middle;
    cursor: pointer;
    height: 32px;
}

    .more-share::after {
        content: " ";
        background: url(images/share-16.png) no-repeat;
        width: 16px;
        height: 16px;
        position: absolute;
        left: 8px;
        top: 8px;
        display: block;
    }

.zalo-share, .icon-zalo {
    background: #018fe5;
    position: relative;
    width: 32px;
    display: block;
    border-radius: 30px;
    height: 32px;
}

    .zalo-share::after {
        content: " ";
        background: url(images/zalo.png) no-repeat;
        width: 16px;
        height: 16px;
        position: absolute;
        left: 8px;
        top: 8px;
        display: block;
    }
     

.twitter-share, .icon-twitter {
    background: #1da1f2;
    position: relative;
    width: 32px;
    display: block;
    border-radius: 30px;
    height: 32px;
}

    .twitter-share::after {
        content: " ";
        background: url(images/twitter.png) no-repeat;
        width: 16px;
        height: 16px;
        position: absolute;
        left: 8px;
        top: 8px;
        display: block;
    }
.copy-link, .icon-link {
    /*background: black;*/
    position: relative;
    width: 32px;
    display: block;
    border-radius: 30px;
    height: 32px;
}

    .copy-link::after {
        content: " ";
        background: url(images/link.png) no-repeat;
        width: 16px;
        height: 16px;
        position: absolute;
        left: 8px;
        top: 8px;
        display: block;
    }
.qrcode-share::after {
    content: " ";
    background: url(images/qr-code.png) no-repeat;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 8px;
    top: 8px;
    display: block;
}

.sharebox {
    line-height: 32px;
}

    .sharebox > a {
        display: inline-block;
        float: left;
        margin-right: 8px;
        margin-bottom: 0 !important;
        cursor: pointer;
    }
        .sharebox > a:last-child{margin-right:0;}

        .sharebox.vertical {
            position: fixed;
            top: 200px;
            left: 11.5px;
        }

    .sharebox a {
        margin-bottom: 5px;
    }

    .sharebox.large a {
        margin-bottom: 0;
    }

.overlay-share {
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.32);
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    content: ' ';
    z-index: 9999;
    -moz-transition: all .5s ease-in;
    -o-transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    transition: all .5s ease-in;
}

.share .overlay-share {
    display: block;
}
#qrcode {
    padding: 0 16px;
    text-align: justify;
    border-top: 1px solid #eee;
    padding-top: 16px;
    text-align:center;
}
.qrcode-share {
    position: relative;
    border-radius: 30px;
    height: 32px;
    width:32px; background:gray;
}
.bookmark {
    position: relative;
    border-radius: 30px;
    height: 32px;
    width: 32px;
    background: #ff8f00;
}
.qrcode-share .icon-qrcode {
    background: #6d6f6e;
    position: relative;
    width: 32px;
    display: block;
    border-radius: 30px;
    height: 32px;
}
#qrcode .hide{
    display:none;
}
#qrcode p {
    padding: 8px 0;font-size:14px;
}
.dialog-share {
    display: none !important;
    position: fixed;
    left: 50%;
    max-width: 300px;
    margin: auto;
    max-height: calc(100vh - 3.5rem);
    top: 50%;
    transform:translate(-50%,-50%);
    align-items: center;
    z-index: 99999;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    overflow-y: auto;
}

    .dialog-share > a {
        display: inline-block;
        
        width: 84%;
        margin: 0 24px 16px 24px;
        line-height: 32px;
        cursor: pointer;
    }

/*.sharebox {
    position: relative;
}*/

.close-box-share {
    font-size: 18px;
    display: inline-block;
    border-top: solid 1px #eee;
    line-height: 40px;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.share .dialog-share {
    display: block !important;
}

.sharebox.vertical a {
    float: none;
    display: block;
}

.toggle-share {
    left: 16px;
    bottom: 100px;
    padding: 0;
    visibility: hidden;
    display: none;
    transition: all .5s;
    position: fixed;
    height: 32px;
    width: 32px;
    z-index: 999;
    opacity: 0.87;
    background: #4caf50;
    cursor: pointer;
    border-radius: 30px;
}

.vertical .toggle-share {
    visibility: visible;
    display: block;
}

.toggle-share::after {
    content: " ";
    background: url(/themes/default/images/share-16.png) no-repeat;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 8px;
    top: 8px;
    display: block;
}

.sharebox > a:hover {
    opacity: .9;
}

.dialog-share > a:hover {
    opacity: .9;
}
@media screen and (min-width: 1223px) {
    .check-bookmark {
        width: 110px;
        font-size: 12px;
        right:initial;
    }
}
    @media screen and (max-width: 1223px) {
        

        .toggle-share {
            left: inherit;
            right: 16px;
            opacity: 0;
            bottom: 150px;
            transition: all ease .5s;
            transition-delay: 2s;
        }


        .vertical.scrollup .toggle-share {
            opacity: 0.87;
            visibility: visible;
            right: 16px;
            transition-delay: 0s;
        }

        .scrolldown.vertical .toggle-share {
            right: 0;
            opacity: 0;
            visibility: hidden;
            transition: all ease 0.5s;
            transition-delay: 2s;
        }
    }



    @media screen and (max-width: 479px) {
        /*.dialog-share a {
            display: block;
            width: calc(100% - 32px);
            margin-bottom: 0;
            padding: 5px 0;
            border-radius: 0;
            line-height: 43px;
            border-top: solid 1px #eee;
        }*/

        .dialog-share {
            padding-top: 8px;
        }

            .dialog-share .ifb::after {
                top: 12px;
            }

            .dialog-share a:first-child {
                border-top: none;
            }

            .dialog-share .close-box {
                margin-top: 0;
                line-height: 40px;
            }
    }
