/* STI v2.4.332 — Fees custom amount: clear selection, readable input and validation.
   Optional amount panel is accessible on desktop; visual polish scoped to <=700px. */
.mye-student-portal .mye-pay-custom.is-open{
  flex-direction:column!important;
  align-items:stretch!important;
  gap:5px!important;
  width:100%!important;
}
.mye-student-portal .mye-pay-amount-label{
  display:block;
  align-self:flex-start;
  font-size:11px;
  font-weight:800;
  color:#344b70;
}
.mye-student-portal .mye-pay-amount-field{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #cedbf2;
  border-radius:10px;
  padding:0 12px;
  background:#fff;
  width:100%;
  max-width:300px;
}
.mye-student-portal .mye-pay-amount-field .mye-pay-amount{
  width:100%!important;
  min-width:0!important;
  flex:1 1 auto!important;
  border:0!important;
  box-shadow:none!important;
  text-align:left!important;
  padding:0!important;
  background:transparent!important;
  font-variant-numeric:tabular-nums;
}
.mye-student-portal .mye-pay-amount-field input[type="number"]{-moz-appearance:textfield;appearance:textfield;}
.mye-student-portal .mye-pay-amount-field input[type="number"]::-webkit-outer-spin-button,
.mye-student-portal .mye-pay-amount-field input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.mye-student-portal .mye-pay-amount-field:focus-within{
  border-color:#356ce8;
  box-shadow:0 0 0 3px rgba(49,92,246,.12);
}
.mye-student-portal .mye-pay-amount-field:has(input[aria-invalid="true"]){
  border-color:#de5858;
  background:#fffafa;
}
.mye-student-portal .mye-pay-limit,
.mye-student-portal .mye-pay-input-error{
  display:block;
  width:100%;
  text-align:left;
  font-size:10px;
  line-height:1.4;
}
.mye-student-portal .mye-pay-limit{color:#65758d;}
.mye-student-portal .mye-pay-input-error{color:#b42318;font-weight:700;}
.mye-student-portal .mye-pay-input-error:empty{display:none;}
.mye-student-portal .mye-pay-razorpay-btn:disabled{opacity:.6;cursor:not-allowed!important;transform:none!important;}
@media(max-width:700px){
  body .mye-student-portal .mye-pay-custom-wrap{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:6px!important;
  }
  body .mye-student-portal .mye-pay-custom-toggle{
    min-height:44px!important;
    text-align:left!important;
    padding:10px 12px!important;
    border-radius:10px!important;
  }
  body .mye-student-portal .mye-pay-custom-wrap .mye-pay-custom.is-open{
    padding:12px!important;
    margin-top:2px!important;
    border:1px solid #d9e6f9!important;
    border-radius:11px!important;
    background:#f8fbff!important;
    gap:8px!important;
  }
  body .mye-student-portal .mye-pay-amount-label{
    font-size:11px!important;
    line-height:1.35!important;
  }
  body .mye-student-portal .mye-pay-amount-field{
    max-width:none!important;
    width:100%!important;
    min-height:49px!important;
    border-radius:10px!important;
    gap:9px!important;
  }
  body .mye-student-portal .mye-pay-amount-field .mye-currency{
    height:auto!important;
    font-size:17px!important;
    font-weight:900!important;
  }
  body .mye-student-portal .mye-pay-amount-field .mye-pay-amount{
    font-size:17px!important;
    min-height:46px!important;
    font-weight:850!important;
  }
  body .mye-student-portal .mye-rzp-rail-amount strong{
    font-variant-numeric:tabular-nums!important;
  }
  body .mye-student-portal .mye-rzp-pay-main{
    font-size:12.5px!important;
    white-space:normal!important;
    text-wrap:balance!important;
  }
  body .mye-student-portal .mye-rzp-pay-arrow{flex:0 0 auto!important;}
  body .mye-student-portal .mye-pay-input-error,
  body .mye-student-portal .mye-pay-limit{font-size:10.5px!important;}
  body .mye-student-portal .mye-pay-custom.is-open,
  body .mye-student-portal .mye-pay-razorpay-btn{
    scroll-margin-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important;
  }
}
