/* ===== Floating Contact Button – v1.3 ===== */
*, *::before, *::after { box-sizing: border-box; }

/* ── Widget wrapper ── */
#fcb-widget {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

#fcb-widget.fcb-right { right: 0; align-items: flex-end; }
#fcb-widget.fcb-left  { left: 0;  align-items: flex-start; }

/* ── Menu card: locked at icon width ── */
.fcb-menu {
  background: #ffffff;
  box-shadow: -2px 4px 20px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  width: 44px;
  overflow: visible;
  padding: 6px 0;
  position: relative;
}

.fcb-left  .fcb-menu { border-radius: 0 12px 12px 0; }
.fcb-right .fcb-menu { border-radius: 12px 0 0 12px; }

/* Hide toggle – menu always visible */
.fcb-toggle { display: none; }

/* ── Each item: fixed 44px, overflow visible ── */
.fcb-item {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  height: 54px;
  width: 44px;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  color: #333 !important;
  transition: background .15s ease;
}

.fcb-item + .fcb-item {
  border-top: 1px solid #f0f0f0;
}

.fcb-right .fcb-item { justify-content: flex-end; }
.fcb-left  .fcb-item { justify-content: flex-start; }

/* ── Icon column ── */
.fcb-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.fcb-item-icon::before {
  content: '';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ic-bg, rgba(229,62,62,.12));
  position: absolute;
}

.fcb-item-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--ic-color, #e53e3e);
  position: relative;
  z-index: 1;
}

/* ── Popup body: slides out BESIDE the icon (absolute) ── */
.fcb-item-body {
  position: absolute;
  top: 0;
  height: 54px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #ebebeb;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .3s cubic-bezier(.4,0,.2,1), box-shadow .2s ease;
  z-index: 1;
}

/* Right widget: body appears to the LEFT of icon */
.fcb-right .fcb-item-body {
  right: 38px;
  border-radius: 10px 0 0 10px;
  border-right: none;
  flex-direction: row-reverse;
  padding-right: 4px;
 z-index: -1;
}

/* Left widget: body appears to the RIGHT of icon */
.fcb-left .fcb-item-body {
  left: 44px;
  border-radius: 0 10px 10px 0;
  border-left: none;
  padding-left: 4px;
}

.fcb-item:hover .fcb-item-body {
  max-width: 220px;
  box-shadow: -3px 2px 12px rgba(0,0,0,.10);
}

.fcb-left .fcb-item:hover .fcb-item-body {
  box-shadow: 3px 2px 12px rgba(0,0,0,.10);
}

/* ── Label ── */
.fcb-item-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  padding: 0 8px;
  white-space: nowrap;
}

/* ── Separator ── */
.fcb-item-sep {
  flex-shrink: 0;
  width: 1.5px;
  height: 16px;
  background: #ddd;
}

/* ── Value ── */
.fcb-item-value {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ic-color, #e53e3e);
  padding: 0 10px;
  white-space: nowrap;
}

/* ── Per-type colors ── */
.fcb-item--hotline1 { --ic-color: #e53e3e; --ic-bg: rgba(229,62,62,.1); }
.fcb-item--hotline2 { --ic-color: #dd6b20; --ic-bg: rgba(221,107,32,.1); }
.fcb-item--zalo     { --ic-color: #0068ff; --ic-bg: rgba(0,104,255,.1); }
.fcb-item--maps     { --ic-color: #ea4335; --ic-bg: rgba(234,67,53,.1); }
.fcb-item--email    { --ic-color: #34a853; --ic-bg: rgba(52,168,83,.1); }
.fcb-item--messenger{ --ic-color: #0084ff; --ic-bg: rgba(0,132,255,.1); }
.fcb-item--viber    { --ic-color: #7b519d; --ic-bg: rgba(123,81,157,.1); }
.fcb-item--website  { --ic-color: #1a73e8; --ic-bg: rgba(26,115,232,.1); }

/* ── Mobile ── */
@media (max-width: 600px) {
  .fcb-item-label { font-size: 11px; }
  .fcb-item-value { font-size: 11px; }
  .fcb-item:hover .fcb-item-body { max-width: 190px; }
}
