/* User Account */

.my-account-wrapper {
    overflow: hidden;
    margin: 80px 0;
    display: flex;
    column-gap: 32px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 20%;
    padding: 24px;
    background: #ffffff;
    border-radius: 24px;
}

.woocommerce-MyAccount-navigation ul li a {
    color: rgb(44 48 44);
    display: block;
    padding: 12px;
    font-size: 16px;
    opacity: 0.8;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    opacity: 1;
    border-right: 3px solid #FFFFFF;
    background: #274029;
    color: #FFFFFF;
    border-radius: 16px;
}

.userinfo-account {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: rgb(44 48 44);
}

.userinfo-account img {
    border-radius: 100%;
    padding: 2px;
    background: #FFFFFF;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 80%;
}

.my-account-detail-boxs {
    margin-bottom: 40px;
    padding: 40px;
    background-color: white;
    border-radius: 24px;
}

.account-detail-box {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.account-detail-box-content {
    color: #FFFFFF;
    width: 100%;
    padding: 16px;
    background: aliceblue;
    border-radius: 16px;
}

.account-detail-box-content:nth-child(1) {
    background: red;
}

.account-detail-box-content:nth-child(2) {
    background: blue;
}

.account-detail-box-content:nth-child(3) {
    background: lightseagreen;
}

.account-detail-box-content:nth-child(4) {
    background: orange;
}

.account-detail-box-content > span {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.my-account-orders-wrapper {
    margin-bottom: 40px;
    padding: 40px;
    background-color: white;
    border-radius: 24px;
}

.my-account-orders {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.my-account-orders .order-box {
    padding: 32px;
    background: #f8f8f8;
    border-radius: 24px
}

.my-account {
    background-color: #F5F5F5;
}

.my-account-last-orders {
    padding: 40px;
    background-color: white;
    border-radius: 24px;
}

.my-account-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.last_order_items{
    display: flex;
    flex-direction: column;
}

.last-order-detail {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.last_order_items .product_image img {
    width: 40px !important;
    border-radius: 4px;
}

.last_order_items .order-image {
    padding: 8px 0;
    border-bottom: 1px solid #E5E5E5;
}

.last_order_items .last-order-detail {
    padding: 8px 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    justify-content: flex-start !important;
}


body.woocommerce-account header,
body.woocommerce-account footer { display: none;}

/* Custom styles NAVIGATION RIGHT */
.custom-navigation{position:fixed;top:0;right:0;height:100vh;width:16.75rem;background-color:#ffffff;color:#000000;display:flex;flex-direction:column;justify-content:space-between;padding:1.125rem 0;box-shadow:-20px 0 20px rgb(0 0 0 / 2%);overflow-y: auto;}.navigation-header{text-align:center;background:#0ea5e9;margin:0 20px 40px;padding:0;border-radius:4px}.profile-icon img{border-radius:50%;border:4px solid #ffffff;background:#fff;margin-bottom:-30px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;height:80px;width:80px}.user-info{margin-top:10px}.user-name{font-size:16px;font-weight:bold;color:#fff}.current-date{font-size:14px;margin-top:5px;color:#fff}.navigation-menu{flex-grow:1;list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.menu-item{display:flex;align-items:center;padding:5px 10px;color:#000;text-decoration:none !important;margin-bottom:10px;transition:background-color 0.3s}.menu-item:hover{background-color:rgba(255,255,255,0.2)}.menu-icon{margin-right:10px}.menu-icon img{margin-left: 7px;margin-top: 10px;margin-bottom: 7px;display:inline-block;width:20px;height:20px;transition:filter 0.3s ease,transform 0.3s ease}.menu-item:hover .menu-icon img{filter:invert(63%) sepia(91%) saturate(748%) hue-rotate(174deg) brightness(92%) contrast(95%);transform:scale(1.1)}.menu-label{flex:1;font-size:16px;text-align:right}.menu-label:active,.menu-label:hover{color:#0ea5e9}.menu-arrow img{margin-left:10px;width:15px;height:15px;transition:filter 0.3s}.menu-item:hover .menu-arrow img{filter:invert(63%) sepia(91%) saturate(748%) hue-rotate(174deg) brightness(92%) contrast(95%)}.logout-button{display:inline-flex;padding:12px 15px 7px;background-color:#f3f4f6;color:#0c0c0c;border-radius:5px;text-decoration:none !important;font-weight:500;transition:background-color 0.3s,color 0.3s}span.logout-icon{margin-right:10px}.logout-section {margin: 0 auto;}.custom-navigation::-webkit-scrollbar {width: 12px;background-color: #f1f1f1;}.custom-navigation::-webkit-scrollbar-thumb {background-color: #c0c2c5;border-radius: 10px;border: 3px solid #f1f1f1;}.custom-navigation::-webkit-scrollbar-thumb:hover {background-color: #c0c2c5;}



/* تغییر پس‌زمینه پنل پیشخوان ووکامرس */
.woocommerce-MyAccount-content {
    background-color: #f3f4f6;}
.account-details-title::after {
    content: "";
    width: 50px;
    height: 3px;
    background-color: #0078ff;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* account custom code */
.woocommerce-account {
    background-color: #F3F4F6;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.25rem;
    max-width: 1332px;
    margin-left: auto;
    margin-right: auto;

    @media (min-width: 768px) {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 2rem;
    }
}

.woocommerce-MyAccount-content {
    background:none !important;
}

.header-myAccount {
    display: flex;
    margin-bottom: 1.25rem;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.header-myAccount-right {
    display: flex;
    align-items: center;
}

.header-myAccount-left {
    display: flex;
    align-items: center;
    height: 3.25rem;
    -moz-column-gap: 1.25rem;
    column-gap: 1.25rem;
}

.myAccount-header-logo {
    display: flex;
    column-gap: 0.5rem;
    align-items: center;
    border-left: 1px solid rgb(229 229 229);
    @media (min-width: 1280px) {
        padding-left: 1.5rem;
        margin-left: 1.5rem;
        border-left-width: 1px;
    }
}

.myAccount-header-logo svg{
    height: 3.25rem;
}

.myAccount-profile {
    display: none;
    @media (min-width: 1280px) {
        display: block;
    }
}

.header-myAccount-left {
    display: flex;
    column-gap: 1.25rem;
    align-items: center;
}

.main-myAccount-top {
    display: flex;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    flex-wrap: wrap;
    row-gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.25rem;
    background-color: #ffffff;

    @media (min-width: 640px) {
        padding-left: 2rem;
        padding-right: 2rem;
    }

}

.main-myAccount-content {
    display: flex;
    grid-column: span 3 / span 3;
    column-gap: 1rem;
    align-items: center;
    width: 16rem;
}

.main-myAccount-content-details {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}

.main-myAccount-content svg {
    width: 48px;
    height: 48px;
}

.main-myAccount-content-details .box-title {
    font-size: .875rem;
    line-height: 1.5rem;
    color:rgb(55 65 81);
    font-weight: 500;
}


.main-myAccount-content-details .box-content {
    font-size: 1rem;
    line-height: 1.75rem;
    color:rgb(55 65 81);
    font-weight: 600;
}

/* responsive user panel */
@media (max-width: 1280px) {
    .myAccount-header-logo {
        border-left: 0;
    }
}

@media (min-width: 768px) {
    .navigation__open-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .my-account-orders {
        flex-direction: column;
    }
    .account-detail-box {
        flex-direction: column;
    }

    .woocommerce-account .site-main {
        padding-right: 0;
    }

    .custom-navigation {
        z-index: 50;
    }

    .-right-72 {
        right: -16.75rem;
    }

    .-right-0 {
        right: 0;
    }

    .myBackdrop--visible {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .myBackdrop {
        visibility: hidden;
        position: fixed;
        inset: 0;
        z-index: 10;
        height: 100%;
        width: 100%;
        opacity: 0;
        background-color: #0006;
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
    }
}

@media (min-width: 768px) {
    .myBackdrop, .mobile-close-btn {
        display: none;
    }
    .woocommerce-account .main {
        max-width: none !important;
        padding-right: 16.75rem !important;
    }
}

@media (max-width: 640px) {
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
        display: flex !important;
        gap: 8px !important;
        align-items: center;
        flex-direction: column;
    }

    .header-myAccount {
        padding-top: 18px;
        padding-bottom: 18px;
        padding-left: 16px;
        padding-right: 16px;
    }

}