/* make dialog not exceed viewport */
.av-fr-tpc-dialog {
  max-height: 90vh;
  overflow: hidden;
}

/* scroll only inside body area */
.av-fr-tpc-body {
  max-height: calc(90vh - 120px); /* adjust if header/footer different */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.av-fr-tpc-lock{
  overflow: hidden;
}

.av-fr-tpc-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.av-fr-tpc-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.av-fr-tpc-dialog{
  position: relative;
  width: min(760px, calc(100% - 24px));
  margin: 6vh auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}

.av-fr-tpc-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.av-fr-tpc-header h3{
  margin: 0;
  color: #008B93;
  font-size: 16px;
}

.av-fr-tpc-close{
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.av-fr-tpc-body{
  padding: 16px;
}

.av-fr-tpc-message{
  background: #952e620a;
  border: 1px solid #952e62;
  color: #952e62;
  border-radius: 10px;
  padding: 14px;
  max-height: 45vh;
  overflow: auto;
}

.av-fr-tpc-message p{
  margin: 0 0 10px;
}

.av-fr-tpc-ack{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-weight: 600;
}

.av-fr-tpc-footer{
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #eee;
}

.av-fr-tpc-hidden-field{
  display: none !important;
}