.infinite-slider-container {
  width: 100%;
  height: 56px;
  background-color: #00a0aa;
  border: 1px solid #99a9ce;
  margin: 32px 0 40px 0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

.infinite-slider-container.dragging {
  cursor: grabbing;
}

.infinite-slider-track {
  display: flex;
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  align-items: center;
  height: 100%;
  top: 0;
  right: 0;
  padding-top: 2px;
  transition: none;
}

.infinite-slider-item {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  color: white;
  font-size: 18px;
  font-family: 'yekanBakh-Regular';
  pointer-events: none; /* Prevents text selection while dragging */
}

.infinite-slider-item span {
  margin: 0 5px;
}

/* RTL specific styles */
[dir='rtl'] .infinite-slider-track {
  right: 0;
  left: auto;
}

[dir='rtl'] .infinite-slider-item {
  direction: rtl;
  text-align: right;
}

/* Animation performance optimizations */
.infinite-slider-track {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Smooth hover transitions */
.infinite-slider-container {
  transition: box-shadow 0.3s ease;
}

/* Custom scrollbar for container if needed */
.infinite-slider-container::-webkit-scrollbar {
  display: none;
}

.infinite-slider-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
