.tkf-chat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative;
  z-index: 9999;
}

.tkf-chat-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: pointer;
  user-select: none;
  gap: 4px;
}

.tkf-chat-btn img {
  width: 44px !important;
  height: 44px !important;
  background: #fff;
  border-radius: 14px !important;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  object-fit: contain;
  display: block !important;
}

.tkf-chat-btn span {
  font-size: 10px;
  color: #333;
  background: #fff;
  border: 1.5px solid #e53935;
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
  line-height: 1.4;
  display: block !important;
}

.tkf-chat-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.tkf-chat.tkf-open .tkf-chat-popup {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tkf-chat-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f5f5f5;
  padding: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tkf-chat-link:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tkf-chat-link img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  border-radius: 6px;
  display: block !important;
}

@media (max-width: 768px) {
  .tkf-chat-btn img {
    width: 34px !important;
    height: 34px !important;
    padding: 5px;
    border-radius: 10px;
  }

  .tkf-chat-btn span {
    font-size: 8px;
    padding: 1px 5px;
  }

  .tkf-chat-popup {
    padding: 6px;
    gap: 6px;
    margin-bottom: 6px;
  }

  .tkf-chat-link {
    width: 32px;
    height: 32px;
    padding: 3px;
  }

  .tkf-chat-link img {
    width: 24px !important;
    height: 24px !important;
  }
}
