.woocommerce-MyAccount-content>*:not(:last-child) {
    margin-bottom: 12px !important;
}

/* hide default woo text */

.woocommerce-MyAccount-content > p{
display:none !important;
}


/* layout */

.rdh-account-layout{
display:flex;
gap:24px;
align-items:flex-start;
}


/* sidebar */

.woocommerce-MyAccount-navigation{
width:260px;
flex-shrink:0;
}

.rdh-account-menu{
background:#fff;
border-radius:14px;
overflow:hidden;
box-shadow:0 6px 20px rgba(0,0,0,0.06);
border:1px solid #eee;
margin-bottom: 20px;
}

.rdh-account-link{
display:flex;
align-items:center;
gap:10px;
padding:14px 18px;
border-bottom:1px solid #f1f1f1;
text-decoration:none;
color:#444;
font-size:14px;
font-weight:500;
transition:all .25s ease;
}

.rdh-account-link:last-child{
border-bottom:none;
}

.rdh-account-link:hover{
background:#f8f9ff;
color:#4f46e5;
padding-left:22px;
}

.rdh-account-link.is-active{
background:#f1f2ff;
color:#4f46e5;
font-weight:600;
}


/* content */

.woocommerce-MyAccount-content{
flex:1;
}


/* header */

.rdh-account-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:32px;
border-radius:16px;
background:linear-gradient(135deg,#4f46e5,#7c3aed);
color:#fff;
margin-bottom:26px;
box-shadow:0 10px 30px rgba(79,70,229,0.25);
}

.rdh-header-left{
display:flex;
align-items:center;
gap:18px;
}

.rdh-user-icon{
width:64px;
height:64px;
border-radius:50%;
background:rgba(255,255,255,0.18);
display:flex;
align-items:center;
justify-content:center;
backdrop-filter:blur(6px);
}

.rdh-user-icon .dashicons{
font-size:30px;
}

.rdh-user-name{
margin:0;
font-size:21px;
font-weight:600;
}

.rdh-user-email{
display:block;
font-size:13px;
opacity:.85;
margin-top:5px;
}

.rdh-header-actions{
display:flex;
gap:10px;
}

.rdh-header-btn{
background:#fff;
color:#4f46e5;
padding:9px 18px;
border-radius:10px;
text-decoration:none;
font-size:13px;
font-weight:600;
transition:all .25s ease;
}

.rdh-header-btn:hover{
transform:translateY(-2px);
box-shadow:0 6px 14px rgba(0,0,0,0.12);
}

.rdh-header-btn.outline{
background:transparent;
border:1px solid rgba(255,255,255,0.6);
color:#fff;
}

.rdh-header-btn.outline:hover{
background:rgba(255,255,255,0.15);
}


/* dashboard grid */

.rdh-dashboard-widgets{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:20px;
margin-top:20px;
}


/* widget card */

.rdh-widget{
background:#fff;
padding:22px;
border-radius:14px;
box-shadow:0 6px 18px rgba(0,0,0,0.06);
border:1px solid #eee;
transition:all .25s ease;
}

.rdh-widget:hover{
transform:translateY(-3px);
box-shadow:0 10px 26px rgba(0,0,0,0.08);
}

.rdh-widget h3{
margin:0 0 12px;
font-size:16px;
font-weight:600;
color:#333;
}


/* stats widget */

.rdh-widget-stats{
grid-column:1 / 4;
}

.rdh-stats{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:16px;
}

.rdh-stat{
background:#f8f9ff;
padding:22px;
border-radius:12px;
text-align:center;
transition:all .25s ease;
}

.rdh-stat:hover{
background:#f1f2ff;
transform:translateY(-2px);
}

.rdh-stat-number{
display:block;
font-size:24px;
font-weight:700;
color:#4f46e5;
margin-bottom:4px;
}

.rdh-stat-label{
font-size:13px;
color:#666;
}
/* orders widget */

.rdh-orders{
display:flex;
flex-direction:column;
gap:12px;
margin-top:10px;
}

.rdh-order-item{
display:flex;
align-items:center;
gap:12px;
padding:12px;
border-radius:10px;
background:#f8f9ff;
transition:all .2s ease;
}

.rdh-order-item:hover{
background:#f1f2ff;
}

.rdh-order-icon{
width:36px;
height:36px;
border-radius:8px;
background:#4f46e5;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
}


.rdh-order-info{
display:flex;
justify-content:space-between;
align-items:center;
width:100%;
}

.rdh-order-id{
font-weight:600;
font-size:14px;
color:#333;
}

/* statuses */

.status-processing{
background:#fff7e6;
color:#b45309;
}

.status-shipped{
background:#f2fef4;
color:#53b91c;
}
.status-completed{
background:#ecfdf5;
color:#047857;
}

.status-cancelled{
background:#fef2f2;
color:#b91c1c;
}

.status-on-hold{
background:#eff6ff;
color:#1d4ed8;
}
.rdh-widget-recent_orders{
grid-column:1 / 4;
}

/* announcement bar */
.rdh-announcement-bar-account{
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px !important;
    border-radius: 10px;
    background: #fff8d6;
    border: 1px solid #ffe58f;
    font-size: 14px !important;
    color: #7a5d00;
    justify-content: center;
}

.rdh-announcement-icon-account{
font-size:16px;
}

.rdh-announcement-text-account{
line-height:1.6;
}

/* orders page */
.rdh-orders-list{
display:flex;
flex-direction:column;
gap:12px;
}

.rdh-order-card{
background:#fff;
padding:16px;
border-radius:12px;
display:flex;
justify-content:space-between;
align-items:center;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.rdh-order-main{
display:flex;
gap:20px;
align-items:center;
}

.rdh-order-status{
font-size:13px;
padding:4px 10px;
border-radius:20px;
background:#eee;
}

.rdh-view-order{
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
padding:6px 14px;
border-radius:8px;
text-decoration:none;
}
.rdh-products-list{
display:flex;
flex-direction:column;
gap:12px;
margin-top:20px;
}

.rdh-product-item{
display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #000;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.05);
}

.rdh-product-image img{
width:50px;
height:50px;
object-fit:cover;
border-radius:6px;
}

.rdh-product-info{
flex:1;
margin-right:10px;
display:flex;
flex-direction:column;
gap:4px;
}

.rdh-product-name{
font-weight:600;
}

.rdh-product-qty{
font-size:13px;
color:#777;
}

.rdh-product-price{
font-weight:600;
}

.rdh-order-footer{
margin-top:20px;
display:flex;
justify-content:flex-end;
}

.rdh-order-total{
font-size:16px;
}
.rdh-order-meta{
    display: flex;
    gap: 10px;
}
.rdh-order-summary{
margin-top:20px;
background:#fff;
padding:16px;
border-radius:10px;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.rdh-summary-row{
display:flex;
justify-content:space-between;
margin-bottom:8px;
}

.rdh-summary-row.total{
font-weight:700;
font-size:16px;
margin-top:10px;
}

.rdh-shipping-address{
margin-top:20px;
}

.rdh-address-box{
background:#fff;
padding:14px;
border-radius:10px;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
line-height:1.8;
}
.rdh-edit-account{
background:#fff;
padding:20px;
border-radius:12px;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
max-width:600px;
margin:auto;
}



.rdh-form-group{
display:flex;
flex-direction:column;
gap:6px;
}

.rdh-form-group label{
font-weight:600;
}

.rdh-form-group input{
padding:10px 12px;
border:1px solid #ddd;
border-radius:8px;
font-size:14px;
}

.rdh-form-group small{
color:#777;
font-size:12px;
}

.rdh-form-actions{
margin-top:10px;
display:flex;
justify-content:flex-end;
}
/* فرم */

.rdh-form{
display:flex;
flex-direction:column;
gap:20px;
margin-top:20px;
}


/* لیبل */

.rdh-form-group label{
font-size:13px;
font-weight:600;
color:#333;
}

/* فیلد */

.rdh-form-group input{
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    background: #fafafa;
    font-size: 14px !important;
    transition: all .2s ease !important;
    outline: none;
}

/* فوکوس */

.rdh-form-group input:focus{
background:#fff;
border-color:#000 !important;
box-shadow:0 0 0 3px rgba(0,0,0,0.05);
}

/* placeholder */

.rdh-form-group input::placeholder{
color:#aaa;
}

/* متن راهنما */

.rdh-form-group small{
font-size:12px;
color:#777;
}

/* دکمه */

.rdh-submit-btn{
    height: 44px;
    padding: 0 26px !important;
    border-radius: 12px !important;
    border: 0 !important;
    background-color: #00000000 !important;
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
}

/* hover */

.rdh-submit-btn:hover{
background:rgb(59 109 255) !important;
transform:translateY(-1px);
}

/* active */

.rdh-submit-btn:active{
transform:translateY(0);
}

/* خطاهای ووکامرس */

.woocommerce-error,
.woocommerce-message{
border-radius:10px;
padding:12px 16px;
font-size:13px;
margin-bottom:20px;
}

/* موبایل */

@media (max-width:768px){

.rdh-edit-account{
padding:16px;
}

.rdh-form{
gap:16px;
}

}
/* بخش تغییر رمز */

.rdh-password-section{
margin-top:40px;
padding-top:20px;
border-top:1px solid #eee;
}

.rdh-password-header{
margin-bottom:15px;
}

.rdh-password-header h3{
font-size:16px;
margin-bottom:6px;
}

.rdh-password-note{
font-size:13px;
color:#777;
line-height:1.6;
}

/* responsive */

@media (max-width:768px){

.rdh-account-layout{
flex-direction:column;
}

.woocommerce-MyAccount-navigation{
width:100%;
}

.rdh-dashboard-widgets{
grid-template-columns:1fr;
}

.rdh-widget-stats{
grid-column:unset;
}
.rdh-widget-recent_orders{
grid-column:unset;
}
.rdh-stats{
grid-template-columns:1fr;
}

.rdh-account-header{
flex-direction:column;
align-items:flex-start;
gap:18px;
}

.rdh-header-actions{
width:100%;
}

.rdh-header-btn{
flex:1;
text-align:center;
}

}
