/* ICON */
.wps247-cart-icon {
  position: relative;
  cursor: pointer;
}

.mini-cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 12px;
    text-align: center;
    border-radius: 50%;
}

/* OVERLAY */
.mini-cart {
    z-index: 999;
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.mini-cart.open {
    pointer-events: auto;
}

.mini-cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.3s;
}

.mini-cart.open .mini-cart-overlay {
    opacity: 1;
}

/* PANEL */
.mini-cart-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 380px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.mini-cart.open .mini-cart-panel {
    transform: translateX(0);
}

/* HEADER */
.mini-cart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mini-cart-header h3{
    margin: 0;
}
.mini-cart-header button.mini-cart-close {
    border: none;
    background-color: transparent;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    height: 25px;
    width: 25px;
    color: #333;
}

/* BODY */
.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.mini-cart-body .item-image {
    border: none;
}


/* FOOTER */
.mini-cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.mini-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-btn {
    display: block;
    width: 100%;
    background: #0a3d91;
    color: #fff;
    text-align: center;
    padding: 12px;
    margin-top: 10px;
}
.custom-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mini-cart-item {
    height: 100px;
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #ffdd8e;
    position: relative;
    align-items: flex-start;
}

/* IMAGE */
.item-image img {
    width: 70px;
    height: auto;
    display: block;
    object-fit: cover;
}

/* INFO */
.item-info {
    flex: 1;
    padding-right: 10px;
}

.item-name {
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}
.item-name a {
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* PRICE */
.item-price {
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-direction: column;
    height: 100%;
}

/* QTY */
.qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.mini-cart .qty-control input {
    border: none;
    padding: 0;
    text-align: center;
    width: 30px;
    font-weight: 600;
}

.mini-cart .qty-control .qty-btn {
    border: none;
    background: transparent;
    color: #a4aaaf;
    font-size: 10px;
    padding: 10px 12px 6px;
}
.mini-cart .qty-control .qty-btn::before {
    font-family: 'Font Awesome 5 Free' !important;
}
.mini-cart .item-name a{
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.mini-cart a.remove.remove-item{
    font-size: 20px;
    color: #333 !important;
    line-height: 1;
}
.mini-cart a.remove.remove-item:hover {
    background: transparent;
    color: #333;
    opacity: .8;
}

/* free shipping */
.cart-free-shipping-bar {
    padding: 0 15px 30px;
}
.cart-free-shipping__title {
    margin-bottom: 20px;
    font-size: 16px;
}
.cart-free-shipping__title .remaining {
    color: #E6A200;
    font-weight: 600;
}
.cart-free-shipping__bar {
    width: 100%;
    height: 12px;
    background-color: #eee;
    border-radius: 999px;
}
.cart-free-shipping__bar .process {
    width: 7%;
    height: 12px;
    background-color: #FECD57;
    border-radius: 999px;
    position: relative;
    transition: all .5s ease-in-out;
}
.cart-free-shipping__bar .process > span {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    padding: 8px;
    border-radius: 999px;
    background-color: #FECD57;
    color: #fff;
}
