/* =====================================================
   پاپ‌آپ تماس ووکامرس – فرانت‌اند
   فونت پیش‌فرض سایت + سایز استاندارد
   پشتیبانی RTL و LTR
   ===================================================== */

.wcpop-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	padding: 20px;
	font-family: inherit;
}

.wcpop-overlay.wcpop-active {
	opacity: 1;
	visibility: visible;
}

.wcpop-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: hidden;
	background: #ffffff;
	border-radius: 16px;
	box-shadow:
		0 25px 50px -12px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	transform: translateY(24px) scale(0.96);
	transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
	font-family: inherit;
}

.wcpop-overlay.wcpop-active .wcpop-modal {
	transform: translateY(0) scale(1);
}

/* ---------- جهت ---------- */
.wcpop-overlay.wcpop-rtl,
.wcpop-overlay.wcpop-rtl .wcpop-modal {
	direction: rtl;
	text-align: right;
}

.wcpop-overlay.wcpop-ltr,
.wcpop-overlay.wcpop-ltr .wcpop-modal {
	direction: ltr;
	text-align: left;
}

/* دکمه بستن */
.wcpop-close {
	position: absolute;
	top: 14px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: #f1f5f9;
	border-radius: 50%;
	cursor: pointer;
	color: #64748b;
	transition: background 0.2s, color 0.2s, transform 0.2s;
	z-index: 2;
	padding: 0;
}

.wcpop-rtl .wcpop-close {
	left: 14px;
	right: auto;
}

.wcpop-ltr .wcpop-close {
	right: 14px;
	left: auto;
}

.wcpop-close:hover {
	background: #e2e8f0;
	color: #0f172a;
	transform: rotate(90deg);
}

.wcpop-close:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* هدر */
.wcpop-header {
	padding: 28px 28px 16px;
	border-bottom: 1px solid #f1f5f9;
}

.wcpop-title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.4;
	font-family: inherit;
}

.wcpop-rtl .wcpop-title {
	padding-left: 42px;
	padding-right: 0;
}

.wcpop-ltr .wcpop-title {
	padding-right: 42px;
	padding-left: 0;
}

/* بدنه */
.wcpop-body {
	padding: 12px 28px;
	overflow-y: auto;
	flex: 1;
	font-size: 1.1rem;
	line-height: 1.8;
	color: #334155;
	font-family: inherit;
}

.wcpop-section {
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
}

.wcpop-section:last-child {
	border-bottom: none;
}

.wcpop-section-title {
	margin: 0 0 12px;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #94a3b8;
	font-family: inherit;
}

.wcpop-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcpop-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin-bottom: 10px;
	font-size: 1.1rem;
}

.wcpop-list li:last-child {
	margin-bottom: 0;
}

.wcpop-label {
	font-weight: 600;
	color: #0f172a;
	min-width: 100px;
	font-size: 1.1rem;
}

.wcpop-link {
	color: #2563eb;
	text-decoration: none;
	word-break: break-all;
	font-size: 1.1rem;
}

.wcpop-link:hover {
	text-decoration: underline;
}

.wcpop-address-text {
	margin: 0;
	white-space: pre-line;
	color: #334155;
	font-size: 1.1rem;
	line-height: 1.8;
}

.wcpop-other-content {
	color: #334155;
	font-size: 1.1rem;
	line-height: 1.8;
}

.wcpop-other-content p {
	margin: 0 0 0.85em;
}

.wcpop-other-content p:last-child {
	margin-bottom: 0;
}

.wcpop-other-content a {
	color: #2563eb;
	text-decoration: none;
}

.wcpop-other-content a:hover {
	text-decoration: underline;
}

.wcpop-other-content ul,
.wcpop-other-content ol {
	margin: 0 0 0.85em;
}

.wcpop-rtl .wcpop-other-content ul,
.wcpop-rtl .wcpop-other-content ol {
	padding-right: 1.3em;
	padding-left: 0;
}

.wcpop-ltr .wcpop-other-content ul,
.wcpop-ltr .wcpop-other-content ol {
	padding-left: 1.3em;
	padding-right: 0;
}

.wcpop-other-content h1,
.wcpop-other-content h2,
.wcpop-other-content h3,
.wcpop-other-content h4 {
	font-size: 1.2rem;
	margin: 0 0 0.5em;
	color: #0f172a;
	font-family: inherit;
}

/* فوتر */
.wcpop-footer {
	padding: 18px 28px 26px;
	border-top: 1px solid #f1f5f9;
	display: flex;
}

.wcpop-rtl .wcpop-footer {
	justify-content: flex-start;
}

.wcpop-ltr .wcpop-footer {
	justify-content: flex-end;
}

.wcpop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 32px;
	font-size: 1.1rem;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.wcpop-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.wcpop-btn:active {
	transform: translateY(0);
}

.wcpop-btn:focus {
	outline: 2px solid #93c5fd;
	outline-offset: 2px;
}

body.wcpop-open {
	overflow: hidden;
}

@media (max-width: 540px) {
	.wcpop-modal {
		max-width: 100%;
		border-radius: 14px;
	}

	.wcpop-header,
	.wcpop-body,
	.wcpop-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.wcpop-title {
		font-size: 1.4rem;
	}

	.wcpop-body,
	.wcpop-list li,
	.wcpop-label,
	.wcpop-link,
	.wcpop-address-text,
	.wcpop-other-content,
	.wcpop-btn {
		font-size: 1.05rem;
	}

	.wcpop-label {
		min-width: 80px;
	}
}
