/* TOOLBAR (PRINT & SHARE)
   ==================================================================================================== */

body.wp-admin .toolbar {
    pointer-events: none;
}
.toolbar {
    width: 64px;
}

.toolbar__item {
    width: inherit;
    height: 64px;
    border-radius: 64px;
    background-color: var(--wp--preset--color--secondary-100);
    box-shadow: 6px 6px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 375ms cubic-bezier(0.4, 0, 0.2, 1);
}
.toolbar__item:hover {
    transform: scale(1.05);
}
.toolbar__item:not(:last-child) {
    margin-bottom: 1em;
}
.toolbar__item button {
    display: flex;
    padding: 0.5em;
    border: none;
    background: none;
    cursor: pointer;
}

@media ( min-width: 1260px) {
    .toolbar__item {
        right: 2em;
    }
}


.toolbar__item--share {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: 
        transform 375ms cubic-bezier(0.4, 0, 0.2, 1),
        height 0.2s ease-in-out;
}
.toolbar__item--share.is-open {
    height: 290px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    background-color: var(--wp--preset--color--white);
}
.toolbar__item--share.is-open .wx-share-close {
    display: flex;
}
.toolbar__item--share.is-open .wx-share-open {
    display: none;
}
.toolbar__item--share.is-open .wx-share {
    opacity: 1;
    visibility: visible;
    position: static;
}



.toolbar__item--share .wx-share {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    opacity: 0;
    visibility: hidden;
    position: absolute;
}
.toolbar__item--share .wx-share-close {
    display: none;
    margin-top: 1em;
}
.toolbar__item--share .wx-share-open {
    display: flex;
}
.toolbar__item--share .wx-share__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0.5em;
}
.toolbar__item--share .wx-share__item::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    content: "";
}



.wx-share__item svg path {
    transition: fill 0.2s ease-in-out
}
.wx-share__item--facebook:hover svg path {
    fill: #1877f2
}
.wx-share__item--twitter:hover svg path {
    fill: #1da1f2
}
.wx-share__item--linkedin:hover svg path {
    fill: #0a66c2
}
.wx-share__item--whatsapp:hover svg path {
    fill: #1cb39b
}
.wx-share__item--email:hover svg path {
    fill: var(--wp--preset--color--primary-100);
}

