/* WanTopup v84.99ez — restore roomy popup fields + tidy About reference cards.
   Visual-only. Checkout/payment logic and package prices are untouched. */

/* Popup: same full-width field layout on desktop and mobile. */
body #wtpAgentModal .wtp-agent-modal-dialog{
  box-sizing:border-box!important;
  width:min(94vw,540px)!important;
  max-width:540px!important;
  max-height:calc(100dvh - 16px)!important;
  padding:18px 18px 14px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
body #wtpAgentModal .wtp-popup-fields.wtp-popup-fields-original{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  width:100%!important;
  margin:4px 0 2px!important;
}
body #wtpAgentModal .wtp-popup-fields-original .wtp-popup-field{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
body #wtpAgentModal .wtp-popup-fields-original .wtp-popup-field label{
  margin:0!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
body #wtpAgentModal .wtp-popup-fields-original .wtp-popup-field input:not([type=hidden]){
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  height:48px!important;
  padding:10px 13px!important;
  border-radius:12px!important;
  font-size:16px!important;
  line-height:1.2!important;
  box-sizing:border-box!important;
}
body #wtpAgentModal .wtp-agent-submit{
  min-height:48px!important;
  height:auto!important;
  padding:11px 16px!important;
  margin-top:6px!important;
  font-size:15px!important;
}
/* Keep package picker readable and identical in structure on all viewports. */
body #wtpAgentModal .wtp-popup-package-picker{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
}
body #wtpAgentModal .wtp-popup-package-option{
  min-height:76px!important;
  padding:8px 5px!important;
}
@media(max-width:640px){
  body #wtpAgentModal{padding:6px!important;}
  body #wtpAgentModal .wtp-agent-modal-dialog{
    width:calc(100vw - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    padding:14px 12px 10px!important;
    border-radius:16px!important;
  }
  body #wtpAgentModal .wtp-popup-fields.wtp-popup-fields-original{gap:8px!important;}
  body #wtpAgentModal .wtp-popup-fields-original .wtp-popup-field input:not([type=hidden]){
    min-height:46px!important;
    height:46px!important;
    font-size:16px!important;
  }
  body #wtpAgentModal .wtp-popup-package-option{min-height:72px!important;}
}
/* Extremely short viewports may scroll the dialog itself rather than trapping a
   hidden/inner form area. This preserves access to every field and submit button. */
@media(max-height:620px){
  body #wtpAgentModal .wtp-agent-modal-dialog{overflow-y:auto!important;}
  body #wtpAgentModal .wtp-agent-note{display:none!important;}
}

/* /tentang/: prevent title/description from being forced side-by-side. */
body .wtp-about-reference-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  max-width:940px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body .wtp-about-reference-grid a{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:start!important;
  justify-items:start!important;
  gap:5px!important;
  min-width:0!important;
  min-height:92px!important;
  padding:16px 18px!important;
  border-radius:16px!important;
  text-align:left!important;
  line-height:1.35!important;
}
body .wtp-about-reference-grid a strong{
  display:block!important;
  width:100%!important;
  font-size:16px!important;
  line-height:1.2!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .wtp-about-reference-grid a br{display:none!important;}
body .wtp-about-reference-grid a small{
  display:block!important;
  width:100%!important;
  font-size:13px!important;
  line-height:1.45!important;
  font-weight:650!important;
  color:#334155!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
@media(max-width:700px){
  body .wtp-about-reference-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  body .wtp-about-reference-grid a{min-height:0!important;padding:14px 15px!important;}
}
