/* custom-fbt.css */

/* Vị trí huy hiệu */
.cfb-item { position: relative; }
.cfb-check{
  position:absolute; left:12px; top:12px; z-index:5;
  width:28px; height:28px;
}

/* n checkbox thật, chiếm đúng diện tích để bấm */
.cfb-check .cfb-select{
  appearance:none; -webkit-appearance:none; 
  position:absolute; inset:0; margin:0;
  width:28px; height:28px; opacity:0; cursor:pointer;
}

/* Huy hiệu tròn */
.cfb-badge{
  display:block; width:28px; height:28px; border-radius:50%;
  background:#fff; border:2px solid #cfd4d9;    /* trạng thái chưa chọn */
  box-shadow:0 0 0 1px rgba(0,0,0,.06) inset;
  transition:all .18s ease;
  pointer-events:none;                           /* click chỉ ăn vào input */
  position: relative;
}

/* Dấu tick */
.cfb-badge::after{
  content:""; position:absolute;
  width:8px; height:14px; left:9px; top:5px;
  border-right:3px solid #fff; border-bottom:3px solid #fff;
  transform:rotate(45deg); opacity:0; transition:opacity .12s ease;
}

/* Khi check: nền đen, viền đen, hiện tick trắng */
.cfb-check .cfb-select:checked + .cfb-badge{
  background:#111; border-color:#111; box-shadow:none;
}
.cfb-check .cfb-select:checked + .cfb-badge::after{ opacity:1; }

/* Hover nhẹ */
.cfb-check .cfb-select:hover + .cfb-badge{
  border-color:#999;
}

.cfb-wrap {
  border-top: 1px solid #eee;
  margin-top: 20px;
  padding-top: 10px;
}
.cfb-head {
  font-weight: 600;
  margin-bottom: 10px;
}
.cfb-head span {
  margin-left: 6px;
}
.cfb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cfb-item {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  position: relative;
}
.cfb-check {
  position: absolute;
  left: 10px;
  top: 10px;
}
.cfb-thumb img {
  max-height: 160px;
  width: 100%;
  object-fit: contain;
}
.cfb-title {
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.3;
}
.cfb-price del {
  color: #999;
  margin-left: 6px;
}
.cfb-vari {
  margin-top: 8px;
  width: 100%;
}
.cfb-total {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cfb-total .cfb-regular {
  text-decoration: line-through;
  color: #9aa0a6;
}
.cfb-total .cfb-save {
  color: #e74c3c;
  font-weight: 600;
}
.cfb-btn {
  margin-top: 10px;
}
.cfb-btn button {
  width: 100%;
  padding: 14px 18px;
  background: #2fb44a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.cfb-btn button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

