/* CSS cho Plugin "Nút Liên Hệ" của Nobitaq */

/* Container chính */
.ccb-container {
  position: fixed;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  gap: 5px; /* Khoảng cách giữa các nút */
  z-index: 9999;
  width: 172px; /* Điều chỉnh chiều rộng theo yêu cầu */
  font-family: Roboto, sans-serif;
  font-size: 100%;
  font-weight: 400;
  font-style: normal;
}

/* Định dạng cho từng nút */
.ccb-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 8px; /* Giảm padding */
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease-in-out;
  width: 100%;
  height: 56px; /* Điều chỉnh chiều cao để tổng chiều cao (với padding) là 72px */
  margin-bottom: 0; /* Xóa margin bottom vì đã có gap */
  box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước */
}

/* Định dạng khu vực icon */
.ccb-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
  border-radius: 50% !important;
  overflow: hidden;
}

/* Định dạng khu vực thông tin */
.ccb-info {
  flex-grow: 1;
  font-family: Roboto, sans-serif;
  width: calc(100% - 44px); /* 36px (icon) + 8px (margin) */
  overflow: hidden; /* Ngăn nội dung tràn ra */
}

.ccb-info b {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
  font-weight: bold !important;
  color: #000;
  white-space: nowrap; /* Ngăn xuống dòng */
  overflow: hidden;
  text-overflow: ellipsis; /* Hiển thị dấu ... nếu quá dài */
}

.ccb-info span {
  font-size: 12px;
  color: #666;
  display: block;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hiệu ứng hover */
.ccb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Icon styles */
.ccb-icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ccb-icon-box svg {
  width: 24px;
  height: 24px;
}

/* Ghi đè border-radius để đảm bảo các nút có góc bo đúng */
.ccb-card, 
.ccb-card *,
.ccb-card:after,
.ccb-card:before {
  border-radius: 10px !important;
}

.ccb-icon-box,
.ccb-icon-box *,
.ccb-icon-box:after,
.ccb-icon-box:before {
  border-radius: 50% !important;
}

/* Đảm bảo font chữ được áp dụng cho tất cả các phần tử con */
.ccb-container * {
  font-family: Roboto, sans-serif;
}

/* Responsive - Chỉ hiển thị icon trên mobile */
@media (max-width: 767px) {
  .ccb-container {
      bottom: 10%;
      width: 50px; /* Chỉ đủ rộng cho icon */
  }
  
  .ccb-card {
      padding: 6px;
      height: 50px; /* Giảm chiều cao trên mobile */
      justify-content: center; /* Căn giữa icon */
  }
  
  .ccb-icon-box {
      width: 36px;
      height: 36px;
      margin-right: 0; /* Xóa margin vì không còn text */
  }
  
  .ccb-info {
      display: none; /* Ẩn phần text trên mobile */
  }
}
