/* ===== Pet Shop Fereshteh — customer account panel =====
 * The panel is an app, not a page: on phones it opens on a list of sections and
 * pushes one into view on tap, with a back arrow to return. The site header and
 * search are hidden here — the panel has its own chrome.
 */

/* ---------- the panel owns the screen, but only on a phone ----------
 * A phone has room for one chrome, and the panel brings its own: its hero, its
 * back bar, its section list. On a desktop there is room for both, and the site
 * header is how a customer leaves the panel and goes back to shopping, so it
 * stays. The page hero is the panel's own title strip and is always out. */
body.woocommerce-account .psf-page-hero{display:none !important;}

@media (max-width:899px){
	body.woocommerce-account .psf-topbar,
	body.woocommerce-account .psf-header,
	body.woocommerce-account .psf-search{display:none !important;}
	body.woocommerce-account .psf-site{padding-top:0;}
}

body.woocommerce-account{
	--brand:#4d0f5c; --brand-2:#7a1a92; --ink:#241028; --muted:#8a7a90;
	--line:#ece6ef; --bg:#f7f4f8; --card:#fff; --radius:16px;
	background:var(--bg);
}

body.woocommerce-account #main-content.container{max-width:100% !important;width:100% !important;padding-inline:0 !important;}
body.woocommerce-account .woocommerce{max-width:1180px;margin:0 auto;padding:12px 12px 96px;}
body.woocommerce-account .woocommerce *{font-family:'YekanBakh','Vazirmatn',Tahoma,sans-serif;}

/* ---------- notices ---------- */
body.woocommerce-account .woocommerce-notices-wrapper:empty{display:none;}
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info{
	list-style:none;margin:0 0 16px;padding:13px 16px;border-radius:12px;font-size:13.5px;font-weight:600;
	border:0;border-top:0 !important;text-align:start;line-height:2;
}
body.woocommerce-account .woocommerce-error a,
body.woocommerce-account .woocommerce-message a,
body.woocommerce-account .woocommerce-info a{color:inherit;}
body.woocommerce-account .woocommerce-message{background:#e8f6ec;color:#1d6b34;}
body.woocommerce-account .woocommerce-error{background:#fdecec;color:#a32020;}
body.woocommerce-account .woocommerce-info{background:#f6eef8;color:#4d0f5c;border-inline-start:3px solid var(--brand);}

/* ---------- hero ---------- */
.psf-acc__hero{
	display:flex;align-items:center;gap:13px;
	background:linear-gradient(135deg,var(--brand),var(--brand-2));
	color:#fff;border-radius:20px;padding:18px 18px;margin-bottom:16px;
	box-shadow:0 16px 34px -20px rgba(77,15,92,.9);
}
.psf-acc__avatar{
	flex:0 0 52px;height:52px;border-radius:17px;background:rgba(255,255,255,.16);
	display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;
}
.psf-acc__who{display:flex;flex-direction:column;min-width:0;gap:2px;}
.psf-acc__hi{font-size:12px;opacity:.8;}
.psf-acc__name{font-size:16.5px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.psf-acc__phone{font-size:12.5px;color:#fff;opacity:.9;direction:ltr;text-align:start;}
.psf-acc__shop{
	margin-inline-start:auto;display:inline-flex;align-items:center;gap:7px;
	background:rgba(255,255,255,.16);color:#fff;text-decoration:none;
	padding:10px 14px;border-radius:12px;font-size:13px;font-weight:700;white-space:nowrap;
	transition:background .15s;
}
.psf-acc__shop:hover{background:rgba(255,255,255,.26);color:#fff;}
.psf-acc__shop span{display:none;}

/* ---------- layout ----------
 * WooCommerce's own stylesheet floats the navigation at 25% and the content at
 * 68%, which left both columns narrower than the hero above them. Both are
 * reset here so the grid decides the widths.
 */
.psf-acc__grid{display:block;}
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content{
	float:none !important;width:100% !important;max-width:100% !important;margin:0 !important;
}
body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after{display:none !important;}

/* ---------- navigation ---------- */
.psf-acc__nav ul{
	display:flex;flex-wrap:nowrap;gap:8px;list-style:none;margin:0 0 16px;padding:2px 2px 10px;
	overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.psf-acc__nav ul::-webkit-scrollbar{display:none;}
.psf-acc__nav li{flex:0 0 auto;}
.psf-acc__nav a{
	display:inline-flex;align-items:center;gap:7px;
	padding:10px 14px;border-radius:12px;background:var(--card);border:1px solid var(--line);
	color:var(--ink);text-decoration:none;font-size:13.5px;font-weight:700;white-space:nowrap;
	transition:border-color .15s,color .15s,background .15s;
}
.psf-acc__nav a:hover{border-color:#d9c4e0;background:#faf6fb;color:var(--brand);}
.psf-acc__nav .psf-nav-ic{display:flex;color:var(--brand);}
.psf-acc__nav li.is-active a{background:var(--brand);border-color:var(--brand);color:#fff;}
.psf-acc__nav li.is-active .psf-nav-ic{color:#fff;}
.psf-acc__nav li.psf-nav-logout a{color:#a32020;}
.psf-acc__nav li.psf-nav-logout .psf-nav-ic{color:#a32020;}

/* ---------- content shell ---------- */
.psf-acc__content{min-width:0;}

.psf-panel{
	background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
	padding:16px;margin-bottom:14px;
}
.psf-panel__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.psf-panel__head h2,.psf-panel h2{margin:0;font-size:15.5px;font-weight:800;color:var(--ink);}
.psf-panel__head a{font-size:12.5px;font-weight:700;color:var(--brand);text-decoration:none;}
.psf-muted{color:var(--muted);font-size:13.5px;}

/* ---------- dashboard cards ---------- */
.psf-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px;}
.psf-card{
	background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
	padding:14px;display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);
	transition:transform .15s,border-color .15s,box-shadow .15s;
}
.psf-card:hover{transform:translateY(-2px);border-color:#d9c4e0;box-shadow:0 12px 24px -18px rgba(77,15,92,.8);}
.psf-card__ic{width:38px;height:38px;border-radius:12px;background:#f6eef8;color:var(--brand);display:flex;align-items:center;justify-content:center;margin-bottom:4px;}
.psf-card__num{font-size:20px;font-weight:800;line-height:1;}
.psf-card__lbl{font-size:12.5px;color:var(--muted);font-weight:600;}
.psf-card--support{background:linear-gradient(135deg,var(--brand),var(--brand-2));border-color:transparent;color:#fff;}
.psf-card--support .psf-card__ic{background:rgba(255,255,255,.18);color:#fff;}
.psf-card--support .psf-card__lbl{color:rgba(255,255,255,.85);}

/* ---------- orders ---------- */
.psf-orders{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.psf-order{border:1px solid var(--line);border-radius:14px;padding:13px;}
.psf-order__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.psf-order__id{font-weight:800;font-size:14px;direction:ltr;}
.psf-order__status{font-size:11.5px;font-weight:700;padding:5px 10px;border-radius:999px;background:#f1ecf3;color:var(--muted);}
.psf-order__status.is-processing{background:#f2e9f5;color:#6a1780;}
.psf-order__status.is-completed{background:#e7f6ec;color:#1d7a43;}
.psf-order__status.is-cancelled,.psf-order__status.is-failed{background:#fdecec;color:#a32020;}
.psf-order__status.is-on-hold,.psf-order__status.is-pending{background:#fdf3e2;color:#96690f;}
.psf-order__meta{display:flex;flex-wrap:wrap;gap:10px;font-size:12.5px;color:var(--muted);margin-bottom:10px;}
.psf-order__meta bdi{font-weight:700;color:var(--ink);}
.psf-order__link{display:inline-block;font-size:13px;font-weight:700;color:var(--brand);text-decoration:none;}

.psf-empty{text-align:center;padding:22px 10px;color:var(--muted);}
.psf-empty p{margin:0 0 14px;font-size:13.5px;}
.psf-btn{
	display:inline-block;padding:11px 20px;border-radius:12px;text-decoration:none;font-weight:800;font-size:14px;
	background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff !important;
}

/* WooCommerce's own orders table becomes cards on phones */
.woocommerce-orders-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.woocommerce-orders-table th{text-align:start;font-size:12.5px;color:var(--muted);padding:10px 8px;border-bottom:1px solid var(--line);}
.woocommerce-orders-table td{padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:middle;}
.woocommerce-orders-table .button{
	display:inline-block;padding:8px 14px;border-radius:10px;background:#f6eef8;color:var(--brand) !important;
	text-decoration:none;font-weight:700;font-size:12.5px;border:0;
}

@media (max-width:720px){
	.woocommerce-orders-table thead{display:none;}
	.woocommerce-orders-table,.woocommerce-orders-table tbody,.woocommerce-orders-table tr,.woocommerce-orders-table td{display:block;width:100%;}
	.woocommerce-orders-table tr{border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:10px;}
	.woocommerce-orders-table td{border:0;padding:5px 0;display:flex;justify-content:space-between;gap:12px;}
	.woocommerce-orders-table td::before{content:attr(data-title);color:var(--muted);font-size:12.5px;font-weight:600;}
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions{justify-content:flex-start;padding-top:10px;}
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before{display:none;}
}

/* ---------- forms (addresses / account details) ---------- */
body.woocommerce-account .woocommerce-MyAccount-content form,
body.woocommerce-account .woocommerce-Address{
	background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px;
}
/* WooCommerce ships these as floated .u-column1/.u-column2 halves; the floats
   and percentage widths have to go before a grid can lay them out. */
body.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:1fr;gap:12px;list-style:none;margin:0;padding:0;}
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after{display:none;}
body.woocommerce-account .woocommerce-Addresses .u-column1,
body.woocommerce-account .woocommerce-Addresses .u-column2,
body.woocommerce-account .woocommerce-Addresses .col-1,
body.woocommerce-account .woocommerce-Addresses .col-2{
	float:none !important;width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important;
}
body.woocommerce-account .woocommerce-Address{height:100%;}
body.woocommerce-account .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3{margin:0;font-size:15px;font-weight:800;}
body.woocommerce-account .woocommerce-Address-title .edit{
	font-size:12.5px;font-weight:700;color:var(--brand);text-decoration:none;
	background:#f6eef8;padding:7px 12px;border-radius:999px;white-space:nowrap;
}
body.woocommerce-account .woocommerce-Address address:empty::before{content:"هنوز ثبت نشده";color:var(--muted);}
body.woocommerce-account address{font-style:normal;line-height:2;color:var(--muted);font-size:13.5px;}

body.woocommerce-account .form-row{margin-bottom:13px;}
body.woocommerce-account label{display:block;margin-bottom:6px;font-size:13px;font-weight:700;color:var(--ink);}
body.woocommerce-account .required{color:#c0392b;text-decoration:none;}
body.woocommerce-account input.input-text,
body.woocommerce-account input[type="text"],
body.woocommerce-account input[type="email"],
body.woocommerce-account input[type="password"],
body.woocommerce-account input[type="tel"],
body.woocommerce-account select,
body.woocommerce-account textarea{
	width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:12px;
	font-family:inherit;font-size:14px;color:var(--ink);background:#fff;
	transition:border-color .15s,box-shadow .15s;
}
body.woocommerce-account input:focus,
body.woocommerce-account select:focus,
body.woocommerce-account textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(77,15,92,.1);}
body.woocommerce-account fieldset{border:1px solid var(--line);border-radius:12px;padding:14px;margin:14px 0;}
body.woocommerce-account fieldset legend{padding:0 6px;font-size:13.5px;font-weight:800;}
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account button[type="submit"],
body.woocommerce-account .woocommerce-Button{
	display:inline-block;width:100%;padding:13px;border:0;border-radius:12px;
	background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff !important;
	font-family:inherit;font-size:14.5px;font-weight:800;cursor:pointer;text-align:center;text-decoration:none;
	box-shadow:0 12px 24px -16px rgba(77,15,92,.9);
}

/* ---------- support ---------- */
.psf-support-intro p{margin:0 0 14px;font-size:13.5px;line-height:2;color:var(--muted);}
.psf-channels{display:grid;grid-template-columns:1fr;gap:9px;}
.psf-channel{
	display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--line);border-radius:14px;
	text-decoration:none;color:var(--ink);transition:border-color .15s,transform .15s;
}
.psf-channel:hover{border-color:#d9c4e0;transform:translateY(-2px);}
.psf-channel__ic{flex:0 0 40px;height:40px;border-radius:12px;background:#f6eef8;color:var(--brand);display:flex;align-items:center;justify-content:center;}
.psf-channel__txt{display:flex;flex-direction:column;gap:3px;min-width:0;}
.psf-channel__txt strong{font-size:14px;font-weight:800;}
.psf-channel__txt span{font-size:12.5px;color:var(--muted);}

/* The search box is a <label>, and the panel styles every label as a block.
   That rule is more specific than a bare class, so it has to be out-specified
   here or the icon and the field stack instead of sitting on one line. */
body.woocommerce-account .psf-faq__search{
	direction:rtl;display:flex;flex-flow:row nowrap;align-items:center;gap:9px;
	padding:11px 13px;border:1px solid var(--line);border-radius:12px;
	margin:0 0 14px;color:var(--brand);font-weight:400;
}
body.woocommerce-account .psf-faq__search svg{flex:0 0 auto;display:block;width:20px;height:20px;}
body.woocommerce-account .psf-faq__search input{
	border:0 !important;padding:0 !important;margin:0;background:transparent;
	font-size:14px;line-height:1.5;flex:1 1 auto;min-width:0;width:auto;
}
body.woocommerce-account .psf-faq__search input:focus{outline:none;box-shadow:none !important;}

.psf-faq__group{margin-bottom:16px;direction:rtl;text-align:right;}
/* Every group after the first is pushed down, so the category headings read as
   dividers between groups rather than as another row in the list above. */
.psf-faq__group + .psf-faq__group{margin-top:30px;}
.psf-faq__group h3{margin:0 0 10px;font-size:13px;font-weight:800;color:var(--brand);}
.psf-faq__item{border:1px solid var(--line);border-radius:12px;margin-bottom:8px;overflow:hidden;background:#fff;}
.psf-faq__item summary{
	cursor:pointer;padding:13px 14px;font-size:13.5px;font-weight:700;line-height:1.9;
	list-style:none;display:flex;gap:10px;align-items:center;direction:rtl;
}
.psf-faq__item summary::-webkit-details-marker{display:none;}
.psf-faq__item summary::before{
	content:"+";flex:0 0 auto;color:var(--brand);font-weight:800;font-size:17px;line-height:1.4;order:1;
}
.psf-faq__item[open] summary::before{content:"−";}
.psf-faq__item[open] summary{background:#faf6fb;}
.psf-faq__answer{padding:0 14px 14px;font-size:13px;line-height:2.1;color:var(--muted);direction:rtl;text-align:right;}
.psf-faq__none{margin:8px 0 0;font-size:13.5px;color:var(--muted);text-align:center;}

.psf-links-row{display:flex;flex-wrap:wrap;gap:8px;}
.psf-links-row a{
	font-size:12.5px;font-weight:700;color:var(--brand);text-decoration:none;
	padding:9px 13px;border-radius:999px;background:#f4ecf6;
}
.psf-links-row a:hover{background:#ead9ef;}

/* ---------- view order ---------- */
body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details{
	background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px;
}
body.woocommerce-account .woocommerce-table--order-details{width:100%;border-collapse:collapse;font-size:13.5px;}
body.woocommerce-account .woocommerce-table--order-details th,
body.woocommerce-account .woocommerce-table--order-details td{padding:10px 6px;border-bottom:1px solid var(--line);text-align:start;}

/* ---------- desktop ---------- */
@media (min-width:900px){
	body.woocommerce-account .woocommerce{padding:26px 22px 60px;}

	.psf-acc__hero{padding:22px 24px;border-radius:24px;margin-bottom:20px;}
	.psf-acc__avatar{flex-basis:60px;height:60px;font-size:25px;}
	.psf-acc__name{font-size:19px;}
	.psf-acc__shop span{display:inline;}

	.psf-acc__grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start;}

	.psf-acc__nav ul{
		display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;overflow:visible;margin:0;width:100%;
		background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:10px;
		position:sticky;top:20px;
	}
	.psf-acc__nav a{width:100%;border:0;background:transparent;padding:11px 12px;font-size:14px;}
	.psf-acc__nav a:hover{background:#faf6fb;color:var(--brand);}
	.psf-acc__nav li.is-active a:hover{background:var(--brand);color:#fff;}
	.psf-acc__nav li.is-active a{background:var(--brand);}

	.psf-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
	.psf-panel{padding:20px;border-radius:18px;}
	.psf-channels{grid-template-columns:repeat(2,minmax(0,1fr));}
	/* auto-fit, so the single delivery address fills the row instead of
	   sitting in a half-width column next to nothing. */
	body.woocommerce-account .woocommerce-Addresses{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));}
	body.woocommerce-account button[type="submit"],
	body.woocommerce-account .woocommerce-Button{width:auto;padding:13px 28px;}
}

/* ---------- login screen (guests reach it through /signin/) ---------- */
body.woocommerce-account:not(.logged-in) .psf-acc__hero{display:none;}


/* ---------- phone: list view / section view ---------- */
.psf-acc__bar{display:none;}

@media (max-width:899px){
	body.woocommerce-account .woocommerce{padding:0 0 96px;max-width:100%;}
	body.woocommerce-account .psf-woo,
	body.woocommerce-account #main-content{padding:0 !important;}

	/* flush to the top of the viewport — no page chrome above it any more */
	.psf-acc__hero{border-radius:0 0 22px 22px;margin:0 0 12px;padding:18px 16px 20px;box-shadow:none;}
	/* the page wrapper adds its own top padding; the hero has to sit on 0 */
	body.woocommerce-account .psf-site,
	body.woocommerce-account #main-content,
	body.woocommerce-account .psf-woo,
	body.woocommerce-account .psf-page-section,
	body.woocommerce-account .psf-container,
	body.woocommerce-account .psf-prose{margin-top:0 !important;padding-top:0 !important;}
	body.woocommerce-account .psf-container{padding-inline:0 !important;}
	.psf-acc__grid,
	.psf-acc__bar{padding-inline:12px;}

	/* The section list: full-width rows with a chevron, like a mobile app menu. */
	.psf-acc__nav ul{flex-direction:column;gap:0;overflow:visible;padding:0;margin:0 0 12px;
		background:var(--card);border:1px solid var(--line);border-radius:16px;}
	.psf-acc__nav li{width:100%;}
	.psf-acc__nav li + li{border-top:1px solid var(--line);}
	.psf-acc__nav a{
		width:100%;border:0;border-radius:0;background:transparent;
		padding:15px 14px;font-size:14.5px;gap:11px;position:relative;
	}
	.psf-acc__nav a::after{
		/* inline-start is the right in RTL; the chevron belongs on the far side. */
		content:"";position:absolute;inset-inline-end:14px;top:50%;
		width:8px;height:8px;border-inline-end:2px solid #c9b6d0;border-bottom:2px solid #c9b6d0;
		transform:translateY(-50%) rotate(45deg);
	}
	.psf-acc__nav li.is-active a{background:transparent;color:var(--ink);}
	.psf-acc__nav li.is-active .psf-nav-ic{color:var(--brand);}
	.psf-acc__nav .psf-nav-ic{
		flex:0 0 38px;height:38px;border-radius:12px;background:#f6eef8;
		align-items:center;justify-content:center;
	}
	.psf-acc__nav li.psf-nav-logout .psf-nav-ic{background:#fdecec;}

	/* List view hides the section; section view hides the list. */
	.psf-acc.is-list .woocommerce-MyAccount-content{display:none;}
	.psf-acc.is-section .psf-acc__nav{display:none;}
	.psf-acc.is-section .psf-acc__hero{display:none;}

	.psf-acc.is-section .psf-acc__bar{
		display:flex;align-items:center;gap:10px;
		position:sticky;top:0;z-index:20;
		background:var(--card);border-bottom:1px solid var(--line);
		padding:12px;margin-bottom:12px;
	}
	.psf-acc__back{
		flex:0 0 38px;height:38px;border-radius:12px;border:1px solid var(--line);
		background:#fff;color:var(--brand);display:flex;align-items:center;justify-content:center;
		cursor:pointer;padding:0;min-width:0;min-height:0;
	}
	.psf-acc__bartitle{font-size:15px;font-weight:800;color:var(--ink);}

	.psf-panel{border-radius:16px;}
}

/* ---------- section loading ---------- */
.woocommerce-MyAccount-content.is-loading{opacity:.45;pointer-events:none;transition:opacity .12s;}


/* ---------- alignment: this panel is Persian, everything starts at the right ---------- */
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-MyAccount-content label,
body.woocommerce-account .woocommerce-Address address,
.psf-faq__group h3{text-align:start;}

.psf-faq__answer{padding:10px 34px 14px 14px;}
.psf-faq__item summary{padding-inline:14px;}

/* ---------- addresses ---------- */
body.woocommerce-account .woocommerce-Address{
	border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--card);
	display:flex;flex-direction:column;gap:10px;
}
body.woocommerce-account .woocommerce-Address address{
	margin:0;padding:12px 14px;background:#faf7fb;border-radius:12px;
	color:var(--muted);font-size:13.5px;line-height:2.1;
}
body.woocommerce-account .woocommerce-Address-title{margin:0;}
body.woocommerce-account .woocommerce-MyAccount-content > p:first-child{
	margin:0 0 14px;color:var(--muted);font-size:13.5px;line-height:2;
}

/* ---------- account details form ---------- */
body.woocommerce-account .woocommerce-EditAccountForm{
	display:flex;flex-direction:column;gap:2px;
}
body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row{
	width:100% !important;float:none !important;margin:0 0 13px !important;padding:0 !important;
}
body.woocommerce-account .woocommerce-EditAccountForm fieldset{
	margin:6px 0 16px;background:#faf7fb;border-color:var(--line);
}
body.woocommerce-account .woocommerce-EditAccountForm legend{color:var(--brand);}
body.woocommerce-account .woocommerce-EditAccountForm em,
body.woocommerce-account .woocommerce-EditAccountForm span.description{
	display:block;margin-top:6px;font-size:12px;font-style:normal;color:var(--muted);
}
body.woocommerce-account .woocommerce-EditAccountForm .clear{display:none;}

/* WooCommerce floats the first/last name pair; the grid does it better. */
@media (min-width:600px){
	body.woocommerce-account .woocommerce-EditAccountForm{
		display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;align-items:start;
	}
	body.woocommerce-account .woocommerce-EditAccountForm > fieldset,
	body.woocommerce-account .woocommerce-EditAccountForm > p.woocommerce-form-row-wide,
	body.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type{grid-column:1 / -1;}
}

/* ---------- spacing pass ---------- */
.psf-panel > *:last-child{margin-bottom:0;}
.psf-panel p{margin:0 0 12px;line-height:2;}
.psf-empty{padding:26px 16px;}

/* Inputs inside the panel: the theme's global form rules paint a near-black
   border, which reads as an error state next to the soft cards. */
body.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea{
	border:1px solid var(--line) !important;border-radius:12px !important;
	background:#fff !important;color:var(--ink) !important;text-align:start;
}
body.woocommerce-account .woocommerce-MyAccount-content input:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus{
	border-color:var(--brand) !important;box-shadow:0 0 0 3px rgba(77,15,92,.1) !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .show-password-input{color:var(--muted);}

/* ---------- address card header: title right, action left ---------- */
body.woocommerce-account .woocommerce-Address-title{
	display:flex !important;align-items:center;justify-content:space-between;gap:12px;
	text-align:start;margin:0 0 4px;
}
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3{
	margin:0;flex:1 1 auto;text-align:start;font-size:15px;font-weight:800;
}
body.woocommerce-account .woocommerce-Address-title .edit{flex:0 0 auto;margin-inline-start:auto;}

/* the map picker sits inside the address form like any other field */
body.woocommerce-account .psf-map-card{margin:0 0 16px;}
body.woocommerce-account .psf-map-inline{height:280px;}

/* the pin recorded with a saved address */
.psf-addr-pin{
	display:flex;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;
	background:#f6eef8;border-radius:12px;color:var(--brand);font-size:12.5px;font-weight:700;
}
.psf-addr-pin span{direction:ltr;font-weight:600;color:var(--muted);}

/* FAQ copy is justified: long Persian paragraphs read better with both edges
   aligned, and the question rows line up with them. */
.psf-support-intro p{
	text-align:justify;
	text-justify:inter-word;
	hyphens:auto;
}
