/* 화면 아래 상담 버튼: 가운데 카톡 견적 띠 + 오른쪽 노란 전화 버튼(누르면 어두워지며 카톡·간편견적·전화 메뉴). 동작 float.js. PC·태블릿·휴대폰 모두 */
.yd-fl-bar { position: fixed; left: 50%; bottom: 50px; z-index: 99; transform: translateX(-50%); }
.yd-fl-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; width: 300px; padding: 10px; border-radius: 30px; background: #fee500;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); color: #191919; text-decoration: none; transition: transform .2s ease; }
.yd-fl-bar a:hover { transform: translateY(-2px); color: #191919; }
.yd-fl-bar img { flex: none; width: 30px; height: 30px; }
.yd-fl-bar .yd-fl-bt { line-height: 1.3; }
.yd-fl-bar .yd-fl-top { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: #333d4b; letter-spacing: -.2px; }
.yd-fl-bar .yd-fl-num { display: inline-block; margin: 0 2px; color: #d9480f; font-weight: 800; animation: yd-fl-pop 2s ease-in-out infinite; }
.yd-fl-bar .yd-fl-main { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; letter-spacing: -.3px; }
@keyframes yd-fl-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* 노란 전화 버튼 (열리면 검은 X) */
.yd-fl-btn { position: fixed; right: 50px; bottom: 50px; z-index: 9992; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  padding: 0; border: 0; border-radius: 50%; background: #fedd0f; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.yd-fl-btn:hover { transform: scale(1.06); }
.yd-fl-btn svg { display: block; width: 25px; height: 25px; fill: #333d4b; }
.yd-fl-btn .yd-fl-x { display: none; width: 20px; height: 20px; fill: #fff; }
.yd-fl-open .yd-fl-btn { background: #000; }
.yd-fl-open .yd-fl-btn .yd-fl-ph { display: none; }
.yd-fl-open .yd-fl-btn .yd-fl-x { display: block; }

/* 어두운 바탕 + 메뉴 */
.yd-fl-dim { position: fixed; inset: 0; z-index: 9990; background: rgba(0, 0, 0, .5); }
.yd-fl-menu { position: fixed; right: 50px; bottom: 110px; z-index: 9991; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 200px; }
.yd-fl-dim[hidden], .yd-fl-menu[hidden] { display: none; }
.yd-fl-menu a.yd-fl-pill { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 20px; border-radius: 30px; background: #fff;
  color: #222; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; animation: yd-fl-in .22s ease both; }
.yd-fl-menu a.yd-fl-pill:hover { color: #222; background: #fffbe0; }
.yd-fl-menu .yd-fl-q { width: 190px; animation-delay: .04s; }
.yd-fl-menu .yd-fl-t { width: 160px; font-size: 17px; animation-delay: .08s; }
.yd-fl-menu .yd-fl-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
.yd-fl-menu .yd-fl-ic svg { display: block; width: 30px; height: 30px; }
.yd-fl-menu .yd-fl-k .yd-fl-ic { border-radius: 8px; background: #fbe300; }
.yd-fl-menu .yd-fl-k .yd-fl-ic svg { width: 20px; height: 20px; }
.yd-fl-menu .yd-fl-t .yd-fl-ic svg { width: 25px; height: 25px; }
@keyframes yd-fl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 태블릿 */
@media screen and (max-width: 1024px) {
  .yd-fl-bar { bottom: 30px; }
  .yd-fl-btn { right: 30px; bottom: 33px; }
  .yd-fl-menu { right: 30px; bottom: 90px; width: 190px; }
  .yd-fl-menu a.yd-fl-pill { font-size: 15px; }
  .yd-fl-menu .yd-fl-q { width: 170px; }
  .yd-fl-menu .yd-fl-t { width: 140px; }
}
/* 휴대폰: 옛 아래 검은 메뉴(.mo_bot_menu)·카톡 동그라미(.m_kkt) 대신 이 버튼들을 쓴다 */
@media screen and (max-width: 900px) { .mo_bot_menu, .m_kkt { display: none !important; } }
@media screen and (max-width: 767px) {
  .yd-fl-bar { bottom: 14px; }
  .yd-fl-bar a { width: auto; padding: 7px 20px 7px 14px; }
  .yd-fl-bar img { width: 25px; height: 25px; }
  .yd-fl-bar .yd-fl-top { font-size: 12px; }
  .yd-fl-bar .yd-fl-main { font-size: 15px; }
  .yd-fl-btn { right: 20px; bottom: 76px; width: 40px; height: 40px; }
  .yd-fl-btn svg { width: 20px; height: 20px; }
  .yd-fl-btn .yd-fl-x { width: 16px; height: 16px; }
  .yd-fl-menu { right: 20px; bottom: 126px; width: 170px; }
  .yd-fl-menu a.yd-fl-pill { min-height: 45px; padding: 8px 16px; font-size: 13px; }
  .yd-fl-menu .yd-fl-q { width: 150px; }
  .yd-fl-menu .yd-fl-t { width: 120px; font-size: 13px; }
  .yd-fl-menu .yd-fl-ic, .yd-fl-menu .yd-fl-ic svg { width: 25px; height: 25px; }
  .yd-fl-menu .yd-fl-k .yd-fl-ic svg { width: 17px; height: 17px; }
  .yd-fl-menu .yd-fl-t .yd-fl-ic svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .yd-fl-bar .yd-fl-num, .yd-fl-menu a.yd-fl-pill { animation: none; } }
