#wab-ttw-app { max-width: 520px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
#wab-ttw-app * { box-sizing: border-box; }

.wab-ttw-balance-card {
	background: linear-gradient(135deg, #0f2557 0%, #16336e 45%, #1f4e8c 100%);
	border-radius: 22px;
	padding: 30px 26px;
	color: #fff;
	box-shadow: 0 14px 34px rgba(15, 37, 87, 0.35);
	margin-bottom: 22px;
	position: relative;
	overflow: hidden;
}
.wab-ttw-balance-card::after {
	content: "";
	position: absolute;
	top: -70px;
	right: -50px;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
}
.wab-ttw-balance-card__row { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.wab-ttw-balance-card__icon { font-size: 16px; }
.wab-ttw-balance-card__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; font-weight: 600; }
.wab-ttw-balance-card__amount { font-size: 36px; font-weight: 800; margin-top: 8px; letter-spacing: -0.01em; position: relative; z-index: 1; }

.wab-ttw-form-card { background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07); border: 1px solid #eef0f4; }
.wab-ttw-form-card__title { font-size: 18px; font-weight: 700; color: #0f2557; margin: 0 0 20px; }
.wab-ttw-notice { color: #92600a; background: #fff7e6; border: 1px solid #ffe1a8; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }

.wab-ttw-field { margin-bottom: 16px; }
.wab-ttw-field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: #4b5566; margin-bottom: 7px; text-transform: uppercase; }
.wab-ttw-field input,
.wab-ttw-field select {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid #e2e5ea;
	border-radius: 12px;
	font-size: 15.5px;
	background: #f7f8fa;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	appearance: none;
	-webkit-appearance: none;
}
.wab-ttw-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5566' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	padding-right: 40px;
}
.wab-ttw-field input:focus,
.wab-ttw-field select:focus { outline: none; border-color: #1f4e8c; box-shadow: 0 0 0 3px rgba(31, 78, 140, 0.15); background: #fff; }

.wab-ttw-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 18px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg, #0f2557, #1f4e8c);
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: transform .1s ease, opacity .15s ease;
	box-shadow: 0 10px 20px rgba(15, 37, 87, 0.30);
}
.wab-ttw-submit:hover:not(:disabled) { transform: translateY(-1px); }
.wab-ttw-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.wab-ttw-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2.5px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	animation: wab-ttw-spin .7s linear infinite;
}
.wab-ttw-submit.is-loading .wab-ttw-spinner { display: inline-block; }
.wab-ttw-submit.is-loading .wab-ttw-submit__label { opacity: 0.85; }
@keyframes wab-ttw-spin { to { transform: rotate(360deg); } }

.wab-ttw-alert { border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; }
.wab-ttw-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.wab-ttw-alert p { margin: 4px 0; }

/* ── Receipt ─────────────────────────────────────────────────── */

.wab-ttw-receipt {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.wab-ttw-receipt__card {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: linear-gradient(180deg, #0f9d58 0%, #0c8a4c 100%);
	border-radius: 28px;
	padding: 34px 28px 26px;
	text-align: center;
	color: #fff;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,0.35);
	max-height: 90vh;
	overflow-y: auto;
}

.wab-ttw-receipt__check {
	width: 76px;
	height: 76px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255,255,255,0.4);
}

.wab-ttw-receipt__title { font-size: 22px; font-weight: 800; margin: 0 0 12px; }

.wab-ttw-receipt__divider { width: 60px; height: 3px; background: rgba(255,255,255,0.6); border-radius: 2px; margin: 0 auto 20px; }

.wab-ttw-receipt__amharic { font-size: 14px; line-height: 1.7; opacity: 0.95; margin: 0 0 18px; }

.wab-ttw-receipt__amount { font-size: 32px; font-weight: 800; margin: 0 0 14px; }
.wab-ttw-receipt__amount span { font-size: 16px; font-weight: 600; opacity: 0.85; }

.wab-ttw-receipt__date,
.wab-ttw-receipt__confirm { font-size: 13.5px; margin: 4px 0; opacity: 0.9; }

.wab-ttw-receipt__ref-box {
	background: rgba(255,255,255,0.12);
	border: 1px dashed rgba(255,255,255,0.5);
	border-radius: 14px;
	padding: 12px 16px;
	margin: 20px 0 22px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.wab-ttw-receipt__ref-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.wab-ttw-receipt__ref-value { font-size: 15px; font-weight: 700; letter-spacing: 0.03em; word-break: break-all; }

.wab-ttw-receipt__close {
	background: #fff;
	color: #0c8a4c;
	border: none;
	border-radius: 12px;
	padding: 12px 32px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.wab-ttw-receipt__wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 60px; pointer-events: none; }

@media (max-width: 480px) {
	.wab-ttw-balance-card__amount { font-size: 28px; }
	.wab-ttw-form-card { padding: 18px; }
	.wab-ttw-receipt__card { padding: 28px 20px 22px; }
}
