/* Presentation only: customer renewal and change-plan workspaces. */
@media screen and (max-width:900px){
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) [hidden]{display:none!important}
 body.portal-shell :is(#subscriber-renew-dialog,#subscriber-edit-dialog).remaining-inline{width:100%;max-width:100%;max-height:none;overflow:visible;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form){min-width:0;max-width:100%;overflow:visible;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>header{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:10px;padding:14px!important;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>header>div{min-width:0;max-width:100%;width:100%}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>header>button{order:-1;align-self:flex-start;justify-self:start;width:auto!important;min-width:76px;min-height:44px!important;height:auto!important;padding:10px 14px!important;white-space:normal;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>header .kicker{font-size:10px;letter-spacing:.08em;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>header h2{font-size:clamp(22px,5vw,28px)!important;line-height:1.25;margin:4px 0 6px;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>header p{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;min-width:0;max-width:100%}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip>div{min-width:0;padding:12px;gap:5px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip :is(small,b){max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip small{font-size:10px;letter-spacing:.04em}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip b{font-size:13px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-workspace{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px;padding:12px;min-width:0;max-width:100%;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) :is(.renewal-panel,.manual-payment-box,.manual-payment-grid,.master-grid){min-width:0;max-width:100%;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading{padding:12px;gap:10px;align-items:flex-start;flex-wrap:wrap}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading>div{min-width:0;max-width:100%;align-items:flex-start}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading>div>span{flex-shrink:0}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading h3{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .master-grid.two{display:grid;grid-template-columns:minmax(0,1fr)!important;padding:12px;gap:14px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .master-grid.two>label{min-width:0;max-width:100%;gap:6px;line-height:1.5}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .master-grid.two>label.full{grid-column:1}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){width:100%;min-width:0;max-width:100%;min-height:44px!important;height:auto;font-size:16px;line-height:1.4;box-sizing:border-box;scroll-margin-block:140px 20px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) textarea{min-height:80px;resize:vertical}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-breakdown>div{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:10px;padding:12px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-breakdown :is(dt,dd){min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-size:14px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-breakdown dd{text-align:right;font-variant-numeric:tabular-nums}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-breakdown .renewal-total dd{font-size:20px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) :is(.renewal-wallet-summary,.renewal-last-invoice,.renewal-payment-note){min-width:0;max-width:100%;padding:12px;box-sizing:border-box;overflow-wrap:anywhere;line-height:1.5}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) :is(.renewal-wallet-summary,.renewal-last-invoice)>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-rule{margin:0 12px 12px;padding:12px;line-height:1.5;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-payment-box{padding:12px!important;margin:12px;line-height:1.5}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-payment-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-payment-box label{min-width:0;gap:6px;line-height:1.5}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-received{display:flex;flex-direction:row;align-items:flex-start!important;gap:10px!important;line-height:1.5;white-space:normal}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-received input[type=checkbox]{width:18px!important;min-width:18px;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:2px 0 0;padding:0!important}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-payment-box :is(p,h3){overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>footer{position:static!important;display:grid!important;grid-template-columns:minmax(70px,.55fr) minmax(0,1.45fr)!important;gap:8px;align-items:stretch;padding:12px!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;min-width:0;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>footer>button{width:100%;min-width:0;min-height:44px!important;height:auto!important;padding:10px!important;font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.4;box-sizing:border-box;scroll-margin-block:140px 20px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) :is([role=alert],[data-plan-eligibility],[data-plan-form-error]){max-width:100%;overflow-wrap:anywhere;line-height:1.5}
}
