/*
 * 右側浮動客服＋頁尾 LINE（issue #2，2026-11）。
 * 取代原本 footer.css 的 .line-box（四顆固定按鈕）。顏色沿用全站的綠 #0ba39b。
 */

/* ── 浮動按鈕 ─────────────────────────────────────────── */
.contact-float{
  position: fixed;
  right: 2%;
  bottom: 5%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.contact-float-toggle{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0ba39b;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transition: background-color .3s ease, transform .3s ease;
}
.contact-float-toggle:hover,
.contact-float.is-open .contact-float-toggle{
  background: #088780;
}
.contact-float-toggle:focus-visible{
  outline: 3px solid #f39800;
  outline-offset: 3px;
}
.contact-float-toggle-icon{
  font-size: 24px;
  line-height: 1;
}
.contact-float-toggle-text{
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
}

/* ── 展開的選單 ───────────────────────────────────────── */
.contact-float-panel{
  width: 220px;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid #0ba39b;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  text-align: left;
}
.contact-float-panel[hidden]{
  display: none;
}
.contact-float-region{
  padding: 10px 0;
}
.contact-float-region + .contact-float-region{
  border-top: 1px solid #e3e3e3;
}
/* 地區名稱要一眼看得出來，避免點錯地區 */
.contact-float-region-title{
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #0ba39b;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
}
.contact-float-link{
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  color: #333;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background-color .2s ease;
}
.contact-float-link:hover{
  background: #e8f6f5;
  color: #0ba39b;
}
.contact-float-link img{
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

/* ── 頁尾：北部／中南部兩個 LINE 下方標字 ─────────────── */
/* 每個圖示佔一樣寬的格子、圖示置中：有標字跟沒標字的間距才會一樣 */
.footer-link-box .footer-link{
  display: inline-block;
  vertical-align: top;
  width: 76px;
  margin: 0;
  text-align: center;
}
/* 格子比圖示寬，往外推一點，最右邊的圖示才會跟下面的版權文字切齊 */
.footer-link-box{
  margin-right: -20px;
  width: calc(100% + 20px);
}
.footer-link-label{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #555;
  white-space: nowrap;
}

@media only screen and (max-width: 750px){
  .contact-float{
    right: 12px;
    bottom: 12px;
  }
  .contact-float-toggle{
    width: 60px;
    height: 60px;
  }
  .contact-float-toggle-icon{
    font-size: 20px;
  }
  .contact-float-toggle-text{
    margin-top: 3px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .contact-float-panel{
    width: 200px;
  }
  /* 捲到最底時，頁尾最後一行（版權）不要被浮動按鈕蓋住 */
  .web-box{
    padding-bottom: 72px;
  }
  .footer-link-box{
    margin-left: -20px;
    margin-right: 0;
  }
}
