/* Shared secondary actions for customer and administrator views. */
:root{--jf-action-fill:#edf3ff;--jf-action-hover:#e2ebff;--jf-action-border:#dbe5fa;--jf-action-hover-border:#b6caf1;--jf-action-text:#365cbb}
html[data-theme=dark]{--jf-action-fill:#263b59;--jf-action-hover:#314c70;--jf-action-border:#425a7c;--jf-action-hover-border:#617fab;--jf-action-text:#b1ceff}
body :is(button,a,input).jf-secondary-action{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 box-sizing:border-box!important;min-height:32px!important;height:auto!important;min-width:32px!important;
 padding:5px 13px!important;border:1px solid var(--jf-action-border)!important;border-radius:8px!important;
 background-color:var(--jf-action-fill)!important;background-image:none!important;color:var(--jf-action-text)!important;
 font-family:inherit!important;font-size:14px!important;font-weight:600!important;line-height:20px!important;
 text-align:center!important;text-decoration:none!important;text-shadow:none!important;white-space:nowrap!important;
 box-shadow:none!important;vertical-align:middle;
 transition:background .15s ease,border-color .15s ease,color .15s ease!important;
}
body :is(button,a,input).jf-secondary-action:hover:not(:disabled):not([aria-disabled="true"]){background-color:var(--jf-action-hover)!important;border-color:var(--jf-action-hover-border)!important;color:var(--jf-action-text)!important;transform:none!important}
body :is(button,a,input).jf-secondary-action:active:not(:disabled):not([aria-disabled="true"]){background-color:var(--jf-action-hover)!important;transform:none!important}
body :is(button,a,input).jf-secondary-action:focus-visible{outline:2px solid #729dff;outline-offset:3px}
body :is(button,a,input).jf-secondary-action:disabled,body .jf-secondary-action[aria-disabled="true"]{opacity:.45!important;cursor:default}
body .jf-secondary-action svg{width:16px!important;height:16px!important;flex:none}
body .jf-secondary-action.admin-edit-icon{padding:5px 7px!important}
body :is([data-pf-action="bill"],#cryptoFlowBill).jf-secondary-action{width:auto!important;justify-self:start;align-self:start}
#historyRows .history-service{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important;column-gap:12px!important;min-width:0;min-height:44px}
#historyRows .history-service>img{display:block!important;width:64px!important;min-width:64px!important;max-width:64px!important;height:42px!important;max-height:42px!important;object-fit:contain!important;object-position:center!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;justify-self:center}
#historyRows .history-service>strong{display:block!important;min-width:0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:700px){
 #historyRows .history-service{grid-template-columns:48px minmax(0,1fr)!important;column-gap:10px!important;min-height:38px}
 #historyRows .history-service>img{width:48px!important;min-width:48px!important;max-width:48px!important;height:34px!important;max-height:34px!important}
}
@media(pointer:coarse){body :is(button,a,input).jf-secondary-action{min-height:40px!important;padding-top:9px!important;padding-bottom:9px!important}}
@media(prefers-reduced-motion:reduce){body .jf-secondary-action{transition:none!important}}



/* Success-sheet actions keep the approved full-width, equal-size layout. */
body #portalModal .payment-flow-actions button:is([data-pf-action="done"],[data-pf-action="bill"]){box-sizing:border-box;min-height:44px!important;width:100%!important;height:auto!important;padding:11px 15px!important;border-width:1px;border-style:solid;border-radius:10px!important;font-size:14px!important;font-weight:600!important;line-height:20px!important;justify-self:stretch;align-self:stretch;margin:0}
body #portalModal .payment-flow-actions{gap:10px}
body #portalModal .payment-flow-actions .payment-flow-again{margin-top:5px}
