/* MG PRO v3.5 finance and coupon — isolated selectors, responsive, no external dependency */
.mgpa-overlay[hidden],.mgpa-admin[hidden]{display:none!important}
.mgpa-overlay{position:fixed;inset:0;z-index:450;background:#0d041bd9;display:grid;place-items:center;padding:15px;backdrop-filter:blur(7px)}
.mgpa-dialog{width:min(460px,100%);max-height:92vh;overflow-y:auto;padding:26px;border:1px solid #ae73ec;border-radius:24px;background:linear-gradient(155deg,#38115d,#1d0a37);box-shadow:0 25px 90px #000a;color:#fff;font-family:inherit}
.mgpa-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mgpa-dialog h2{font-size:24px;margin:0}.mgpa-dialog-head button{border:0;background:transparent;color:#fff;font-size:30px;padding:0 8px}.mgpa-dialog p{color:#e0cbea;font-size:14px;margin:15px 0}
.mgpa-choice{display:flex;gap:12px;flex-wrap:wrap}.mgpa-choice label{background:#291045;border:1px solid #7b4bb4;border-radius:12px;padding:10px;cursor:pointer;display:flex;align-items:center;gap:8px}.mgpa-choice input{accent-color:#bc62ff;width:16px;height:16px;min-height:16px}
.mgpa-field{display:flex;flex-direction:column;gap:5px;font-weight:650;font-size:13px;min-width:0}.mgpa-field span{color:#dfc6ff}.mgpa-field input,.mgpa-field select,.mgpa-generated textarea{box-sizing:border-box;width:100%;border:1px solid #9770c6;background:#1d0c34;color:#fff;border-radius:12px;min-height:42px;padding:10px;font:inherit;direction:ltr;text-align:left}
#mgpaCouponField{margin:16px 0}#mgpaCouponField[hidden]{display:none}.mgpa-total{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#221034;padding:12px 15px;border-radius:14px;border:1px solid #946ac8;margin-top:17px}.mgpa-total strong{color:#d1a4ff;font-size:24px}
.mgpa-btn{display:inline-flex;align-items:center;justify-content:center;background:#4f2873;color:white;border:1px solid #be8cff;padding:10px 15px;min-height:42px;border-radius:12px;font:inherit;font-weight:750;cursor:pointer;white-space:normal;text-align:center}
.mgpa-btn.primary{background:linear-gradient(115deg,#7b25d2,#b54bfd);box-shadow:0 5px 14px #7609c944}.mgpa-btn.secondary{background:#351a58}.mgpa-btn:disabled{opacity:.55;cursor:not-allowed}
#mgpaContinueCheckout{width:100%;margin:8px 0}.mgpa-hint{font-size:13px;margin-top:7px;color:#ffbbd3}.mgpa-hint.good{color:#6dffd0}.mgpa-error{color:#ffb1bd!important;min-height:17px;margin:6px 0!important}.mgpa-footnote{font-size:12px!important;color:#bda6da!important;margin-bottom:0!important}
.mgpa-admin{direction:rtl;text-align:right;color:#f9f4ff;width:100%;overflow:hidden}.mgpa-panel-ready>.mgpa-hidden-legacy{display:none!important}.mgpa-panel-ready>.mgpa-admin{display:block}
.mgpa-admin-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px}.mgpa-admin-head h2{font-size:clamp(20px,2.4vw,28px);margin:3px 0}.mgpa-admin-head p{color:#c2aadc;font-size:13px;margin:0}.mgpa-kicker{color:#d698ff;font-size:12px;letter-spacing:.07em;font-weight:800}
.mgpa-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.mgpa-summary-card{background:linear-gradient(140deg,#481c7b,#24103e);border:1px solid #8156b4;border-radius:16px;padding:19px;min-width:0}.mgpa-summary-card span{display:block;font-size:12px;color:#cdb7e8;line-height:1.4}.mgpa-summary-card strong{font-size:clamp(19px,2vw,29px);overflow-wrap:anywhere;display:block;padding-top:8px}
.mgpa-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid #8052ae;padding-bottom:13px;margin-bottom:20px}.mgpa-tab{background:transparent;border:1px solid #7752a8;color:#d4bde9;padding:10px 12px;border-radius:12px;font:inherit;cursor:pointer;font-weight:650;font-size:13px}.mgpa-tab.active{background:#7536ad;color:white;border-color:#bb6dff}
.mgpa-section{padding:20px;border-radius:17px;border:1px solid #6e458f;background:#1f0c39a8;margin:15px 0 20px}.mgpa-section h3{font-size:18px;margin:0 0 8px}.mgpa-desc{font-size:12px;color:#c7afdf;line-height:1.7;margin:5px 0 12px}.mgpa-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.mgpa-section>.mgpa-btn{margin:6px 6px 6px 0}
.mgpa-table-wrap{overflow-x:auto;width:100%;margin-top:12px}.mgpa-table{width:100%;border-collapse:collapse;font-size:12px;min-width:740px}.mgpa-table th,.mgpa-table td{padding:11px 12px;text-align:right;border-bottom:1px solid #634481;vertical-align:middle;overflow-wrap:anywhere}.mgpa-table th{color:#d9b5ff;background:#341755}.mgpa-table tbody tr:hover{background:#401e5e66}.mgpa-actions{display:flex;flex-wrap:wrap;gap:7px}.mgpa-actions .mgpa-btn{font-size:11px;min-height:32px;padding:7px 10px}
.mgpa-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}.mgpa-info{background:#32104e;border:1px solid #66408b;border-radius:12px;padding:13px;min-width:0}.mgpa-info small{display:block;color:#cab6df}.mgpa-info strong{display:block;font-size:19px;overflow-wrap:anywhere;margin-top:4px}.mgpa-generated{border:1px solid #7e50aa;padding:13px;margin-top:10px;background:#36105a;border-radius:13px}.mgpa-generated[hidden]{display:none}.mgpa-generated textarea{min-height:65px;margin:9px 0}.mgpa-admin-notice{font-size:11px;color:#c2aadc;text-align:center;margin:10px}
@media(max-width:1000px){.mgpa-summary,.mgpa-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.mgpa-admin-head{flex-direction:column;align-items:stretch}.mgpa-form-grid{grid-template-columns:1fr}.mgpa-section{padding:15px}.mgpa-summary-card{padding:12px}.mgpa-dialog{padding:18px}.mgpa-tab{flex:1;min-width:110px}.mgpa-info strong{font-size:16px}}
