/**
 *    Description: Custom styles for Grow Social
 */

/* ---------- [ Table of Contents ] ---------- */

/**
 * Social Share Buttons
 * - Global
 * - Floating Sidebar
 * - Inline Content
 * - Shortcode
 * - Sticky Bar
 * - Pop-Up
 * - Follow Widget
 * - Share Counts
 * - Hide on Mobile
 *
 * Image Hover Pinterest Button
 */

/* ================================
[ Social Share buttons ]
================================ */

/* ---------- [ Global ] ---------- */

.dpsp-networks-btns-wrapper {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dpsp-networks-btns-wrapper li {
    margin: 0;
    padding: 0;
}

.dpsp-networks-btns-wrapper .dpsp-network-btn {
    color: inherit;
    display: grid;
    grid-auto-columns: auto;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    min-height: 48px;
    min-width: 48px;
}

@media (hover: hover) {
    .dpsp-networks-btns-wrapper .dpsp-network-btn:hover {
        text-decoration: none;
    }
}

.dpsp-network-icon .dpsp-network-icon-inner {
    display: flex;
}

.dpsp-icon-total-share svg,
.dpsp-network-icon .dpsp-network-icon-inner svg {
    overflow: visible;
}

.dpsp-network-icon .dpsp-network-icon-inner svg {
    fill: currentColor;
}

/* ---------- [ Floating Sidebar ] ---------- */
#dpsp-floating-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
}

#dpsp-floating-sidebar.dpsp-position-right {
    right: 0;
}

#dpsp-floating-sidebar .dpsp-networks-btns-wrapper li {
    float: none;
    position: relative;
    overflow: visible;
}

#dpsp-floating-sidebar .dpsp-networks-btns-wrapper li {
    margin-bottom: 12px;
}

.dpsp-bottom-spacing .dpsp-networks-btns-sidebar .dpsp-network-btn {
    margin-bottom: 6px;
}

#dpsp-floating-sidebar .dpsp-networks-btns-wrapper .dpsp-network-label {
    position: absolute;
    left: -9999px;
}

/* Scroll settings */
#dpsp-floating-sidebar.dpsp-no-animation {
    display: none;
}
#dpsp-floating-sidebar.dpsp-no-animation.opened {
    display: block;
}
#dpsp-floating-sidebar.dpsp-animation-1 {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
#dpsp-floating-sidebar.dpsp-animation-1.opened {
    opacity: 1;
}
#dpsp-floating-sidebar.dpsp-position-left.dpsp-animation-2 {
    left: -60px;
    transition: left 0.2s ease-in-out;
}
#dpsp-floating-sidebar.dpsp-position-left.dpsp-animation-2.opened {
    left: 0;
}

#dpsp-floating-sidebar.dpsp-position-right.dpsp-animation-2 {
    right: -60px;
    transition: right 0.2s ease-in-out;
}
#dpsp-floating-sidebar.dpsp-position-right.dpsp-animation-2.opened {
    right: 0;
}

/* ---------- [ Inline Content ] ---------- */

#dpsp-content-top {
    display: flex;
    align-items: center;
}

#dpsp-content-top .dpsp-networks-btns-wrapper {
    display: flex;
    flex: 1;
}

#dpsp-content-top .dpsp-icon-total-share svg,
.dpsp-network-icon .dpsp-network-icon-inner svg,
#dpsp-content-bottom .dpsp-icon-total-share svg,
.dpsp-network-icon .dpsp-network-icon-inner svg {
    fill: currentColor;
    width: auto;
}

/* columns */
.dpsp-networks-btns-wrapper.dpsp-column-1 li {
    width: 100%;
    margin-left: 0;
}
.dpsp-has-spacing .dpsp-networks-btns-wrapper.dpsp-column-1 li {
    margin-right: 0;
}
.dpsp-networks-btns-wrapper.dpsp-column-2 li {
    width: 50%;
}
.dpsp-has-spacing .dpsp-networks-btns-wrapper.dpsp-column-2 li {
    width: 49%;
}
.dpsp-networks-btns-wrapper.dpsp-column-2 li:nth-child(2n) {
    margin-right: 0;
}
.dpsp-networks-btns-wrapper.dpsp-column-3 li {
    width: 33.3333%;
}
.dpsp-has-spacing .dpsp-networks-btns-wrapper.dpsp-column-3 li {
    width: 32%;
}
.dpsp-networks-btns-wrapper.dpsp-column-3 li:nth-child(3n) {
    margin-right: 0;
}
.dpsp-networks-btns-wrapper.dpsp-column-4 li {
    width: 25%;
}
.dpsp-has-spacing .dpsp-networks-btns-wrapper.dpsp-column-4 li {
    width: 23.5%;
}
.dpsp-networks-btns-wrapper.dpsp-column-4 li:nth-child(4n) {
    margin-right: 0;
}
.dpsp-networks-btns-wrapper.dpsp-column-5 li {
    width: 20%;
}
.dpsp-has-spacing .dpsp-networks-btns-wrapper.dpsp-column-5 li {
    width: 18.4%;
}
.dpsp-networks-btns-wrapper.dpsp-column-5 li:nth-child(5n) {
    margin-right: 0;
}
.dpsp-networks-btns-wrapper.dpsp-column-6 li {
    width: 16.6666%;
}
.dpsp-has-spacing .dpsp-networks-btns-wrapper.dpsp-column-6 li {
    width: 15%;
}
.dpsp-networks-btns-wrapper.dpsp-column-6 li:nth-child(6n) {
    margin-right: 0;
}
.dpsp-networks-btns-wrapper.dpsp-column-7 li {
    width: 14.285%;
}
.dpsp-has-spacing .dpsp-networks-btns-wrapper.dpsp-column-7 li {
    width: 13%;
}
.dpsp-networks-btns-wrapper.dpsp-column-7 li:nth-child(6n) {
    margin-right: 0;
}

/* ---------- [ Shortcode ] ---------- */

/* ---------- [ Sticky bar ] ---------- */

#dpsp-sticky-bar-wrapper {
    background: #fff;
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#dpsp-sticky-bar-wrapper.dpsp-position-desktop-top {
    bottom: auto;
    top: 0;
}

#dpsp-sticky-bar-wrapper.dpsp-no-animation.opened {
    visibility: visible;
    opacity: 1;
}

#dpsp-sticky-bar-wrapper.dpsp-no-animation {
    visibility: hidden;
    opacity: 0;
}

@media screen and (min-width: 782px) {
    body.admin-bar #dpsp-sticky-bar-wrapper {
        margin-top: 32px;
    }
}

#dpsp-sticky-bar {
    box-sizing: border-box;
    display: none;
    margin: 7px 0;
    position: relative;
}

#dpsp-sticky-bar-wrapper.dpsp-is-mobile #dpsp-sticky-bar {
    position: static;
    margin: 0;
    width: 100% !important;
    padding: 0;
}

#dpsp-sticky-bar-wrapper.dpsp-is-mobile.dpsp-position-mobile-top {
    bottom: auto;
    top: 0;
}

#dpsp-sticky-bar-wrapper.dpsp-is-mobile.dpsp-position-mobile-bottom {
    bottom: 0;
    top: auto;
}

#dpsp-sticky-bar .dpsp-networks-btns-wrapper {
    display: flex;
}

#dpsp-sticky-bar .dpsp-networks-btns-wrapper li {
    margin-bottom: 0;
    margin-left: 3px;
    margin-right: 3px;
    float: none;
    flex: 1;
}

#dpsp-sticky-bar .dpsp-networks-btns-wrapper li:last-of-type {
    margin-right: 0px !important;
}

#dpsp-sticky-bar .dpsp-network-btn {
    background: #dee4e5;
    border-color: #000;
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
}

#dpsp-sticky-bar .dpsp-network-btn .dpsp-network-icon {
    display: inline-block;
    position: relative;
    width: 20px;
    overflow: visible;
}

#dpsp-sticky-bar .dpsp-network-icon .dpsp-network-icon-inner svg {
    fill: #000;
}

/* ---------- [ Pop-Up, On Hold ] ---------- */

/* ---------- [ Follow Widget ] ---------- */
.dpsp-shortcode-follow-wrapper > .dpsp-networks-btns-follow-widget {
    display: flex;
    flex-flow: row wrap;
}
.dpsp-shortcode-follow-wrapper.dpsp-follow-align-left
    > .dpsp-networks-btns-follow-widget {
    justify-content: flex-start;
}
.dpsp-shortcode-follow-wrapper.dpsp-follow-align-center
    > .dpsp-networks-btns-follow-widget {
    justify-content: center;
}
.dpsp-shortcode-follow-wrapper.dpsp-follow-align-right
    > .dpsp-networks-btns-follow-widget {
    justify-content: flex-end;
}

/* ---------- [ Share counts ] ---------- */

/* Total Share counts */
.dpsp-icon-total-share svg {
    position: relative;
    top: 0.1em;
    max-height: 14px;
    width: auto;
    overflow: visible;
    transition: fill 0.15s ease-in-out;
}

.dpsp-size-large .dpsp-icon-total-share svg {
    max-height: 22px;
}

.dpsp-icon-total-share {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpsp-show-total-share-count {
    position: relative;
}

.dpsp-total-share-wrapper {
    line-height: 1.345;
}

.dpsp-total-share-wrapper .dpsp-total-share-count {
    font-size: 15px;
    line-height: 18px;
    white-space: nowrap;
}

.dpsp-total-share-wrapper .dpsp-icon-total-share {
    grid-row: 1 / span 2;
    font-size: 20px;
    display: flex;
}

.dpsp-total-share-wrapper .dpsp-icon-total-share svg {
    max-height: 16px;
    top: 2px;
    width: auto;
    fill: currentColor;
}

#dpsp-floating-sidebar .dpsp-total-share-wrapper {
    margin-bottom: 10px;
}

#dpsp-floating-sidebar .dpsp-total-share-wrapper .dpsp-icon-total-share {
    display: none;
}

.dpsp-total-share-wrapper span {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.dpsp-content-wrapper .dpsp-total-share-wrapper,
.dpsp-pop-up-buttons-wrapper .dpsp-total-share-wrapper,
.dpsp-share-buttons-wrapper .dpsp-total-share-wrapper,
.dpsp-shortcode-wrapper .dpsp-total-share-wrapper {
    display: grid;
    grid-template-columns: min-content 1fr;
    column-gap: 8px;
    align-items: center;
    margin-right: 8px;
    align-self: center;
}

#dpsp-sticky-bar-wrapper.dpsp-is-mobile .dpsp-total-share-wrapper {
    display: none;
}

/* Single Counts */
.dpsp-networks-btns-wrapper .dpsp-network-btn .dpsp-network-count {
    font-size: 13px;
    font-weight: 400;
    padding-left: 4px;
    white-space: nowrap;
}

/* ---------- [ Hide on Mobile ] ---------- */

@media screen and (max-width: 720px) {
    .dpsp-hide-on-mobile,
    .dpsp-content-wrapper.dpsp-hide-on-mobile,
    #dpsp-floating-sidebar.dpsp-hide-on-mobile {
        display: none !important;
    }
}

/* ================================
[ Image Hover Pinterest Button ]
================================ */

.dpsp-pin-it-wrapper {
    position: relative !important;
    display: inline-table !important;
    line-height: 0;
}
.dpsp-pin-it-wrapper.aligncenter,
.dpsp-pin-it-wrapper.alignleft,
.dpsp-pin-it-wrapper.alignright {
    display: table !important;
}
.dpsp-pin-it-wrapper:hover .dpsp-pin-it-button {
    visibility: visible;
    background-color: #c92228 !important;
    color: #fff !important;
}
.dpsp-pin-it-wrapper.aligncenter {
    margin-left: auto;
    margin-right: auto;
}
.wp-block-gallery.is-cropped .blocks-gallery-item .dpsp-pin-it-wrapper {
    height: 100%;
    flex: 1;
    object-fit: cover;
}
.dpsp-pin-it-button {
    display: inline-block;
    position: absolute;
    background: transparent;
    color: transparent !important;
    text-decoration: none !important;
    border: 0 !important;
    height: 40px !important;
    width: auto !important;
    font-family: Arial;
    font-weight: 700;
    font-size: 14px;
    line-height: 40px;
    vertical-align: middle;
    transition: all 0.25s ease-in-out;
    visibility: hidden;
    box-shadow: none !important;
    background-image: none !important;
}
.dpsp-pin-it-button:hover {
    color: #fff;
    background: #b31e24;
    box-shadow: none !important;
}
.dpsp-pin-it-button.dpsp-pin-it-button-has-label {
    padding-right: 20px;
}
.dpsp-pin-it-button.dpsp-pin-it-button-has-label:after {
    display: inline-block;
    content: attr(title);
}
.dpsp-pin-it-button .dpsp-network-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: top;
}
.dpsp-pin-it-button .dpsp-network-icon svg {
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    fill: #fff;
}
.dpsp-pin-it-button.dpsp-pin-it-button-top-left {
    top: 10px;
    left: 10px;
}
.dpsp-pin-it-button.dpsp-pin-it-button-top-right {
    top: 10px;
    right: 10px;
}
.dpsp-pin-it-button.dpsp-pin-it-button-bottom-left {
    bottom: 10px;
    left: 10px;
}
.dpsp-pin-it-button.dpsp-pin-it-button-bottom-right {
    bottom: 10px;
    right: 10px;
}
.dpsp-pin-it-button.dpsp-pin-it-button-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.dpsp-pin-it-button.dpsp-pin-it-button-shape-rectangular {
    border-radius: 0;
}
.dpsp-pin-it-button.dpsp-pin-it-button-shape-rounded {
    border-radius: 4px;
}
.dpsp-pin-it-button.dpsp-pin-it-button-shape-circle {
    border-radius: 40px;
}
.dpsp-pin-it-wrapper .dpsp-pin-it-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
    pointer-events: none;
}
.dpsp-pin-it-wrapper:hover .dpsp-pin-it-overlay {
    opacity: 0.4;
    visibility: visible;
}
