/* BNT Floating Contact & Promo V1.5 - Menu-safe separated cutout promo + contact panel */
.bnt-fcp-wrap,
.bnt-fcp-wrap *{
  box-sizing:border-box;
}

.bnt-fcp-wrap{
  position:fixed;
  right:var(--bnt-fcp-right,22px);
  bottom:var(--bnt-fcp-bottom,22px);
  z-index:var(--bnt-fcp-z,9998);
  font-family:inherit;
  color:#111827;
  pointer-events:none;
  max-width:min(100vw - 28px, max(var(--bnt-fcp-panel-width,360px), var(--bnt-fcp-promo-width,330px)));
}

.bnt-fcp-promo,
.bnt-fcp-contact-panel{
  pointer-events:auto;
  background:rgba(255,255,255,.985);
  border:1px solid rgba(17,21,105,.12);
  box-shadow:0 18px 45px rgba(10,20,60,.18);
  position:relative;
  overflow:hidden;
}

.bnt-fcp-promo{
  width:var(--bnt-fcp-promo-width,330px);
  max-width:calc(100vw - 32px);
  margin:0 0 14px auto;
  border-radius:20px;
  padding:16px 16px 15px;
  transform:translateY(0);
  opacity:1;
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.bnt-fcp-promo::before,
.bnt-fcp-contact-panel::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,var(--bnt-fcp-accent,#111569),var(--bnt-fcp-secondary,#f5c242));
}

.bnt-fcp-promo.is-hidden{
  opacity:0;
  transform:translateY(10px);
  visibility:hidden;
  pointer-events:none;
  display:none;
}

.bnt-fcp-promo-close,
.bnt-fcp-panel-close{
  position:absolute;
  top:9px;
  right:9px;
  width:30px;
  height:30px;
  border:0;
  border-radius:999px;
  background:#f1f4f9;
  color:#64748b;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.bnt-fcp-promo-close:hover,
.bnt-fcp-promo-close:focus,
.bnt-fcp-panel-close:hover,
.bnt-fcp-panel-close:focus{
  background:#e8edf7;
  color:var(--bnt-fcp-accent,#111569);
  transform:scale(1.04);
  outline:none;
}

.bnt-fcp-promo-image{
  width:100%;
  height:112px;
  border-radius:15px;
  overflow:hidden;
  background:#f4f7fb;
  margin-bottom:12px;
  border:1px solid rgba(17,21,105,.08);
}

.bnt-fcp-promo-image img{
  width:100%;
  height:100%;
  display:block;
}

.bnt-fcp-promo-image.is-cover img{ object-fit:cover; }
.bnt-fcp-promo-image.is-contain img{ object-fit:contain; padding:8px; background:#fff; }

.bnt-fcp-promo-kicker,
.bnt-fcp-panel-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 10px;
  border-radius:999px;
  color:var(--bnt-fcp-accent,#111569);
  background:#eff5ff;
  border:1px solid rgba(17,21,105,.08);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  margin-bottom:9px;
}

.bnt-fcp-promo-title{
  padding-right:30px;
  font-size:18px;
  line-height:1.35;
  font-weight:900;
  color:var(--bnt-fcp-accent,#111569);
  margin:0 0 7px;
}

.bnt-fcp-promo-text{
  font-size:13px;
  line-height:1.62;
  color:#526174;
  margin-bottom:12px;
}

.bnt-fcp-promo-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 14px;
  border-radius:999px;
  color:#fff !important;
  background:var(--bnt-fcp-accent,#111569);
  text-decoration:none !important;
  font-size:13px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(17,21,105,.18);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.bnt-fcp-promo-btn:hover,
.bnt-fcp-promo-btn:focus{
  transform:translateY(-1px);
  color:#fff !important;
  background:#0b0f54;
  box-shadow:0 12px 24px rgba(17,21,105,.24);
  outline:none;
}

.bnt-fcp-promo-note,
.bnt-fcp-panel-note{
  margin-top:9px;
  font-size:11px;
  line-height:1.45;
  color:#8b98aa;
}

.bnt-fcp-bubble{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  pointer-events:auto;
}

.bnt-fcp-contact-panel{
  width:var(--bnt-fcp-panel-width,360px);
  max-width:calc(100vw - 32px);
  margin:0 0 12px auto;
  border-radius:22px;
  padding:17px 16px 15px;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px) scale(.985);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.bnt-fcp-bubble.is-open .bnt-fcp-contact-panel,
.bnt-fcp-bubble:focus-within .bnt-fcp-contact-panel{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.bnt-fcp-panel-head{ padding-right:30px; }
.bnt-fcp-panel-head h3{
  margin:0 0 6px;
  color:var(--bnt-fcp-accent,#111569);
  font-size:19px;
  font-weight:900;
  line-height:1.25;
}
.bnt-fcp-panel-head p{
  margin:0;
  color:#526174;
  font-size:13px;
  line-height:1.55;
}

.bnt-fcp-qr-row{
  margin-top:13px;
  display:grid;
  grid-template-columns:104px 1fr;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#fff);
  border:1px solid rgba(17,21,105,.08);
}
.bnt-fcp-qr-box{
  width:104px;
  height:104px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(17,21,105,.1);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.bnt-fcp-qr-box img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:5px;
}
.bnt-fcp-qr-caption{
  color:#334155;
  font-size:12px;
  line-height:1.5;
  font-weight:700;
}

.bnt-fcp-action-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-top:13px;
}
.bnt-fcp-contact-action{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 12px;
  border-radius:15px;
  background:#fff;
  color:var(--bnt-fcp-accent,#111569) !important;
  text-decoration:none !important;
  border:1px solid rgba(17,21,105,.1);
  box-shadow:0 8px 20px rgba(10,20,60,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.bnt-fcp-contact-action:hover,
.bnt-fcp-contact-action:focus{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(10,20,60,.13);
  border-color:rgba(17,21,105,.2);
  background:#fbfdff;
  outline:none;
}
.bnt-fcp-action-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  background:#eef4ff;
  color:var(--bnt-fcp-accent,#111569);
  font-size:13px;
  font-weight:900;
}
.bnt-fcp-contact-action.is-line .bnt-fcp-action-icon{
  background:var(--bnt-fcp-line,#06c755);
  color:#fff;
  font-size:10px;
}
.bnt-fcp-contact-action.is-phone .bnt-fcp-action-icon{
  background:var(--bnt-fcp-secondary,#f5c242);
  color:#111827;
}
.bnt-fcp-action-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.25;
}
.bnt-fcp-action-copy strong{
  display:block;
  font-size:14px;
  font-weight:900;
  color:inherit;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bnt-fcp-action-copy small{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.25;
  color:#8090a6;
  font-weight:700;
}

.bnt-fcp-main-btn{
  min-width:66px;
  height:66px;
  border:0;
  border-radius:999px;
  background:var(--bnt-fcp-accent,#111569);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 19px;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(17,21,105,.32);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bnt-fcp-main-btn:hover,
.bnt-fcp-main-btn:focus,
.bnt-fcp-bubble.is-open .bnt-fcp-main-btn{
  transform:translateY(-2px);
  box-shadow:0 20px 44px rgba(17,21,105,.38);
  background:#0b0f54;
  outline:none;
}
.bnt-fcp-main-icon{
  display:inline-flex;
  font-size:25px;
  line-height:1;
}
.bnt-fcp-main-text{
  font-size:14px;
  font-weight:900;
  white-space:nowrap;
}

@media (max-width:782px){
  .bnt-fcp-wrap{
    right:var(--bnt-fcp-mobile-right,12px);
    bottom:var(--bnt-fcp-mobile-bottom,84px);
    max-width:calc(100vw - 24px);
  }
  .bnt-fcp-promo,
  .bnt-fcp-contact-panel{
    width:min(var(--bnt-fcp-panel-width,360px), calc(100vw - 24px));
    border-radius:18px;
    margin-bottom:10px;
  }
  .bnt-fcp-promo{ padding:14px; }
  .bnt-fcp-contact-panel{ padding:15px 13px 13px; }
  .bnt-fcp-promo-title{ font-size:16px; }
  .bnt-fcp-promo-text,
  .bnt-fcp-panel-head p{ font-size:12px; line-height:1.55; }
  .bnt-fcp-panel-head h3{ font-size:17px; }
  .bnt-fcp-main-btn{
    height:58px;
    min-width:58px;
    padding:0 15px;
  }
  .bnt-fcp-main-icon{ font-size:22px; }
  .bnt-fcp-main-text{ display:none; }
}

@media (max-width:480px){
  .bnt-fcp-wrap{
    right:var(--bnt-fcp-mobile-right,12px);
    bottom:var(--bnt-fcp-mobile-bottom,84px);
    max-width:calc(100vw - 24px);
  }
  .bnt-fcp-promo,
  .bnt-fcp-contact-panel{
    width:calc(100vw - 24px);
    max-width:calc(100vw - 24px);
  }
  .bnt-fcp-promo-image{ height:94px; }
  .bnt-fcp-qr-row{
    grid-template-columns:86px 1fr;
    gap:10px;
    padding:9px;
  }
  .bnt-fcp-qr-box{
    width:86px;
    height:86px;
    border-radius:12px;
  }
  .bnt-fcp-qr-caption{ font-size:11px; }
  .bnt-fcp-contact-action{ min-height:50px; padding:9px 10px; }
  .bnt-fcp-action-copy strong{ font-size:13px; }
  .bnt-fcp-action-copy small{ font-size:10.5px; }
  .bnt-fcp-main-btn{
    width:56px;
    min-width:56px;
    height:56px;
    padding:0;
  }
  .bnt-fcp-hide-mobile{ display:none !important; }
}

@media (max-width:340px){
  .bnt-fcp-qr-row{ grid-template-columns:1fr; text-align:center; justify-items:center; }
  .bnt-fcp-action-copy strong{ white-space:normal; }
}

@media (prefers-reduced-motion: reduce){
  .bnt-fcp-promo,
  .bnt-fcp-promo-close,
  .bnt-fcp-promo-btn,
  .bnt-fcp-contact-panel,
  .bnt-fcp-contact-action,
  .bnt-fcp-main-btn,
  .bnt-fcp-panel-close{
    transition:none !important;
  }
}

/* ===== BNT FCP V1.2 Layout QA Safe ===== */
/* ป้องกันข้อความ/รูป/ปุ่มล้นกรอบ และไม่ให้ promo + contact sheet ซ้อนสูงเกินจอบนมือถือ */
.bnt-fcp-wrap{
  width:auto;
  max-width:min(calc(100vw - 28px), max(var(--bnt-fcp-panel-width,360px), var(--bnt-fcp-promo-width,330px))) !important;
  contain:layout style;
}

.bnt-fcp-wrap img,
.bnt-fcp-wrap svg,
.bnt-fcp-wrap video{
  max-width:100%;
  height:auto;
}

.bnt-fcp-promo,
.bnt-fcp-contact-panel{
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:normal;
}

.bnt-fcp-promo{
  max-height:min(56vh, calc(100vh - var(--bnt-fcp-bottom,22px) - 88px));
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}

.bnt-fcp-contact-panel{
  max-height:min(74vh, calc(100vh - var(--bnt-fcp-bottom,22px) - 88px));
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}

.bnt-fcp-wrap.is-contact-open .bnt-fcp-promo{
  opacity:0;
  transform:translateY(8px);
  visibility:hidden;
  pointer-events:none;
  display:none !important;
}

.bnt-fcp-panel-head,
.bnt-fcp-promo-title,
.bnt-fcp-promo-text,
.bnt-fcp-panel-head p,
.bnt-fcp-panel-note,
.bnt-fcp-promo-note,
.bnt-fcp-qr-caption,
.bnt-fcp-action-copy{
  min-width:0;
  overflow-wrap:anywhere;
}

.bnt-fcp-promo-title,
.bnt-fcp-panel-head h3{
  text-wrap:balance;
}

.bnt-fcp-promo-btn,
.bnt-fcp-contact-action,
.bnt-fcp-main-btn,
.bnt-fcp-promo-close,
.bnt-fcp-panel-close{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

.bnt-fcp-promo-btn{
  max-width:100%;
  white-space:normal;
  text-align:center;
}

.bnt-fcp-contact-action{
  width:100%;
  max-width:100%;
}

.bnt-fcp-action-copy strong,
.bnt-fcp-action-copy small{
  max-width:100%;
}

.bnt-fcp-qr-row{
  max-width:100%;
  min-width:0;
}

.bnt-fcp-qr-box{
  flex:0 0 auto;
}

@media (max-width:782px){
  .bnt-fcp-wrap{
    right:max(var(--bnt-fcp-mobile-right,12px), env(safe-area-inset-right)) !important;
    bottom:calc(var(--bnt-fcp-mobile-bottom,84px) + env(safe-area-inset-bottom)) !important;
    max-width:calc(100vw - 24px) !important;
  }

  .bnt-fcp-promo,
  .bnt-fcp-contact-panel{
    max-height:calc(100svh - var(--bnt-fcp-mobile-bottom,84px) - 76px - env(safe-area-inset-bottom));
    overflow-y:auto;
  }
}

@media (max-width:480px){
  .bnt-fcp-wrap{
    left:12px !important;
    right:12px !important;
    max-width:calc(100vw - 24px) !important;
  }

  .bnt-fcp-promo,
  .bnt-fcp-contact-panel{
    width:100% !important;
    max-width:100% !important;
  }

  .bnt-fcp-promo-close,
  .bnt-fcp-panel-close{
    top:8px;
    right:8px;
    width:32px;
    height:32px;
  }

  .bnt-fcp-panel-head{
    padding-right:38px;
  }

  .bnt-fcp-panel-head h3,
  .bnt-fcp-promo-title{
    padding-right:34px;
  }

  .bnt-fcp-qr-row{
    grid-template-columns:82px minmax(0,1fr) !important;
  }

  .bnt-fcp-qr-box{
    width:82px !important;
    height:82px !important;
  }
}

@media (max-width:360px){
  .bnt-fcp-wrap{
    left:10px !important;
    right:10px !important;
    max-width:calc(100vw - 20px) !important;
  }

  .bnt-fcp-qr-row{
    grid-template-columns:1fr !important;
    justify-items:center;
    text-align:center;
  }

  .bnt-fcp-action-icon{
    width:32px;
    height:32px;
    flex-basis:32px;
  }
}

/* ===== BNT FCP V1.3 Separated Transparent Cutout Promo ===== */
/* โปรโมชันเป็นภาพ PNG ไดคัทแบบลอย แยกจากปุ่ม Contact ไม่มีกรอบ ไม่มีพื้นหลัง แต่ยังปิดด้วย X ได้ */
.bnt-fcp-promo.bnt-fcp-promo-cutout{
  width:min(var(--bnt-fcp-promo-image-width,220px), calc(100vw - 72px)) !important;
  max-width:calc(100vw - 72px) !important;
  margin:0 0 var(--bnt-fcp-promo-gap,18px) auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  max-height:none !important;
  filter:none !important;
}

.bnt-fcp-promo.bnt-fcp-promo-cutout::before{
  display:none !important;
  content:none !important;
}

.bnt-fcp-promo-cutout .bnt-fcp-promo-media{
  display:block !important;
  width:100% !important;
  line-height:0 !important;
  text-decoration:none !important;
  cursor:pointer;
  filter:drop-shadow(0 16px 24px rgba(10,20,60,.20));
  transform:translateZ(0);
}

.bnt-fcp-promo-cutout .bnt-fcp-promo-media img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
}

.bnt-fcp-promo-cutout .bnt-fcp-promo-close{
  top:-10px !important;
  right:-10px !important;
  width:30px !important;
  height:30px !important;
  border:1px solid rgba(17,21,105,.10) !important;
  background:rgba(255,255,255,.96) !important;
  color:#526174 !important;
  box-shadow:0 8px 20px rgba(10,20,60,.16) !important;
  z-index:2 !important;
}

.bnt-fcp-promo-cutout .bnt-fcp-promo-close:hover,
.bnt-fcp-promo-cutout .bnt-fcp-promo-close:focus{
  background:#ffffff !important;
  color:var(--bnt-fcp-accent,#111569) !important;
  transform:scale(1.05) !important;
}

.bnt-fcp-promo-cutout .bnt-fcp-promo-image,
.bnt-fcp-promo-cutout .bnt-fcp-promo-kicker,
.bnt-fcp-promo-cutout .bnt-fcp-promo-title,
.bnt-fcp-promo-cutout .bnt-fcp-promo-text,
.bnt-fcp-promo-cutout .bnt-fcp-promo-btn,
.bnt-fcp-promo-cutout .bnt-fcp-promo-note{
  display:none !important;
}

@media (max-width:782px){
  .bnt-fcp-promo.bnt-fcp-promo-cutout{
    width:min(var(--bnt-fcp-promo-image-width,220px), calc(100vw - 80px)) !important;
    max-width:calc(100vw - 80px) !important;
    margin-bottom:var(--bnt-fcp-promo-gap,16px) !important;
  }
}

@media (max-width:480px){
  .bnt-fcp-promo.bnt-fcp-promo-cutout{
    width:min(var(--bnt-fcp-promo-image-width,190px), calc(100vw - 92px)) !important;
    max-width:calc(100vw - 92px) !important;
    margin-left:auto !important;
    margin-right:4px !important;
  }

  .bnt-fcp-promo-cutout .bnt-fcp-promo-close{
    top:-9px !important;
    right:-9px !important;
    width:28px !important;
    height:28px !important;
    font-size:18px !important;
  }
}

@media (max-width:360px){
  .bnt-fcp-promo.bnt-fcp-promo-cutout{
    width:min(var(--bnt-fcp-promo-image-width,170px), calc(100vw - 84px)) !important;
    max-width:calc(100vw - 84px) !important;
  }
}

/* ===== BNT FCP V1.4 Final Responsive QA Safe ===== */
/* กันล้น/กันทับสำหรับข้อความยาว รูป PNG ทรงแปลก จอเล็ก และมือถือมี safe area */
.bnt-fcp-wrap{
  isolation:isolate !important;
}

.bnt-fcp-wrap,
.bnt-fcp-wrap *{
  min-width:0 !important;
}

.bnt-fcp-contact-panel{
  width:min(var(--bnt-fcp-panel-width,360px), calc(100vw - 32px)) !important;
  max-width:calc(100vw - 32px) !important;
}

.bnt-fcp-panel-head h3,
.bnt-fcp-panel-head p,
.bnt-fcp-panel-note,
.bnt-fcp-qr-caption,
.bnt-fcp-action-copy,
.bnt-fcp-action-copy strong,
.bnt-fcp-action-copy small{
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}

.bnt-fcp-action-copy{
  flex:1 1 auto !important;
}

.bnt-fcp-contact-action{
  align-items:center !important;
  max-width:100% !important;
}

.bnt-fcp-main-btn{
  max-width:calc(100vw - 24px) !important;
}

.bnt-fcp-promo-cutout .bnt-fcp-promo-media,
.bnt-fcp-promo-cutout .bnt-fcp-promo-media img{
  max-width:100% !important;
  height:auto !important;
  vertical-align:middle !important;
}

.bnt-fcp-promo-cutout .bnt-fcp-promo-close,
.bnt-fcp-panel-close{
  min-width:30px !important;
  min-height:30px !important;
  flex:0 0 auto !important;
}

@media (max-width:782px){
  .bnt-fcp-hide-mobile{
    display:none !important;
  }

  .bnt-fcp-promo.bnt-fcp-promo-cutout{
    width:min(var(--bnt-fcp-promo-image-width-mobile,190px), calc(100vw - 80px)) !important;
    max-width:calc(100vw - 80px) !important;
  }

  .bnt-fcp-contact-panel{
    max-height:max(240px, calc(100svh - var(--bnt-fcp-mobile-bottom,84px) - 76px - env(safe-area-inset-bottom))) !important;
  }
}

@supports not (height:100svh){
  @media (max-width:782px){
    .bnt-fcp-contact-panel{
      max-height:max(240px, calc(100vh - var(--bnt-fcp-mobile-bottom,84px) - 76px)) !important;
    }
  }
}

@media (max-width:480px){
  .bnt-fcp-wrap{
    bottom:calc(var(--bnt-fcp-mobile-bottom,84px) + env(safe-area-inset-bottom)) !important;
  }

  .bnt-fcp-promo.bnt-fcp-promo-cutout{
    width:min(var(--bnt-fcp-promo-image-width-mobile,190px), calc(100vw - 92px)) !important;
    max-width:calc(100vw - 92px) !important;
  }

  .bnt-fcp-contact-action{
    gap:9px !important;
    padding:10px 10px !important;
  }
}

@media (max-width:360px){
  .bnt-fcp-promo.bnt-fcp-promo-cutout{
    width:min(var(--bnt-fcp-promo-image-width-mobile,170px), calc(100vw - 84px)) !important;
    max-width:calc(100vw - 84px) !important;
  }

  .bnt-fcp-panel-head h3{
    font-size:16px !important;
  }
}

/* V1.4.1 flow fix: panel ที่ปิดอยู่ไม่กินพื้นที่จริง จึงไม่ดันรูปโปรโมชันขึ้นจนพ้นจอ */
.bnt-fcp-bubble:not(.is-open) .bnt-fcp-contact-panel{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

.bnt-fcp-bubble.is-open .bnt-fcp-contact-panel{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:translateY(0) scale(1) !important;
}

/* ===== BNT FCP V1.5 Menu Safe Contact Panel ===== */
/* กันแผ่นติดต่อเปิดขึ้นไปชนหรือถูก Header/Menu ด้านบนทับ โดยจำกัดความสูงแล้วให้เลื่อนภายในแผ่นแทน */
.bnt-fcp-contact-panel{
  max-height:calc(100vh - var(--bnt-fcp-top-clearance,92px) - var(--bnt-fcp-bottom,22px) - 78px) !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
}

@supports (height:100dvh){
  .bnt-fcp-contact-panel{
    max-height:calc(100dvh - var(--bnt-fcp-top-clearance,92px) - var(--bnt-fcp-bottom,22px) - 78px) !important;
  }
}

@media (max-width:782px){
  .bnt-fcp-contact-panel{
    max-height:calc(100vh - var(--bnt-fcp-mobile-top-clearance,132px) - var(--bnt-fcp-mobile-bottom,84px) - 66px - env(safe-area-inset-bottom)) !important;
  }

  @supports (height:100svh){
    .bnt-fcp-contact-panel{
      max-height:calc(100svh - var(--bnt-fcp-mobile-top-clearance,132px) - var(--bnt-fcp-mobile-bottom,84px) - 66px - env(safe-area-inset-bottom)) !important;
    }
  }

  .bnt-fcp-bubble.is-open .bnt-fcp-contact-panel,
  .bnt-fcp-bubble:focus-within .bnt-fcp-contact-panel{
    transform:translateY(0) scale(1) !important;
  }
}

@media (max-width:480px){
  .bnt-fcp-contact-panel{
    padding-top:16px !important;
    padding-bottom:12px !important;
  }

  .bnt-fcp-panel-head{
    padding-right:38px !important;
  }

  .bnt-fcp-promo.bnt-fcp-promo-cutout{
    width:min(var(--bnt-fcp-promo-image-width-mobile,190px), calc(100vw - 92px)) !important;
  }
}

@media (max-width:360px){
  .bnt-fcp-contact-panel{
    max-height:calc(100vh - var(--bnt-fcp-mobile-top-clearance,132px) - var(--bnt-fcp-mobile-bottom,84px) - 64px - env(safe-area-inset-bottom)) !important;
    padding-left:11px !important;
    padding-right:11px !important;
  }

  @supports (height:100svh){
    .bnt-fcp-contact-panel{
      max-height:calc(100svh - var(--bnt-fcp-mobile-top-clearance,132px) - var(--bnt-fcp-mobile-bottom,84px) - 64px - env(safe-area-inset-bottom)) !important;
    }
  }
}
