/* Tuma Partner Transfer — mobile-first wallet UI.
   Everything is namespaced under .wabt-* so theme styles can't leak in. */

.wabt-body{margin:0!important;padding:0!important;background:#eef3f8!important;}
html.wabt-lock,html.wabt-lock body{overflow:hidden!important;}

.wabt-app{
	--wabt-hero-a:#0b2f7a; --wabt-hero-b:#0a6fa8; --wabt-hero-c:#0eae8d;
	--wabt-btn-a:#0a5fb0;  --wabt-btn-b:#087a6f;
	--wabt-bg:#eef3f8; --wabt-card:#fff; --wabt-line:#dfe6ef;
	--wabt-text:#0f1b2d; --wabt-muted:#64748b;
	--wabt-ok:#047857; --wabt-ok-bg:#ecfdf5; --wabt-err:#b91c1c; --wabt-err-bg:#fef2f2;
	position:relative;min-height:100vh;min-height:100dvh;background:var(--wabt-bg);color:var(--wabt-text);
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
	overflow-x:hidden;
}
.wabt-app *,.wabt-app *::before,.wabt-app *::after{box-sizing:border-box;}
.wabt-app h1,.wabt-app h2,.wabt-app p,.wabt-app dl,.wabt-app dd,.wabt-app ul{margin:0;padding:0;}
.wabt-app button,.wabt-app input{font-family:inherit;-webkit-appearance:none;appearance:none;}
.wabt-app img{max-width:100%;}

/* ---------- Hero ---------- */
.wabt-hero{
	background:linear-gradient(140deg,var(--wabt-hero-a) 0%,var(--wabt-hero-b) 55%,var(--wabt-hero-c) 100%);
	padding:max(18px,env(safe-area-inset-top)) 18px 64px;border-radius:0 0 34px 34px;
	max-width:520px;margin:0 auto;position:relative;
}
.wabt-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;}
.wabt-home-btn,.wabt-topbar-spacer{width:44px;height:44px;flex:0 0 44px;}
.wabt-home-btn{
	display:flex;align-items:center;justify-content:center;border-radius:15px;color:#fff!important;text-decoration:none!important;
	background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(6px);
	transition:background .15s ease,transform .15s ease;
}
.wabt-home-btn:hover,.wabt-home-btn:focus-visible{background:rgba(255,255,255,.3);}
.wabt-home-btn:active{transform:scale(.94);}
.wabt-home-btn svg{width:21px;height:21px;}
.wabt-app .wabt-hero-title{color:#fff;font-size:19px;font-weight:800;letter-spacing:.2px;text-align:center;line-height:1.2;}

.wabt-logo-card{
	position:absolute;left:18px;right:18px;bottom:-34px;min-height:76px;
	background:#fff;border-radius:22px;box-shadow:0 16px 36px -14px rgba(8,25,60,.45);
	display:flex;align-items:center;justify-content:center;gap:14px;padding:14px 16px;
}
.wabt-logo-slot{flex:1 1 0;min-width:0;height:46px;display:flex;align-items:center;justify-content:center;}
.wabt-logo-slot img{max-height:46px;max-width:100%;width:auto;object-fit:contain;display:block;}
.wabt-logo-slot.is-swapping{animation:wabt-fade .35s ease;}
.wabt-logo-divider{width:1px;height:34px;background:var(--wabt-line);flex:0 0 1px;}
.wabt-logo-text{font-weight:800;font-size:15px;color:var(--wabt-text);text-align:center;line-height:1.2;overflow-wrap:anywhere;}
.wabt-logo-placeholder{font-size:13px;font-weight:600;color:var(--wabt-muted);text-align:center;}
@keyframes wabt-fade{from{opacity:0;transform:translateY(4px) scale(.96);}to{opacity:1;transform:none;}}

/* ---------- Content ---------- */
.wabt-content{max-width:520px;margin:0 auto;padding:52px 18px calc(36px + env(safe-area-inset-bottom));}
.wabt-card{
	background:var(--wabt-card);border-radius:24px;padding:20px;margin:0 0 16px;
	box-shadow:0 12px 30px -16px rgba(20,40,90,.25);
}
.wabt-center{text-align:center;padding:30px 22px;}
.wabt-msg{font-size:15px;font-weight:600;color:#334155;margin-bottom:16px;}

.wabt-eyebrow{font-size:11.5px;font-weight:700;color:var(--wabt-muted);text-transform:uppercase;letter-spacing:.7px;}
.wabt-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.wabt-balance-amount{font-size:28px;font-weight:800;margin-top:4px;line-height:1.15;overflow-wrap:anywhere;}
.wabt-balance-icon{width:50px;height:50px;flex:0 0 50px;border-radius:16px;background:#e6f4f6;color:#087a6f;display:flex;align-items:center;justify-content:center;}
.wabt-balance-icon svg{width:26px;height:26px;}

/* ---------- Fields ---------- */
.wabt-field{margin-bottom:20px;}
.wabt-label{display:block;font-size:14px;font-weight:700;color:#475569;margin-bottom:8px;}
.wabt-input,.wabt-select-btn{
	display:block;width:100%;min-height:58px;border:1.5px solid var(--wabt-line);border-radius:16px;background:#f8fafc;
	padding:0 16px;font-size:17px;font-weight:600;color:var(--wabt-text);outline:none;margin:0;
	transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.wabt-input::placeholder{color:#94a3b8;font-weight:500;}
.wabt-input:focus,.wabt-select-btn:focus-visible{border-color:var(--wabt-btn-a);background:#fff;box-shadow:0 0 0 4px rgba(10,95,176,.14);}
.wabt-input:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed;}
.wabt-input-wrap,.wabt-amount-wrap{position:relative;}
.wabt-input-wrap .wabt-input{padding-right:46px;}

.wabt-select-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer;padding:8px 14px;}
.wabt-select-value{display:flex;align-items:center;gap:12px;min-width:0;flex:1;}
.wabt-select-value .wabt-p-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wabt-select-placeholder{color:#94a3b8;font-weight:500;}
.wabt-chevron{width:20px;height:20px;flex:0 0 20px;color:var(--wabt-muted);transition:transform .2s ease;}
.wabt-select-btn[aria-expanded="true"] .wabt-chevron{transform:rotate(180deg);}

.wabt-amount{font-size:30px;font-weight:800;min-height:68px;padding-right:74px;letter-spacing:.2px;}
.wabt-amount::-webkit-outer-spin-button,.wabt-amount::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.wabt-amount{-moz-appearance:textfield;}
.wabt-amount-cur{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:13px;font-weight:800;color:#334155;background:#e2e8f0;border-radius:10px;padding:5px 9px;pointer-events:none;}

.wabt-spinner{position:absolute;right:16px;top:50%;width:20px;height:20px;margin-top:-10px;border:2.5px solid var(--wabt-line);border-top-color:var(--wabt-btn-a);border-radius:50%;animation:wabt-spin .7s linear infinite;display:none;}
@keyframes wabt-spin{to{transform:rotate(360deg);}}

/* verification result */
.wabt-verify{min-height:24px;margin-top:10px;font-size:15px;}
.wabt-verify.is-ok{
	display:inline-flex;align-items:center;gap:8px;max-width:100%;color:var(--wabt-ok);font-weight:800;font-size:17px;
	background:var(--wabt-ok-bg);border:1px solid #a7f3d0;border-radius:14px;padding:9px 14px;animation:wabt-fade .3s ease;
}
.wabt-verify.is-ok svg{width:20px;height:20px;flex:0 0 20px;}
.wabt-verify.is-ok span{overflow-wrap:anywhere;}
.wabt-verify.is-err{color:var(--wabt-err);font-weight:600;}

/* ---------- Buttons ---------- */
.wabt-btn{
	display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:58px;border:0;border-radius:999px;
	background:linear-gradient(135deg,var(--wabt-btn-a) 0%,var(--wabt-btn-b) 100%);color:#fff!important;
	font-size:18px;font-weight:800;letter-spacing:.3px;cursor:pointer;text-decoration:none!important;margin:0;padding:0 22px;
	box-shadow:0 16px 28px -12px rgba(8,122,111,.65);transition:transform .12s ease,box-shadow .12s ease,opacity .12s ease;
}
.wabt-btn:hover:not(:disabled){transform:translateY(-1px);}
.wabt-btn:active:not(:disabled){transform:scale(.985);}
.wabt-btn:focus-visible{outline:3px solid rgba(10,95,176,.35);outline-offset:3px;}
.wabt-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;}
.wabt-btn--outline{background:#fff;color:var(--wabt-btn-b)!important;border:2px solid var(--wabt-btn-b);box-shadow:none;}
.wabt-btn--link{display:flex;}
.wabt-btn-spinner{display:none;width:20px;height:20px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:wabt-spin .7s linear infinite;}
.wabt-btn.is-busy .wabt-btn-spinner{display:inline-block;}
.wabt-btn.is-busy{opacity:.85;cursor:progress;}

/* error box */
.wabt-notice{background:var(--wabt-err-bg);border:1px solid #fecaca;color:var(--wabt-err);font-size:14.5px;font-weight:600;border-radius:16px;padding:14px 16px;margin-bottom:16px;animation:wabt-fade .25s ease;}

/* ---------- Partner sheet ---------- */
.wabt-sheet{position:fixed;inset:0;z-index:100000;display:none;align-items:flex-end;justify-content:center;background:rgba(9,20,45,.55);}
.wabt-sheet.is-open{display:flex;animation:wabt-backdrop .2s ease;}
@keyframes wabt-backdrop{from{opacity:0;}to{opacity:1;}}
.wabt-sheet-panel{
	background:#fff;width:100%;max-width:520px;max-height:82vh;max-height:82dvh;display:flex;flex-direction:column;
	border-radius:28px 28px 0 0;padding:8px 18px calc(18px + env(safe-area-inset-bottom));animation:wabt-slide .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes wabt-slide{from{transform:translateY(60px);opacity:0;}to{transform:none;opacity:1;}}
.wabt-sheet-grip{width:44px;height:5px;border-radius:5px;background:#cbd5e1;margin:4px auto 8px;}
.wabt-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 10px;}
.wabt-sheet-head h2{font-size:18px;font-weight:800;}
.wabt-sheet-close{width:40px;height:40px;border:0;border-radius:12px;background:#f1f5f9;color:#334155;font-size:26px;line-height:1;cursor:pointer;}
.wabt-partner-list{list-style:none;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:0 -6px;padding:0 6px;}
.wabt-partner-item{
	display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 12px;margin:0 0 8px;border:1.5px solid var(--wabt-line);
	border-radius:18px;background:#fff;text-align:left;cursor:pointer;font-size:16px;font-weight:700;color:var(--wabt-text);
	transition:border-color .15s ease,background .15s ease;
}
.wabt-partner-item:hover{background:#f8fafc;}
.wabt-partner-item:focus-visible{outline:3px solid rgba(10,95,176,.3);outline-offset:1px;}
.wabt-partner-item[aria-selected="true"]{border-color:var(--wabt-btn-b);background:#effaf8;}
.wabt-partner-item .wabt-p-title{flex:1;min-width:0;overflow-wrap:anywhere;}
.wabt-partner-item .wabt-tick{width:22px;height:22px;color:var(--wabt-btn-b);flex:0 0 22px;visibility:hidden;}
.wabt-partner-item[aria-selected="true"] .wabt-tick{visibility:visible;}
.wabt-empty{padding:22px 8px;text-align:center;color:var(--wabt-muted);font-weight:600;}

.wabt-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#fff;border:1px solid var(--wabt-line);overflow:hidden;}
.wabt-avatar img{width:100%;height:100%;object-fit:contain;padding:4px;display:block;}
.wabt-avatar.is-letter{color:#fff;font-weight:800;font-size:17px;border:0;}

/* ---------- Receipt overlay ---------- */
.wabt-overlay{
	position:fixed;inset:0;z-index:100001;display:none;overflow-y:auto;-webkit-overflow-scrolling:touch;
	background:linear-gradient(180deg,#0d8f6f 0,#0a7f74 260px,#eaf2f6 260px);
}
.wabt-overlay.is-open{display:block;animation:wabt-backdrop .25s ease;}
.wabt-overlay-inner{max-width:460px;margin:0 auto;padding:max(22px,env(safe-area-inset-top)) 18px 0;}

.wabt-receipt{background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 26px 50px -20px rgba(6,40,40,.55);animation:wabt-rise .5s cubic-bezier(.2,.8,.2,1);}
@keyframes wabt-rise{from{transform:translateY(34px) scale(.97);opacity:0;}to{transform:none;opacity:1;}}
.wabt-receipt-top{background:linear-gradient(160deg,#10b981 0%,#059669 100%);color:#fff;text-align:center;padding:30px 20px 26px;}
.wabt-check{width:84px;height:84px;display:block;margin:0 auto 12px;overflow:visible;}
.wabt-check-circle{stroke-dasharray:151;stroke-dashoffset:151;transform-origin:center;animation:wabt-draw .6s .15s ease forwards,wabt-pop .5s .15s ease;}
.wabt-check-mark{stroke-dasharray:40;stroke-dashoffset:40;animation:wabt-draw .4s .65s ease forwards;}
@keyframes wabt-draw{to{stroke-dashoffset:0;}}
@keyframes wabt-pop{0%{transform:scale(.6);}70%{transform:scale(1.06);}100%{transform:scale(1);}}
.wabt-app .wabt-receipt-title{font-size:23px;font-weight:800;line-height:1.2;color:#fff;}
.wabt-receipt-sub{margin-top:4px;font-size:14px;opacity:.92;}

.wabt-receipt-body{padding:22px 20px 20px;}
.wabt-receipt-amount{text-align:center;padding-bottom:18px;border-bottom:2px dashed var(--wabt-line);margin-bottom:6px;}
.wabt-receipt-amount strong{display:block;font-size:34px;font-weight:800;color:var(--wabt-ok);margin-top:4px;line-height:1.15;overflow-wrap:anywhere;}
.wabt-rows{margin:0;}
.wabt-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:12px 0;border-bottom:1px dashed var(--wabt-line);font-size:14.5px;}
.wabt-row dt{color:var(--wabt-muted);flex:0 0 auto;max-width:42%;}
.wabt-row dd{margin:0;font-weight:700;text-align:right;overflow-wrap:anywhere;min-width:0;}
.wabt-pill{display:inline-block;background:var(--wabt-ok-bg);color:var(--wabt-ok);border:1px solid #a7f3d0;border-radius:999px;padding:3px 12px;font-size:13px;font-weight:800;}
.wabt-note{margin-top:16px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:16px;padding:12px 14px;}
.wabt-note p{margin-top:4px;font-size:14.5px;font-weight:600;color:#14532d;overflow-wrap:anywhere;}
.wabt-receipt-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px;padding-top:14px;border-top:2px dashed var(--wabt-line);font-size:12.5px;font-weight:700;color:var(--wabt-muted);}
.wabt-receipt-brand img{height:26px;width:auto;max-width:90px;object-fit:contain;}

/* action bar stays pinned to the bottom of the screen so both buttons are always reachable */
.wabt-receipt-actions{position:sticky;bottom:0;display:flex;flex-direction:row;gap:10px;margin:14px -18px 0;padding:22px 18px calc(16px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(234,242,246,0) 0,#eaf2f6 34%);}
.wabt-receipt-actions .wabt-btn{flex:1 1 0;min-width:0;min-height:54px;font-size:16px;padding:0 12px;text-align:center;}
.wabt-receipt-actions .wabt-btn--outline{background:#fff;}
@media (max-width:340px){.wabt-receipt-actions{flex-direction:column;}}

/* HTML/CSS check mark, used only in the captured receipt image */
.wabt-check-static{display:block;position:relative;width:84px;height:84px;margin:0 auto 12px;border:3px solid #fff;border-radius:50%;background:rgba(255,255,255,.16);}
.wabt-check-static-mark{position:absolute;left:29px;top:13px;width:17px;height:34px;border:solid #fff;border-width:0 6px 6px 0;border-radius:2px;transform:rotate(45deg);}

/* used only while capturing the receipt image */
.wabt-capture{position:fixed;left:-10000px;top:0;width:440px;z-index:-1;}
.wabt-capture .wabt-receipt,.wabt-capture *{animation:none!important;}
.wabt-capture .wabt-check-circle,.wabt-capture .wabt-check-mark{stroke-dashoffset:0!important;}

/* ---------- Larger screens ---------- */
@media (min-width:560px){
	.wabt-sheet{align-items:center;}
	.wabt-sheet-panel{border-radius:28px;max-width:440px;padding-bottom:18px;}
	.wabt-sheet-grip{display:none;}
	.wabt-hero{border-radius:0 0 34px 34px;}
}
@media (min-width:820px){
	.wabt-app{padding-top:18px;}
	.wabt-hero{border-radius:34px 34px 34px 34px;}
}
@media (max-width:360px){
	.wabt-balance-amount{font-size:24px;}
	.wabt-amount{font-size:26px;}
}
@media (prefers-reduced-motion:reduce){
	.wabt-app *,.wabt-app *::before,.wabt-app *::after{animation-duration:.001ms!important;animation-delay:0s!important;transition-duration:.001ms!important;}
	.wabt-check-circle,.wabt-check-mark{stroke-dashoffset:0!important;}
}

/* Print / "Save as PDF" fallback for the receipt (only when the receipt is open) */
@media print{
	.wabt-overlay:not(.is-open){display:none!important;}
	html.wabt-lock .wabt-body{background:#fff!important;}
	html.wabt-lock .wabt-hero,html.wabt-lock .wabt-content,html.wabt-lock .wabt-sheet,.wabt-receipt-actions{display:none!important;}
	.wabt-overlay.is-open{position:static!important;background:#fff!important;overflow:visible!important;}
	.wabt-receipt{box-shadow:none!important;animation:none!important;border:1px solid #cbd5e1;}
	.wabt-receipt *{-webkit-print-color-adjust:exact;print-color-adjust:exact;}
	html.wabt-lock,html.wabt-lock body{overflow:visible!important;}
}
