/*
 * "My Installments" (اقساط من) tab styles.
 * No font-family is set here — it inherits the theme's typography.
 */

.wis-my-installments {
	direction: rtl;
	text-align: right;
}

.wis-my-installments__plan {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	padding: 1.25em;
	margin-bottom: 1.5em;
}

.wis-my-installments__plan-header {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	margin-bottom: 1em;
}

.wis-my-installments__thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.wis-my-installments__plan-title h3 {
	margin: 0 0 0.3em;
	display: flex;
	align-items: center;
	gap: 0.75em;
}

.wis-my-installments__weight {
	font-size: 0.7em;
	font-weight: 400;
	opacity: 0.65;
}

.wis-my-installments__order-ref {
	margin: 0;
	opacity: 0.7;
	font-size: 0.9em;
}

.wis-my-installments__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.9em 1.5em;
	padding: 1em;
	margin-bottom: 1.25em;
	background: rgba(0, 0, 0, 0.025);
	border-radius: 6px;
}

.wis-my-installments__fact {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

.wis-my-installments__fact-label {
	font-size: 0.8em;
	opacity: 0.7;
}

.wis-my-installments__fact-value {
	font-weight: 600;
}

.wis-plan-status,
.wis-installment-status {
	display: inline-block;
	font-size: 0.75em;
	padding: 0.2em 0.6em;
	border-radius: 3px;
	background: #eee;
}

.wis-installment-status--paid,
.wis-plan-status--completed {
	background: #d7f0d7;
	color: #1e5e1e;
}

.wis-installment-status--overdue {
	background: #f6d3d3;
	color: #8a1f1f;
	font-weight: 700;
}

.wis-installment-status--due_now {
	background: #2e7d32;
	color: #fff;
	font-weight: 700;
}

.wis-installment-status--early {
	background: #eef2f7;
	color: #3a4a5a;
}

.wis-installment-row--due_now {
	background: rgba(46, 125, 50, 0.06);
}

.wis-installment-row--overdue {
	background: rgba(198, 40, 40, 0.06);
}

.wis-installment-penalty-note {
	display: block;
	margin-top: 0.2em;
	font-size: 0.8em;
	color: #8a1f1f;
}

.wis-pay-now--overdue {
	background-color: #c62828;
	border-color: #c62828;
	color: #fff;
}

.wis-pay-now--due_now {
	background-color: #2e7d32;
	border-color: #2e7d32;
	color: #fff;
}

.wis-installments-table th,
.wis-installments-table td {
	text-align: right;
}
