/* AAB Front Basic Popup */
.aab-front-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
  background: rgba(0,0,0,.55);
}
.aab-front-modal-inner{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, calc(100vw - 24px));
  height: min(86vh, 760px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.aab-front-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.aab-front-modal-title{
  font-weight:700;
  font-size:14px;
}
#aab-front-close-btn{
  cursor:pointer;
}
.aab-front-modal-body{
  height: 100%;
  overflow:hidden;
  padding:14px;
}
body.aab-front-modal-open{
  overflow:hidden;
}


/* v71: 下段ボタンが隠れないよう、モーダル内側の下に少し余白を追加 */
.aab-front-modal-body{
  padding-bottom:19px;
}


/* v71: モーダル全体もスクロール可能に戻す（4段目やスマホが切れないように） */
.aab-front-modal-body{
  height:auto;
  max-height:100%;
  overflow:auto;
  padding:14px 14px 19px;
}


/* v71: ポップアップ内に全体をぴったり収め、中段だけで縦スクロールさせる最終仕様 */
.aab-front-modal-inner{
  overflow:hidden;
}
.aab-front-modal-body{
  height:100%;
  max-height:none;
  overflow:auto;
  padding:14px 14px 19px;
  box-sizing:border-box;
}


/* v71: モーダル全体はスクロールさせず、3段目だけスクロールさせる最終指定 */
.aab-front-modal-inner{
  overflow:hidden;
}
.aab-front-modal-body{
  height:100%;
  max-height:none;
  overflow:hidden;
  padding:14px 14px 19px;
  box-sizing:border-box;
}


/* v71: モーダル本体は viewport の 80vh 内に固定し、外側はスクロールさせず3段目で調整する */
.aab-front-modal-inner{
  height: min(86vh, 760px);
  overflow: hidden;
}
.aab-front-modal-body{
  height: 100%;
  max-height: none;
  overflow: hidden;
  padding: 14px 14px 19px;
  box-sizing: border-box;
}


/* v71: モーダル本体は viewport の 80vh 内に固定し、外側はスクロールさせず3段目で調整する */
.aab-front-modal-inner{
  height: min(86vh, 760px);
  overflow: hidden;
}
.aab-front-modal-body{
  height: 100%;
  max-height: none;
  overflow: hidden;
  padding: 14px 14px 19px;
  box-sizing: border-box;
}


/* Ad toggle (scoped) */
.aabfb-ad-switch{display:inline-flex;align-items:center;gap:8px;}
.aabfb-ad-switch input{display:none;}
.aabfb-ad-slider{width:44px;height:24px;border-radius:12px;background:#ccc;position:relative;display:inline-block;vertical-align:middle;}
.aabfb-ad-slider:after{content:'';width:20px;height:20px;border-radius:10px;background:#fff;position:absolute;top:2px;left:2px;transition:all .15s ease;}
.aabfb-ad-toggle:checked + .aabfb-ad-slider{background:#4caf50;}
.aabfb-ad-toggle:checked + .aabfb-ad-slider:after{left:22px;}
.aabfb-ad-label{font-size:13px;}

