/* راهنمای سایز — استایل مودال، هماهنگ با ظاهر پیش‌فرض Woodmart (RTL) */

.zrsf-sg-btn{
	display:inline-flex;align-items:center;gap:6px;
	border:1px solid var(--wd-border-color,#e4e4e4);
	background:transparent;color:inherit;
	font-size:13px;line-height:1;padding:8px 12px;border-radius:6px;
	cursor:pointer;margin:0 0 10px;direction:rtl;font-family:inherit;
}
.zrsf-sg-btn:before{
	content:"";width:15px;height:15px;flex:0 0 auto;
	background:currentColor;
	-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 7h2v10H3zM7 4h2v16H7zM11 7h2v10h-2zM15 4h2v16h-2zM19 7h2v10h-2z'/></svg>") center/contain no-repeat;
	mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 7h2v10H3zM7 4h2v16H7zM11 7h2v10h-2zM15 4h2v16h-2zM19 7h2v10h-2z'/></svg>") center/contain no-repeat;
}
.zrsf-sg-btn:hover{border-color:currentColor;}

.zrsf-sg-overlay{
	position:fixed;inset:0;z-index:100000;
	background:rgba(20,20,20,.55);
	display:flex;align-items:flex-end;justify-content:center;
}
.zrsf-sg-overlay[hidden]{display:none;}
html.zrsf-sg-lock{overflow:hidden;}

.zrsf-sg-sheet{
	direction:rtl;text-align:right;
	background:var(--wd-form-control-bg,#fff);
	color:var(--wd-form-control-color,#1d1d1d);
	width:100%;max-width:560px;max-height:88vh;overflow-y:auto;
	border-radius:16px 16px 0 0;
	padding:12px 18px 22px;
	box-shadow:0 -6px 30px rgba(0,0,0,.2);
	font-family:inherit;
	animation:zrsf-sg-up .22s ease-out;
}
@media (min-width:1024px){
	.zrsf-sg-overlay{align-items:center;}
	.zrsf-sg-sheet{border-radius:16px;}
}
@keyframes zrsf-sg-up{from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}
@media (prefers-reduced-motion:reduce){.zrsf-sg-sheet{animation:none;}}

.zrsf-sg-grab{width:38px;height:4px;border-radius:3px;background:#d8d8d8;margin:4px auto 10px;}
@media (min-width:1024px){.zrsf-sg-grab{display:none;}}

.zrsf-sg-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.zrsf-sg-head b{font-size:16px;font-weight:700;}
.zrsf-sg-close{
	border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:inherit;
	padding:4px 8px;
}

.zrsf-sg-tabs{display:flex;gap:6px;border-bottom:1px solid var(--wd-border-color,#eaeaea);margin-bottom:14px;}
.zrsf-sg-tab{
	flex:1;border:0;background:transparent;padding:9px 4px;font-size:13px;cursor:pointer;color:#8b8b8b;
	border-bottom:2px solid transparent;font-family:inherit;
}
.zrsf-sg-tab.is-active{color:inherit;border-bottom-color:currentColor;font-weight:700;}

.zrsf-sg-panel{display:none;}
.zrsf-sg-panel.is-active{display:block;}

.zrsf-sg-intro{font-size:13px;color:#6b6b6b;margin:0 0 8px;}

.zrsf-sg-howto{margin:0 0 14px;border:1px solid var(--wd-border-color,#eee);border-radius:8px;padding:8px 12px;}
.zrsf-sg-howto summary{cursor:pointer;font-size:13px;font-weight:600;}
.zrsf-sg-howto-body{margin-top:8px;}
.zrsf-sg-illus{width:100%;max-width:220px;display:block;margin:0 auto 6px;color:#9a9a9a;}
.zrsf-sg-howto-body p{font-size:12.5px;color:#6b6b6b;margin:0;}

.zrsf-sg-table{width:100%;border-collapse:collapse;font-size:12.5px;margin-bottom:14px;}
.zrsf-sg-table th,.zrsf-sg-table td{padding:6px 8px;text-align:center;border-bottom:1px solid var(--wd-border-color,#f0f0f0);}
.zrsf-sg-table th{color:#8b8b8b;font-weight:600;}
.zrsf-sg-table tbody tr:hover{background:#faf8f3;}

.zrsf-sg-calc label{display:block;font-size:12.5px;margin-bottom:6px;color:#6b6b6b;}
.zrsf-sg-calc-row{display:flex;gap:8px;}
.zrsf-sg-calc-row input{
	flex:1;border:1px solid var(--wd-border-color,#ddd);border-radius:6px;padding:9px 10px;
	font-size:14px;font-family:inherit;direction:ltr;text-align:center;
}
.zrsf-sg-calc-btn{
	border:0;border-radius:6px;padding:9px 16px;font-size:13px;cursor:pointer;
	background:var(--wd-brand,#c9a24b);color:#fff;white-space:nowrap;font-family:inherit;
}
.zrsf-sg-calc-btn:hover{filter:brightness(.95);}

.zrsf-sg-result{
	margin-top:10px;font-size:13px;background:#f6f3ea;border-radius:8px;padding:10px 12px;line-height:1.7;
}
.zrsf-sg-result[hidden]{display:none;}
.zrsf-sg-result b{font-weight:700;}
