/* WA31_MULTI_ASSET_V1 */
.wa31ma-open{padding:12px 17px;border-radius:14px;border:1px solid #dcb771;background:linear-gradient(130deg,#f6d88e,#bb8740);color:#082b20;font-size:15px;font-weight:700;font-family:inherit;cursor:pointer;min-height:44px}
#wa31MultiRoot[hidden]{display:none!important}.wa31ma-shade{position:fixed;inset:0;z-index:99999;background:#02160dc9;display:grid;place-items:center;padding:16px;direction:rtl}
.wa31ma-dialog{width:min(980px,100%);max-height:92vh;overflow:auto;background:linear-gradient(145deg,#103e2f,#06281e);border:1px solid #ae8c50;border-radius:24px;padding:24px;color:#f5eac8;box-shadow:0 20px 70px #0008;font-family:Vazirmatn,Tahoma,sans-serif;font-size:16px;line-height:1.75}
.wa31ma-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.wa31ma-dialog h2{font-size:clamp(21px,2.4vw,30px);margin:0 0 15px}.wa31ma-dialog h3{font-size:20px;margin:22px 0 12px}.wa31ma-dialog small,.wa31ma-help{color:#bed7ca;font-size:13px}.wa31ma-dialog button{cursor:pointer;min-height:45px;padding:10px 18px;font-size:15px;font-weight:700;font-family:inherit;border-radius:12px;background:#1a4939;color:#f3e4bd;border:1px solid #997a42}.wa31ma-dialog button.primary{background:linear-gradient(110deg,#fbe0a0,#c18c45);color:#09291f}.wa31ma-dialog button:disabled{opacity:.5;cursor:default}
.wa31ma-progress{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.wa31ma-progress span{border:1px solid #386a52;padding:6px 12px;border-radius:50px;font-size:13px}.wa31ma-progress .on{background:#d6aa65;color:#103123}.wa31ma-field{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-weight:600}.wa31ma-field input,.wa31ma-field select,.wa31ma-asset input{background:#092c22;border:1px solid #4b7e65;border-radius:12px;color:#ffefcd;padding:11px 13px;font:inherit;min-height:44px}
.wa31ma-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:320px;overflow:auto}.wa31ma-asset{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;border:1px solid #396b56;border-radius:14px}.wa31ma-asset.disabled{opacity:.45}.wa31ma-asset div{display:flex;flex-direction:column;min-width:0}.wa31ma-asset strong{font-size:15px}.wa31ma-asset label{display:flex;align-items:center;gap:6px}.wa31ma-asset input{width:72px;text-align:center}.wa31ma-total,.wa31ma-actions,.wa31ma-summary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:17px 0}.wa31ma-total{font-size:20px}.wa31ma-lead{color:#cfdfd2}
.wa31ma-scroll{overflow:auto}.wa31ma-dialog table{border-collapse:collapse;width:100%;font-size:14px;min-width:590px}.wa31ma-dialog th,.wa31ma-dialog td{padding:10px 8px;text-align:right;border-bottom:1px solid #31634f}.wa31ma-dialog th{color:#f6cb80}.wa31ma-warning{background:#352f1e;border:1px solid #8a743e;padding:14px;border-radius:13px;color:#f4dfb8}.wa31ma-check{display:block;margin:14px 0}.wa31ma-check input{width:18px;height:18px;vertical-align:middle}.wa31ma-hash{overflow-wrap:anywhere;font-size:12px;color:#aecab8}.wa31ma-error{background:#582521;color:#fff4e8;padding:12px;border-radius:10px}.wa31ma-history{padding:10px;border-bottom:1px solid #396b56}
@media(max-width:680px){.wa31ma-dialog{padding:15px;border-radius:16px}.wa31ma-assets{grid-template-columns:1fr}.wa31ma-asset{padding:10px}.wa31ma-actions button{width:100%}}

/* WA31_MULTI_ASSET_CARD_ACTION_V2: visible next to each investment product. */
#wa31Studio .wa31-strategies .wa31-plans > .wa31ma-plan-shell { display:flex; flex-direction:column; gap:9px; min-width:0; align-self:stretch; }
#wa31Studio .wa31ma-plan-shell > .wa31-plan { width:100%; flex:1 1 auto; min-width:0; min-height:175px; }
#wa31Studio .wa31ma-plan-shell > .wa31ma-plan-action {
 width:100%; min-height:52px; border-radius:14px; cursor:pointer;
 border:1.5px solid #dcb771; background:linear-gradient(120deg,#f9df9e,#c89a56); color:#133427;
 font:700 clamp(14px,1vw,16px)/1.6 Vazirmatn,Tahoma,sans-serif; padding:10px 12px;
 box-shadow:0 6px 15px #03130d50; white-space:normal;
}
#wa31Studio .wa31ma-plan-shell > .wa31ma-plan-action:hover { filter:brightness(1.09); transform:translateY(-1px); }
#wa31Studio .wa31ma-plan-shell > .wa31ma-plan-action:focus-visible { outline:3px solid #fff4c4; outline-offset:3px; }
@media (max-width:480px){#wa31Studio .wa31ma-plan-shell > .wa31ma-plan-action{font-size:13px;min-height:54px;padding:8px;}}


/* WA31_INTEGRATED_MULTI_ASSET_V1 */
#wa31Overlay .wa31-integrated-mode{display:flex;gap:8px;flex-wrap:wrap;padding:6px;border-radius:16px;background:#082a20;margin:2px 0 18px;border:1px solid #3b6a53}
#wa31Overlay .wa31-integrated-mode button{flex:1 1 155px;min-height:50px;border-radius:12px;border:1px solid #5b7f68;color:#e5e9d8;background:#124536;font:700 16px/1.6 Vazirmatn,Tahoma,sans-serif;cursor:pointer}
#wa31Overlay .wa31-integrated-mode button.active{background:linear-gradient(115deg,#f6d897,#c69751);color:#082c21;border-color:#f6d897}
#wa31Overlay .wa31-integrated-note{font-size:15px;line-height:1.9;color:#cee0d5}
#wa31Overlay .wa31-integrated-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;max-height:48vh;overflow-y:auto;padding:3px}
#wa31Overlay .wa31-integrated-asset{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #42745e;border-radius:14px;padding:12px;background:#0a3429;min-width:0}
#wa31Overlay .wa31-integrated-asset span:first-child{display:flex;flex-direction:column;min-width:0}
#wa31Overlay .wa31-integrated-asset b{font-size:15px;color:#f7ecd5}
#wa31Overlay .wa31-integrated-asset small{font-size:11px;color:#93baa5;direction:ltr;text-align:right}
#wa31Overlay .wa31-integrated-weight{display:flex;align-items:center;gap:6px}
#wa31Overlay .wa31-integrated-weight input{width:75px;min-height:45px;padding:8px;border:1px solid #98794d;border-radius:10px;background:#09251e;color:#ffe9ae;text-align:center;font:700 17px Tahoma}
#wa31Overlay .wa31-integrated-weight input[aria-invalid=true]{border-color:#f17878}
#wa31Overlay .wa31-integrated-weight em{font-style:normal;color:#e8c67d}
#wa31Overlay .wa31-integrated-total{margin:16px 0;font-size:19px;color:#f9e3b2;display:flex;justify-content:space-between}
#wa31Overlay .wa31-integrated-total .wa31-invalid{color:#f39485}
#wa31Overlay .wa31-integrated-summary{font-size:16px;color:#f0e2c5;line-height:2;background:#123d31;border-radius:12px;padding:12px 16px;margin:12px 0}
#wa31Overlay .wa31-integrated-consent{display:block;font-size:16px;line-height:1.9;margin:15px 0}
#wa31Overlay .wa31-integrated-consent input{width:19px;height:19px;vertical-align:middle}
#wa31Overlay .wa31-integrated-table{overflow:auto;max-width:100%;margin:12px 0}
#wa31Overlay .wa31-integrated-table table{border-collapse:collapse;min-width:590px;width:100%;font-size:14px}
#wa31Overlay .wa31-integrated-table th,#wa31Overlay .wa31-integrated-table td{text-align:right;border-bottom:1px solid #34604e;padding:10px 8px}
#wa31Overlay .wa31-integrated-table th{color:#f3c980}
#wa31Studio .wa31ma-open,#wa31Studio .wa31ma-plan-action{display:none!important}
@media(max-width:680px){#wa31Overlay .wa31-integrated-assets{grid-template-columns:1fr}#wa31Overlay .wa31-integrated-mode button{font-size:14px}}

/* WA31_MODAL_FLOW_REPAIR_V1 */
#wa31Overlay .wa31-integrated-asset-pick{background:transparent;color:#e8f2e8;border:0;text-align:right;min-width:0;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:8px;flex:1}
#wa31Overlay .wa31-integrated-asset-pick b{font-size:16px;line-height:1.75}
#wa31Overlay .wa31-integrated-asset-pick small{font-size:12px;opacity:.8}
#wa31Overlay .wa31-integrated-asset-pick[aria-pressed="true"]{color:#f3d695}
#wa31Overlay .wa31-integrated-asset-pick:focus-visible{outline:2px solid #f3d695;border-radius:8px}
