/**
 * LDE Wishlist Overlay Styles
 *
 * @package FGS\LdeWishlist
 */


/**** HEADER ICON BADGE ****/
#lde-header-icon-wishlist {
    position: relative;
    cursor: pointer;
}

.lde-wishlist-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: var(--lde-primary-color, #32B7B7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    padding: 3px 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.lde-wishlist-badge.pulse-element {
    animation: lde-badge-pulse 0.4s ease-out;
}

@keyframes lde-badge-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}
/**** /HEADER ICON BADGE ****/


#lde-wishlist-overlay-outer {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: #8b8b8ba6;
    display: none;
}

#lde-wishlist-overlay-outer.active {
    display: block;
}

#lde-wishlist-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lde-wishlist-inner {
    background-color: #fff;
    padding: 2rem;
    position: relative;
    max-width: 500px;
}

/**** OVERLAY CLOSE ****/
#lde-wishlist-close {
    position: absolute;
    right: 1.2rem;
    top: 0.8rem;
    font-size: 1.4rem;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.2s ease-out;
}

#lde-wishlist-close:hover {
    transform: scale(1.1);
}

#lde-wishlist-close svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}
/**** /OVERLAY CLOSE ****/


/**** OVERLAY LOADING ****/
#lde-wishlist-loading {
    margin-top: 1rem;
}

#lde-wishlist-loading .lds-dual-ring:after {
    border-color: var(--lde-primary-color) transparent var(--lde-primary-color) transparent;
}
/**** /OVERLAY LOADING ****/


/**** CONTENT ****/
#lde-wishlist-heading {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

#lde-wishlist-entries {
    margin-bottom: 1rem;
}

.lde-wishlist-entry {
    margin-bottom: 0.4rem;
    max-width: 35rem;
}

.lde-wishlist-remove-item {
    margin-right: 0.6rem;
    color: #313131;
    cursor: pointer;
    transition: transform 0.2s ease-out;
}

.lde-wishlist-remove-item:hover {
    transform: scale(1.1);
}

.lde-wishlist-remove-item svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

#lde-wishlist-entries .lde-wishlist-entry a {
    color: var(--lde-accent-color);
    font-weight: bold;
    position: relative;
}
/**** /CONTENT ****/


/**** GO BUTTON ****/
#lde-wishlist-go-button {
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.2s ease-out;
    gap: 0.5rem;
}

#lde-wishlist-go-button:hover {
    transform: scale(1.1);
}

#lde-wishlist-go-button svg {
    width: 1rem;
    height: 1rem;
}

#lde-wishlist-go-button .lds-dual-ring {
    display: none;
}

#lde-wishlist-go-button.loading {
    color: transparent;
}

#lde-wishlist-go-button.loading .lds-dual-ring {
    display: block;
    position: absolute;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
}
/**** /GO BUTTON ****/


/**** EMPTY STATE ****/
#lde-wishlist-empty {
    padding: 1rem 0;
}

#lde-wishlist-empty p {
    margin-bottom: 0.5rem;
}

.lde-wishlist-empty-page {
    padding: 2rem;
    text-align: center;
}
/**** /EMPTY STATE ****/


/**** SHORTCODE PAGE ****/
#lde-wishlist-page {
    min-height: 200px;
}

#lde-wishlist-page-loading {
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lde-wishlist-page-empty {
    padding: 2rem;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 10px;
}

#lde-wishlist-page-empty p {
    margin-bottom: 0.5rem;
}
/**** /SHORTCODE PAGE ****/


/**** MOBILE ****/
@media screen and (max-width: 550px) {
    #lde-wishlist-inner {
        margin: 1rem;
        padding: 1.5rem;
    }

    #lde-wishlist-heading {
        font-size: 1.5rem;
    }
}