/* ============================================================
   NEST IN - RENT PAYMENT MODAL POLISH V1
   Applies only to #nrpModal.
   ============================================================ */

#nrpModal{
  padding:16px;
}

#nrpModal .ni-dialog{
  width:min(760px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);

  display:flex;
  flex-direction:column;

  overflow:hidden;

  border-radius:22px;

  box-shadow:
    0 28px 70px
    rgba(15,36,31,.28);
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

#nrpModal .ni-modal-head{
  flex:0 0 auto;

  padding:17px 22px 16px;
}

#nrpModal .ni-modal-kicker{
  margin-bottom:3px;
  font-size:9px;
  letter-spacing:.09em;
}

#nrpModal .ni-modal-head h2{
  margin:0;
  font-size:23px;
  line-height:1.15;
}

#nrpModal .ni-modal-head p{
  margin:6px 0 0;
  font-size:11px;
  opacity:.92;
}


/* ------------------------------------------------------------
   SCROLLABLE BODY
   ------------------------------------------------------------ */

#nrpModal #nrpForm{
  flex:1 1 auto;
  min-height:0;

  overflow-y:auto;
  overflow-x:hidden;

  overscroll-behavior:contain;
  scrollbar-gutter:stable;

  padding:18px 22px 0;
}


/* ------------------------------------------------------------
   SUMMARY CARDS
   ------------------------------------------------------------ */

#nrpModal .ni-modal-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;

  margin-bottom:12px;
}

#nrpModal .ni-modal-stat{
  min-height:70px;
  padding:12px 13px;

  border-radius:14px;
}

#nrpModal .ni-modal-stat span{
  font-size:9px;
  letter-spacing:.045em;
}

#nrpModal .ni-modal-stat strong{
  margin-top:5px;
  font-size:17px;
  line-height:1.15;
}


/* ------------------------------------------------------------
   INFORMATION NOTE
   ------------------------------------------------------------ */

#nrpModal .ni-note{
  margin:0 0 12px;
  padding:10px 12px;

  border-radius:11px;

  font-size:10.5px;
  line-height:1.45;
}


/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */

#nrpModal .ni-form-grid{
  gap:11px 14px !important;
  margin-top:10px !important;
}

#nrpModal .ni-field label{
  margin-bottom:6px;

  font-size:10.5px;
  font-weight:800;
}

#nrpModal .ni-field input,
#nrpModal .ni-field select{
  min-height:44px;
  height:44px;

  border-radius:11px;

  font-size:13px;
}

#nrpModal .ni-field textarea{
  min-height:72px;
  max-height:120px;

  border-radius:11px;

  resize:vertical;
}


/* ------------------------------------------------------------
   QUICK AMOUNT BUTTONS
   ------------------------------------------------------------ */

#nrpModal #nrpQuickAmounts{
  display:flex !important;
  align-items:center;
  gap:6px !important;

  flex-wrap:nowrap !important;

  margin-top:8px !important;

  overflow-x:auto;
  padding-bottom:2px;
}

#nrpModal #nrpQuickAmounts .btn{
  flex:0 0 auto;

  min-height:34px;

  padding:7px 11px;

  border-radius:9px;

  font-size:10.5px;
  font-weight:800;

  white-space:nowrap;
}


/* ------------------------------------------------------------
   DATE HELPER
   ------------------------------------------------------------ */

#nrpModal #nrpPaidOnReadable{
  margin-top:4px !important;
  font-size:10px;
}


/* ------------------------------------------------------------
   MESSAGE
   ------------------------------------------------------------ */

#nrpModal #nrpMessage{
  margin-top:10px;
}


/* ------------------------------------------------------------
   STICKY FOOTER
   ------------------------------------------------------------ */

#nrpModal .ni-modal-actions{
  position:sticky;
  bottom:0;
  z-index:3;

  display:flex;
  justify-content:flex-end;
  gap:8px;

  margin-top:12px;

  padding:12px 0 16px;

  border-top:1px solid #e6ece9;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.95),
      #fff 28%
    );
}

#nrpModal .ni-modal-actions .btn{
  min-height:40px;

  padding:9px 15px;

  border-radius:10px;

  font-size:12px;
  font-weight:800;
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width:760px){

  #nrpModal{
    padding:10px;
  }

  #nrpModal .ni-dialog{
    width:calc(100vw - 20px);
    max-height:calc(100dvh - 20px);

    border-radius:18px;
  }

  #nrpModal .ni-modal-head{
    padding:15px 16px;
  }

  #nrpModal #nrpForm{
    padding:14px 16px 0;
  }

}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width:560px){

  #nrpModal .ni-modal-summary{
    grid-template-columns:1fr;
  }

  #nrpModal .ni-form-grid{
    grid-template-columns:1fr !important;
  }

  #nrpModal .ni-field.full{
    grid-column:auto !important;
  }

  #nrpModal #nrpQuickAmounts{
    flex-wrap:wrap !important;
    overflow:visible;
  }

  #nrpModal .ni-modal-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  #nrpModal .ni-modal-actions .btn{
    width:100%;
  }

}


/* ============================================================
   NESTIN_QUICK_AMOUNT_DISABLED_STYLE_V2
   ============================================================ */

#nrpModal #nrpQuickAmounts .btn:disabled{
  opacity:.52;

  cursor:not-allowed;

  color:#74837e;
  background:#f1f4f3;
  border-color:#dde5e2;

  box-shadow:none;
}

#nrpModal #nrpQuickAmounts .btn:disabled:hover{
  color:#74837e;
  background:#f1f4f3;
  border-color:#dde5e2;

  transform:none;
}

