/*
* Refactored My Account styles originally from style.css – moved here for better organization 
*/

/* woocommerce My account Css Start */
.woocommerce-form-register .woocommerce-form-row label[for="billing_birth_date"]:after {
    content: '(Optional)';
    font-weight: normal;
    margin-left: 5px;
}

.woocommerce-form-register .woocommerce-privacy-policy-text {
    margin-bottom: 10px;
}

/* woocommerce My account Css end */

/* My Account Page Review section Css Start*/
.myreview-wrapper,
.myreview-wrapper .myreview-prdwarp {
    float: left;
    width: 100%;
    font-family: 'Onest';
}

.myreview-wrapper .myreview-title {
    border-bottom: 1px solid #CBD5E0;
    padding: 10px 0px;
    font-size: 1.5rem;
    padding-left: 15px;
    margin-bottom: 0px;
}

.myreview-wrapper .prd-list {
    padding-left: 0px;
    list-style-type: none;
}

.myreview-wrapper .prd-list li {
    padding: 15px 0px;
    border-bottom: 1px solid #CBD5E0;
}

.myreview-wrapper .prd-list li:last-child {
    border-bottom: none;
}

.myreview-wrapper .prd-list li .prd-warp {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prd-review .avg-rating {
    font-size: 18px;
    padding-right: 8px;
}

.prd-review .total-rating {
    text-align: center;
}

span.already-submitted {
    font-size: 13px;
    background: #6c44f055;
    color: #6c44f0;
    display: inline-block;
    line-height: 20px;
    text-align: center;
    padding: 7px 8px;
    font-weight: normal;
    text-align: center;
    font-family: 'Onest';
    border-radius: 25px;
}

.product-reviews-summary .star-rating-wrap {
    top: 1px;
}

.prd-review {
    width: 15%;
    display: flex;
    flex-direction: column;
}

.prd-name {
    font-size: 15px;
}

.myreview-prdwarp .review-title {
    font-size: 14px;
    margin-top: 20px;
    line-height: 20px;
}

.myreview-prdwarp .review-content {
    font-size: 14px;
    line-height: 20px;
}

.myreview-wrapper .prd-list li .prd-warp.approved-reviews {
    align-items: end;
}

.woocommerce-table__line-item.order_item .wc-item-meta {
    padding-left: 0;
}

@media only screen and (min-width: 768px) and (max-width: 1200px) {
    .myreview-wrapper .prd-list li .prd-warp {
        width: 100%;
    }

    .prd-warp .prd-name {
        width: 70%;
    }

    .prd-review {
        width: 22%;
    }

    span.already-submitted {
        font-size: 12.5px;
        line-height: 16px;
        display: inline-block;
    }

    .prd-warp.approved-reviews .prd-name,
    .prd-warp.approved-reviews .prd-review {
        width: 100%;
    }

    .myreview-wrapper .prd-list li .prd-warp.approved-reviews {
        align-items: end;
        flex-direction: column;
        align-items: flex-start;
    }

    .prd-warp.approved-reviews .review-voting {
        margin: 0;
    }
}

@media (max-width: 767px) {
    span.already-submitted {
        font-size: 12.5px;
        display: inline-block;
    }

    .myreview-wrapper .prd-list li .prd-warp {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        flex-direction: row;
    }

    .prd-warp .prd-review {
        margin-top: 10px;
    }

    .prd-warp .prd-name {
        width: 55%;
        font-size: 13px;
        line-height: 20px;
    }

    .prd-warp.approved-reviews .prd-name,
    .prd-warp.approved-reviews .prd-review {
        width: 100%;
    }

    .prd-review {
        width: 35%;
    }

    .myreview-wrapper .prd-list li .prd-warp.approved-reviews {
        align-items: end;
        flex-direction: column;
        align-items: flex-start;
    }

    .prd-warp.approved-reviews .review-voting {
        margin: 0;
    }
}

/* My Account Page Review section Css End*/


/* Woocommerce MyAccount Page Navigation  For Mobile Only Start*/
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .woocommerce-MyAccount-navigation ul li {
        background-color: #f3f3f3;
        color: #020202;
        border-radius: 25px;
        border: 2px solid #f3f3f3;
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .woocommerce-account.woocommerce-page .account-navigation-wrap .woocommerce-MyAccount-navigation li.is-active a,
    .woocommerce-account.woocommerce-page .account-navigation-wrap .woocommerce-MyAccount-navigation li:hover a,
    .woocommerce-account.woocommerce-page .account-navigation-wrap .woocommerce-MyAccount-navigation li.is-active a:hover {
        border-left: none;
    }

    .woocommerce-account.woocommerce-page .account-navigation-wrap .woocommerce-MyAccount-navigation ul li a {
        font-size: 15px;
        line-height: 10.4px;
        padding: 11px 13px;
        font-weight: 600;
        color: #020202;
        font-family: 'Onest';
        margin-left: 0px;
        border-left: none;
    }

    .woocommerce-MyAccount-navigation ul li.is-active {
        border: 3px solid #6c44f0;
        color: #020202;
        border-radius: 25px;
        border-bottom: 3px solid #6c44f0;
        background-color: #f3f3f3;
    }
}

/* Woocommerce MyAccount Page Navigation  For Mobile Only End*/

/*My account - payment method -- hide add new payment method button*/
body.woocommerce-payment-methods .woocommerce-info + a[href*="add-payment-method"],
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods + a[href*="add-payment-method"] {
    display: none;
}

/* My Account Dashboard page - start */
body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns {
    padding: 1.25em 2.375em;
    border-radius: 0.6rem;
}

body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns,
body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns .wp-block-heading {
    width: 100%;
    position: relative;
}

body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns .wp-block-heading a {
    display: block;
    width: 100%;
}

body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns .wp-block-heading a:hover,
body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns .wp-block-heading a:focus {
    color: #020202;
}

body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-content {
    width: 100%;
}

body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns .wp-block-heading a:after {
    content: '';
    position: absolute;
    background-image: url(../img/down-arrow.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    right: -10px;
    top: 5px;
    width: 25px;
    height: 25px;
    transform: rotate(-90deg);
}

.dashboard_orders .recent-order-product {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 2px solid #CBD5E0;
    padding-bottom: 25px;
    padding-top: 15px;
}

.dashboard_orders .recent-order-product:last-child {
    border-bottom: 0;
}

.dashboard_orders .product-thumb {
    padding-right: 15px;
    min-width: 100px;
}

.dashboard_orders .order-details {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard_orders .order-status {
    text-transform: uppercase;
    background-color: var(--global-palette-btn-bg);
    display: inline-block;
    color: #fff;
    border-radius: 3rem;
    padding: 0.3rem 1.2rem 0.3rem 1.2rem;
    margin-right: 6px;
}

.dashboard_orders .product-title {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 15px;
}

.dashboard_orders .product-title a {
    color: #020202;
}

.dashboard_orders .product-price {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.dashboard_orders .product-price del {
    font-weight: normal;
}

.dashboard_orders .product-buttons a {
    font-size: 16px;
}

.dashboard_orders .product-buttons a:first-child {
    margin-right: 10px;
}

.dashboard_rewards .wp-block-columns {
    background-color: #6b43f012;
}

.dashboard_rewards .wr-points-balance .tile .points-balance {
    align-items: center;
    display: flex;
    gap: 10px;
}

body.woocommerce-dashboard .woocommerce-MyAccount-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

body.woocommerce-dashboard .woocommerce-MyAccount-content > p {
    order: 3;
}

body.woocommerce-dashboard .woocommerce-MyAccount-content .dashboard_orders {
    order: 1;
    width: 100%;
    margin-bottom: 0;
}

body.woocommerce-dashboard .woocommerce-MyAccount-content .dashboard_rewards {
    order: 2;
    width: 100%;
}

@media (max-width: 767px) {
    .dashboard_orders .product-title {
        font-size: 18px;
    }

    body.woocommerce-dashboard .wp-block-group-dashboard .wp-block-columns {
        padding: 1.25em 1.25em;
    }
}

@media (max-width: 576px) {
    .dashboard_orders .product-title a {
        width: 220px;
        display: block;
        resize: horizontal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 782px) {
    body.woocommerce-dashboard .wp-block-columns {
        flex-wrap: wrap !important;
    }
}

.verified-cust-text {
    color: #22c55e;
    display: flex;
    align-items: center
}

/* My Account Dashboard page - end */

