.user-dashboard {
	display: flex;
	gap: 2rem;
	margin-top: 2rem;
	align-items: baseline;
}

.user-sidebar {
    width: 300px;
    background-color: #f5f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    color: #2e2e2e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.user-info {
    text-align: center;
    margin-bottom: 1rem;
}

.user-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #4339f2;
}

.user-phone {
    font-size: 0.9rem;
    color: #6b7280;
}

.user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    margin-bottom: 0.8rem;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: background 0.3s;
}

.user-menu li.is-active,
.user-menu li:hover {
    background-color: #eae9fd;
}

.user-menu li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.user-content {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}
.detail-item {
	background: rgb(249, 249.5, 250.5);
	padding: 15px !important;
	border-radius: 15px;
}
.item-title {
	color: rgba(17, 24, 39, 0.75);
	font-size: 14px;
}
.item-subtitle {
	font-size: 17px;
	font-weight: 700;
}
/* جدول لیست سفارشات */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  direction: rtl;
}

.woocommerce-orders-table thead {
  background-color: #f8f9fa;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
  padding: 1rem;
  text-align: right;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.woocommerce-orders-table__row:last-child td {
  border-bottom: none;
}

.woocommerce-orders-table__cell-order-number a {
  color: #de043c;
  font-weight: bold;
  text-decoration: none;
}

.woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
}

.woocommerce-button.button.view {
  background-color: #de043c;
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.woocommerce-button.button.view:hover {
  background-color: #c30334;
}

/* جدول جزئیات سفارش */
.woocommerce-table--order-details {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  direction: rtl;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 1rem;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: top;
}

.woocommerce-table--order-details thead {
  background: #f9f9f9;
  font-weight: bold;
}

.woocommerce-table--order-details tfoot th {
  background: #f8f8f8;
}

.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child th {
  font-weight: bold;
  color: #de043c;
}

.woocommerce-table__product-name a {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.woocommerce-table__product-name a:hover {
  color: #de043c;
}

.woocommerce-table__product-total {
  font-weight: bold;
}

/* عملیات‌ها در پایین سفارش */
.order-actions--heading {
  background: #f1f1f1;
}

/* بخش آدرس‌ها */
.woocommerce-columns--addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.woocommerce-column {
  flex: 1 1 48%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.woocommerce-column__title {
  margin-bottom: 1rem;
  color: #222;
  font-weight: bold;
  border-bottom: 2px solid #de043c;
  display: inline-block;
  padding-bottom: 4px;
}

.woocommerce-column address {
  line-height: 2;
  color: #555;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
  color: #444;
  margin-top: 0.5rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .woocommerce-columns--addresses {
    flex-direction: column;
  }
}

/* استایل کلی برای محتوای حساب کاربری */
.woocommerce-MyAccount-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

/* عنوان‌ها */
.woocommerce-MyAccount-content h2,
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-Address-title h2 {
  font-size: 18px;
  font-weight: bold;
  border-bottom: 2px solid #de043c;
  padding-bottom: 6px;
  margin-bottom: 20px;
  color: #222;
}

/* اطلاعات سفارش */
.woocommerce-order-details table,
.woocommerce-Addresses {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

/* سطرهای جدول سفارش */
.woocommerce-order-details table tbody tr,
.woocommerce-order-details table tfoot tr {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
}

/* ستون‌ها */
.woocommerce-table__product-name a {
  font-weight: bold;
  color: #222;
}

.woocommerce-table__product-name strong,
.woocommerce-table__product-total {
  color: #de043c;
  font-weight: bold;
}

.woocommerce-table__product-total {
  text-align: center;
}

/* آدرس‌ها */
.woocommerce-columns--addresses {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address,
.woocommerce-Address {
  flex: 1;
  min-width: 280px;
  background: #f7f7f7;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #eee;
}

/* دکمه ویرایش آدرس */
.woocommerce-Address .edit {
  background-color: #de043c;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.woocommerce-Address .edit:hover {
  background-color: #b80331;
}

/* اطلاعات تماس */
.woocommerce-customer-details p {
  margin: 4px 0;
  color: #666;
}

/* دکمه‌ها */
.order-actions-button {
  background-color: #de043c;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s;
}

.order-actions-button:hover {
  background-color: #b80331;
}

/* عنوان‌ها */
.woocommerce-Address-title h2 {
  font-size: 20px;
  color: #222;
  margin-bottom: 0.5rem;
}

.woocommerce-Address-title .edit {
  font-size: 14px;
  color: #0071a1;
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
}

.woocommerce-Address-title .edit:hover {
  text-decoration: underline;
}

/* جعبه آدرس */
.woocommerce-Address {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.woocommerce-Address address {
  line-height: 2;
  white-space: pre-line;
  font-size: 15px;
  color: #555;
}

/* ریسپانسیو آدرس‌ها */
.woocommerce-Addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2 {
  flex: 1 1 48%;
}

/* فرم ویرایش آدرس */
form.woocommerce-address-fields {
  padding-top: 1rem;
}

.woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem 2rem;
}

.woocommerce-address-fields__field-wrapper p {
  margin-bottom: 0;
}

.woocommerce-address-fields__field-wrapper label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.3rem;
  color: #444;
}

.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus {
  border-color: #0071a1;
  outline: none;
}

/* دکمه ذخیره */
form button.button {
  background-color: #de043c;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  margin-top: 1.5rem;
  transition: background 0.3s ease;
  cursor: pointer;
}

form button.button:hover {
  background-color: #b70230;
}
.woocommerce-EditAccountForm {
  direction: rtl;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.woocommerce-EditAccountForm .form-row {
  margin-bottom: 1.5rem;
}

.woocommerce-EditAccountForm label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.woocommerce-EditAccountForm input[type="text"], .woocommerce-EditAccountForm input[type="email"], .woocommerce-EditAccountForm input[type="password"], #gender {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	border-radius: 0.5rem;
	background: #fff;
	font-size: 0.95rem;
	transition: border-color 0.2s;
}

.woocommerce-EditAccountForm input:focus {
  border-color: #de043c;
  outline: none;
}

.woocommerce-EditAccountForm fieldset {
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  margin-top: 2rem;
}

.woocommerce-EditAccountForm legend {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-inline: 0.5rem;
  color: #de043c;
}

.woocommerce-EditAccountForm .woocommerce-Button.button {
  background-color: #de043c;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.woocommerce-EditAccountForm .woocommerce-Button.button:hover {
  background-color: #bb0033;
}

.woocommerce-EditAccountForm em {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.3rem;
}

.clear {
  clear: both;
}

/* برای موبایل */
@media (max-width: 768px) {
  .woocommerce-columns--addresses {
    flex-direction: column;
  }
}
