#bnPop {
  z-index: 10001 !important;
}
.modal-backdrop.show {
  z-index: 10000 !important;
}

/* 強制隱藏CYB預設彈窗 (.popup-wrapper) */
body.modal-open .popup-wrapper {
  display: none !important;
  visibility: hidden !important;
}

#theme-line-btn {
  display: none; 
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 999;
}
/* LINE按鈕 */
#line-btn {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#line-btn:hover {
	transform: scale(1.1);
	text-decoration:none;
}
#line-btn.btn-text {
	background: #00b900;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
#line-btn.btn-text span {
    display: block;
    font-size: 16px;
    padding-bottom: 3px;
}
#line-btn.btn-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#line-btn.btn-image img {
    width:100%;
	height:auto;
	max-width:100%
}

#bnPop{
	justify-content: center;
	align-items: center;
}
#bnPop.fade.show{
	display: flex !important;
}
#bnPop.fade{
	display: none !important;
}
#bnPop .modal-content{
	border: none;
	background-color: transparent;
}
#bnPop .modal-body{
	padding: 0px;
	position: relative;
}
#bnPop .modal-dialog{
    margin: 50px 20px;
    max-width: 80%;
    max-height: 100%;
}
#bnPop .modal-body .close{
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    z-index: 10;
    color: #fff;
    background-color: #434142;
    font-size: 46px;
    padding-bottom: 2px;
	line-height:1;
    font-weight: normal;
    border-radius: 50%;
    border: 0px solid #434142;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
#bnPop .close:hover {
  opacity: 1;
}

#bnPop .modal-body img{
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px){
#theme-line-btn {
    bottom: 56px;
}
}

@media (max-width: 767px){
#gototop {
    right: 16px;
}
#popup-section.minified .popup-content {
    margin-right: -4px;
}
#bnPop .modal-body .close {
    top: -20px;
    right: -20px;
    width: 45px;
    height: 45px;
    font-size: 36px;
    padding-bottom: 2px;
}
#bnPop .modal-dialog {
    margin: 50px 20px;
    max-width: 88%;
}
#theme-line-btn {
	bottom:56px;
    right: 16px;
}
#line-btn {
    width: 56px;
    height: 56px;
}
#line-btn.btn-text {
    font-size: 9px;
}
#line-btn.btn-text span {
    font-size: 15px;
}
}

/* --- RWD-PC --- */
@media (min-width: 992px) {
  #bnPop .modal-dialog {
    max-width: 1000px;
    margin: 30px auto; 
  }
  #bnPop .modal-body img {
    max-height: 80vh; 
    width: auto; 
    margin: 0 auto
  }
  #bnPop .modal-content {
    width: fit-content;
    margin: 0 auto;
    background: transparent; 
    border: none;
    box-shadow: none;
  }
}

