/* Shared refinement uses FF Pay's existing theme tokens. */
.cx-home{padding-top:20px}.cx-home button{font:inherit;cursor:pointer;color:var(--t1)}.cx-greeting h1{font-size:22px;line-height:1.3;margin:0;color:var(--t1);letter-spacing:-.5px}.cx-greeting p{font-size:13px;line-height:1.6;color:var(--t2);margin:8px 0 18px}.cx-balance{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:15px 18px;background:var(--surf);border:1px solid var(--line);border-radius:18px;text-align:left}.cx-balance>span:first-child{font-size:12px;color:var(--t2)}.cx-balance strong{display:block;font-size:21px;color:var(--t1);margin-top:4px;letter-spacing:-.5px}.cx-cta{color:var(--blue);font-weight:650;font-size:12px;display:inline-flex;align-items:center;gap:6px}.cx-home svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.cx-section{margin-top:26px}.cx-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.cx-section h2{font-size:16px;margin:0;color:var(--t1)}.cx-section-head button,.cx-refresh-note button,.cx-empty button{color:var(--blue);border:0;background:none;font-size:12px;padding:6px}.cx-actions,.cx-hauls{display:grid;gap:10px}.cx-action,.cx-order,.cx-update{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;background:var(--surf);border:1px solid var(--line);border-radius:16px;padding:15px}.cx-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;border-radius:12px;color:var(--blue);background:var(--blue-bg,rgba(37,99,235,.08))}.cx-copy{flex:1;min-width:0}.cx-copy strong{display:block;font-size:13px;line-height:1.45;color:var(--t1)}.cx-copy small{display:block;font-size:12px;color:var(--t2);line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.cx-copy .cx-cta{margin-top:8px}.cx-order{margin-bottom:9px;align-items:center}.cx-order>svg{width:17px;color:var(--t3)}.cx-photo{width:56px;height:56px;flex-shrink:0;overflow:hidden;border-radius:12px;background:var(--b1)}.cx-photo img{width:100%;height:100%;object-fit:cover}.cx-photo-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--t3)}.cx-status{display:inline-block;font-size:11px;background:var(--b1);color:var(--t2);padding:4px 7px;border-radius:6px;margin-top:6px}.cx-discover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cx-discovery{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surf);padding:10px;text-align:left;overflow:hidden}.cx-discovery-photo{display:block;height:145px;border-radius:10px;background:var(--b1);overflow:hidden;margin-bottom:10px}.cx-discovery img{height:100%;width:100%;object-fit:contain}.cx-discovery small{font-size:10px;color:var(--blue)}.cx-discovery strong{display:block;font-size:13px;line-height:1.4;margin:5px 0;color:var(--t1)}.cx-discovery>span:last-child{font-size:11px;color:var(--t3)}.cx-update{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:14px 0}.cx-update small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cx-update time{display:block;font-size:10px;color:var(--t3);margin-top:6px}.cx-empty,.cx-refresh-note{font-size:12px;color:var(--t2);line-height:1.6}.cx-empty{padding:14px;background:var(--surf);border:1px solid var(--line);border-radius:16px}.cx-empty button{display:block;margin-top:5px}.cx-explore-link{background:none;border:0;color:var(--blue)!important;padding:18px 0}.cx-refresh-note{margin:10px 0}.cx-home [hidden]{display:none!important}
#pPay .pay-balance{margin-bottom:4px}#pPay .pay-purchasing-value{display:block;font-size:12px;color:var(--t3);margin:0 0 15px;line-height:1.5}#pPay .pay-purchasing-value[hidden]{display:none}
#pActivity .cx-activity-heading{display:block;padding:16px 0 12px;margin-bottom:0;background:none;border:0;box-shadow:none}#pActivity .cx-activity-heading .sec-t{margin-bottom:6px}#pActivity .filter-row{overflow-x:auto;display:flex;gap:8px;flex-wrap:nowrap;scrollbar-width:none;padding-bottom:5px}#pActivity .filter-row .fbtn{flex-shrink:0}#pActivity .cx-activity-tools{display:flex;align-items:center;gap:8px;margin-bottom:12px}#pActivity .cx-activity-tools input{min-width:0;flex:1;width:100%;height:44px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surf)}#pActivity .cx-calendar{display:flex;align-items:center;justify-content:center;height:44px;width:44px;flex-shrink:0;border:1px solid var(--line);border-radius:12px;background:var(--surf);color:var(--t2)}#pActivity .cx-calendar svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8}#pActivity .cx-date-panel{padding:12px;background:var(--surf);border:1px solid var(--line);border-radius:12px;margin-bottom:10px;max-width:280px}#pActivity .cx-date-panel label{display:block;font-size:12px;color:var(--t2);margin-bottom:7px}#pActivity .cx-date-panel input{width:100%;min-width:0;min-height:44px;padding:9px;background:var(--surf);color:var(--t1);border:1px solid var(--line);border-radius:8px}#pActivity .cx-date-chip{display:inline-flex;gap:9px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:5px 6px 5px 12px;margin-bottom:10px;color:var(--t2);font-size:12px;background:var(--surf)}#pActivity .cx-date-chip button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;background:none;color:var(--t2);font-size:20px}#pActivity [hidden]{display:none!important}
#pProfile .pcard{align-items:center;gap:12px}#pProfile .profileEmail{overflow-wrap:anywhere;text-decoration:none!important}#pProfile #tier2Badge{display:none}#pProfile #kycBadge{display:none}#pProfile .prow{padding:13px 16px;min-height:64px}#pProfile .psub{line-height:1.45}#pProfile .thbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px}#pProfile .thbtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}#pProfile .profileName{font-size:17px}#pProfile .pcard>div:nth-child(2){min-width:0;margin-left:0!important}.cx-address-action{cursor:pointer}
/* Prevent focus zoom throughout FF Pay and the embedded Shop without disabling zoom. */
input,select,textarea{box-sizing:border-box;max-width:100%}textarea{overflow-wrap:anywhere}input[type=date]{min-width:0} .sheet,.pay-sheet,.modal-content,.detail-view{max-width:100%;box-sizing:border-box}
@media(max-width:767px){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea,[contenteditable=true]{font-size:16px!important} .inpw,.field,.pay-field{min-width:0}.sheet.on{max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain}#payPurchaseDialog .pay-sheet{max-height:calc(100dvh - 16px)}#pProfile .pcard{padding:16px}.cx-greeting h1{font-size:20px}}
@media(min-width:768px){.cx-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.cx-discover-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cx-hauls{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Shop address manager reuses the audited address editor and API. */
#customerAddressView .cx-address-list{display:grid;gap:12px;padding:20px;max-width:760px;margin:auto}#customerAddressView .cx-address-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow-wrap:anywhere}#customerAddressView .cx-address-card p{font-size:13px;line-height:1.6;margin:7px 0;color:var(--muted)}#customerAddressView .cx-address-card .secondary{margin-right:8px}#customerAddressView [hidden]{display:none!important}

@media(max-width:767px){.overlay.active .sheet{max-height:calc(100dvh - 52px)}}

.cx-balance-link{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;background:none;border:0;padding:0;text-align:left}.cx-balance-link>span:first-child{font-size:12px;color:var(--t2)}.cx-balance-eye{width:34px;height:34px;border:0;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--b1);color:var(--t2)!important}#customerAddressView .detail-topbar{background:var(--surface);color:var(--ink)}
