.chatly-wrap {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999999;
  font-family: Arial, sans-serif;
}

/* =========================
   MAIN BUTTON (same size)
   ========================= */
.chatly-main {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #248FC5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.chatly-main:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.chatly-main:focus,
.chatly-main:focus-visible,
.chatly-main:active {
  outline: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.chatly-main::-moz-focus-inner { border: 0; }

/* MAIN icon size control (edit these) */
:root{
  --chatly-main-icon: 45px;

  --chatly-wa-icon:   55px;
  --chatly-tg-icon:   63px;
  --chatly-ph-icon:   36px;
  --chatly-waze-icon: 36px;

  /* Optional: “visual zoom” per icon if the SVG has lots of padding */
  --chatly-wa-scale:   1;
  --chatly-tg-scale:   1;
  --chatly-ph-scale:   1;
  --chatly-waze-scale: 1;
}

.chatly-main svg {
  width: var(--chatly-main-icon);
  height: var(--chatly-main-icon);
  display: block;
  pointer-events: none;
}

/* =========================
   ACTIONS POPUP
   ========================= */
.chatly-actions {
  position: absolute;
  left: 0;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.chatly-wrap.is-open .chatly-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Action buttons (same size) */
.chatly-action {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.chatly-action:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.26);
}

/* Base SVG behavior (do NOT set a fixed size here) */
.chatly-action svg{
  display: block;
  pointer-events: none;
}

/* =========================
   PER-ICON SIZE CONTROL
   (edit these only)
   ========================= */

/* WhatsApp */
.chatly-action.chatly-wa svg{
  width: var(--chatly-wa-icon);
  height: var(--chatly-wa-icon);
  transform: scale(var(--chatly-wa-scale));
  fill: #fff;
}

/* Telegram */
.chatly-action.chatly-tg svg{
  width: var(--chatly-tg-icon);
  height: var(--chatly-tg-icon);
  transform: scale(var(--chatly-tg-scale));
  fill: #fff;
}

/* Phone */
.chatly-action.chatly-phone svg{
  width: var(--chatly-ph-icon);
  height: var(--chatly-ph-icon);
  transform: scale(var(--chatly-ph-scale));
  fill: #fff;
}

/* Waze */
.chatly-action.chatly-waze svg{
  width: var(--chatly-waze-icon);
  height: var(--chatly-waze-icon);
  transform: scale(var(--chatly-waze-scale));
  fill: #000;
}

/* Button background colors */
.chatly-main  { background: #248FC5; }
.chatly-wa    { background: #25D366; }
.chatly-tg    { background: #229ED9; }
.chatly-phone { background: #219485; }
.chatly-waze  { background: #33CCFF; }

/* RTL-friendly tooltip */
.chatly-tip {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,20,.92);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  direction: rtl;
  text-align: right;
  font-family: "rubik", Arial, sans-serif;
}

.chatly-tip:after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent rgba(20,20,20,.92) transparent transparent;
}

.chatly-action:hover .chatly-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

/* Optional tooltip for main button */
.chatly-main-tip { display: none; }
