/*
 * Alo Imeni — حساب کاربری (my-account)
 * صفحهٔ حساب با endpointها و فرم‌های استاندارد WooCommerce؛ فقط لایهٔ نمایش تغییر می‌کند.
 */

.woocommerce-account .alo-wc-wrapper{padding-block:28px 46px}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{float:none;width:auto;min-width:0}

/* سایدبار حساب */
.woocommerce-account .woocommerce-MyAccount-navigation{border:1px solid var(--border);border-radius:22px;background:var(--card);box-shadow:var(--shadow);padding:12px}
.alo-account-profile{display:flex;align-items:center;gap:12px;padding:12px 10px 16px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.alo-account-profile__avatar{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,var(--green),var(--ink2));color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(21,121,91,.22);flex:0 0 auto}
.alo-account-profile__copy{display:flex;flex-direction:column;min-width:0;gap:3px;line-height:1.45}
.alo-account-profile__copy strong{font-size:14px;font-weight:850;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alo-account-profile__copy small{font-size:11.5px;color:var(--text3);font-variant-numeric:tabular-nums}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text2);font-weight:700;font-size:13px;transition:background .18s ease,color .18s ease,transform .18s ease,border-color .18s ease}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:var(--blue-soft);border-color:rgba(28,117,188,.16);color:var(--blue);transform:translateX(-2px)}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(28,117,188,.2)}
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout{padding-top:8px;margin-top:8px;border-top:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a{color:var(--red)}
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a:hover{background:var(--red-soft);border-color:rgba(225,37,27,.14);color:var(--red)}

/* محتوای endpointها */
.woocommerce-account .woocommerce-MyAccount-content{border:1px solid var(--border);border-radius:24px;background:var(--card);box-shadow:var(--shadow);padding:clamp(18px,3vw,30px);min-height:420px;overflow:hidden}
.alo-account-content-head{display:flex;align-items:center;gap:13px;padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.alo-account-content-head__icon{width:42px;height:42px;border-radius:13px;background:var(--blue-soft);color:var(--blue);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.alo-account-content-head h1{margin:0;font-size:clamp(18px,2vw,23px);font-weight:850;line-height:1.45;color:var(--text)}
.alo-account-content-head p{margin:3px 0 0;color:var(--text3);font-size:12px;line-height:1.8}
.woocommerce-account .woocommerce-MyAccount-content > p{line-height:2;color:var(--text2);font-size:13.5px}
.woocommerce-account .woocommerce-MyAccount-content a:not(.button){color:var(--blue);font-weight:700}
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover{color:var(--blue-strong)}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error{margin-bottom:18px}

/* سفارش‌ها، دانلودها و جزییات سفارش */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table{width:100%;border:1px solid var(--border);border-radius:16px;border-collapse:separate;border-spacing:0;overflow:hidden;margin:0 0 20px;font-size:13px}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td{padding:13px 14px;border:0;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th{background:var(--surface2);color:var(--text2);font-size:11.5px;font-weight:800;white-space:nowrap}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tr:last-child td{border-bottom:0}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a{font-variant-numeric:tabular-nums}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table .button{min-height:34px;padding:7px 11px;border-radius:10px;font-size:11.5px;white-space:nowrap}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination{margin-top:20px}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination ul{margin:0;justify-content:flex-start}

/* نشانی‌ها */
.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.woocommerce-account .woocommerce-Address{min-width:0;border:1px solid var(--border);border-radius:18px;background:linear-gradient(155deg,#fff,var(--bg));padding:18px}
.woocommerce-account .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.woocommerce-account .woocommerce-Address-title h2{margin:0;font-size:15px;font-weight:850;color:var(--text)}
.woocommerce-account .woocommerce-Address-title .edit{padding:6px 9px;border-radius:9px;background:var(--blue-soft);color:var(--blue);font-size:11.5px}
.woocommerce-account .woocommerce-Address address{font-style:normal;color:var(--text2);font-size:12.5px;line-height:2}

/* فرم‌های استاندارد ووکامرس در حساب */
.woocommerce-account .woocommerce-MyAccount-content form{margin:0}
.woocommerce-account .woocommerce-MyAccount-content form .form-row{margin:0 0 16px;padding:0}
.woocommerce-account .woocommerce-MyAccount-content form .form-row label{display:block;margin:0 0 7px;color:var(--text2);font-size:12.5px;font-weight:800}
.woocommerce-account .woocommerce-MyAccount-content form .form-row .required{color:var(--red)}
.woocommerce-account .woocommerce-MyAccount-content form :is(input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],select,textarea){width:100%;min-height:46px;border:1.5px solid var(--border);border-radius:12px;background:var(--bg);color:var(--text);padding:0 13px;font-family:inherit;font-size:13.5px;box-shadow:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.woocommerce-account .woocommerce-MyAccount-content form textarea{min-height:118px;padding-block:11px;line-height:1.9;resize:vertical}
.woocommerce-account .woocommerce-MyAccount-content form :is(input,select,textarea):focus{outline:none;border-color:var(--blue);background:#fff;box-shadow:0 0 0 4px var(--blue-soft)}
.woocommerce-account .woocommerce-MyAccount-content form .button{min-height:46px;padding:0 19px;border-radius:12px;font-family:inherit;font-size:13px}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset{margin:22px 0;padding:18px;border:1px dashed var(--border);border-radius:16px}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm legend{padding:0 6px;color:var(--text2);font-size:12px;font-weight:800}
/* مشتری هیچ فیلد تغییر رمزی نمی‌بیند؛ ورود ادمین وردپرس مستقل است. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset{display:none}

/* فرم واحد ورود با شمارهٔ موبایل */
.alo-otp-login .woocommerce{display:block;background:transparent}
.alo-otp-login .woocommerce-MyAccount-navigation{display:none}
.alo-account-auth{max-width:560px;margin:clamp(8px,3vw,28px) auto 44px;overflow:hidden;border:1px solid var(--border);border-radius:22px;background:var(--card);box-shadow:var(--shadow-lg)}
.alo-account-auth__welcome{display:flex;flex-direction:column;align-items:flex-start;padding:24px 26px 20px;border-bottom:1px solid var(--line);background:var(--card);color:var(--text)}
.alo-account-auth__icon{width:44px;height:44px;margin-bottom:13px;border-radius:13px;background:var(--blue-soft);color:var(--blue);display:inline-flex;align-items:center;justify-content:center}
.alo-account-auth__eyebrow{color:var(--text3);font-size:11.5px;font-weight:800}
.alo-account-auth__welcome h1{margin:5px 0 7px;font-size:clamp(21px,3vw,27px);font-weight:850;line-height:1.55;text-wrap:balance}
.alo-account-auth__welcome > p{max-width:430px;margin:0;color:var(--text2);font-size:13px;line-height:1.9}
.alo-account-auth__benefits{display:flex;flex-direction:column;gap:8px;list-style:none;padding:0;margin:17px 0 0;color:var(--text2);font-size:12px;font-weight:650}
.alo-account-auth__benefits li{display:flex;align-items:center;gap:8px}
.alo-account-auth__benefits .alo-ic{color:var(--green)}
.alo-account-auth__form{display:flex;align-items:center;padding:24px 26px 28px;background:var(--card)}
.alo-account-auth__form .alo-otp{width:100%;max-width:none;margin:0}
.alo-account-auth__unavailable{display:flex;align-items:flex-start;gap:10px;width:100%;padding:16px;border:1px solid rgba(28,117,188,.22);border-radius:16px;background:var(--blue-soft);color:var(--text2);line-height:1.8}
.alo-account-auth__unavailable > span{color:var(--blue);padding-top:2px}
.alo-account-auth__unavailable strong{display:block;color:var(--text);font-size:13px}
.alo-account-auth__unavailable p{margin:4px 0 0;font-size:12px}
.alo-account-note{margin:0 0 16px}

/* --- پنل کال سنتر (فقط نقشِ alo_callcenter؛ inc/callcenter.php) --- */
.alo-cc__head{display:flex;align-items:center;gap:13px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.alo-cc__head-icon{width:42px;height:42px;border-radius:13px;background:var(--green-soft);color:var(--green);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.alo-cc__head h1{margin:0;font-size:clamp(18px,2vw,23px);font-weight:850;line-height:1.45;color:var(--text)}
.alo-cc__head p{margin:3px 0 0;color:var(--text3);font-size:12px;line-height:1.8}
.alo-cc__notice{margin:0 0 16px;padding:11px 14px;border:1px solid rgba(21,121,91,.2);border-radius:12px;background:var(--green-soft);color:var(--green-strong);font-size:12.5px;font-weight:700}
.alo-cc__notice.is-error{border-color:rgba(225,37,27,.22);background:var(--red-soft);color:var(--red)}

.alo-cc__toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.alo-cc__tabs{display:flex;flex-wrap:wrap;gap:6px}
.alo-cc__tab{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--text2)!important;font-size:12.5px;font-weight:700;transition:background .18s ease,color .18s ease,border-color .18s ease}
.alo-cc__tab:hover{border-color:rgba(28,117,188,.3);background:var(--blue-soft);color:var(--blue)!important}
.alo-cc__tab.is-active{background:var(--blue);border-color:var(--blue);color:#fff!important;box-shadow:0 8px 18px rgba(28,117,188,.2)}
.alo-cc__tab-n{min-width:20px;padding:1px 6px;border-radius:999px;background:var(--surface2);color:var(--text2);font-size:11px;font-variant-numeric:tabular-nums}
.alo-cc__tab.is-active .alo-cc__tab-n{background:rgba(255,255,255,.22);color:#fff}

.alo-cc__search{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.alo-cc__search input[type=search]{min-width:190px;height:40px;padding:0 13px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--text);font-family:inherit;font-size:12.5px}
.alo-cc__search input[type=search]:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.alo-cc__search-btn{height:40px;padding:0 16px;border:0;border-radius:12px;background:var(--blue);color:#fff;font-weight:800;font-size:12.5px;cursor:pointer;transition:background .2s ease}
.alo-cc__search-btn:hover{background:var(--blue-strong)}
.alo-cc__search-clear{font-size:11.5px;color:var(--text3)!important;font-weight:600}

.alo-cc__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.alo-cc__card{min-width:0;display:flex;flex-direction:column;gap:9px;padding:16px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(155deg,#fff,var(--bg));box-shadow:var(--shadow)}
.alo-cc__card.is-called{background:var(--card);border-color:var(--line)}
.alo-cc__card-top{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.alo-cc__type{padding:3px 9px;border-radius:8px;font-size:11px;font-weight:800}
.alo-cc__type.is-inquiry{background:var(--blue-soft);color:var(--blue)}
.alo-cc__type.is-consult{background:var(--green-soft);color:var(--green)}
.alo-cc__badge{padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700}
.alo-cc__badge.is-new{background:var(--red-soft);color:var(--red)}
.alo-cc__badge.is-called{background:var(--green-soft);color:var(--green-strong)}
.alo-cc__time{margin-inline-start:auto;font-size:11px;color:var(--text3);font-variant-numeric:tabular-nums}
.alo-cc__who{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.alo-cc__who strong{font-size:14px;font-weight:850;color:var(--text)}
.alo-cc__mobile{font-size:13px;font-weight:800;color:var(--blue)!important;font-variant-numeric:tabular-nums}
.alo-cc__prod{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;color:var(--text2)}
.alo-cc__prod > span{color:var(--text3);flex:0 0 auto}
.alo-cc__msg{margin:0;padding:10px 12px;border-radius:12px;background:var(--surface2);color:var(--text2);font-size:12.5px;line-height:1.9}
.alo-cc__actions{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid var(--line)}
.alo-cc__form{margin:0;flex:1 1 auto}
.alo-cc__call{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border:1px solid var(--blue);border-radius:12px;color:var(--blue)!important;font-size:12.5px;font-weight:800;transition:background .18s ease}
.alo-cc__call:hover{background:var(--blue-soft)}
.alo-cc__toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;height:40px;padding:0 14px;border:0;border-radius:12px;background:var(--blue);color:#fff;font-family:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:background .2s ease,transform .2s ease}
.alo-cc__toggle:hover{background:var(--blue-strong);transform:translateY(-1px)}
.alo-cc__toggle.is-undo{background:transparent;border:1px solid var(--border);color:var(--text2)}
.alo-cc__toggle.is-undo:hover{background:var(--surface2);color:var(--text)}
.alo-cc__log{margin:0;font-size:11px;color:var(--text3)}

.alo-cc__empty{padding:34px 18px;text-align:center;border:1px dashed var(--border);border-radius:18px;color:var(--text2)}
.alo-cc__empty > span{color:var(--green)}
.alo-cc__empty strong{display:block;margin-top:8px;font-size:14px;color:var(--text)}
.alo-cc__empty p{margin:5px 0 0;font-size:12px;color:var(--text3)}
.alo-cc__pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px}
.alo-cc__pager-btn{padding:8px 14px;border:1px solid var(--border);border-radius:12px;color:var(--text2)!important;font-size:12px;font-weight:700}
.alo-cc__pager-btn:hover{border-color:rgba(28,117,188,.3);background:var(--blue-soft);color:var(--blue)!important}
.alo-cc__pager-n{font-size:12px;color:var(--text3);font-variant-numeric:tabular-nums}

@media(min-width:901px){
  .woocommerce-account .woocommerce{grid-template-columns:260px minmax(0,1fr);gap:24px}
  .woocommerce-account .woocommerce-MyAccount-navigation{position:sticky;top:96px}
}

@media(max-width:900px){
  .woocommerce-account .alo-wc-wrapper{padding-block:18px 32px}
  .woocommerce-account .woocommerce-MyAccount-navigation{padding:9px;border-radius:18px}
  .alo-account-profile{padding:9px 8px 12px;margin-bottom:7px}
  .woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .woocommerce-account .woocommerce-MyAccount-navigation a{min-height:40px;padding:8px 10px;font-size:11.5px}
  .woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout{padding-top:0;margin-top:0;border-top:0}
  .woocommerce-account .woocommerce-MyAccount-content{padding:18px;border-radius:20px;min-height:0}
  .alo-account-content-head{margin-bottom:18px;padding-bottom:14px}
  .alo-account-content-head h1{font-size:18px}
  .alo-account-content-head p{font-size:11.5px}
  .woocommerce-account .woocommerce-Addresses{grid-template-columns:1fr}
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table,
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table{display:block;overflow-x:auto;white-space:nowrap}
  .alo-account-auth{margin:0 auto 28px;border-radius:22px}
  .alo-account-auth__welcome{padding:22px 20px 18px}
  .alo-account-auth__welcome h1{font-size:22px}
  .alo-account-auth__benefits{margin-top:18px}
  .alo-account-auth__form{padding:18px}
}

@media(max-width:900px){
  .alo-cc__head{margin-bottom:14px;padding-bottom:14px}
  .alo-cc__head h1{font-size:18px}
  .alo-cc__toolbar{gap:9px}
  .alo-cc__search{width:100%}
  .alo-cc__search input[type=search]{flex:1 1 auto;min-width:0}
  .alo-cc__list{grid-template-columns:1fr}
  .alo-cc__actions{flex-wrap:wrap}
}

@media(max-width:420px){
  .woocommerce-account .woocommerce-MyAccount-navigation ul{grid-template-columns:1fr}
  .alo-account-auth__welcome{padding:20px 16px 16px}
  .alo-account-auth__form{padding:12px}
}
