/* ARFTECH customer service centre — compact wallet and focused service dialogs */
.customer-wallet-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:14px 16px;border:1px solid #dce8df;border-radius:15px;background:linear-gradient(110deg,#f1f8f3,#fff)}
.customer-wallet-strip .dash-stat{flex:1;min-width:0;padding:0;border:0;background:transparent;box-shadow:none}
.customer-wallet-strip .dash-stat span{margin:0 0 3px;font-size:.72rem}
.customer-wallet-strip .dash-stat strong{font-size:clamp(1.25rem,3vw,1.75rem);line-height:1.2;overflow-wrap:anywhere}
.customer-wallet-strip .dash-stat small{font-size:.7rem;margin-top:3px}
.customer-wallet-strip .account-action{min-height:38px;padding:8px 13px;border-radius:9px;font-size:.78rem;white-space:nowrap}
#wallet-account-panel{order:-1;margin:0 0 14px!important;padding:13px 15px!important;border-radius:13px!important;background:#f7faf7!important;box-shadow:none!important}
#wallet-account-panel>strong{font-size:.88rem;margin-bottom:5px}
#wallet-account-panel>p{margin:5px 0!important;padding:0;border:0;background:transparent;font-size:.77rem;line-height:1.45}
#wallet-account-panel>p strong{min-width:0;margin-right:5px}
#wallet-account-panel>p:first-of-type{color:#718078}
#wallet-account-panel[data-unavailable="true"]{border-style:dashed!important;background:#fbfcfb!important}
#wallet-account-panel[data-unavailable="true"]>p{color:#68786e}
#wallet-transactions{margin-top:0}
#wallet-transactions .dash-empty{padding:16px}
.customer-service-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:18px 0 24px}
.customer-service-launch{display:flex;align-items:center;gap:12px;min-width:0;padding:15px;border:1px solid #dfe9e2;border-radius:14px;background:#fff;color:#17221b;text-align:left;cursor:pointer;box-shadow:0 5px 18px #102d2008}
.customer-service-launch:hover{border-color:#a9cdb4;background:#f8fbf8}
.customer-service-launch .launch-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#eaf4ed;color:#176b43;font-size:1.15rem;font-weight:800}
.customer-service-launch strong,.customer-service-launch small{display:block}
.customer-service-launch strong{font-size:.9rem}
.customer-service-launch small{margin-top:3px;color:#718078;font-size:.72rem}
.customer-service-dialog{width:min(760px,calc(100% - 24px));max-width:760px;max-height:min(88dvh,850px);overflow:auto;padding:clamp(16px,3vw,25px);border:1px solid #dce7df;border-radius:18px;background:#fff;color:#17221b;box-shadow:0 24px 80px #06180e38}
.customer-service-dialog::backdrop{background:#07170dcc;backdrop-filter:blur(3px)}
.customer-dialog-head{position:sticky;top:-1px;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:-2px 0 15px;padding:2px 0 12px;background:#fff;border-bottom:1px solid #edf1ed}
.customer-dialog-head h2{margin:4px 0 0;font-size:1.2rem;letter-spacing:-.025em}
.customer-dialog-head p{margin:4px 0 0;color:#718078;font-size:.78rem;line-height:1.4}
.customer-dialog-close{width:34px;height:34px;flex:0 0 34px;border:1px solid #e1e9e3;border-radius:9px;background:#fff;color:#405347;font-size:1.3rem;cursor:pointer}
#wallet-funding-panel{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#wallet-funding-panel>strong{display:none}
#wallet-funding-panel>p{font-size:.82rem}
#wallet-funding-panel form,#wallet-funding-panel #wallet-verify-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important}
#wallet-funding-panel form label{min-width:0}
#wallet-funding-panel input{min-height:46px}
#wallet-funding-panel .account-action{min-height:44px}
#wallet-funding-panel>div{margin-top:15px!important;padding-top:14px!important}
#airtime-purchase,#data-purchase{margin:0!important}
#airtime-purchase .dash-section-head,#data-purchase .dash-section-head{margin-bottom:8px}
#airtime-purchase-form,#data-catalogue-panel{padding:14px!important;box-shadow:none!important}
#data-catalogue-panel{position:relative}
#data-plans-refresh{position:absolute;top:12px;right:12px;width:34px;height:34px;min-height:34px;margin:0!important;padding:0!important;border:1px solid #dce7df;border-radius:9px;background:#fff;color:#176b43;font-size:0}
#data-plans-refresh:before{content:"↻";font-size:1.15rem;line-height:1}
#data-catalogue-note{padding-right:38px;font-size:.75rem}
.data-network-tabs{margin-top:12px!important}
.data-network-tab{padding:10px 8px!important;font-size:.82rem!important}
.data-network-card{padding:12px!important}
.data-network-card .data-plan-list{max-height:270px!important}
.data-plan-item{padding:10px!important}
.dash-hero .dash-title{max-width:100%;font-size:clamp(1.45rem,4vw,2.5rem);overflow-wrap:anywhere;word-break:normal}
#customer-name{display:inline;overflow-wrap:anywhere}
@media(max-width:600px){
 .customer-wallet-strip{padding:12px;gap:9px}
 .customer-wallet-strip .account-action{padding:8px 10px;font-size:.73rem}
 .customer-service-actions{gap:8px}
 .customer-service-launch{padding:12px 9px;gap:8px}
 .customer-service-launch .launch-icon{width:32px;height:32px;flex-basis:32px;font-size:1rem}
 .customer-service-launch strong{font-size:.8rem}
 .customer-service-launch small{font-size:.65rem}
 .customer-service-dialog{width:calc(100% - 16px);max-height:92dvh;padding:14px;border-radius:15px}
 #wallet-funding-panel form{grid-template-columns:1fr!important}
 #wallet-funding-panel .account-action{width:100%}
 .dash-hero .dash-title{font-size:clamp(1.35rem,6vw,1.8rem);line-height:1.2}
}

/* Four independent digital service launchers and identity-service pop-ups */
.customer-service-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.identity-service-group{margin:18px 0 0}
.identity-service-group h3{margin:0 0 10px;color:#176b43;font-size:.9rem}
.identity-service-list{display:grid;gap:9px}
.identity-service-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:13px;border:1px solid #e2eae4;border-radius:12px;background:#fbfdfb}
.identity-service-item strong,.identity-service-item small{display:block}
.identity-service-item strong{font-size:.85rem}
.identity-service-item small{margin-top:4px;color:#718078;font-size:.73rem;line-height:1.4}
.identity-service-proceed{min-width:82px;min-height:38px;padding:8px 12px;border:0;border-radius:9px;background:#176b43;color:#fff;font:inherit;font-size:.77rem;font-weight:750;cursor:pointer}
.identity-service-proceed:hover{background:#105735}
.identity-service-note{grid-column:1/-1;margin:0;padding:10px;border-radius:9px;background:#fff8e8;color:#76551a;font-size:.75rem;line-height:1.45}
.identity-service-note[hidden]{display:none}
.customer-service-launch:focus-visible,.identity-service-proceed:focus-visible{outline:3px solid #72b78b;outline-offset:3px}
@media(max-width:600px){.identity-service-item{padding:11px;gap:8px}.identity-service-proceed{min-width:74px}}

/* Identity service consent and fee review stage */
.identity-service-review{grid-column:1/-1;display:grid;gap:11px;margin-top:8px;padding:13px;border:1px solid #cfe0d3;border-radius:11px;background:#f4f9f5}
.identity-service-review[hidden]{display:none!important}
.identity-service-review label{display:flex;align-items:flex-start;gap:9px;color:#31463a;font-size:.78rem;line-height:1.5}
.identity-service-review input{width:17px;height:17px;flex:0 0 17px;margin:1px 0 0;accent-color:#176b43}
.identity-service-fee{margin:0;color:#43564a;font-size:.78rem;line-height:1.5}
.identity-service-confirm{justify-self:start;min-height:38px;padding:8px 13px;border:1px solid #176b43;border-radius:9px;background:#176b43;color:#fff;font:inherit;font-size:.77rem;font-weight:750}
.identity-service-confirm:disabled{border-color:#cbd5ce;background:#e6ebe7;color:#7a857e;cursor:not-allowed}


/* Unified mobile service centre and identity-service layout */
@media(max-width:600px){
 .customer-service-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .customer-service-launch{min-width:0;min-height:68px;align-items:center;padding:10px 9px}
 .customer-service-launch strong{font-size:.78rem;line-height:1.25;overflow-wrap:anywhere}
 .customer-service-launch small{font-size:.64rem;line-height:1.35;overflow-wrap:anywhere}
 .customer-wallet-strip{min-width:0;flex-wrap:wrap;align-items:center}
 .customer-wallet-strip .dash-stat{flex:1 1 100%;min-width:0}
 .customer-wallet-strip .account-action{width:100%;min-height:42px}
 .customer-service-dialog{box-sizing:border-box;width:calc(100% - 16px);max-width:none;max-height:calc(100dvh - 16px);overflow:auto;padding:13px}
 .customer-dialog-head h2{font-size:1.08rem;line-height:1.25}
 .customer-dialog-head p{font-size:.74rem;line-height:1.5}
 .identity-service-group h3{font-size:.86rem;line-height:1.3}
 .identity-service-item{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}
 .identity-service-item strong{font-size:.8rem;line-height:1.3}
 .identity-service-item small{font-size:.69rem;line-height:1.45}
 .identity-service-proceed{min-width:70px;min-height:42px;padding:8px 9px;font-size:.73rem}
 .identity-service-review{padding:11px;gap:9px}
 .identity-service-review label,.identity-service-fee{font-size:.73rem;line-height:1.5}
 .identity-service-confirm{width:100%;min-height:43px}
 #airtime-purchase-form,#data-catalogue-panel,#data-checkout-form{min-width:0;max-width:100%}
 .data-network-tabs{display:flex;overflow-x:auto;max-width:100%;gap:6px}
 .data-network-tab{flex:0 0 auto;min-width:76px}
 .data-plan-item{align-items:flex-start;flex-wrap:wrap}
 .data-plan-price{white-space:nowrap}
}
@media(max-width:360px){
 .customer-service-actions{grid-template-columns:minmax(0,1fr)}
 .customer-service-launch{min-height:58px}
 .identity-service-item{grid-template-columns:minmax(0,1fr)}
 .identity-service-proceed{width:100%}
}


/* Mobile service directory readability and safe text wrapping */
@media(max-width:600px){
 .customer-service-launch strong{font-size:.86rem;line-height:1.35}
 .customer-service-launch small,.identity-service-item small{font-size:.78rem;line-height:1.5}
 .customer-dialog-head p,.identity-service-note,.identity-service-review label,.identity-service-fee{font-size:.8rem;line-height:1.55}
 .identity-service-proceed,.identity-service-confirm{font-size:.8rem;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .customer-wallet-strip .dash-stat span,.customer-wallet-strip .dash-stat small{font-size:.78rem;line-height:1.45}
 .customer-wallet-strip .account-action{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:.8rem}
 #wallet-account-panel>p{font-size:.8rem;line-height:1.55;overflow-wrap:anywhere}
 .data-plan-price{font-size:.8rem;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}

/* Prevent long provider and service labels from widening the mobile viewport. */
@media(max-width:600px){
 .customer-service-actions>*{min-width:0;max-width:100%}
 .customer-service-launch{overflow-wrap:anywhere}
 .data-network-tabs{padding-bottom:4px;scroll-snap-type:x proximity}
 .data-network-tab{scroll-snap-align:start}
 .identity-service-item>*{min-width:0}
 .identity-service-item small,.identity-service-note{overflow-wrap:anywhere}
 .customer-service-dialog button,.customer-service-dialog a{max-width:100%;overflow-wrap:anywhere}
}


/* Mobile dialog ergonomics: safe-area spacing, readable headers and reachable actions. */
.service-centre-dialog,.customer-service-dialog{
 box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);
 overscroll-behavior:contain;overflow:auto;
}
.service-centre-dialog::backdrop,.customer-service-dialog::backdrop{background:#07170dcc;backdrop-filter:blur(2px)}
@media(max-width:600px){
 .service-centre-dialog,.customer-service-dialog{
  width:calc(100vw - 16px);max-width:calc(100vw - 16px);
  max-height:calc(100dvh - 16px);margin:auto;
  padding:14px;overflow:auto;overscroll-behavior:contain;
  border-radius:16px;
 }
 .service-centre-head,.customer-dialog-head{position:sticky;top:-14px;z-index:3;align-items:flex-start;gap:10px;padding:0 0 12px;background:#fff}
 .service-centre-head>div,.customer-dialog-head>div{min-width:0;flex:1}
 .service-centre-head h2,.customer-dialog-head h2{font-size:1.12rem;line-height:1.25;overflow-wrap:anywhere}
 .service-centre-head p,.customer-dialog-head p{font-size:.82rem;line-height:1.55}
 .dialog-close,.customer-dialog-close{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px}
 .service-centre-search,.customer-service-dialog input:not([type=checkbox]){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;font-size:16px}
 .service-centre-option{min-width:0;min-height:58px}
 .service-centre-option strong,.service-centre-option small{overflow-wrap:anywhere}
 .customer-profile-dialog .profile-card{gap:11px}
 .customer-profile-dialog form{margin:14px 0;padding:14px!important}
 .customer-profile-dialog form label{font-size:.86rem;line-height:1.4}
 .customer-profile-dialog form button,.customer-profile-footer button{width:100%;min-height:46px}
 .customer-profile-footer{display:grid;gap:10px}
}
