/* Valabi Wallet — storefront hints (cashback line, expiring-credit nudge). */

.vw-hint {
	--vw-hint-accent: #0ca678;
	--vw-hint-deep: #087f5b;
	--vw-hint-soft: #e6fcf5;
	--vw-hint-line: #c3fae8;

	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0;
	padding: 10px 12px;
	border: 1px solid var(--vw-hint-line);
	border-radius: 12px;
	background: #fff;
	color: #181219;
	font-size: 13.5px;
	line-height: 1.75;
	box-sizing: border-box;
}
.vw-hint *, .vw-hint *::before, .vw-hint *::after { box-sizing: border-box; }
.vw-hint--expiry {
	--vw-hint-accent: #d9480f;
	--vw-hint-deep: #a8360b;
	--vw-hint-soft: #fff4e6;
	--vw-hint-line: #ffd8a8;
	background: var(--vw-hint-soft);
}
.vw-hint--wide { margin: 0 0 16px; }
.vw-hint__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--vw-hint-soft);
	color: var(--vw-hint-accent);
}
.vw-hint--expiry .vw-hint__icon { background: #fff; }
.vw-hint__icon svg { width: 18px; height: 18px; stroke-width: 1.9; }
.vw-hint__text { min-width: 0; text-wrap: pretty; }
.vw-hint__text strong { color: var(--vw-hint-deep); font-weight: 800; white-space: nowrap; }
.vw-hint[hidden] { display: none !important; }

.vw-hint__sub { display: block; color: #5f5764; font-size: 12px; font-weight: 400; line-height: 1.6; }

/* ------------------------------------------------------------------
 * Order summary rows (cart totals + checkout review): full-width cells
 * ------------------------------------------------------------------ */
table .vw-wallet-row > td,
table .vw-gift-row > td {
	padding: 10px 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: start !important;
}
.vw-wallet-row > td::before,
.vw-gift-row > td::before { display: none !important; }
.vw-wallet, .vw-gift,
.vw-wallet *, .vw-gift * { box-sizing: border-box; }

/* «پرداخت با کیف پول» */
.vw-wallet {
	border: 1.5px solid #d6d3da;
	border-radius: 12px;
	background: #fff;
	color: #181219;
	overflow: hidden;
	line-height: 1.7;
	transition: border-color .15s ease;
}
.vw-wallet.is-on { border: 2px solid #181219; }
.vw-wallet__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	cursor: pointer;
}
.vw-wallet.is-forced .vw-wallet__head { cursor: default; }
.vw-wallet__check {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 24px !important;
	height: 24px !important;
	margin: 0 !important;
	border: 2px solid #868e96;
	border-radius: 7px;
	background: #fff center / 16px 16px no-repeat;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.vw-wallet__check:checked {
	border-color: #181219;
	background-color: #181219;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.vw-wallet__check:focus-visible { outline: 3px solid rgba(24, 18, 25, .25); outline-offset: 2px; }
.vw-wallet__label { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.vw-wallet__label strong { font-size: 15px; font-weight: 800; }
.vw-wallet__label small { color: #5f5764; font-size: 12.5px; line-height: 1.7; }
.vw-wallet__label b { color: #181219; font-weight: 800; }
.vw-wallet__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #f3f2f5;
	color: #5f5764;
}
.vw-wallet.is-on .vw-wallet__icon { background: #181219; color: #fff; }
.vw-wallet__icon svg { width: 20px; height: 20px; stroke-width: 1.9; }
.vw-wallet__amount {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px 14px;
	border-top: 1px solid #ececef;
	background: #f7f6f8;
}
.vw-wallet__amount[hidden] { display: none !important; }
.vw-wallet__question { margin: 0; font-size: 12.5px; font-weight: 700; color: #181219; }
.vw-wallet__field { display: flex; gap: 8px; align-items: stretch; }
.vw-wallet__input {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1.5px solid #181219;
	border-radius: 10px;
	background: #fff;
}
.vw-wallet__input:focus-within { box-shadow: 0 0 0 3px rgba(24, 18, 25, .15); }
.vw-wallet__input input {
	flex: 1 1 auto;
	width: 100% !important;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0;
	box-shadow: none !important;
	background: transparent !important;
	color: #181219;
	font: inherit;
	font-size: 18px !important;
	font-weight: 800;
	letter-spacing: .3px;
	text-align: right;
}
.vw-wallet__unit { flex: 0 0 auto; color: #5f5764; font-size: 12.5px; }
.vw-wallet__max {
	flex: 0 0 auto;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: #181219;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.vw-wallet__max:hover { background: #342b36; }
.vw-wallet__hint { color: #5f5764; font-size: 12px; line-height: 1.7; }
.vw-wallet__hint b { color: #181219; font-weight: 800; }

/* «هدیهٔ خرید بعدی شما» */
.vw-gift {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 6px;
	padding: 14px 16px;
	border: 1.5px solid #0ca678;
	border-radius: 14px;
	background: #f3fcf8;
	color: #2b4a3f;
	line-height: 1.8;
}
.vw-gift--below { border-style: dashed; border-color: #96dcc0; }
.vw-gift--excluded { border-color: #d6d3da; background: #f7f6f8; color: #5f5764; }
.vw-gift__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #0ca678;
	color: #fff;
}
.vw-gift--excluded .vw-gift__icon { background: #e4e2e7; color: #868e96; }
.vw-gift__icon svg { width: 22px; height: 22px; stroke-width: 1.9; }
.vw-gift__main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.vw-gift__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.vw-gift__title { color: #087f5b; font-size: 15px; font-weight: 800; }
.vw-gift--excluded .vw-gift__title { color: #5f5764; }
.vw-gift__amount { color: #087f5b; font-size: 18px; font-weight: 800; white-space: nowrap; }
.vw-gift__text { margin: 0 !important; font-size: 12.5px; text-wrap: pretty; }
.vw-gift__text strong { color: #087f5b; font-weight: 800; white-space: nowrap; }
.vw-gift--excluded .vw-gift__text strong { color: #181219; }
.vw-gift__note { color: #5f5764; font-size: 12px; }
.vw-gift__note strong { color: #181219; font-weight: 700; }
.vw-gift__login {
	align-self: flex-start;
	margin-top: 4px;
	padding: 6px 14px;
	border: 1.5px solid #0ca678;
	border-radius: 9px;
	background: #fff;
	color: #087f5b !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}
.vw-gift__login:hover { background: #e6fcf5; }
.vw-gift__bar { display: block; height: 8px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #d3f2e5; }
.vw-gift__bar span { display: block; height: 100%; border-radius: 99px; background: #0ca678; }

@media (max-width: 420px) {
	.vw-wallet__head, .vw-gift { padding: 12px; }
	.vw-wallet__amount { padding: 12px; }
	.vw-wallet__max { padding: 0 12px; }
}
