/**
 * استایل سمت کاربر افزونه باشگاه مشتریان.
 */

.wcr-panel {
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 0 0 16px;
	background: #fbfbfb;
}

.wcr-panel.is-busy {
	opacity: 0.6;
}

.wcr-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.wcr-panel__balance {
	margin-inline-start: auto;
	font-size: 0.9em;
	color: #666;
}

.wcr-panel__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.wcr-panel__form input[type="number"] {
	max-width: 140px;
}

.wcr-panel__hint {
	margin: 8px 0 0;
	font-size: 0.86em;
	color: #666;
}

.wcr-panel__message {
	margin-top: 8px;
	font-size: 0.88em;
	min-height: 1em;
}

.wcr-panel__message.is-error {
	color: #b32d2e;
}

.wcr-panel__message.is-success {
	color: #1a7f37;
}

.wcr-product-coins {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff7e0;
	border: 1px solid #f0d68a;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 0.92em;
}

.wcr-loop-coins {
	display: inline-block;
	font-size: 0.82em;
	color: #8a6d1f;
}

.wcr-cart-earn td {
	color: #1a7f37;
	font-weight: 600;
}

/* پنل حساب کاربری */
.wcr-account__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	border-bottom: 1px solid #e3e3e3;
}

.wcr-account__nav li a {
	display: block;
	padding: 8px 14px;
	border-radius: 6px 6px 0 0;
	text-decoration: none;
	color: #444;
}

.wcr-account__nav li.is-active a {
	background: #2271b1;
	color: #fff;
}

.wcr-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.wcr-card {
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	background: #fff;
}

.wcr-card--primary {
	background: linear-gradient(135deg, #2271b1, #135e96);
	border-color: #135e96;
	color: #fff;
}

.wcr-card__icon {
	display: block;
	font-size: 22px;
	margin-bottom: 6px;
}

.wcr-card__value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.wcr-card__label {
	display: block;
	font-size: 0.85em;
	opacity: 0.85;
}

.wcr-progress {
	margin-bottom: 18px;
}

.wcr-progress__label {
	font-size: 0.9em;
	margin-bottom: 6px;
}

.wcr-progress__bar {
	height: 10px;
	background: #eee;
	border-radius: 999px;
	overflow: hidden;
}

.wcr-progress__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	transition: width 0.3s ease;
}

.wcr-box {
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 18px;
	background: #fff;
}

.wcr-box h3 {
	margin-top: 0;
}

.wcr-table {
	width: 100%;
	border-collapse: collapse;
}

.wcr-table th,
.wcr-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	text-align: start;
	font-size: 0.92em;
}

.wcr-positive {
	color: #1a7f37;
	font-weight: 600;
}

.wcr-negative {
	color: #b32d2e;
	font-weight: 600;
}

.wcr-muted {
	color: #777;
	font-size: 0.9em;
}

.wcr-notice {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
}

.wcr-notice--warning {
	background: #fff7e0;
	border: 1px solid #f0d68a;
}

.wcr-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 12px;
}

.wcr-pagination a {
	padding: 4px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
}

.wcr-pagination a.is-active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.wcr-tier-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	color: #fff;
	font-size: 0.85em;
}

.wcr-referral input[type="text"] {
	width: 100%;
	margin-bottom: 10px;
}

.wcr-convert-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.wcr-copy.is-copied::after {
	content: " ✓";
}

@media (max-width: 600px) {
	.wcr-table thead {
		display: none;
	}

	.wcr-table tr {
		display: block;
		border-bottom: 1px solid #eee;
		margin-bottom: 8px;
	}

	.wcr-table td {
		display: flex;
		justify-content: space-between;
		border: 0;
	}

	.wcr-table td::before {
		content: attr(data-title);
		font-weight: 600;
		color: #666;
	}
}
