/* Sidebar */
.phs-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.phs-overlay.active {
    opacity: 1;
    visibility: visible;
}

.phs-sidebar-wrap {
    position: fixed;
    top: 0; left: 0;
	padding-bottom: 20px;
    width: 360px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.phs-sidebar-wrap.active {
    transform: translateX(0);
}

.phs-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: bold;
}
.phs-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.phs-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.phs-sidebar-footer {
    border-top: 1px solid #eee;
    padding: 15px 20px;
}
.phs-sidebar-footer .total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: bold;
}
.phs-sidebar-footer .btn {
    display: block;
    width: auto;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.phs-sidebar-footer .btn.view-cart {
    background: #f3f3f3;
    color: #333;
}
.phs-sidebar-footer .btn.checkout {
    background: #F5683C;
    color: #fff;
}
.woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img {
    float: right !important;
    min-width: 65px;
    max-width: 65px;
    margin-bottom: 8px;
    margin-inline-end: 15px;

}
.woocommerce-mini-cart-item.mini_cart_item:hover {
    background-color: #F6F6F6;
}
.woocommerce-mini-cart-item.mini_cart_item:hover .remove {
    color: #333 !important;
    box-shadow: 0 0 3px rgba(0, 0, 0, .1);
}
p.woocommerce-mini-cart__total.total {
    display: none;
}
p.woocommerce-mini-cart__buttons.buttons {
    display: none;
}
.woocommerce ul.cart_list li, .woocommerce ul.product_list_widget li {
    padding: 15px !important;
}
.woocommerce ul.cart_list li a {
    font-size: 14px;
}
a.remove.remove_from_cart_button {
    float: left;
    font-size: 25px !important;
    left: 10px;
    position: absolute;
}
.woocommerce a.remove {
    font-weight: 200 !important;
    color: #333 !important;
}
.woocommerce a.remove:hover {
    color: #333 !important;
    background: #fff !important;
}
.woocommerce-mini-cart-item .quantity{
	display: block;
    color: #bbb;
    font-size: 90%;
}
.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount.amount {
    color: #F5683C;
    font-weight: 600;
}
.woocommerce-mini-cart-item a:not(.remove) {
    font-size: 14px !important;
    padding-left: 20px;
}
a.added_to_cart.wc-forward {
    display: none !important;
}


/* Popup */
.phealthshop-cart-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.phealthshop-cart-popup.active {
    opacity: 1;
    visibility: visible;
}
.phealthshop-cart-popup .popup-content {
    position: relative;
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: popIn .3s ease;
	margin: 50px auto;
}
.phealthshop-cart-popup .popup-content p {
    margin: 0;
	text-align: center;
    font-size: 19px;
    line-height: 1.6;
}
.phealthshop-cart-popup .popup-button {
    display: block;
    width: 200px;
    padding: 12px 0;
    margin: 0 auto;
    font-size: 15px;
    border-radius: 6px;
    background: #F5683C;
    color: #fff;
    cursor: pointer;
    transition: background .3s;
}
.phealthshop-cart-popup .popup-button:hover {
    background: #dd5f38;
}
.phealthshop-cart-popup .popup-close {
	position: absolute;
    top: -50px;
    left: -15px;
    width: 50px;
    height: 50px;
    font-size: 40px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    transition: color .2s;
}
.phealthshop-cart-popup .popup-close:hover {
    background-color: transparent;
    color: rgba(255, 255, 255, .8);
}

@keyframes popIn {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}



/* Button spinner */
button.phs-loading {
    position: relative;
    color: transparent !important;
    text-shadow: none !important;
}

button.phs-loading .phs-button-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: phs-spin 0.6s linear infinite;
}

@keyframes phs-spin {
    to { transform: rotate(360deg); }
}


