/* Styled For Less — Customer Hub
   Frontend styles for the My Account dashboard, points, referrals & tracking. */

/* ---- Dashboard stat cards ---- */
.sfl-dash-hi { margin: 0 0 16px; }
.sfl-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 22px;
}
.sfl-card {
	flex: 1 1 150px;
	background: #faf8f5;
	border: 1px solid #ece7e0;
	border-radius: 12px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sfl-card-num { font-size: 26px; font-weight: 700; line-height: 1.1; color: #111; }
.sfl-card-label { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #777; }
.sfl-card-sub { font-size: 14px; color: #444; }
.sfl-card-link { font-size: 13px; margin-top: 6px; }
.sfl-latest-track {
	background: #fff;
	border: 1px solid #ece7e0;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
}
.sfl-muted { color: #999; }

/* ---- Points & referral balance blocks ---- */
.sfl-points-balance,
.sfl-ref-balance {
	background: #111;
	color: #fff;
	border-radius: 14px;
	padding: 24px;
	text-align: center;
	margin-bottom: 18px;
}
.sfl-points-number,
.sfl-ref-amount { display: block; font-size: 40px; font-weight: 800; line-height: 1; }
.sfl-points-label,
.sfl-ref-label { display: block; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; opacity: .85; }
.sfl-points-worth { margin: 10px 0 0; opacity: .9; }
.sfl-points-worth .amount { color: #fff; }

.sfl-pos { color: #1a7f37; font-weight: 600; }
.sfl-neg { color: #b42318; font-weight: 600; }

/* ---- Referral share ---- */
.sfl-ref-share { margin: 16px 0; }
.sfl-ref-share label { display: block; font-weight: 600; margin-bottom: 6px; }
.sfl-ref-link {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border-radius: 8px;
	margin-bottom: 8px;
	font-weight: 600;
	letter-spacing: .01em;
	/* Forced custom colours so the theme can't hide the text */
	background-color: #2563eb !important;   /* blue box */
	color: #ffffff !important;              /* white text */
	-webkit-text-fill-color: #ffffff !important; /* beats themes that set this */
	border: 1px solid #1d4ed8 !important;
	opacity: 1 !important;
}

/* Checkout referral-code field — force readable black text */
.sfl-ref-checkout #sfl_ref_code,
#sfl_ref_code {
	color: #000;
	background: #fff;
}
.sfl-ref-share .button { margin-right: 8px; }
.sfl-ref-code { margin-top: 10px; }

/* ---- Tracking timeline ---- */
.sfl-tracking {
	margin-top: 26px;
	background: #fff;
	border: 1px solid #ece7e0;
	border-radius: 14px;
	padding: 22px 24px;
}
.sfl-track-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}
.sfl-track-codewrap { display: flex; flex-direction: column; }
.sfl-track-code-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #999; }
.sfl-track-code-val { font-size: 20px; font-weight: 800; color: #111; letter-spacing: .02em; }
.sfl-track-eta { margin: 2px 0 8px; color: #444; }

/* Current-status badge */
.sfl-status-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: #eee;
	color: #333;
	white-space: nowrap;
}
.sfl-badge-confirmed,
.sfl-badge-packed { background: #eef2ff; color: #3538cd; }
.sfl-badge-dispatched,
.sfl-badge-in_transit { background: #fff4e5; color: #b54708; }
.sfl-badge-out_for_delivery { background: #e7f5ff; color: #0b7285; }
.sfl-badge-delivered { background: #e6f4ea; color: #1a7f37; }
.sfl-badge-delayed,
.sfl-badge-on_hold { background: #fff8e1; color: #8a6d00; }
.sfl-badge-failed,
.sfl-badge-returned { background: #fdecec; color: #b42318; }

/* Progress stepper */
.sfl-stepper { display: flex; margin: 20px 0 8px; }
.sfl-stage {
	flex: 1;
	text-align: center;
	position: relative;
	font-size: 11px;
	color: #9a9a9a;
	min-width: 0;
}
.sfl-stage::before {
	content: '';
	position: absolute;
	top: 15px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: #e7e2db;
	z-index: 0;
}
.sfl-stage:first-child::before { display: none; }
.sfl-stage.sfl-done::before,
.sfl-stage.sfl-current::before,
.sfl-stage.sfl-fail::before { background: #1a7f37; }
.sfl-stage-icon {
	position: relative;
	z-index: 1;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e7e2db;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 6px;
	font-weight: 700;
	font-size: 14px;
	transition: transform .2s ease;
}
.sfl-stage.sfl-done .sfl-stage-icon { background: #1a7f37; }
.sfl-stage.sfl-current .sfl-stage-icon {
	background: #111;
	box-shadow: 0 0 0 5px rgba(17,17,17,.12);
	transform: scale(1.08);
}
.sfl-stage.sfl-fail .sfl-stage-icon { background: #b42318; box-shadow: 0 0 0 5px rgba(180,35,24,.12); }
.sfl-stage-name { display: block; padding: 0 2px; line-height: 1.25; }
.sfl-stage.sfl-done .sfl-stage-name,
.sfl-stage.sfl-current .sfl-stage-name { color: #111; font-weight: 600; }

/* Exception banner */
.sfl-exception {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff8e1;
	border: 1px solid #ffe08a;
	color: #8a6d00;
	padding: 10px 14px;
	border-radius: 10px;
	margin: 14px 0;
	font-weight: 600;
}
.sfl-exception-bad { background: #fdecec; border-color: #f5b5b0; color: #b42318; }
.sfl-exc-icon {
	width: 22px; height: 22px;
	border-radius: 50%;
	background: currentColor;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex: 0 0 auto;
}

/* Info grid (rider / transport) */
.sfl-info-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0;
}
.sfl-info-item {
	flex: 1 1 160px;
	background: #faf8f5;
	border: 1px solid #ece7e0;
	border-radius: 10px;
	padding: 10px 12px;
}
.sfl-info-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #999;
	margin-bottom: 2px;
}
.sfl-info-val { font-weight: 600; color: #111; }

/* Order summary (public track page) */
.sfl-order-summary {
	background: #faf8f5;
	border: 1px solid #ece7e0;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 16px 0;
}
.sfl-sum-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.sfl-sum-head h3 { margin: 0; }
.sfl-items { list-style: none; margin: 12px 0; padding: 0; }
.sfl-items li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed #e2dcd2;
}
.sfl-item-qty { color: #666; white-space: nowrap; padding-left: 12px; }
.sfl-order-total {
	display: flex;
	justify-content: space-between;
	margin: 10px 0;
	font-size: 16px;
}
.sfl-ship-addr { margin-top: 10px; font-style: normal; line-height: 1.5; }
.sfl-ship-addr .sfl-info-label { margin-bottom: 4px; }

.sfl-history-title { margin: 18px 0 8px; font-size: 15px; }
.sfl-timeline { list-style: none; margin: 8px 0 16px; padding: 0; border-left: 2px solid #e7e2db; }
.sfl-step { position: relative; padding: 0 0 18px 22px; }
.sfl-dot {
	position: absolute;
	left: -8px; top: 2px;
	width: 14px; height: 14px;
	background: #cfc8bd;
	border-radius: 50%;
	border: 2px solid #fff;
}
.sfl-step.sfl-current .sfl-dot { background: #111; }
.sfl-step-label { font-weight: 700; display: block; color: #111; }
.sfl-step-note { display: block; color: #555; font-size: 14px; margin-top: 2px; }
.sfl-step-time { display: block; color: #999; font-size: 12px; margin-top: 2px; }
.sfl-supervisor {
	background: #faf8f5;
	border: 1px solid #ece7e0;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
}
.sfl-supervisor .sfl-wa, .sfl-ref-share .sfl-wa { color: #128c7e; font-weight: 600; }

/* ---- Public tracking page ---- */
.sfl-track-page { max-width: 640px; margin: 0 auto; }
.sfl-track-hero {
	background: linear-gradient(135deg, #111 0%, #2b2b2b 100%);
	color: #fff;
	border-radius: 16px;
	padding: 30px 28px;
	text-align: center;
}
.sfl-track-title { color: #fff; margin: 0 0 6px; font-size: 26px; }
.sfl-track-sub { color: rgba(255,255,255,.8); margin: 0 0 18px; font-size: 15px; }
.sfl-track-form {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.sfl-track-input {
	flex: 1 1 280px;
	max-width: 340px;
	padding: 13px 16px;
	border: 0;
	border-radius: 10px;
	font-size: 15px;
	color: #111;
	background: #fff;
}
.sfl-track-btn {
	padding: 13px 26px;
	border: 0;
	border-radius: 10px;
	background: #f4c025;
	color: #111;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}
.sfl-track-btn:hover { background: #e6b416; }
.sfl-track-result { margin-top: 20px; }
.sfl-track-empty { text-align: center; }
.sfl-track-notfound { color: #b42318; font-weight: 600; }

/* ---- Registration & bank forms ---- */
.sfl-register-form .form-row,
.sfl-bank-form .form-row,
.sfl-withdraw-form .form-row { margin-bottom: 12px; }
.sfl-register-form label,
.sfl-bank-form label,
.sfl-withdraw-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.sfl-register-form input,
.sfl-bank-form input,
.sfl-withdraw-form input {
	width: 100%;
	max-width: 360px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
}
.sfl-show-pass-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-weight: 400 !important;
	font-size: 13px;
	color: #555;
	cursor: pointer;
}
.sfl-show-pass-wrap input { width: auto !important; }

/* Withdrawal status pills */
.sfl-wd-pending,
.sfl-wd-paid,
.sfl-wd-rejected {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.sfl-wd-pending { background: #fff8e1; color: #8a6d00; }
.sfl-wd-paid { background: #e6f4ea; color: #1a7f37; }
.sfl-wd-rejected { background: #fdecec; color: #b42318; }

/* ---- Checkout redeem ---- */
.sfl-redeem {
	background: #faf8f5;
	border: 1px solid #ece7e0;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 16px;
}
.sfl-redeem label { cursor: pointer; }

@media (max-width: 600px) {
	.sfl-card-num { font-size: 22px; }
	.sfl-points-number, .sfl-ref-amount { font-size: 32px; }
	.sfl-stage { font-size: 9px; }
	.sfl-stage-icon { width: 26px; height: 26px; font-size: 12px; }
	.sfl-stage::before { top: 12px; }
	.sfl-track-title { font-size: 22px; }
	.sfl-tracking { padding: 18px 16px; }
}
