/* Shared floating Kakao/phone panel used by legacy program pages. */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.idx-fp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 2147483647;
  font-family: "Noto Sans KR", sans-serif;
}
.idx-fp-panel {
  display: flex;
  min-width: 172px;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(102, 126, 234, .2);
  border-radius: 16px;
  background: rgba(13, 27, 63, .92);
  box-shadow: 0 8px 32px rgba(13, 27, 63, .35),
    0 2px 8px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: idxFpIn .5s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes idxFpIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.idx-fp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.idx-fp-btn:active { transform: scale(.97); }
.idx-fp-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}
.idx-fp-btn svg,
.idx-fp-btn img { flex-shrink: 0; }
.idx-fp-kakao {
  padding: 14px 16px;
  background: #fee500;
  color: #1a1005 !important;
  font-size: 17px;
  font-weight: 800;
}
.idx-fp-kakao:hover { background: #fdd800; }
.idx-fp-phone {
  border: 1px solid rgba(255, 255, 255, .15);
  background: #fff;
  color: #0d1b3f !important;
  font-size: 14px;
  font-weight: 700;
}
.idx-fp-phone:hover { background: #f0f1f8; }
.idx-fp-phone-icon {
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.idx-fp-phone-icon svg { stroke: #fff; }
.idx-fp-btn:nth-child(1) { animation: idxFpItem .4s .15s cubic-bezier(.16, 1, .3, 1) both; }
.idx-fp-btn:nth-child(2) { animation: idxFpItem .4s .25s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes idxFpItem {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media print {
  .idx-fp { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .idx-fp-panel,
  .idx-fp-btn,
  .idx-fp-btn:nth-child(1),
  .idx-fp-btn:nth-child(2) {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 768px) {
  .idx-fp { right: 16px; bottom: 16px; }
  .idx-fp-panel { min-width: 156px; }
  .idx-fp-kakao { padding: 10px 14px; font-size: 14px; }
  .idx-fp-phone { padding: 8px 14px; }
  .idx-fp-phone-number { font-size: 14px; }
}
