/* L1017n — one focused wallet top-up step at a time, phone-first safety. */
#topupDedicatedPage #topupForm[data-tp-wizard-step]{
  gap:15px!important;
}
#topupDedicatedPage #topupForm[data-tp-wizard-step] .tp-steps{
  display:none!important;
}
/* The previous big green three-step guide duplicated the actual screen flow
   and pushed the selected amount below the fold on small iPhones. */
#topupDedicatedPage #topupForm[data-tp-wizard-step] #gbWalletGuide{
  display:none!important;
}
#topupDedicatedPage #topupForm[data-tp-wizard-step="1"] .tp-phone-panel,
#topupDedicatedPage #topupForm[data-tp-wizard-step="1"] .tp-wizard-selected,
#topupDedicatedPage #topupForm[data-tp-wizard-step="1"] .tp-wizard-review,
#topupDedicatedPage #topupForm[data-tp-wizard-step="1"] #transferInstructions,
#topupDedicatedPage #topupForm[data-tp-wizard-step="2"] .tp-providers,
#topupDedicatedPage #topupForm[data-tp-wizard-step="2"] .tp-amount-panel,
#topupDedicatedPage #topupForm[data-tp-wizard-step="2"] .tp-wizard-review,
#topupDedicatedPage #topupForm[data-tp-wizard-step="2"] #transferInstructions,
#topupDedicatedPage #topupForm[data-tp-wizard-step="3"] .tp-providers,
#topupDedicatedPage #topupForm[data-tp-wizard-step="3"] .tp-amount-panel,
#topupDedicatedPage #topupForm[data-tp-wizard-step="3"] .tp-phone-panel,
#topupDedicatedPage #topupForm[data-tp-wizard-step="3"] .tp-wizard-selected{
  display:none!important;
}
#topupDedicatedPage #topupForm[data-tp-wizard-ready="true"] #topupProceed{
  display:none!important;
}
#topupDedicatedPage #topupForm[data-tp-wizard-step] .tp-progress{
  order:0;
  margin:0 0 9px!important;
  padding:10px 0 4px!important;
}
#topupDedicatedPage .tp-progress button:disabled{
  cursor:default!important;
  opacity:.52!important;
}
#topupDedicatedPage .tp-progress button.tp-wizard-done b{
  color:#e8d1ff!important;border-color:#a88afa!important;
  background:#393063!important;
}
#topupDedicatedPage .tp-wizard-selected{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px 16px;border:1px solid #8262bd84;border-radius:16px;
  background:linear-gradient(115deg,#282044,#1a1b34);
  color:#d3c9e7;font-size:13px;
}
#topupDedicatedPage .tp-wizard-selected strong{
  color:#f5ecff;font:900 20px system-ui,sans-serif;white-space:nowrap;
}
#topupDedicatedPage .tp-wizard-phone-actions{
  display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:2px;
}
#topupDedicatedPage .tp-wizard-phone-actions button{
  flex:1 1 130px;min-height:43px;padding:8px 11px;
  color:#eadbff;background:#33284d;border:1px solid #8466ba;border-radius:12px;
  font:800 12px 'IBM Plex Sans Arabic',system-ui,sans-serif;
}
#topupDedicatedPage .tp-wizard-phone-actions .tp-wizard-verify{
  color:#101e19;background:#a8e999;border-color:#c0f5b6;
}
#topupDedicatedPage .tp-wizard-phone-actions button:disabled{opacity:.6}
#topupDedicatedPage .tp-wizard-review{
  display:grid;gap:2px;
  padding:17px 17px 14px;
  border:1px solid #8670c6;border-radius:20px;
  background:linear-gradient(135deg,#242144,#15172d 85%);
  color:#f2ebff;box-shadow:inset 0 1px #ffffff17,0 9px 22px #0003;
}
#topupDedicatedPage .tp-wizard-review-head{
  display:flex;align-items:flex-start;gap:11px;
  padding:4px 0 13px;margin-bottom:5px;border-bottom:1px solid #a38cc638;
}
#topupDedicatedPage .tp-wizard-review-icon{
  flex:0 0 37px;width:37px;height:37px;
  display:grid;place-items:center;
  border-radius:13px;background:#503383;color:#e7cbff;
  font-weight:900;font-size:23px;
}
#topupDedicatedPage .tp-wizard-review h3{
  margin:0 0 3px;color:#fff;font-size:19px!important;font-weight:900;
}
#topupDedicatedPage .tp-wizard-review-head p{
  color:#bab4d3;font-size:11px;line-height:1.7;margin:0;
}
#topupDedicatedPage .tp-wizard-review-line{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:49px;padding:9px 2px;border-bottom:1px solid #aca5d31f;
  color:#ada8cf;font-size:13px;
}
#topupDedicatedPage .tp-wizard-review-line strong{
  color:#faf8ff;font-size:16px;font-weight:850;text-align:left;
}
#topupDedicatedPage .tp-wizard-safety{
  margin:13px 0 0;padding:13px;border:1px solid #43785b76;
  border-radius:13px;background:#183b2b60;color:#b9e3c9;
  line-height:1.8;font-size:11px;
}
#topupDedicatedPage #tpWizardAlert{
  display:block;margin:0;padding:12px 14px;
  background:#4a2826a3;border:1px solid #d9857f9c;
  border-radius:12px;color:#ffd8d2;font-size:12px;line-height:1.7;
}
#topupDedicatedPage #tpWizardAlert[hidden]{display:none!important}
#topupDedicatedPage #topupForm[data-tp-wizard-step] :is(.tp-panel,.tp-wizard-review,.tp-wizard-selected){
  animation:tpWizardEnter .28s ease-out both;
}
@keyframes tpWizardEnter{
  from{opacity:.45;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:390px){
 #topupDedicatedPage .tp-wizard-review{padding:14px 12px}
 #topupDedicatedPage .tp-wizard-review-line strong{font-size:14px}
 #topupDedicatedPage .tp-wizard-phone-actions button{font-size:11px;padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){
 #topupDedicatedPage #topupForm[data-tp-wizard-step] :is(.tp-panel,.tp-wizard-review,.tp-wizard-selected){
  animation:none!important
 }
}

#topupDedicatedPage .tp-wizard-back{
  width:100%;min-height:44px;
  color:#e7dbff;background:#1c203a;
  border:1px solid #766ca5;border-radius:13px;
  font:800 13px 'IBM Plex Sans Arabic',system-ui,sans-serif;
}
#topupDedicatedPage .tp-wizard-back:active{scale:.97}
#topupDedicatedPage #topupForm[data-tp-wizard-step="1"] .tp-wizard-back,
#topupDedicatedPage #topupForm[data-tp-wizard-ready="true"] .tp-wizard-back{display:none!important}


/* Compact top-up copy: the progress labels already explain each stage. */
#topupDedicatedPage .tp-clean-copy p{
  display:none!important;
}
#topupDedicatedPage .tp-wizard-review-head{
  padding-bottom:10px!important;
}
#topupDedicatedPage .tp-wizard-safety{
  line-height:1.65!important;
}


/* Remove the actual old helper and redundant fixed-provider card regardless
   of whether an older customer-journey.js was retained by the browser. */
#topupDedicatedPage #gbWalletGuide,
#topupDedicatedPage .tp-steps,
#topupDedicatedPage #topupForm[data-tp-wizard-step="1"] .tp-providers{
  display:none!important;
}
/* Display only the single active amount / phone / review task on each screen. */
#topupDedicatedPage #topupForm[data-tp-wizard-step="1"] .tp-amount-panel,
#topupDedicatedPage #topupForm[data-tp-wizard-step="2"] .tp-phone-panel,
#topupDedicatedPage #topupForm[data-tp-wizard-step="3"] .tp-wizard-review{
  margin:4px 0!important;
}


/* External Libyana sender option on step 2 */
#topupDedicatedPage .tp-wizard-sender{
  display:grid;gap:8px;
  padding:12px 0 0;
}
#topupDedicatedPage .tp-wizard-sender label{
  color:#f6eeff;font-size:14px;font-weight:850;
}
#topupDedicatedPage #tpTopupSender{
  display:block;width:100%;height:55px;
  border:1px solid #8773bf!important;
  border-radius:13px!important;
  padding:10px 15px!important;
  color:#fff!important;
  background:#11172e!important;
  font:800 18px system-ui,sans-serif!important;
  text-align:left;
  direction:ltr;
}
#topupDedicatedPage #tpTopupSender::placeholder{color:#9c9db8;opacity:1}
#topupDedicatedPage #tpTopupSender:focus-visible{
  outline:2px solid #b990ff!important;outline-offset:2px!important;
}
#topupDedicatedPage .tp-wizard-sender small{
  color:#bdb5d3;font-size:11px;line-height:1.7;
}
.tp-wizard-notice-layer{
  position:fixed;inset:0;z-index:2147483300;
  display:flex;align-items:center;justify-content:center;
  padding:calc(18px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  background:rgba(4,6,17,.85);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.tp-wizard-notice-card{
  width:min(100%,380px);
  display:flex;align-items:center;flex-direction:column;gap:13px;
  border:1px solid #9472de;
  border-radius:25px;
  padding:24px 20px 21px;
  background:linear-gradient(160deg,#2e2354,#11152e);
  color:#fff;text-align:center;
  box-shadow:0 24px 65px #000b,inset 0 1px #ffffff24;
}
.tp-wizard-notice-symbol{
  display:grid;place-items:center;width:52px;height:52px;
  border-radius:16px;background:#8051d94f;border:1px solid #b799ff;
  color:#e3ccff;font-size:30px;font-weight:900;
}
.tp-wizard-notice-card h3{
  margin:0;font-size:23px;font-weight:900;color:#f9f3ff;
}
.tp-wizard-notice-card p{
  margin:0;color:#d8d2ea;line-height:1.9;font-size:14px;
}
.tp-wizard-notice-card #tpTopupNoticeUnderstood{
  margin-top:3px;width:100%;min-height:51px;
  padding:12px;border:0;border-radius:14px;
  background:linear-gradient(120deg,#a162f1,#7333dc);
  box-shadow:0 7px 21px #9055e443;
  color:#fff;font:900 17px 'IBM Plex Sans Arabic',system-ui,sans-serif;
  cursor:pointer;
}
.tp-wizard-notice-card #tpTopupNoticeUnderstood:focus-visible{
  outline:3px solid #fff;outline-offset:3px;
}
@media(prefers-reduced-motion:no-preference){
 .tp-wizard-notice-card{animation:tpSenderNoticeIn .25s ease-out both}
 @keyframes tpSenderNoticeIn{
  from{transform:translateY(15px) scale(.96);opacity:0}
  to{transform:translateY(0) scale(1);opacity:1}
 }
}
@media(prefers-reduced-motion:reduce){
 .tp-wizard-notice-card{animation:none!important}
}


/* When account phone is not OTP-verified, hide the obsolete verification-only
   status panel. The required Libyana payer input remains fully visible. */
#topupDedicatedPage .tp-phone-panel.tp-no-verified .tp-number-row,
#topupDedicatedPage .tp-phone-panel.tp-no-verified .tp-wizard-phone-actions{
  display:none!important;
}
#topupDedicatedPage .tp-phone-panel.tp-no-verified .tp-wizard-sender{
  padding-top:0;
}
