﻿.v3-share-widget {
    --share-widget--modal--left: unset;
    --share-widget--modal--right: unset;
    position: relative;
    opacity: 0;
    transition: opacity .25s ease-in-out 0s;
}

#Products .v3-share-widget {
    --share-widget--modal--left: 0;
    --share-widget--modal--right: unset;
    --share-widget--modal--transform: unset;
}

#bizzclubpage-bizzclub-registerform-inviteform-block .v3-share-widget,
.bizzclub-invite-modal .v3-share-widget {
    --share-widget--modal--right: 0;
}

.v3-share-widget.hidden {
    display: none !important;
}

.v3-share-widget.opacity-1 {
    opacity: 1;
}

/**
 * SHARE BUTTON
*/
.v3-share-widget button:focus,
.v3-share-widget button:focus-visible {
    outline: none;
}

.v3-share-widget .widget-button {
    display: block;
    border: 0;
    background-color: transparent;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease-in-out 0s;
    transform: scale(1);
}

    .v3-share-widget .widget-button.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    .v3-share-widget .widget-button:hover {
        transform: scale(1.15);
    }

    .v3-share-widget .widget-button .share-icon {
        display: block;
        width: 32px;
        height: 32px;
    }

/**
 * SHARE MODAL
*/
.v3-share-widget .share-modal {
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    background-color: white;
    border-radius: 4px;
    margin-right: 2px;
    left: var(--share-widget--modal--left);
    right: var(--share-widget--modal--right);
    transform: scale(0.96);
    margin-top: 10px;
    border: 1px solid rgb(234, 234, 234);
    box-shadow: rgb(0, 0, 0) 0px 10px 21px -9px;
    opacity: 0;
    max-height: 600px;
    overflow: hidden;
    transition: opacity 0.18s, transform 0.22s cubic-bezier(0.4,0.2,0.2,1), max-height 0.1s ease-out 0s;
    padding: 20px;
    pointer-events: none;
}

    .v3-share-widget .share-modal.visible {
        display: flex;
    }

    .v3-share-widget .share-modal.opacity-1 {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .v3-share-widget .share-modal .icons {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

        .v3-share-widget .share-modal .icons .icon {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 0.25rem !important;
            border: 0;
            padding: 0;
            transition: transform 0.2s ease-in-out 0s !important;
            transform: scale(1);
        }

            .v3-share-widget .share-modal .icons .icon img {
                display: block;
                object-fit: contain;
                object-position: center;
                width: 70%;
                height: 70%;
            }

                .v3-share-widget .share-modal .icons .icon img.fallback-icon {
                    filter: invert(1);
                }

    .v3-share-widget .share-modal .link {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 1rem;
    }

        .v3-share-widget .share-modal .link .link-input-wrapper {
            flex-grow: 1;
            position: relative;
        }

        .v3-share-widget .share-modal .link .link-input {
            position: relative;
            z-index: 0;
            border: 1px solid rgb(169, 169, 169);
            background: rgb(234, 234, 234);
            border-radius: 0.25rem;
            padding: 0.75rem 0.5rem;
            width: 100%;
            min-width: 150px;
            height: 40px;
            font-size: 0.75rem;
        }

    /* Spinner Animation */
    .v3-share-widget .share-modal .lds-dual-ring-wrapper {
        position: absolute;
        z-index: 10;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.45);
        display: none;
    }

        .v3-share-widget .share-modal .lds-dual-ring-wrapper.visible {
            display: block;
        }

    .v3-share-widget .share-modal .lds-dual-ring {
        /* change color here */
        color: #000000a0;
    }

        .v3-share-widget .share-modal .lds-dual-ring,
        .v3-share-widget .share-modal .lds-dual-ring:after {
            box-sizing: border-box;
        }

    .v3-share-widget .share-modal .lds-dual-ring {
        display: inline-block;
        width: 80px;
        height: 80px;
    }

        .v3-share-widget .share-modal .lds-dual-ring:after {
            content: " ";
            display: block;
            width: 64px;
            height: 64px;
            margin: 8px;
            border-radius: 50%;
            border: 8.4px solid currentColor;
            border-color: currentColor transparent currentColor transparent;
            animation: v3-share-widget-lds-dual-ring 1.2s linear infinite;
        }

@keyframes v3-share-widget-lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.v3-share-widget .share-modal .link .copy {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgb(169, 169, 169);
    background: rgb(234, 234, 234);
    border-radius: 0.25rem;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease-in-out 0s;
    padding: 0;
}

    .v3-share-widget .share-modal .link .copy:hover {
        background: rgb(250, 250, 250);
    }

    .v3-share-widget .share-modal .link .copy .copy-icon {
        display: flex;
        object-fit: contain;
        object-position: center;
        width: 70%;
        height: 70%;
        transition: all 0.2s ease-in-out 0s;
        opacity: 1;
    }

    .v3-share-widget .share-modal .link .copy:hover .copy-icon.state-copy {
        filter: invert(0);
    }

    .v3-share-widget .share-modal .link .copy .copy-icon:not(.visible) {
        display: none;
        opacity: 0;
    }

.v3-share-widget .share-modal button.icon:hover {
    transform: scale(1.15);
}

.v3-share-widget .share-modal button.icon:focus {
    outline: solid 1px gray;
    outline-offset: 2px;
}

.v3-share-widget .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

@media (max-width: 425px) {

    .v3-share-widget .widget-button .share-icon {
        width: 45px;
        height: 45px;
    }

    .v3-share-widget .share-modal {
        max-width: calc(100vw - 70px);
    }

        .v3-share-widget .share-modal .icons {
            flex-wrap: wrap;
            justify-content: center;
        }

            .v3-share-widget .share-modal .icons .icon {
                width: 50px;
                height: 50px;
            }

        .v3-share-widget .share-modal .link {
            gap: .5rem;
        }
}
