/*
Theme Name: Astra Child
Theme URI: https://wordpress.org/themes/astra/
Description: Child theme of Astra
Author: Vital Concept
Template: astra
Version: 1.0
Text Domain: astra-child
*/

.pswp__item {
    background: #F5F7FA;
}
.pswp__button {
    filter: invert(1);
}
.post-type-archive-product #primary {
    margin: 0;
}
#purchase-order-number {
    border-radius: 10px;
}
.elementor-menu-cart__subtotal,
.woocommerce-Price-amount,
.cart-subtotal,
.product-subtotal,
.woocommerce-mini-cart__total,
.woocommerce-checkout-review-order-table tfoot,
/* .cart_totals .shop_table, */
.order-total,
.woocommerce-Price-amount,
.product-subtotal,
.product-total,
.woocommerce-table--order-details tfoot
{
    display: none !important;
}

.country_to_state.country_select,
#saved_address_selector,
.woocommerce-address-fields .state_select {
    padding: 8px 16px !important;
}
.multiple-address-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}
.multiple-address-list address {
    padding: 30px !important;
}
.woocommerce-Address {
    position: relative;
    overflow: hidden;
}
.multi-address-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 10px;
}

.multi-address-actions a,
button.edit-multi-address {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    background: #f5f5f5 !important;
    color: #5bc0de !important;
    padding: 0 !important;
}


.edit-multi-address:hover,
.delete-multi-address:hover {
    background: #111 !important;
    color: #fff !important;
}
.woocommerce-Address address {
    margin-top: 20px;
    line-height: 1.8;
}

.payment_box.payment_method_purchase_order_gateway,
.payment_method_purchase_order_gateway .form-row  {
    padding: 0 !important;
    margin: 0 0 6px !important;
}

.cancel-multi-address,
[name="save_multiple_address"],
.theme-button-main {
    color: #ffffff !important;
    border-radius: 50px;
    background-color: #68b9f8 !important;
    transition: all 0.3s ease;
    margin: 20px 0 !important;
    font-weight: 600 !important;
}
.cancel-multi-address:hover,
[name="save_multiple_address"]:hover,
.theme-button-main:hover {
    background-color: #000 !important;
}
.woocommerce-cart .wc-proceed-to-checkout::after, 
.woocommerce-cart .wc-proceed-to-checkout::before {
    display: none;
 }
.woocommerce-page.woocommerce-checkout form #order_review td.product-name, 
.woocommerce.woocommerce-checkout form #order_review td.product-name {
    justify-content: space-between;
}
 /* Mini Cart CSS */
.cart-contents-toggle {
    background-color: #111111;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cart-contents-toggle:hover {
    background-color: #333333;
}

/* Offcanvas Slide-Out Container */
.custom-mini-cart-offcanvas {
    position: fixed;
    top: 0;
    right: -460px; /* Hidden off-screen right side */
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 99999;
    padding: 25px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Header Inside Drawer */
.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.mini-cart-header h3 {
    margin: 0;
    font-size: 18px;
}
.mini-cart-close {
    background: none !important;
    border: none;
    font-size: 28px !important;
    cursor: pointer;
    line-height: 1 !important;
    padding: 0 !important;
    color: #000 !important;
}

/* Content Window */
.custom-mini-cart-dropdown {
    flex-grow: 1;
    overflow-y: auto; /* Enables scrolling for deep carts */
}

/* Dark Backdrop Overlay layer */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Active Open States triggered by body class */
body.mini-cart-open {
    overflow: hidden; /* Stops underlying page scroll */
}
body.mini-cart-open .custom-mini-cart-offcanvas {
    right: 0;
}
body.mini-cart-open .mini-cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

.woocommerce-MyAccount-navigation-link a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: #4b5563 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.woocommerce-MyAccount-navigation-link:hover a {
    background-color: #f9fafb !important;
    color: #111827 !important;
}

.woocommerce-MyAccount-navigation-link:hover a i {
    color: #4b5563 !important;
}

.woocommerce-MyAccount-navigation-link.is-active a {
    background-color: #eff6ff !important;
    color: #68b9f8 !important;
}
.woocommerce-shipping-fields .shipping_address,
#ship-to-different-address {
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-additional-fields {
    margin: 0 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table_responsive tr td:before, 
.elementor-widget-woocommerce-cart .woocommerce-page .cart_totals table.shop_table_responsive tr td:before {
    display: none;
}
.cart_totals .woocommerce-shipping-methods label {
    color: #000 !important;
}
#saved_address_selector_field {
    margin: 20px 0 !important;
}
.woocommerce-js a.remove:before {
    top: 1px;
    left: 1px;
    width: 22px;
    height: 22px;
}
textarea#order_comments {
    height: 120px;
}
.woocommerce-additional-fields {
    padding: 0px !important;
    margin-top: 20px !important;
}
/* .single-product .group_table th:nth-child(7),
.single-product .group_table td:nth-child(7) {
    display: none;
} */

/* Red border on invalid fields */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
    border-color: #dc3232 !important;
}

/* Red label */
.woocommerce-invalid label {
    color: #dc3232;
}

/* Red error message */
.checkout-inline-error-message {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
}

/* Optional: red required asterisk */
.woocommerce-invalid .required {
    color: #dc3232;
}
 @media only screen and (max-width: 1366px) {
    .custom-mini-cart-offcanvas {
        right: auto;
        left: -460px;
    }
    body.mini-cart-open .custom-mini-cart-offcanvas {
        right: auto;
        left: 0;
    }
 }
@media only screen and (max-width: 900px) {
	.woocommerce-js a.remove:before {
		right: 1px;
		left: unset;
	}
}
 @media only screen and (max-width: 768px) {
    .multiple-address-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .multiple-address-list address {
        padding: 30px 20px !important;
    }
    .woocommerce form .form-row-first, 
    .woocommerce form .form-row-last, 
    .woocommerce-page form .form-row-first, 
    .woocommerce-page form .form-row-last {
        width: 100%;
    }
    .woocommerce form .form-row-first, .woocommerce-page form .form-row-first,
    .woocommerce form .form-row-last, .woocommerce-page form .form-row-last {
        float: unset;
    }
 }
 