﻿@charset "UTF-8";

.widget-item .top-cart {
    position: relative;
    padding: 10px 15px;
}

    .widget-item .top-cart .icon {
        display: inline-block;
        position: relative;
    }

        .widget-item .top-cart .icon .count {
            font-size: 12px;
            width: 17px;
            height: 17px;
            background: #dc5b67;
            border-radius: 17px;
            text-align: center;
            color: #fff;
            display: inline-block;
            line-height: 17px;
            position: absolute;
            top: -8px;
            right: -8px;
        }
    /*商品加入購物車提醒*/
    .widget-item .top-cart .cart-remind {
        position: absolute;
        top: calc(100% + 5px);
        min-width: 150px;
        background: #707070;
        font-size: 14px;
        color: #fff;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 5px 0;
        border-radius: 3px;
        transform: translate(-50%, 0%);
        left: 50%;
        z-index: 999;
    }

    .widget-item .top-cart.show-remind .cart-remind {
        display: flex;
    }

    .widget-item .top-cart .cart-remind::before {
        content: '';
        width: 0px;
        height: 0px;
        border-width: 12px 7px 12px 7px;
        border-style: solid;
        border-color: transparent transparent #707070 transparent;
        position: absolute;
        top: -24px;
        left: calc(50% - 7px);
    }

    .widget-item .top-cart .cart-remind img {
        margin-right: 5px;
    }

    .widget-item .top-cart .cart-remind i {
        width: auto;
        font-size: 20px;
    }
    /*購物車清單*/
    .widget-item .top-cart .top-cart-down {
        width: 400px;
        position: absolute;
        transform: translate(-50%, 0%);
        background: #fff;
        border: 1px solid #b1b1b1;
        border-radius: 3px;
        filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.16));
        top: calc(100% + 5px);
        left: 50%;
        display: none;
        z-index: 999;
    }

    .widget-item .top-cart:hover .top-cart-down {
        display: block;
    }

    .widget-item .top-cart .top-cart-down::before {
        content: '';
        width: 0px;
        height: 0px;
        border-width: 12px 7px 12px 7px;
        border-style: solid;
        border-color: transparent transparent #b1b1b1 transparent;
        position: absolute;
        top: -24px;
        left: calc(50% - 7px);
    }

    .widget-item .top-cart .top-cart-down::after {
        content: '';
        width: 0px;
        height: 0px;
        border-width: 12px 7px 12px 7px;
        border-style: solid;
        border-color: transparent transparent #fff transparent;
        position: absolute;
        top: -22px;
        left: calc(50% - 7px);
    }
    /*無商品*/
    .widget-item .top-cart .no_product {
        width: 100%;
        display: none;
        align-content: center;
        justify-content: center;
        min-height: 240px;
        flex-wrap: wrap;
    }

    .widget-item .top-cart.empty .no_product {
        display: flex;
    }

        .widget-item .top-cart.empty .no_product img {
            width: auto;
        }

    .widget-item .top-cart .no_product strong {
        width: 100%;
        display: block;
        text-align: center;
        margin-top: 10px;
        font-size: 16px;
        line-height: 24px;
        color: #111111;
    }
    /*有商品*/
    .widget-item .top-cart .has_product ul {
        list-style-type: none;
        padding: 0px 0px 0px 20px;
        max-height: 220px;
        overflow: auto;
        width: calc(100% - 20px);
        display: inline-block;
        margin: 15px 20px 15px 0;
        position: unset;
    }

    .widget-item .top-cart.empty .has_product ul {
        display: none;
    }

    .widget-item .top-cart .has_product ul::-webkit-scrollbar {
        width: 5px;
        height: 8px;
    }

    .widget-item .top-cart .has_product ul::-webkit-scrollbar-button {
        width: 5px;
        height: 5px;
    }

    .widget-item .top-cart .has_product ul::-webkit-scrollbar-track {
        background: transparent;
    }

    .widget-item .top-cart .has_product ul::-webkit-scrollbar-thumb {
        background: #e2e2e2;
        border-radius: 10px;
    }

        .widget-item .top-cart .has_product ul::-webkit-scrollbar-thumb:hover {
            background: #b6b6b6;
        }

    .widget-item .top-cart .has_product .shoppingcart-item {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        max-height: unset;
        background: none;
        position: unset;
    }

li.shoppingcart-item + li.shoppingcart-item {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #b1b1b1;
}

.widget-item .top-cart .has_product .imgBox {
    width: 60px;
    margin-right: 15px;
}

    .widget-item .top-cart .has_product .imgBox img {
        width: 100%;
    }

.widget-item .top-cart .has_product .cart-detail {
    width: calc(100% - 75px);
    position: relative;
    text-align: left;
}

    .widget-item .top-cart .has_product .cart-detail h3 {
        font-size: 16px;
        line-height: 22px;
        font-weight: bold;
        color: #111111;
        margin-bottom: 10px;
        padding-right: 30px;
        text-align: justify;
        overflow: hidden;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.widget-item .top-cart .has_product .specification-txt {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 5px;
    color: #111111;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    padding-right: 20px;
    font-weight: normal;
}

.widget-item .top-cart .has_product .price {
    font-size: 16px;
    line-height: 21px;
    font-weight: bold;
    color: #dc3545;
}

.widget-item .top-cart .has_product .cart-detail a {
    position: absolute;
    right: 0;
    top: 0;
    padding: 3px 5px;
    width: auto;
    color: #707070;
    font-size: 1rem;
    line-height: 1rem;
}

.widget-item .top-cart .has_product .cart-price {
    border-top: 1px solid #b1b1b1;
    padding: 15px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.widget-item .top-cart.empty .has_product .cart-price {
    display: none;
}

.widget-item .top-cart .has_product .cart-price .total {
    width: calc(100% - 150px);
    display: flex;
    flex-wrap: wrap;
    text-align: left;
}

    .widget-item .top-cart .has_product .cart-price .total span {
        width: 100%;
        font-size: 14px;
        line-height: 21px;
        color: #111111;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .widget-item .top-cart .has_product .cart-price .total .total-pieces {
        font-size: 18px;
        line-height: 27px;
        margin-right: 5px;
        font-weight: bold;
        color: #111111;
    }

    .widget-item .top-cart .has_product .cart-price .total .totalPrice {
        color: #dc3545;
        font-size: 18px;
        line-height: 27px;
        margin-right: 5px;
        font-weight: bold;
    }

.widget-item .top-cart .has_product .shoppingcart-btn {
    width: 150px;
    padding: 15px 5px;
    background: #1fabde;
    border-radius: 3px;
    color: #ffffff;
    font-size: 18px;
    line-height: 27px;
    font-weight: bold;
    text-align: center;
}

    .widget-item .top-cart .has_product .shoppingcart-btn:hover {
        text-decoration: none;
        background: #0090c5;
    }

.delete-wrap {
    position: fixed;
    background: rgba(0, 0, 0, .4);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
}

.delete-wrap .delete-box {
    display: table;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    padding: 30px;
    min-width: 450px;
    left: calc(50% - 225px);
    top: calc(50% - 100px);
}

    .delete-wrap .delete-box h3 {
        text-align: center;
        font-size: 20px;
        line-height: 30px;
        font-weight: bold;
        color: #111111;
        margin-bottom: 15px;
    }

    .delete-wrap .delete-box span {
        font-size: 16px;
        line-height: 24px;
        color: #111111;
        margin-bottom: 20px;
        display: table;
        width: 100%;
        text-align: center;
    }

    .delete-wrap .delete-box a {
        width: calc(50% - 10px);
        display: inline-block;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        line-height: 27px;
        padding: 14px 0;
        border-radius: 3px;
        text-decoration: none;
    }

.cancel-btn {
    border: 1px solid #707070;
    color: #707070;
    margin-right: 20px;
}

    .cancel-btn:hover {
        color: #707070;
    }

.delete-btn {
    background: #db5b67;
    color: #fff;
}

    .delete-btn:hover {
        color: #fff;
    }

@media (max-width:991px) {
    .widget-item .top-cart .top-cart-down, .widget-item .top-cart .cart-remind {
        display: none !important;
    }
}
