/* Product image share popover */
.product.media {
    position: relative;
}

.wci-product-share {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wci-product-share__toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #888;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    padding: 0;
    line-height: 1;
}

.wci-product-share__toggle:hover,
.wci-product-share.is-open .wci-product-share__toggle {
    background: #f7f7f7;
}

.wci-product-share__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 168px;
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 17, 17, 0.18);
    padding: 8px 0 4px;
    display: none;
}

.wci-product-share__menu:not([hidden]) {
    display: block;
}

.wci-product-share.is-open .wci-product-share__menu {
    display: block;
}

.wci-product-share__menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #d5d9d9;
    border-top: 1px solid #d5d9d9;
    transform: rotate(45deg);
}

.wci-product-share__close {
    position: absolute;
    top: 2px;
    right: 6px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    z-index: 1;
}

.wci-product-share__list {
    list-style: none;
    margin: 0;
    padding: 10px 0 0;
}

.wci-product-share__list > li + li {
    border-top: 1px solid #eee;
}

.wci-product-share__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    color: #0f1111;
    text-decoration: none;
    background: transparent;
    border: 0;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.wci-product-share__item:hover {
    background: #f5f5f5;
    color: #0f1111;
    text-decoration: none;
}

.wci-product-share__item-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.wci-product-share.is-copied .wci-product-share__copy-label {
    color: #067d62;
    font-weight: 600;
}

@media (max-width: 767px) {
    .wci-product-share {
        top: 8px;
        right: 8px;
    }

    .wci-product-share__toggle {
        width: 34px;
        height: 34px;
    }
}
