/* CECP Contact Bar — lightweight floating contact buttons */
.cecp-cb {
  position: fixed;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cecp-cb-right { right: 16px; align-items: flex-end; }
.cecp-cb-left  { left: 16px;  align-items: flex-start; }

.cecp-cb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cecp-cb-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.cecp-cb-btn:active { transform: scale(0.96); }

.cecp-cb-ico { width: 26px; height: 26px; display: inline-flex; }
.cecp-cb-ico svg { width: 100%; height: 100%; }

/* Per-channel brand colors (accent var as fallback) */
.cecp-cb-phone     { background: var(--cecp-cb-color, #2563eb); animation: cecp-cb-pulse 2s infinite; }
.cecp-cb-zalo      { background: #0068ff; }
.cecp-cb-messenger { background: #0084ff; }
.cecp-cb-facebook  { background: #1877f2; }

/* Label shown on hover (desktop only, when enabled) */
.cecp-cb-txt {
  position: absolute;
  white-space: nowrap;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.cecp-cb-right .cecp-cb-txt { right: 60px; }
.cecp-cb-left  .cecp-cb-txt { left: 60px; }
.cecp-cb-labels .cecp-cb-btn:hover .cecp-cb-txt { opacity: 1; }
/* Hide labels by default unless .cecp-cb-labels present */
.cecp-cb:not(.cecp-cb-labels) .cecp-cb-txt { display: none; }

@keyframes cecp-cb-pulse {
  0%   { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 0 rgba(37,99,235,.5); }
  70%  { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 12px rgba(37,99,235,0); }
  100% { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 0 rgba(37,99,235,0); }
}

@media (max-width: 600px) {
  .cecp-cb { bottom: 14px; gap: 10px; }
  .cecp-cb-right { right: 12px; }
  .cecp-cb-left  { left: 12px; }
  .cecp-cb-btn { width: 46px; height: 46px; }
  .cecp-cb-ico { width: 23px; height: 23px; }
  .cecp-cb-txt { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cecp-cb-phone { animation: none; }
  .cecp-cb-btn { transition: none; }
}
