:root {
	--alsafi-loyalty-navy: #12186e;
	--alsafi-loyalty-blue: #14408c;
	--alsafi-loyalty-cyan: #3da8d4;
	--alsafi-loyalty-pink: #e85a96;
	--alsafi-loyalty-mist: #f3f8fc;
	--alsafi-loyalty-border: #d8e6ef;
}

.woocommerce-MyAccount-navigation-link--my-points a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 14.7 8.3 20.5 9.1 16.3 13.2 17.3 19 12 16.2 6.7 19 7.7 13.2 3.5 9.1 9.3 8.3Z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 14.7 8.3 20.5 9.1 16.3 13.2 17.3 19 12 16.2 6.7 19 7.7 13.2 3.5 9.1 9.3 8.3Z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.alsafi-points-page {
	color: #53687d;
}

.alsafi-points-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px;
	color: #fff;
	background: linear-gradient(135deg, var(--alsafi-loyalty-blue), var(--alsafi-loyalty-navy));
	border-radius: 20px;
	box-shadow: 0 14px 34px rgba(18, 24, 110, 0.18);
}

.alsafi-points-kicker {
	display: block;
	margin-bottom: 7px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.4px;
}

.alsafi-points-hero h2 {
	margin: 0 0 7px !important;
	color: #fff !important;
	font-size: 27px;
}

.alsafi-points-hero p {
	max-width: 500px;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
}

.alsafi-points-balance {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 120px;
	padding: 16px;
	background: #fff;
	border: 4px solid rgba(255, 255, 255, 0.35);
	border-radius: 18px;
	box-shadow: inset 0 -4px 0 var(--alsafi-loyalty-pink);
}

.alsafi-points-balance strong {
	color: var(--alsafi-loyalty-navy);
	font-size: 36px;
	line-height: 1;
}

.alsafi-points-balance span {
	margin-top: 6px;
	color: var(--alsafi-loyalty-blue);
	font-size: 13px;
	font-weight: 700;
}

.alsafi-points-rules {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 18px 0 28px;
}

.alsafi-points-rules > div {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 18px;
	background: var(--alsafi-loyalty-mist);
	border: 1px solid var(--alsafi-loyalty-border);
	border-radius: 14px;
}

.alsafi-points-rules strong {
	color: var(--alsafi-loyalty-navy);
	font-size: 20px;
}

.alsafi-points-rules span {
	font-size: 12px;
	line-height: 1.35;
}

.alsafi-points-page h3 {
	color: var(--alsafi-loyalty-navy) !important;
}

.alsafi-points-history {
	overflow-x: auto;
	border: 1px solid var(--alsafi-loyalty-border);
	border-radius: 14px;
}

.alsafi-points-history table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.alsafi-points-history th,
.alsafi-points-history td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--alsafi-loyalty-border);
}

.alsafi-points-history tr:last-child td {
	border-bottom: 0;
}

.alsafi-points-history th {
	color: var(--alsafi-loyalty-navy);
	background: var(--alsafi-loyalty-mist);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.alsafi-points-history .positive {
	color: #15803d;
	font-weight: 800;
}

.alsafi-points-history .negative {
	color: #b91c1c;
	font-weight: 800;
}

.alsafi-points-empty {
	margin: 0;
	padding: 24px;
	text-align: center;
}

.alsafi-redeem-panel {
	margin: 18px 0;
	padding: 18px;
	background: var(--alsafi-loyalty-mist);
	border: 1px solid var(--alsafi-loyalty-border);
	border-left: 4px solid var(--alsafi-loyalty-pink);
	border-radius: 14px;
}

.alsafi-redeem-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
}

.alsafi-redeem-copy strong {
	color: var(--alsafi-loyalty-navy);
	font-size: 16px;
}

.alsafi-redeem-copy span,
.alsafi-redeem-panel small {
	color: #53687d;
	font-size: 12px;
}

.alsafi-redeem-controls,
.alsafi-redeem-active {
	display: flex;
	align-items: center;
	gap: 10px;
}

.alsafi-redeem-controls input {
	width: 150px;
	min-height: 45px;
	padding: 8px 12px;
	color: var(--alsafi-loyalty-navy);
	background: #fff;
	border: 1px solid var(--alsafi-loyalty-border);
	border-radius: 9px;
}

.alsafi-redeem-panel .button {
	min-height: 45px;
	padding: 10px 16px !important;
	color: #fff !important;
	background: var(--alsafi-loyalty-blue) !important;
	border: 0 !important;
	border-radius: 9px !important;
	font-weight: 800 !important;
}

.alsafi-redeem-active {
	justify-content: space-between;
	color: var(--alsafi-loyalty-navy);
	font-weight: 800;
}

.alsafi-loyalty-message {
	min-height: 0;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
}

.alsafi-loyalty-message.is-error {
	color: #b91c1c;
}

.alsafi-loyalty-message.is-success {
	color: #15803d;
}

@media (max-width: 768px) {
	.alsafi-points-hero {
		align-items: stretch;
		flex-direction: column;
		padding: 20px;
	}

	.alsafi-points-balance {
		min-width: 0;
		min-height: 90px;
	}

	.alsafi-points-rules {
		grid-template-columns: 1fr;
	}

	.alsafi-points-history th,
	.alsafi-points-history td {
		padding: 12px;
		font-size: 12px;
	}

	.alsafi-redeem-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.alsafi-redeem-controls input,
	.alsafi-redeem-panel .button {
		width: 100%;
	}
}

