header .basket {
    position: relative;
}


.basket-summary {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    top: 45px;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 0 10px -5px black;
    border-radius: 5px;
    z-index: 6;
    max-width: 350px;
    transition: 0.3s ease all;
}

.basket-summary.show {
    opacity: 1;
    visibility: visible;
    transition: 0.3s ease all;
}

header .basket:hover .basket-summary {
    opacity: 1;
    visibility: visible;
    transition: 0.3s ease all;
}

.basket-summary::before {
    content: "";
    width: 100%;
    height: 15px;
    display: block;
    background: url("/common/svg/yukari-ok.svg") no-repeat;
    background-size: 30px 15px;
    display: block;
    position: absolute;
    top: -15px;
    right: 0;
    z-index: 5;
    background-position: right 15px center;
}

.basket-summary .items {
    width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
    max-height: 350px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--passive-color);
}
.basket-summary .items::-webkit-scrollbar {
    height: 30px;
    width: 0px;
    background: #ffffff;
}
.basket-summary .items::-webkit-scrollbar-thumb {
    background: var(--passive-color);
    -webkit-border-radius: 0;
}

.basket-summary .total {
    margin: 5px 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 500;
}

.basket-summary .btn {
    display: block;
}

.basket-summary .item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 5px 10px;
    border-bottom: 1px solid var(--passive-color);
    padding-bottom: 10px;
}

.basket-summary .item:last-child {
    border-bottom: unset;
}

.basket-summary .item .img {
    flex-shrink: 0;
}

.basket-summary .item .desc {
    flex: 2;
    font-size: 14px;
}

.basket-summary .item .desc a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.basket-summary .item .desc .count {
    font-size: 12px;
}

.basket-summary .item img {
    width: 65px;
}

.basket-summary .item .prices {
    text-align: right;
}

.basket-summary .item .prices s {
    display: block;
    font-size: 13px;
    color: #717171;
}

.basket-summary .item .prices .price {
    display: block;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.basket-summary .sum {
    font-size: 13px;
    font-weight: 300;
}

.basket-summary .sum a {
    display: block;
}

.basket-summary .sum b {
    font-weight: 600;
}

.basket-summary hr {
    margin: 8px 0;
    height: 0;
    border-bottom: 1px solid;
}

.basket-summary .productPriceBox {
    float: left;
    width: 300px;
    margin: 10px 0;
}

.basket-summary .productPriceBox .goBasket {
    background-color: #fafafa;
    border: 1px solid #e6e6e6;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basket-summary .productPriceBox a {
    float: left;
    width: 140px;
    height: 33px;
    line-height: 33px;
    text-align: center;
    font-size: 14px;
    border-radius: 6px;
}

.basket-summary .productPriceBox a:not(:first-child) {
    margin-left: 10px;
}

.basket-summary .productPriceBox .CompleteOrder {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basket-main .basket-items .cart-tab-content .nav-pills .nav-link.active,
.basket-main .basket-items .cart-tab-content .nav-pills .show>.nav-link {
    color: var(--primary-color) !important;
    background-color: transparent !important;
    border-bottom: 2px solid var(--primary-color);
}

.basket-main .basket-items .cart-tab-content .nav-link:focus,
.basket-main .basket-items .cart-tab-content .nav-link {
    color: #000000 !important;
}

.basket-main .basket-items .cart-tab-content .nav-pills .nav-link {
    background: 0 0;
    border: 0;
    border-radius: 0 !important;
}
.basket-main .basket-items .cart-tab-content ul.nav::-webkit-scrollbar {
    height: 0;
    width: 0px;
    background: #ffffff;
}
.basket-main .basket-items .cart-tab-content ul.nav {
    overflow: auto;
    white-space: nowrap;
    border-bottom: 1px solid rgb(206, 206, 206);
    flex-wrap: nowrap;
    flex-direction: inherit;
}

.basket-main .basket-items .basket-list-box .basket-list-title {
    background-color: #fafafa;
}


.basket-main .basket-sidebar .actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    padding: 10px 0;
}

.basket-main .basket-sidebar .actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 4;
    box-shadow: none;
    border-radius: 0;
    color: var(--primary-color);
    border: 1px solid;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    height: 40px;
}

.basket-main .pay-content {
    flex: 8;
}

.basket-main .pay-content .nav-tabs {
    border: unset;
    gap: 15px;
}

.basket-main .pay-content .nav-tabs .nav-link {
    width: calc(33.3% - 10px);
    border: unset;
    background: #fff;
    color: #262626;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
}

.basket-main .pay-content .nav-tabs .nav-link::before {
    content: "";
    margin-right: 10px;
    display: inline-block;
    border-radius: 3px;
    padding-right: 5px;
    width: 14px;
    height: 14px;
    border: 1px solid #e0e0e0;
}

.basket-main .pay-content .nav-tabs .nav-link.active::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.basket-main .pay-content .tab-content {
    background: #ffffff;
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
}
.features-box{
    display: none;
}
.basket-items ul li .promotion-applied.free-bg {
    background-color: #f9f5eb;
}
.tab-pane .product-list.col-4.gap-20 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1200px) {
    .basket-main .basket-items {
        flex: unset;
        width: 100%;
    }

    .product-list.col-4.gap-20 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    } 
    .tab-pane .product-list.col-4.gap-20 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .b-product-item .stock-error{
        margin: 0;
    }
    .basket-summary {
        display: none;
    }

    .basket-steps ul li {
        font-size: 16px;
    }

    .basket-steps ul li::after {
        content: "- -";
        font-size: 12px;
    }

    .basket-main .basket-items .b-product-item>div {
        float: left;
    }

    .basket-main .basket-items .b-product-item::after {
        display: block;
        clear: both;
        content: "";
    }

    .basket-main .basket-items .b-product-item .bp-desc .title {
        font-size: 13px;
    }

    .basket-main .basket-items .b-product-item .bp-desc .title small {
        line-height: 12px;
    }

    .basket-main .basket-items .b-product-item .bp-total {
        float: right;
    }

    .basket-main .basket-items .b-product-item .bp-package {
        float: right;
    }

    .bp-piece button {
        width: 28px;
        height: 28px;
    }

    .basket-sidebar .total-amount {
        color: #000000;
    }

    .product-list.col-4.gap-20 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .product-list.col-4.gap-20 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}