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

/* Balance card */
.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; }

/* Form card */
.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-verify-status { margin: 8px 2px 0; font-size: 13px; min-height: 18px; }
.wab-ttw-verify-status.is-checking { color: #6b7280; }
.wab-ttw-verify-status.is-found { color: #065f46; font-weight: 600; }
.wab-ttw-verify-status.is-not-found { color: #991b1b; font-weight: 600; }

.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; }

/* Success receipt — matches the reference receipt design */
.wab-ttw-receipt {
	background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 70%, #eafaf0 100%);
	border: 1px solid #bfe8cf;
	border-radius: 22px;
	padding: 34px 28px 26px;
	text-align: center;
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
}
.wab-ttw-receipt__check {
	width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #34c76f, #1e9e52);
	box-shadow: 0 0 0 8px rgba(46, 176, 100, 0.14);
	display: flex; align-items: center; justify-content: center;
}
.wab-ttw-receipt__check svg { width: 40px; height: 40px; }
.wab-ttw-receipt__title { color: #157a3e; font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.wab-ttw-receipt__divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 20px; color: #2e9e56; }
.wab-ttw-receipt__divider::before, .wab-ttw-receipt__divider::after { content: ""; height: 1px; width: 60px; background: #bfe8cf; }
.wab-ttw-receipt__lines { font-weight: 700; color: #101828; font-size: 15.5px; line-height: 1.9; margin: 0 0 22px; }
.wab-ttw-receipt__lines p { margin: 0; }
.wab-ttw-receipt__footer { background: #e3f7ea; border: 1px solid #bfe8cf; border-radius: 14px; padding: 12px 16px; }
.wab-ttw-receipt__footer-label { font-size: 12.5px; color: #2e6b48; margin: 0 0 4px; }
.wab-ttw-receipt__footer-value { font-size: 18px; font-weight: 800; color: #157a3e; margin: 0; word-break: break-all; }
.wab-ttw-receipt__again { margin-top: 18px; background: none; border: 1.5px solid #cfd6e0; color: #0f2557; font-weight: 700; padding: 10px 18px; border-radius: 12px; cursor: pointer; }

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