/* Floating bar container */
.zsb-floating-bar {
  position: fixed;
  z-index: 9999;
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.zsb-position-left {
  flex-direction: column;
  top: 55%;
  left: 25px;
  transform: translateY(-50%);
}

.zsb-position-right {
  flex-direction: column;
  top: 55%;
  right: 45px;
  transform: translateY(-50%);
}

.zsb-position-bottom {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  box-shadow: none;
  border-radius: 0;
  background: none;
}

/* Button base styles */
.zsb-btn {
  display: block;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.zsb-btn img {
  display: block;
  margin: auto;
  object-fit: contain;
}

.zsb-btn:hover {
  transform: scale(1.1);
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltips */
.zsb-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 99999;
  display: none;
}

/* ======================= */
/* ICON SIZE VARIATIONS   */
/* (Base sizes - desktop) */
/* ======================= */
.zsb-size-small .zsb-btn {
  width: 36px;
  height: 36px;
}
.zsb-size-small .zsb-btn img {
  width: 28px;
  height: 28px;
}

.zsb-size-medium .zsb-btn {
  width: 48px;
  height: 48px;
}
.zsb-size-medium .zsb-btn img {
  width: 40px;
  height: 40px;
}

.zsb-size-large .zsb-btn {
  width: 60px;
  height: 60px;
}
.zsb-size-large .zsb-btn img {
  width: 52px;
  height: 52px;
}

/* ======================= */
/* RESPONSIVE: TABLETS     */
/* ======================= */
@media (max-width: 768px) {
  .zsb-position-left,
  .zsb-position-right {
    top: 60% !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 6px 2px !important;
    max-width: 44px !important;
    width: auto !important;
  }

  .zsb-position-bottom {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    max-width: 100%;
  }

  /* Override icon sizes for tablets (shrink slightly) */
  .zsb-size-small .zsb-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .zsb-size-small .zsb-btn img {
    width: 24px !important;
    height: 24px !important;
  }

  .zsb-size-medium .zsb-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .zsb-size-medium .zsb-btn img {
    width: 30px !important;
    height: 30px !important;
  }

  .zsb-size-large .zsb-btn {
    width: 44px !important;
    height: 44px !important;
  }
  .zsb-size-large .zsb-btn img {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ======================= */
/* RESPONSIVE: MOBILE (small phones) */
/* ======================= */
@media (max-width: 480px) {
  .zsb-position-left,
  .zsb-position-right {
    left: 6px !important;
    gap: 2px !important;
    padding: 4px 1px !important;
    max-width: 38px !important;
  }

  /* Shrink icon sizes on very small screens */
  .zsb-size-small .zsb-btn {
    width: 28px !important;
    height: 28px !important;
  }
  .zsb-size-small .zsb-btn img {
    width: 20px !important;
    height: 20px !important;
  }

  .zsb-size-medium .zsb-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .zsb-size-medium .zsb-btn img {
    width: 24px !important;
    height: 24px !important;
  }

  .zsb-size-large .zsb-btn {
    width: 36px !important;
    height: 36px !important;
  }
  .zsb-size-large .zsb-btn img {
    width: 28px !important;
    height: 28px !important;
  }
}
