/* Only the first command operations; shared shell and other modals retain their own layout. */
html body dialog.bank-visual-dialog{padding:0!important;overflow-x:hidden!important;box-sizing:border-box;isolation:isolate}
html body dialog.bank-visual-dialog > .bank-operation-hero{display:block;position:relative;width:100%;aspect-ratio:2/1;margin:0 0 10px!important;padding:0;border:0;overflow:hidden;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;background:#081c35}
html body dialog.bank-visual-dialog > .bank-operation-hero[hidden]{display:none!important}
html body dialog.bank-visual-dialog > .bank-operation-hero img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover;object-position:center;border:0;border-radius:0;margin:0;padding:0}
html body dialog.bank-visual-dialog > :not(.bank-operation-hero):not(.bank-operation-close):not(.unipay-notification-toast-host){margin-left:12px!important;margin-right:12px!important;max-width:calc(100% - 24px);box-sizing:border-box}
html body dialog.bank-visual-dialog .bank-operation-accessible-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important}
html body dialog.bank-visual-dialog .bank-operation-original-heading{position:absolute;top:7px;right:7px;left:auto;width:auto!important;max-width:none;margin:0!important;padding:0!important;border:0;background:none;z-index:2}
html body dialog.bank-visual-dialog .bank-operation-original-heading > button{visibility:hidden}
html body dialog.bank-visual-dialog .bank-operation-intro{display:none!important}
html body dialog.bank-visual-dialog > .bank-operation-close{position:absolute;top:7px;right:7px;width:36px;height:36px;min-width:36px;min-height:36px;display:grid;place-items:center;padding:0;border:1px solid #8bdff577;border-radius:10px;background:#061a32e8;color:#e6fbff;font:25px/1 system-ui;z-index:5;cursor:pointer}
html body dialog.bank-visual-dialog > footer{margin-top:10px;margin-bottom:10px}
html body dialog.bank-visual-dialog select{max-width:100%;min-width:0;box-sizing:border-box}
@media(max-width:600px){html body dialog.bank-visual-dialog > :not(.bank-operation-hero):not(.bank-operation-close):not(.unipay-notification-toast-host){margin-left:10px!important;margin-right:10px!important;max-width:calc(100% - 20px)}html body dialog.bank-visual-dialog label{font-size:12px}html body dialog.bank-visual-dialog > .bank-operation-hero{aspect-ratio:2/1}}

/* Full-width top banners inside the existing banking modal frames. */
html body .bank-context-surface{isolation:isolate}
html body .bank-context-surface:not(dialog){position:relative}
html body .bank-context-surface > .bank-context-hero{position:relative;display:block;flex:none;box-sizing:border-box;width:calc(100% + var(--bank-context-left,0px) + var(--bank-context-right,0px))!important;max-width:none!important;height:clamp(130px,24vw,240px);min-height:0;margin:calc(-1 * var(--bank-context-top,0px)) calc(-1 * var(--bank-context-right,0px)) 12px calc(-1 * var(--bank-context-left,0px))!important;padding:0!important;border:0!important;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden;clear:both;background:#071b32;grid-column:1/-1}
html body .bank-context-surface > .bank-context-hero img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:cover;object-position:center}
html body .bank-context-surface > .bank-context-close{position:absolute!important;inset:7px 7px auto auto!important;display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;margin:0!important;padding:0!important;border:1px solid #99edf888;border-radius:10px;background:#06182fed;color:#edfcff;font:25px/1 system-ui,sans-serif;cursor:pointer;z-index:8;transform:none!important}
html body .bank-context-close:focus-visible{outline:2px solid #a7f8ff;outline-offset:2px}
html body #modal-agent-status[data-agent-status-layout] > .modal-content.bank-context-surface{grid-template-rows:auto auto minmax(0,1fr)!important}
html body #modal-agent-status > .bank-context-surface > .bank-context-hero{height:clamp(120px,23vw,210px);margin-bottom:0!important}
html body .agent-control-dialog.bank-context-surface > .bank-context-hero{height:clamp(120px,22vw,200px);margin-bottom:0!important;flex-shrink:0}
html body dialog.bank-visual-dialog > .bank-operation-hero.bank-operation-result-header{display:block!important;aspect-ratio:3/1;max-height:120px}
@media(max-width:600px){html body .bank-context-surface > .bank-context-hero{height:auto;aspect-ratio:2/1;max-height:200px}html body .agent-control-dialog.bank-context-surface > .bank-context-hero,html body #modal-agent-status > .bank-context-surface > .bank-context-hero{height:auto;aspect-ratio:2.5/1;max-height:160px}}
