/* Shared interaction sizing. Theme corrections stay scoped to the audited screens. */
:root{--wp-visible-height:100dvh;--wp-visible-top:0px}
body[data-wp-modal-open]{overflow:hidden!important}
body[data-wp-modal-open] :is(.approved-home-bottom-nav,.wp-shared-bottom-nav,.merchant-bottom-nav,.wp-bottom-nav){visibility:hidden!important;pointer-events:none!important}
:is(.action-sheet,.pocket-sheet,.status-dialog,.detail-sheet,.qr-modal .qr-card){max-height:calc(var(--wp-visible-height) - 24px)!important;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:16px}
.app-drawer{top:var(--wp-visible-top)!important;height:var(--wp-visible-height)!important;max-height:var(--wp-visible-height)!important;overscroll-behavior:contain}
:is(.action-sheet,.pocket-sheet){bottom:max(0px,calc(100dvh - var(--wp-visible-height) - var(--wp-visible-top)))!important}
.action-sheet{scroll-padding-bottom:24px}
.action-sheet[role="dialog"]{padding-bottom:max(24px,env(safe-area-inset-bottom))}
@media(max-width:700px){:is(.personal-app,.vas-v7-page,.personal-pockets-v2,.wallet-detail-page,.rewards-page) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select){font-size:16px!important}}
html[data-theme="light"]{color-scheme:light;background:#f7f5f2}

/* Airtime & Data follows the persisted WenaPay Personal theme. */
html[data-theme="light"] body.vas-v7-page{background:#f7f5f2!important;color:#171717!important}
html[data-theme="light"] body.vas-v7-page::before{background:linear-gradient(180deg,#faf9f7,#f3f2ef)!important}
html[data-theme="light"] body.vas-v7-page .vas-v7-shell{background:#f7f5f2!important;color:#171717;--wp-bg:#f7f5f2;--wp-surface:#fff;--wp-raised:#f1f2f0;--wp-text:#171717;--wp-muted:#67635f;--wp-line:rgba(20,20,20,.12);--wp-soft-line:rgba(20,20,20,.09)}
html[data-theme="light"] body.vas-v7-page .vas-v7-titlebar{background:rgba(247,247,245,.95)!important}
html[data-theme="light"] body.vas-v7-page .vas-v7-back{color:#171717;background:#fff}
html[data-theme="light"] body.vas-v7-page .vas-v7-context{color:#a7460d;background:#fff2e9}
html[data-theme="light"] body.vas-v7-page .vas-v7-pilot{background:#fff4ed}
html[data-theme="light"] body.vas-v7-page .vas-v7-pilot small,html[data-theme="light"] body.vas-v7-page .stepper span,html[data-theme="light"] body.vas-v7-page .stepper b{color:#625c57}
html[data-theme="light"] body.vas-v7-page .stepper b{background:#eae9e7}
html[data-theme="light"] body.vas-v7-page .stepper span.active{background:#fff0e6;color:#9b3f08}
html[data-theme="light"] body.vas-v7-page .wallet-context{background:linear-gradient(135deg,#fff0e6,#fff 65%);box-shadow:0 8px 25px rgba(38,28,20,.06)}
html[data-theme="light"] body.vas-v7-page .flow-card{background:#fff!important;color:#171717;box-shadow:0 12px 32px rgba(38,28,20,.09)}
html[data-theme="light"] body.vas-v7-page .screen-heading h2,html[data-theme="light"] body.vas-v7-page .pin-card h2,html[data-theme="light"] body.vas-v7-page .outcome-card h2,html[data-theme="light"] body.vas-v7-page .receipt-heading h2{color:#171717}
html[data-theme="light"] body.vas-v7-page .segmented{background:#f1f2f0}
html[data-theme="light"] body.vas-v7-page .segmented button:not(.active){color:#625c57}
html[data-theme="light"] body.vas-v7-page .field-label,html[data-theme="light"] body.vas-v7-page .section-label{color:#292521}
html[data-theme="light"] body.vas-v7-page .section-label small,html[data-theme="light"] body.vas-v7-page .field-help,html[data-theme="light"] body.vas-v7-page .product-copy small,html[data-theme="light"] body.vas-v7-page .product-option small{color:#67635f}
html[data-theme="light"] body.vas-v7-page .phone-field{border-color:#d8d6d3}
html[data-theme="light"] body.vas-v7-page .phone-field span,html[data-theme="light"] body.vas-v7-page .phone-field input,html[data-theme="light"] body.vas-v7-page .product-option,html[data-theme="light"] body.vas-v7-page .network-button,html[data-theme="light"] body.vas-v7-page .wp-momentum-button.secondary{color:#171717}
html[data-theme="light"] body.vas-v7-page .phone-field input::placeholder{color:#77716c}
html[data-theme="light"] body.vas-v7-page .network-button.active{color:#a7460d;background:#fff1e8}
html[data-theme="light"] body.vas-v7-page .summary-card,html[data-theme="light"] body.vas-v7-page .balance-after,html[data-theme="light"] body.vas-v7-page .receipt-list{color:#171717}
html[data-theme="light"] body.vas-v7-page .pin-summary{background:#f1f2f0;color:#171717;border-color:#d8d6d3}
html[data-theme="light"] body.vas-v7-page .pin-summary span{color:#292521}
html[data-theme="light"] body.vas-v7-page .pin-dots span.filled:after{background:#d95a0b}
html[data-theme="light"] body.vas-v7-page .vas-v7-nav{background:rgba(255,255,255,.97)!important;color:#171717!important}
html[data-theme="light"] body.vas-v7-page .vas-v7-nav a:not(.pay){color:#625c57!important}
html[data-theme="light"] body.vas-v7-page .vas-v7-nav a.active{color:#d95a0b!important}
  
html[data-theme="light"] body.vas-v7-page :is(input,select,textarea){background:#f1f2f0!important;color:#171717!important;border-color:#d8d6d3!important}
html[data-theme="light"] body.vas-v7-page :is(h1,h2,h3,strong,label){color:#171717}
html[data-theme="light"] body.vas-v7-page :is(.summary-card,.summary-card strong,.receipt-list dd,.pin-summary strong){background:#f1f2f0;color:#171717}
html[data-theme="light"] body.vas-v7-page :is(.summary-card span,.receipt-list dt,.receipt-brand small,.pin-summary small,.pilot-footnote,.electricity-amount-option small){color:#625c57}
html[data-theme="light"] body.vas-v7-page .wp-momentum-button.secondary{background:#f1f2f0!important;color:#171717!important}
html[data-theme="light"] body.vas-v7-page #receipt-token{color:#171717}
html[data-theme="light"] body.vas-v7-page .inline-error{background:#fff0ef;color:#9b2626;border-color:#e8b6b2}
html[data-theme="light"] :is(body.wallet-detail-page,body.personal-pockets-v2,body.rewards-page){
 --wp-bg:#f7f5f2;--wp-panel:#fff;--wp-panel-hi:#f2f0ed;--wp-text:#111315;--wp-muted:#625c57;--wp-line:rgba(17,19,21,.12);
 --text:#111315;--surface:#fff;--surface2:#f2f0ed;--muted:#625c57;--line:rgba(17,19,21,.12);
 --wena-text:#111315;--wena-muted:#625c57;--wena-line:rgba(17,19,21,.12);
 background:#f7f5f2!important;color:#111315!important
}
html[data-theme="light"] :is(.wallet-detail-shell,.pockets-shell,.rewards-shell){background:#f7f5f2!important;box-shadow:none}
html[data-theme="light"] body.personal-pockets-v2::before{background:radial-gradient(circle at 84% 4%,rgba(255,123,50,.09),transparent 20rem),#f7f5f2}
html[data-theme="light"] :is(body.wallet-detail-page,body.personal-pockets-v2,body.rewards-page) :is(h1,h2,h3,h4,strong,label,legend){color:#111315}
html[data-theme="light"] :is(.wallet-summary-card,.wallet-section,.pocket-card,.empty-state,.history-panel,.rewards-summary,.how-list,.reward-panel,.reward-box,.special,.qr-card,.detail-sheet,.pocket-sheet,.pocket-sheet-v3){
 background:#fff!important;color:#111315!important;border-color:rgba(17,19,21,.12)!important;box-shadow:0 12px 30px rgba(38,28,20,.06)
}
html[data-theme="light"] :is(.wallet-detail-back,.wallet-detail-settings,.wallet-actions a span,.back-link,.rewards-header-action,.sheet-close,.close-button,.secondary-btn){
 background:#fff!important;color:#111315!important;border-color:rgba(17,19,21,.12)!important
}
html[data-theme="light"] :is(.wallet-actions a,.pockets-brand,.pocket-balance,.sheet-name,.reward-points){color:#111315}
html[data-theme="light"] :is(.wallet-activity-copy small,.wallet-detail-row span,.wallet-summary-card em,.wallet-empty,.wallet-pilot-note,.rewards-intro p,.rewards-summary small,.how-row small,.rewards-pilot-note,.reward-label,.reward-next,.reward-box small,.specials-head small,.sheet-status,.qr-card p,.sheet-info-card .sheet-help,.field-hint){color:#625c57}
html[data-theme="light"] :is(.wallet-activity-row+.wallet-activity-row,.wallet-detail-row,.how-row+.how-row){border-color:rgba(17,19,21,.10)}
html[data-theme="light"] body.personal-pockets-v2 .summary-card{background:rgba(17,19,21,.10)}
html[data-theme="light"] body.personal-pockets-v2 .summary-card>div:not(:first-child){background:#fff;color:#111315}
html[data-theme="light"] body.personal-pockets-v2 .summary-card>div:not(:first-child) strong{color:#111315}
html[data-theme="light"] body.personal-pockets-v2 :is(input,select,textarea,.pocket-name-field input,.amount-input-v3 input){
 background:#f5f3f0!important;color:#111315!important;border-color:rgba(17,19,21,.15)!important
}
html[data-theme="light"] body.personal-pockets-v2 :is(.field-label,.field-heading legend){color:#111315!important}
html[data-theme="light"] body.personal-pockets-v2 :is(.amount-input,.icon-picker){background:#f5f3f0;border-color:rgba(17,19,21,.15)}
html[data-theme="light"] body.personal-pockets-v2 :is(.pocket-icon-choice,.mini-button:not(.primary),.text-button){background:#f5f3f0!important;color:#111315!important;border-color:rgba(17,19,21,.15)}
html[data-theme="light"] body.personal-pockets-v2 .pocket-icon-option input:checked+.pocket-icon-choice{background:#fff0e6!important;color:#9b3f08!important;border-color:#d95a0b}
html[data-theme="light"] :is(.optional-chip,.selection-badge,.pilot-chip,.section-heading>span,.badge){color:#9b3f08}
html[data-theme="light"] body.rewards-page .sheet-actions{background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 26%)}
html[data-theme="light"] :is(.wallet-hero,.wallet-hero strong,.wallet-hero small,.wallet-hero-kicker){color:#fff!important}
html[data-theme="light"] body.personal-pockets-v2 .summary-card>div:first-child :is(strong,span){color:#fff!important}
html[data-theme="light"] body.rewards-page .loyalty-card :is(strong,h3,h4){color:#fff}
html[data-theme="light"] body.personal-app .state-card{background:#fff!important;color:#111315!important;box-shadow:0 12px 30px rgba(38,28,20,.06)!important}

html[data-theme="light"] body.my-qr-page{--text:#111315;--muted:#625c57;--line:rgba(17,19,21,.12);--wena-text:#111315;--wena-muted:#625c57;background:#f7f5f2!important;color:#111315!important}
html[data-theme="light"] body.my-qr-page :is(.qr-shell,.qr-titlebar){background:#f7f5f2!important}
html[data-theme="light"] body.my-qr-page :is(.qr-card,.qr-state,.qr-back,.qr-secondary){background:#fff!important;color:#111315!important;border-color:rgba(17,19,21,.12)!important;box-shadow:0 12px 30px rgba(38,28,20,.06)}
html[data-theme="light"] body.my-qr-page :is(h1,h2,h3,strong,label){color:#111315}
html[data-theme="light"] body.my-qr-page :is(.qr-owner span,.qr-titlebar span,.qr-intro>p:not(.eyebrow),.qr-footnote){color:#625c57}

[hidden]{display:none!important}

html[data-theme="light"] body[data-wp-screen="BUSINESS-HOME-V7"] .metric-sales :is(.metric-kicker,.metric-kicker span,.metric-foot small,.metric-foot a,.metric-foot a span,.wp-icon){color:#625c57!important}
html[data-theme="light"] body[data-wp-section="books"] :is(.books-quick-actions button,.books-menu button,.report-actions button,.draft-recovery,.document-line,.accountant-panel){background:#fff!important;color:#111315!important;border-color:rgba(17,19,21,.12)!important}
html[data-theme="light"] body[data-wp-section="books"] :is(.books-quick-actions strong,.books-menu strong,.metric strong,.document-grand-total strong){color:#111315!important}
html[data-theme="light"] body[data-wp-section="books"] :is(.books-quick-actions span,.books-menu small,.metric span,.score-label,.health-title){color:#625c57!important}
html[data-theme="light"] body[data-wp-section="books"] :is(input,select,textarea){background:#f5f3f0!important;color:#111315!important;border-color:rgba(17,19,21,.15)!important}
html[data-theme="light"] body[data-wp-section="books"] .document-grand-total{background:#fff!important;color:#111315}

html[data-theme="light"] body[data-wp-section="books"] :is(.hero>div:first-child,.score span){color:#625c57!important}

/* Account options float over content without moving the current workspace. */
@media(max-width:720px){
 body .wp-premium-business-header.wp-overflow-open{margin-bottom:10px!important}
 body .wp-premium-business-header .wp-top-actions :is(.wp-account-link,.wp-signout,.wp-theme-toggle){min-height:44px!important;height:44px!important}
}
body[data-wp-screen="BUSINESS-POS-V9"] .wp-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body[data-wp-screen="BUSINESS-POS-V9"] :is(.wp-env-chip,.wp-account-link,.wp-signout){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--wp-line);border-radius:14px;background:var(--wp-panel);color:var(--wp-ink);font:inherit;font-size:12px;text-decoration:none}
body[data-wp-screen="BUSINESS-POS-V9"] .search-wrap input{min-width:0;width:100%;background:transparent!important;font-size:16px}
@media(min-width:721px){
 body[data-wp-screen="BUSINESS-POS-V9"] .pos-topbar{background:transparent!important;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
 body[data-wp-screen="BUSINESS-POS-V9"] .pos-topbar .brand{display:flex;align-items:center}
 body[data-wp-screen="BUSINESS-POS-V9"] .pos-topbar .wp-brand-canvas{display:block;width:132px;max-width:132px;height:auto}
 body[data-wp-screen="BUSINESS-POS-V9"] .pos-topbar .wp-top-actions{margin-left:auto}
}
html[data-theme="light"] body[data-wp-screen="BUSINESS-POS-V9"] :is(.wp-business-control,.empty-state){background:#fff!important;color:#625c57!important;border-color:rgba(17,19,21,.12)!important}
html[data-theme="light"] body[data-wp-screen="BUSINESS-POS-V9"] .sidebar-foot strong{color:#111315}
html[data-theme="light"] body[data-wp-screen="BUSINESS-POS-V9"] .search-wrap input{color:#111315!important}
html[data-theme="light"] .wp-premium-business-header .wp-business-control{background:#fff!important;border-color:rgba(17,19,21,.12)!important}
html[data-theme="light"] body .wp-premium-business-header .wp-business-control .wp-workspace-select{background:transparent!important;color:#111315!important;color-scheme:light!important}

html[data-theme="light"] body.my-qr-page :is(.qr-blocked,.secondary-action){background:#fff!important;color:#111315!important;border-color:rgba(17,19,21,.12)!important}
html[data-theme="light"] body.my-qr-page :is(.qr-caption,.qr-note){color:#625c57}

@media(max-width:720px){
 html body[data-wp-screen] .wp-premium-business-header.wp-overflow-open{margin-bottom:10px!important}
 html body[data-wp-screen="BUSINESS-CHILD-V7"][data-wp-section="books"] .wp-premium-business-header.wp-overflow-open{margin-bottom:6px!important}
}

@media(max-width:720px){
 html body[data-wp-screen="BUSINESS-CHILD-V7"][data-wp-section="books"] .wp-premium-business-header{margin-bottom:6px!important}
}
