/* فرهنگ دانشجو — حساب کاربری و سبد کشویی (ریسپانسیو) */

/* ================= سبد خرید کشویی ================= */
.fd-drawer{width:min(430px,100%);max-width:100vw;border-radius:0}
.fd-drawer-head{padding:16px 20px;background:#fff;flex:none}
.fd-drawer-head h2{font-size:1.08rem;display:flex;align-items:center;gap:8px}
.fd-drawer-close{border-radius:8px;transition:background .2s,color .2s,transform .3s var(--fd-ease)}
.fd-drawer-close:hover{transform:rotate(90deg)}
.fd-drawer-body,.fd-drawer-body.woocommerce{display:flex!important;flex-direction:column;padding:0!important;overflow:hidden!important;min-height:0;background:var(--fd-soft)}
.fd-drawer-body .fd-minicart-inner{flex:1;min-height:0;display:flex;flex-direction:column;width:100%}
.fd-drawer .fd-ship{margin:14px 16px 0;flex:none;background:#fff;border:1px solid var(--fd-line)}
.fd-drawer .fd-ship.is-done{background:#e6f6e5;border-color:#bfe5bd}
.fd-drawer ul.woocommerce-mini-cart{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 16px!important;margin:0;scrollbar-width:thin;scrollbar-color:var(--fd-line) transparent}
.fd-drawer .woocommerce-mini-cart-item{position:relative;display:block;min-width:0;min-height:96px;margin:0 0 10px;padding:12px 12px!important;background:#fff;border:1px solid var(--fd-line);border-radius:8px;box-shadow:0 8px 20px -16px rgba(11,44,61,.5)}
.fd-drawer .woocommerce-mini-cart-item a:not(.remove){display:block;min-width:0;padding-inline-start:78px;padding-inline-end:34px;font-size:.88rem;font-weight:700;line-height:1.75;color:var(--fd-ink);text-decoration:none;overflow-wrap:anywhere}
.fd-drawer .woocommerce-mini-cart-item a:not(.remove):hover{color:var(--fd-blue-d)}
.fd-drawer .woocommerce-mini-cart-item img{top:12px;inset-inline-start:12px;width:62px!important;border-radius:8px}
.fd-drawer .woocommerce-mini-cart-item .quantity{display:block;padding-inline-start:78px;padding-inline-end:8px;margin-top:6px;font-size:.82rem;color:var(--fd-ink2)}
.fd-drawer .woocommerce-mini-cart-item .quantity .amount,.fd-drawer .woocommerce-mini-cart-item .quantity bdi{color:var(--fd-blue-dd);font-weight:800}
.fd-drawer .woocommerce-mini-cart-item a.remove{top:10px;inset-inline-end:10px;width:28px;height:28px;line-height:26px;border-radius:8px;font-size:1.15rem;text-decoration:none}
.fd-drawer p.woocommerce-mini-cart__total{flex:none;margin:0;padding:14px 20px 10px;background:#fff;border-top:1px solid var(--fd-line);font-size:.98rem}
.fd-drawer p.woocommerce-mini-cart__total strong{font-weight:700;color:var(--fd-ink2)}
.fd-drawer p.woocommerce-mini-cart__total .amount{font-size:1.1rem;font-weight:800;color:var(--fd-ink)}
.fd-drawer p.woocommerce-mini-cart__buttons{flex:none;margin:0;padding:0 16px 16px;background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fd-drawer p.woocommerce-mini-cart__buttons a{display:flex;align-items:center;justify-content:center;min-height:46px;margin:0;padding:10px 12px;border-radius:8px;font-size:.9rem;text-decoration:none;white-space:nowrap}
.fd-drawer p.woocommerce-mini-cart__buttons a.checkout{background:var(--fd-grad);color:#fff;border:0;order:2}
.fd-drawer p.woocommerce-mini-cart__buttons a:not(.checkout){order:1}
.fd-drawer .woocommerce-mini-cart__empty-message{flex:1;display:flex;align-items:center;justify-content:center;margin:0;padding:40px 20px;text-align:center;color:var(--fd-ink2)}

/* ================= حساب کاربری ================= */
.woocommerce-account.logged-in .woocommerce:not(.fd-drawer-body){display:grid;grid-template-columns:272px minmax(0,1fr);gap:26px;align-items:start}
.woocommerce-account .woocommerce:not(.fd-drawer-body)>.woocommerce-notices-wrapper{grid-column:1/-1;margin:0}
.woocommerce-account .woocommerce:not(.fd-drawer-body)>.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-account .woocommerce-MyAccount-navigation{grid-column:1;position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 90px)}
.woocommerce-account .woocommerce-MyAccount-content{grid-column:2;min-width:0}

.fd-content .woocommerce-MyAccount-navigation ul{margin:0;padding:10px;list-style:none;background:#fff;border:1px solid var(--fd-line);border-radius:8px;box-shadow:0 14px 34px -26px rgba(11,44,61,.5)}
.fd-content .woocommerce-MyAccount-navigation ul li{margin:0;padding:0;list-style:none}
.fd-content .woocommerce-MyAccount-navigation ul li+li{margin-top:3px}
.fd-content .woocommerce-MyAccount-navigation ul li a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;font-size:.92rem;font-weight:600;line-height:1.5;color:var(--fd-ink2);text-decoration:none;transition:background .2s,color .2s,transform .25s var(--fd-ease)}
.fd-content .woocommerce-MyAccount-navigation ul li a::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--fd-i) center/contain no-repeat;mask:var(--fd-i) center/contain no-repeat;opacity:.85}
.fd-content .woocommerce-MyAccount-navigation ul li a:hover{background:var(--fd-sky);color:var(--fd-blue-dd)}
.fd-content .woocommerce-MyAccount-navigation ul li.is-active a{background:var(--fd-grad);color:#fff;box-shadow:var(--fd-shadow)}
.fd-content .woocommerce-MyAccount-navigation ul li.is-active a::before{opacity:1}
.fd-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a{color:var(--fd-red)}
.fd-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover{background:#fdeaea;color:var(--fd-red-d)}
.woocommerce-MyAccount-navigation li a{--fd-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a{--fd-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a{--fd-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a{--fd-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a{--fd-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a{--fd-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{--fd-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-content{background:#fff;border:1px solid var(--fd-line);border-radius:8px;padding:28px;box-shadow:0 14px 34px -28px rgba(11,44,61,.45);line-height:2}
.woocommerce-MyAccount-content>*:first-child{margin-top:0}
.woocommerce-MyAccount-content>p:last-child{margin-bottom:0}
.woocommerce-MyAccount-content h2,.woocommerce-MyAccount-content h3{font-size:1.15rem;margin:0 0 14px}
.woocommerce-MyAccount-content .woocommerce-message,.woocommerce-MyAccount-content .woocommerce-info,.woocommerce-MyAccount-content .woocommerce-error{margin-bottom:18px!important}
.woocommerce-MyAccount-content .woocommerce-Addresses,.woocommerce-MyAccount-content .u-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.woocommerce-MyAccount-content .woocommerce-Addresses .col-1,.woocommerce-MyAccount-content .woocommerce-Addresses .col-2,.woocommerce-MyAccount-content .u-columns .col-1,.woocommerce-MyAccount-content .u-columns .col-2{width:100%!important;float:none!important;margin:0}
.woocommerce-MyAccount-content .woocommerce-Address{background:var(--fd-soft);border:1px solid var(--fd-line);border-radius:8px;padding:18px 20px}
.woocommerce-MyAccount-content .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.woocommerce-MyAccount-content .woocommerce-Address-title h2,.woocommerce-MyAccount-content .woocommerce-Address-title h3{margin:0;font-size:1.02rem}
.woocommerce-MyAccount-content .woocommerce-Address address{font-style:normal;line-height:2;color:var(--fd-ink2)}
.woocommerce-MyAccount-content fieldset{border:1px solid var(--fd-line);border-radius:8px;padding:18px 20px 8px;margin:22px 0}
.woocommerce-MyAccount-content fieldset legend{padding:0 10px;font-weight:800}
.woocommerce-MyAccount-content form .form-row{margin:0 0 16px;padding:0}
.woocommerce-MyAccount-content form .form-row-first,.woocommerce-MyAccount-content form .form-row-last{width:calc(50% - 8px)!important;float:none;display:inline-block;vertical-align:top}
.woocommerce-MyAccount-content form .form-row-first{margin-inline-end:12px}
.woocommerce-MyAccount-content form .form-row input.input-text,.woocommerce-MyAccount-content form .form-row textarea{width:100%}
.woocommerce-MyAccount-content .button,.woocommerce-MyAccount-content a.edit{font-size:.86rem}
.woocommerce-MyAccount-content a.edit{display:inline-flex;align-items:center;padding:6px 14px;border-radius:8px;background:var(--fd-sky);color:var(--fd-blue-dd);font-weight:700;text-decoration:none}
.woocommerce-MyAccount-content a.edit:hover{background:var(--fd-sky-2)}
.woocommerce-MyAccount-content table.shop_table{width:100%;margin:0 0 18px}
.woocommerce-MyAccount-content table.shop_table th{white-space:nowrap}
.woocommerce-orders-table__cell-order-actions .button{padding:7px 14px;font-size:.8rem;margin-inline-start:4px}
.woocommerce-MyAccount-content .woocommerce-pagination{margin-top:16px;display:flex;gap:10px}
.woocommerce-MyAccount-content mark{background:var(--fd-sky);color:var(--fd-blue-dd);padding:1px 8px;border-radius:6px}

/* ================= صفحه‌ی سبد خرید ================= */
.woocommerce-cart .woocommerce-cart-form{overflow-x:auto}
.woocommerce-cart table.cart td.actions{padding:16px!important}
.woocommerce-cart table.cart td.actions .coupon{display:flex;gap:8px;flex-wrap:wrap;align-items:center;float:none}
.woocommerce-cart table.cart td.actions .coupon input.input-text{width:200px;max-width:100%;border:1.5px solid var(--fd-line);border-radius:8px;padding:10px 14px;min-height:44px}
.woocommerce .quantity .qty{width:72px;min-height:42px;border:1.5px solid var(--fd-line);border-radius:8px;text-align:center;font:inherit;background:#fff}
.woocommerce .cart-collaterals .cart_totals{background:#fff;border:1px solid var(--fd-line);border-radius:8px;padding:20px 22px;box-shadow:0 14px 34px -28px rgba(11,44,61,.45)}
.woocommerce .cart-collaterals .cart_totals h2{font-size:1.1rem}
.woocommerce .wc-proceed-to-checkout a.checkout-button{display:flex;width:100%;padding:14px 20px;font-size:1rem}

/* ================= ریسپانسیو ================= */
@media(max-width:900px){
  .woocommerce-account.logged-in .woocommerce:not(.fd-drawer-body){grid-template-columns:minmax(0,1fr);gap:16px}
  .woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{grid-column:1}
  .woocommerce-account .woocommerce-MyAccount-navigation{position:static}
  .fd-content .woocommerce-MyAccount-navigation ul{display:flex;gap:6px;overflow-x:auto;padding:8px;border-radius:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .fd-content .woocommerce-MyAccount-navigation ul::-webkit-scrollbar{display:none}
  .fd-content .woocommerce-MyAccount-navigation ul li{flex:none;margin:0!important}
  .fd-content .woocommerce-MyAccount-navigation ul li a{padding:10px 14px;white-space:nowrap;font-size:.86rem;gap:8px}
  .fd-content .woocommerce-MyAccount-navigation ul li a::before{width:18px;height:18px}
  .woocommerce-MyAccount-content{padding:20px 16px}
}
@media(max-width:700px){
  .woocommerce-MyAccount-content .woocommerce-Addresses,.woocommerce-MyAccount-content .u-columns{grid-template-columns:1fr}
  .woocommerce-MyAccount-content form .form-row-first,.woocommerce-MyAccount-content form .form-row-last{width:100%!important;display:block;margin-inline-end:0}
  .woocommerce-MyAccount-content fieldset{padding:14px 14px 4px}
  .woocommerce table.shop_table_responsive thead{display:none}
  .woocommerce table.shop_table_responsive,.woocommerce table.shop_table_responsive tbody{display:block;border:0!important;background:transparent}
  .woocommerce table.shop_table_responsive tr{display:block;margin:0 0 14px;background:#fff;border:1px solid var(--fd-line);border-radius:8px;overflow:hidden}
  .woocommerce table.shop_table_responsive tr td,.woocommerce table.shop_table_responsive tr th{display:flex!important;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:end!important;border:0!important;border-bottom:1px solid var(--fd-line)!important;padding:11px 14px!important}
  .woocommerce table.shop_table_responsive tr td:last-child{border-bottom:0!important}
  .woocommerce table.shop_table_responsive tr td::before{content:attr(data-title);float:none!important;flex:none;font-weight:700;color:var(--fd-ink2);text-align:start}
  .woocommerce table.shop_table_responsive tr td.product-remove::before,.woocommerce table.shop_table_responsive tr td.actions::before{display:none}
  .woocommerce table.shop_table_responsive tr td.product-thumbnail{justify-content:center}
  .woocommerce table.shop_table_responsive tr td.product-thumbnail::before{display:none}
  .woocommerce-cart table.cart td.actions{display:block!important;text-align:start!important}
  .woocommerce-cart table.cart td.actions .coupon{width:100%;margin-bottom:10px}
  .woocommerce-cart table.cart td.actions .coupon input.input-text{flex:1;width:auto}
  .woocommerce-cart table.cart td.actions>.button{width:100%}
  .woocommerce .cart-collaterals .cart_totals{max-width:none;padding:16px}
  .fd-drawer p.woocommerce-mini-cart__buttons{grid-template-columns:1fr}
  .fd-drawer p.woocommerce-mini-cart__buttons a.checkout{order:1}
  .fd-drawer p.woocommerce-mini-cart__buttons a:not(.checkout){order:2}
}
@media(max-width:380px){.fd-drawer .woocommerce-mini-cart-item img{width:52px!important}.fd-drawer .woocommerce-mini-cart-item a:not(.remove),.fd-drawer .woocommerce-mini-cart-item .quantity{padding-inline-start:66px}}
@media(prefers-reduced-motion:reduce){.fd-drawer-close{transition:none}}

/* =====================================================================
   نسخه ۱.۳.۰ — اصلاحات سبد کشویی، حساب کاربری، اعلان‌ها و قیمت
   ===================================================================== */

/* ---------- قیمت: عدد و «تومان» همیشه کنار هم و بدون به‌هم‌ریختگی راست‌به‌چپ ---------- */
.woocommerce-Price-amount,.woocommerce-Price-amount bdi,.wc-block-components-formatted-money-amount{unicode-bidi:isolate;white-space:nowrap}
.woocommerce-Price-currencySymbol{margin-inline-start:.25em;font-size:.88em;font-weight:600}
.wc-block-components-formatted-money-amount{font-variant-numeric:tabular-nums}

/* ---------- سبد کشویی ---------- */
.fd-drawer{box-shadow:0 0 60px rgba(11,44,61,.28)}
.fd-drawer-head{border-bottom:1px solid var(--fd-line)}
.fd-drawer .woocommerce-mini-cart-item{padding:14px!important;border-radius:8px}
.fd-drawer .woocommerce-mini-cart-item img{position:absolute!important;float:none!important;margin:0!important;height:auto!important;aspect-ratio:3/4;object-fit:cover;box-shadow:0 8px 14px -8px rgba(11,44,61,.5)}
/* دکمه‌ی حذف: ریست کامل استایل‌های پیش‌فرض ووکامرس و جای‌گذاری درست در حالت RTL */
.fd-drawer .woocommerce-mini-cart-item a.remove,.fd-drawer .woocommerce-mini-cart-item a.remove_from_cart_button{
  position:absolute!important;float:none!important;top:12px!important;right:auto!important;left:12px!important;inset-inline-start:auto!important;
  display:flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;margin:0!important;padding:0!important;
  border-radius:8px!important;background:#fdeaea!important;color:var(--fd-red)!important;font-size:1.1rem!important;line-height:1!important;font-weight:400;text-decoration:none;transition:background .2s,color .2s}
.fd-drawer .woocommerce-mini-cart-item a.remove:hover{background:var(--fd-red)!important;color:#fff!important}
.fd-drawer .woocommerce-mini-cart-item a:not(.remove){padding-inline-end:40px}
.fd-drawer .woocommerce-mini-cart-item .quantity{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;padding-inline-start:78px!important;margin-top:8px}
.fd-drawer p.woocommerce-mini-cart__total{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px 12px!important;margin:0!important}
.fd-drawer p.woocommerce-mini-cart__total strong,.fd-drawer p.woocommerce-mini-cart__total .amount{float:none!important}
.fd-drawer p.woocommerce-mini-cart__buttons{padding:0 20px 20px!important}
.fd-drawer p.woocommerce-mini-cart__buttons a.button{box-shadow:none}
.fd-drawer p.woocommerce-mini-cart__buttons a.checkout{box-shadow:var(--fd-shadow)}
.fd-drawer p.woocommerce-mini-cart__buttons a:not(.checkout){background:#fff!important;color:var(--fd-blue-dd)!important;border:1.5px solid var(--fd-blue)!important}
.fd-drawer p.woocommerce-mini-cart__buttons a:not(.checkout):hover{background:var(--fd-sky)!important}

/* ---------- اعلان‌ها (موفقیت / اطلاع / خطا) — بدون وابستگی به فونت آیکون ووکامرس ---------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice{
  position:relative;display:flex!important;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 18px!important;padding:14px 18px!important;
  list-style:none;background:var(--fd-sky);color:var(--fd-ink);border:1px solid var(--fd-sky-2)!important;border-inline-start:4px solid var(--fd-blue)!important;
  border-radius:8px;font-size:.92rem;line-height:1.9;text-align:start;word-break:break-word}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before,.woocommerce-notice::before{
  content:""!important;position:static!important;flex:none;width:22px;height:22px;margin:0!important;font-family:inherit;color:var(--fd-blue-d);
  background:currentColor;-webkit-mask:var(--fd-n) center/contain no-repeat;mask:var(--fd-n) center/contain no-repeat}
.woocommerce-info,.woocommerce-notice,.woocommerce-message{--fd-n:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E")}
.woocommerce-message{background:#eef9ed;border-color:#cdebcb!important;border-inline-start-color:var(--fd-green)!important;--fd-n:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.1V12a10 10 0 1 1-5.9-9.1'/%3E%3Cpath d='m22 4-10 10-3-3'/%3E%3C/svg%3E")}
.woocommerce-message::before{color:var(--fd-green)}
.woocommerce-error{background:#fff3f3;border-color:#f6d0d2!important;border-inline-start-color:var(--fd-red)!important;--fd-n:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E")}
.woocommerce-error::before{color:var(--fd-red)}
.woocommerce-error li{flex:1 1 100%;margin:0;padding:0}
.woocommerce-error li+li{margin-top:2px}
.woocommerce-message .button,.woocommerce-info .button,.woocommerce-error .button,.woocommerce-notice .button{float:none!important;order:3;margin:0!important;margin-inline-start:auto!important;padding:8px 18px;font-size:.84rem;box-shadow:none}
.woocommerce-info a:not(.button),.woocommerce-message a:not(.button),.woocommerce-error a:not(.button){color:var(--fd-blue-dd);text-decoration:underline;text-underline-offset:3px;font-weight:700}

/* ---------- حساب کاربری: اصلاح چیدمان ---------- */
.fd-content-wide{max-width:1600px}
.woocommerce-MyAccount-content{overflow-wrap:anywhere}
.woocommerce-MyAccount-content strong{unicode-bidi:isolate}
.woocommerce-MyAccount-content>p{margin-bottom:1em}
.woocommerce-MyAccount-content>p a{color:var(--fd-blue-dd);text-decoration:underline;text-underline-offset:3px}
/* آدرس‌ها: دو ستون هم‌تراز (pseudo-elementهای clearfix ووکامرس دیگر در گرید سلول نمی‌گیرند) */
.woocommerce-MyAccount-content .woocommerce-Addresses{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.woocommerce-MyAccount-content .woocommerce-Addresses::before,.woocommerce-MyAccount-content .woocommerce-Addresses::after,
.woocommerce-MyAccount-content .u-columns::before,.woocommerce-MyAccount-content .u-columns::after{display:none!important;content:none!important}
.woocommerce-MyAccount-content .woocommerce-Addresses>.woocommerce-Address,.woocommerce-MyAccount-content .woocommerce-Addresses>[class*="col-"]{grid-column:auto!important;grid-row:auto!important;float:none!important;width:100%!important;max-width:none!important;margin:0!important}
.woocommerce-MyAccount-content .woocommerce-Address{display:flex;flex-direction:column;gap:10px;height:100%;padding:20px}
.woocommerce-MyAccount-content .woocommerce-Address-title{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between!important;gap:10px;margin:0 0 4px!important;padding-bottom:12px;border-bottom:1px dashed var(--fd-line)}
.woocommerce-MyAccount-content .woocommerce-Address-title::before,.woocommerce-MyAccount-content .woocommerce-Address-title::after{display:none!important}
.woocommerce-MyAccount-content .woocommerce-Address-title a.edit{float:none!important;margin:0!important;order:2}
.woocommerce-MyAccount-content .woocommerce-Address address{margin:0;font-style:normal;color:var(--fd-ink2);line-height:2}
/* فرم ویرایش آدرس و جزئیات حساب: گرید دو ستونه */
.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
.woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper .form-row{width:auto!important;display:block!important;float:none!important;margin:0 0 12px!important}
.woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper .form-row-wide{grid-column:1/-1}
/* ورود / ثبت‌نام */
.woocommerce-account:not(.logged-in) .woocommerce{max-width:980px;margin-inline:auto}
.woocommerce-account:not(.logged-in) .u-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.woocommerce-account:not(.logged-in) .u-columns::before,.woocommerce-account:not(.logged-in) .u-columns::after{display:none}
.woocommerce-account:not(.logged-in) .u-columns>div,.woocommerce-account:not(.logged-in) .woocommerce>h2+form.login,.woocommerce-account:not(.logged-in) form.woocommerce-ResetPassword{float:none!important;width:100%!important;margin:0}
.woocommerce-account:not(.logged-in) .u-columns>div,.woocommerce-account:not(.logged-in) form.login:only-of-type,.woocommerce-account:not(.logged-in) form.woocommerce-ResetPassword{background:#fff;border:1px solid var(--fd-line);border-radius:8px;padding:24px;box-shadow:0 14px 34px -28px rgba(11,44,61,.45)}
.woocommerce-account:not(.logged-in) .u-columns h2{font-size:1.15rem;margin:0 0 16px}
.woocommerce-form-login,.woocommerce-form-register{border:0!important;padding:0!important;margin:0!important}
.woocommerce-form-login .woocommerce-form-login__submit,.woocommerce-form-register__submit{width:100%;margin-top:6px}
.woocommerce-form-login__rememberme{display:flex;align-items:center;gap:8px;margin:6px 0 14px}
.woocommerce-LostPassword{margin:14px 0 0;font-size:.88rem}
.woocommerce-LostPassword a{color:var(--fd-blue-dd);text-decoration:underline;text-underline-offset:3px}

/* ---------- فیلدهای فرم (حساب و تسویه‌ی کلاسیک) ---------- */
.woocommerce form .form-row label{display:block;margin:0 0 6px;font-size:.86rem;font-weight:700;color:var(--fd-ink);line-height:1.7}
.woocommerce form .form-row .required{color:var(--fd-red);text-decoration:none;border:0}
.woocommerce form .form-row .woocommerce-input-wrapper{display:block}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce-page form .form-row input.input-text,.woocommerce-page form .form-row textarea{
  width:100%;min-height:46px;padding:10px 14px;border:1.5px solid var(--fd-line);border-radius:8px;background:#fff;color:var(--fd-ink);font:inherit;font-size:.94rem;transition:border-color .2s,box-shadow .2s}
.woocommerce form .form-row textarea{min-height:110px;line-height:1.9}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus{border-color:var(--fd-blue);box-shadow:0 0 0 4px rgba(70,174,224,.15);outline:0}
.woocommerce form .form-row .description,.woocommerce form .form-row small,.woocommerce-MyAccount-content form em{display:block;margin-top:4px;font-size:.78rem;color:var(--fd-ink2);font-style:normal}
/* ایمیل، نام کاربری و رمز: چپ‌به‌راست و با ارقام لاتین (فونت FaNum همه‌ی ارقام را فارسی می‌کند) */
input[type="email"],input[type="url"],input[type="password"],input#username,input#reg_email,input#account_email,input#billing_email,input.fd-ltr{
  direction:ltr;text-align:right;font-family:var(--fd-font)!important}
input[type="tel"],input#billing_phone,input#shipping_phone{direction:ltr;text-align:right}
.fd-ltr{direction:ltr;unicode-bidi:isolate;font-family:var(--fd-font)}

/* ---------- ریسپانسیو اضافه ---------- */
@media(max-width:900px){
  .woocommerce-account:not(.logged-in) .u-columns{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  .woocommerce-MyAccount-content .woocommerce-Addresses,.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper{grid-template-columns:minmax(0,1fr)}
  .woocommerce-message .button,.woocommerce-info .button,.woocommerce-error .button{width:100%;margin-inline-start:0!important}
  .woocommerce-account:not(.logged-in) .u-columns>div{padding:18px}
  .fd-drawer p.woocommerce-mini-cart__total{padding:12px 16px 10px!important}
  .fd-drawer p.woocommerce-mini-cart__buttons{padding:0 16px 16px!important}
}
