.efs-files-wrap {
	width: 100%;
	margin: 24px 0;
	direction: rtl !important;
	text-align: right !important;
	font-family: inherit;
}

.efs-files-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.efs-files-table {
	width: 100%;
	min-width: 640px;
	margin: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: #fff !important;
	direction: rtl !important;
	table-layout: fixed;
}

.efs-files-table th,
.efs-files-table td {
	padding: 16px 18px !important;
	border: 0 !important;
	border-bottom: 1px solid #e6edf5 !important;
	text-align: right !important;
	vertical-align: middle !important;
}

.efs-files-table th {
	background: #f1f6fb !important;
	color: #1f3a5f !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.8 !important;
	white-space: nowrap;
}

.efs-files-table th:first-child {
	width: 62%;
}

.efs-files-table th:nth-child(2) {
	width: 16%;
}

.efs-files-table th:last-child {
	width: 22%;
	text-align: center !important;
}

.efs-files-table tbody tr:last-child td {
	border-bottom: 0 !important;
}

.efs-files-table tbody tr:nth-child(even) {
	background: #fbfdff !important;
}

.efs-files-table tbody tr:hover td {
	background: #f7fbff !important;
}

.efs-file-info {
	width: 58%;
}

.efs-file-title {
	margin: 0 !important;
	color: #1f2937 !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.9 !important;
}

/* بج شهر/کشور */
.efs-file-cities {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.efs-city-badge {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.efs-file-desc {
	margin-top: 3px;
	color: #64748b;
	font-size: 13px;
	line-height: 1.7;
}

.efs-file-price {
	font-weight: bold;
	white-space: nowrap;
}

.efs-file-cities-cell {
	width: 18%;
	text-align: right !important;
}

.efs-file-action {
	width: 24%;
	text-align: center !important;
	white-space: nowrap;
}

.efs-muted {
	color: #94a3b8;
}

.efs-btn {
	display: inline-block;
	min-width: 150px;
	padding: 10px 16px !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.efs-btn-buy {
	border: 1px solid #1d5f96 !important;
	background: #2271b1 !important;
	color: #fff !important;
}

.efs-btn-buy:hover {
	background: #135e96 !important;
	color: #fff !important;
}

.efs-btn-added {
	border: 1px solid #8ad8b7 !important;
	background: #ecfdf5 !important;
	color: #047857 !important;
}

.efs-btn-pay {
	background: #1a7f37;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	padding: 10px 24px;
}

.efs-empty {
	padding: 20px;
	text-align: center;
	color: #777;
}

.efs-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.efs-cart-table th,
.efs-cart-table td {
	padding: 10px;
	border-bottom: 1px solid #eee;
	text-align: right;
}

.efs-cart-remove {
	color: #b32d2e;
	text-decoration: none;
}

.efs-checkout-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.efs-checkout-form input[type="text"],
.efs-checkout-form input[type="email"] {
	width: 100%;
	max-width: 400px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	margin-bottom: 14px;
}

/* -------- نوتیس سبد خرید بالای لیست فایل‌ها -------- */
.efs-notice {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 18px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 1.5;
	direction: rtl !important;
	text-align: right !important;
}

/* حالت «فایل اضافه شد» — سبز */
.efs-notice-added {
	background: #d1e7dd;
	border: 1px solid #a3cfbb;
	color: #0f5132;
}

/* حالت «سبد پر است» — آبی */
.efs-notice-cart {
	background: #cfe2ff;
	border: 1px solid #9ec5fe;
	color: #084298;
}

.efs-notice-icon {
	font-size: 17px;
	flex-shrink: 0;
}

.efs-notice-link {
	display: inline-block;
	margin-right: 4px;
	margin-left: 0;
	padding: 5px 10px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	color: inherit;
	background: rgba(255, 255, 255, 0.45);
}

.efs-notice-link:hover {
	opacity: 0.8;
}

@media (max-width: 700px) {
	.efs-files-table {
		min-width: 0;
	}

	.efs-files-table thead {
		display: none;
	}

	.efs-files-table,
	.efs-files-table tbody,
	.efs-files-table tr,
	.efs-files-table td {
		display: block;
		width: 100%;
	}

	.efs-files-table tr {
		padding: 12px 14px;
		border-bottom: 1px solid #edf0f3;
	}

	.efs-files-table tbody tr:last-child {
		border-bottom: none;
	}

	.efs-files-table td {
		padding: 4px 0;
		border-bottom: none;
	}

	.efs-file-action {
		margin-top: 8px;
		text-align: right !important;
	}

	.efs-btn {
		width: 100%;
		text-align: center;
	}
}
