.ptt-price-chart-wrap {
	direction: rtl;
	font-family: inherit;
}

.ptt-range-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.ptt-range-btn {
	background: #f0f4f8;
	border: 1px solid #dfe3e8;
	color: #333;
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.ptt-range-btn:hover {
	background: #e2ecf5;
}

.ptt-range-btn.ptt-range-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.ptt-range-custom-box {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ptt-range-custom-box .ptt-jalali-input {
	min-height: 32px;
	border-radius: 6px;
	border: 1px solid #c3c4c7;
	padding: 0 10px;
	width: 110px;
	cursor: pointer;
}

.ptt-range-apply {
	border-radius: 16px !important;
	font-family: inherit;
	background: #2271b1;
	border: 1px solid #135e96;
	color: #fff;
	padding: 5px 16px;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s ease;
}

.ptt-range-apply:hover {
	background: #135e96;
}

/* ===== آیکون نمودار قیمت (شورت‌کد price_chart_icon) ===== */
.ptt-chart-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 2px;
	margin: 0;
	cursor: pointer;
	color: #2271b1;
	vertical-align: middle;
	line-height: 0;
	transition: opacity .15s ease;
}

.ptt-chart-icon-btn:hover {
	opacity: 0.7;
}

.ptt-chart-icon-btn svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* ===== پاپ‌آپ نمودار (اورلی + باکس) ===== */
.ptt-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease;
	direction: rtl;
}

.ptt-modal-overlay.ptt-modal-open {
	opacity: 1;
	visibility: visible;
}

body.ptt-modal-no-scroll {
	overflow: hidden;
}

.ptt-modal-box {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 620px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	font-family: inherit;
	transform: scale(.96);
	transition: transform .18s ease;
}

.ptt-modal-overlay.ptt-modal-open .ptt-modal-box {
	transform: scale(1);
}

.ptt-modal-close {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #f0f4f8;
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.ptt-modal-close:hover {
	background: #e2ecf5;
}

.ptt-modal-body {
	padding: 24px;
}

.ptt-modal-loading,
.ptt-modal-error {
	text-align: center;
	padding: 40px 10px;
	color: #666;
	font-size: 14px;
}

.ptt-spinner {
	display: block;
	width: 30px;
	height: 30px;
	margin: 0 auto 14px;
	border: 3px solid #e2ecf5;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: ptt-spin 0.7s linear infinite;
}

@keyframes ptt-spin {
	to { transform: rotate(360deg); }
}

.ptt-modal-error {
	color: #b32d2e;
}

.ptt-modal-canvas-wrap {
	position: relative;
	height: 320px;
	width: 100%;
}

/* ریسپانسیو - موبایل: وسط صفحه (نه از پایین)، با ۵ پیکسل فاصله از چپ/راست، حالت مینیمال‌تر */
@media (max-width: 600px) {
	.ptt-modal-overlay {
		padding: 5px;
		align-items: center;
		justify-content: center;
	}

	.ptt-modal-box {
		max-width: calc(100% - 10px);
		width: calc(100% - 10px);
		max-height: 92vh;
		border-radius: 10px;
		transform: scale(.96);
		margin: 0 5px;
	}

	.ptt-modal-overlay.ptt-modal-open .ptt-modal-box {
		transform: scale(1);
	}

	.ptt-modal-body {
		padding: 14px 10px;
	}

	.ptt-modal-close {
		top: 6px;
		left: 6px;
		width: 28px;
		height: 28px;
		font-size: 16px;
	}

	.ptt-current-price {
		font-size: 1.1em;
	}

	.ptt-modal-canvas-wrap {
		height: 220px;
	}

	.ptt-range-toolbar {
		gap: 4px;
		margin-bottom: 8px;
	}

	.ptt-range-btn {
		padding: 4px 9px;
		font-size: 11px;
	}

	.ptt-range-custom-box .ptt-jalali-input {
		width: 88px;
		min-height: 28px;
		padding: 0 6px;
		font-size: 12px;
	}
}
