.share-block {
    position: relative;
    display: inline-block;
}

.share-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #707070
}

.share-button:hover { color: black }

.share-button:before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url(./img/share-icon.svg);
    margin-right: 4px;
}

.share {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px rgba(0,0,0,.2);
    border-radius: 8px;
    background-color: #fff;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.share:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background-color: #fff;
    top: -4px;
    left: 50%;
    position: absolute;
    box-shadow: 0 0 8px rgba(0,0,0,.2);
}

.share:after {
    content: '';
    display: block;
    width: 20px;
    height: 12px;
    background-color: #fff;
    top: 0;
    left: calc(50% - 6px);
    position: absolute;
}


.share_right {
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + 12px);
}

.share_right:before {
    top: calc(50% - 4px);
    left: -4px;
}

.share_right:after {
    width: 12px;
    height: 20px;
    left: 0;
    top: calc(50% - 6px);
}

.share__top {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 20px 0 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.share__heading { font-size: 18px }

.share__close {
    width: 16px;
    height: 16px;
    background-image: url(./img/close-icon.svg);
    background-size: contain;
    cursor: pointer;
}

.share__content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 320px;
    padding: 8px 12px 8px 4px;
}

.share__block {
    width: 24%;
    padding: 8px 0;
    text-decoration: none;
}

.share__icon {
    width: 48px;
    height: 48px;
    background-image: url(./img/share-social-buttons.svg);
    border-radius: 50%;
    margin: auto;
}

.share__icon_vk { background-position: 0 120px }

.share__icon_vb { background-position: 0 264px }

.share__icon_od { background-position: 0 -72px }

.share__icon_tw { background-position: 0 192px }

.share__icon_tg { background-position: 0 -216px }

.share__icon_fb { background-position: 0 -144px }

.share__icon_cp { background-position: 0 48px }

.share__title {
    margin: 4px 0 0;
    text-align: center;
    font-size: 11px;
    color: gray;
}

@media (max-width: 1000px) {

    .share-block__placeholder {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
        background-color: rgba(0,0,0,.7)
    }

    .share {
        position: fixed;
        width: 100%;
        bottom: 0;
        left: 0;
        top: auto;
        transform: translateX(0);
        border-radius: 0;
    }

    .share:before,
    .share:after { content: none }

    .share__content {
        width: 100%;
        max-width: 420px;
        min-width: 320px;
    }

    .share__top { display: flex }

}
