/*********************************
 * PARIMAH CONTACT BUTTON
 *********************************/

.parimah-contact-container,
.parimah-contact-container * {
	box-sizing: border-box;
}

.parimah-contact-container {
	position: fixed;
	right: 18px;
	bottom: calc(
		75px + env(safe-area-inset-bottom, 0px)
	);
	z-index: 99999;
	direction: rtl;
	font-family: inherit;
}


/* دکمه اصلی */

#parimah-contact-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1f3d2e;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow:
		0 8px 25px rgba(31, 61, 46, 0.35);
	transition:
		background-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

#parimah-contact-btn:hover {
	background: #4b3621;
	transform: translateY(-2px) scale(1.06);
	box-shadow:
		0 12px 30px rgba(31, 61, 46, 0.42);
}

#parimah-contact-btn:focus-visible {
	outline: 3px solid rgba(200, 161, 101, 0.55);
	outline-offset: 4px;
}


/* باکس ارتباط */

#parimah-contact-box {
	position: absolute;
	right: 0;
	bottom: 75px;
	width: 300px;
	max-width: calc(100vw - 36px);
	max-height: calc(100vh - 180px);
	padding: 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border: 1px solid #e6e1d8;
	border-radius: 22px;
	box-shadow:
		0 15px 45px rgba(0, 0, 0, 0.18);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transform: translateY(15px) scale(0.98);
	transform-origin: bottom right;

	transition:
		opacity 0.25s ease,
		visibility 0.25s ease,
		transform 0.25s ease;
}

#parimah-contact-box.show {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}


/* عنوان */

#parimah-contact-box h4 {
	margin: 0 0 15px;
	padding: 0 0 12px;
	border-bottom: 2px solid #c8a165;
	color: #1f3d2e;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
}


/* شماره‌های تماس */

.parimah-row-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 5px;
	border-bottom: 1px solid #f0ece5;
	border-radius: 12px;
	color: #333;
	text-decoration: none !important;

	transition:
		background-color 0.25s ease,
		transform 0.25s ease;
}

.parimah-row-item:hover {
	background: #f7f4ef;
	transform: translateX(-2px);
}

.contact-icon {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f7f4ef;
	color: #c8a165;
	font-size: 18px;
}

.parimah-row-item > span:last-child {
	color: #1f3d2e;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
}


/* شبکه پیام‌رسان‌ها */

.parimah-grid {
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 14px 0;
}

.parimah-grid-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 8px;
	border: 1px solid #e6e1d8;
	border-radius: 14px;
	background: #f7f4ef;
	color: #1f3d2e;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;

	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.parimah-grid-item:hover {
	border-color: #c8a165;
	background: #efe8da;
	transform: translateY(-2px);
}

.parimah-grid-item i {
	color: #c8a165;
	font-size: 16px;
}


/* دکمه‌های پایینی */

.parimah-full-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 46px;
	margin-top: 10px;
	padding: 11px 10px;
	border-radius: 14px;
	background: #1f3d2e;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none !important;

	transition:
		background-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.parimah-full-btn:hover {
	background: #4b3621;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow:
		0 7px 18px rgba(75, 54, 33, 0.2);
}


/* موبایل */

@media (max-width: 768px) {
	.parimah-contact-container {
		right: 15px;
		bottom: calc(
			75px + env(safe-area-inset-bottom, 0px)
		);
	}

	#parimah-contact-btn {
		width: 52px;
		height: 52px;
		font-size: 21px;
	}

	#parimah-contact-box {
		right: 0;
		bottom: 64px;
		width: 280px;
		max-width: calc(100vw - 30px);
		max-height: calc(100vh - 165px);
		padding: 17px;
		border-radius: 19px;
	}

	#parimah-contact-box h4 {
		font-size: 17px;
	}
}


/* دسترسی‌پذیری */

@media (prefers-reduced-motion: reduce) {
	#parimah-contact-btn,
	#parimah-contact-box,
	.parimah-row-item,
	.parimah-grid-item,
	.parimah-full-btn {
		transition: none;
	}
}