.creditsContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 4px 18px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  transition: all 0.2s ease;
  margin-bottom: 16px;
  padding-left: 4px;
  position: relative;
}

.creditsContainer:not(.creditsContainerActive) {
  position: relative;
  border-color: rgba(160, 171, 255, 0.15);
}

.creditsContainer:not(.creditsContainerActive)::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(90deg, transparent, transparent, #a0abff, #a0abff, transparent, transparent);
  background-size: 300% 100%;
  animation: moveGradient 6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2px;
  pointer-events: none;
  z-index: 1;
}

@keyframes moveGradient {
  0% {
    background-position: 300% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.creditsContainerActive {
  border-color: #a0abff;
}

.creditsContainerActive .creditsText,
.creditsContainerActive .creditsAmount,
.creditsContainerActive .creditsNumber {
  color: #a0abff;
}

.creditsContainer .learnMore {
  color: var(--primary);
  text-transform: uppercase;
}

.creditsContainerActive :global(.ui.toggle.checkbox input:checked ~ .box:before),
.creditsContainerActive :global(.ui.toggle.checkbox input:checked ~ label:before) {
  background-color: #a0abff !important;
}

.creditsContainerActive :global(.MuiSwitch-thumb),
.creditsContainerActive :global(.Mui-checked + .MuiSwitch-track) {
  background-color: #a0abff !important;
}

.creditsLeft {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
}

.creditsLeft :global(.MuiSwitch-root.MuiSwitch-sizeMedium.css-julti5-MuiSwitch-root) {
  margin-left: -12px;
}

.creditsText {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.creditsAmount {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s ease;
}

.creditsNumber {
  font-weight: 600;
  transition: color 0.2s ease;
  color: #a0abff;
  cursor: pointer;
}

.creditsContainer .creditsPopupContainer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.creditsContainer .creditsIcon {
  width: 18px;
  height: 18px;
}

.creditsContainer .animation {
  position: absolute;
  left: -175px;
  bottom: -200px;
  width: 500px;
  height: 500px;
}

.pausedMessageContainer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.infoIconContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  cursor: help;
}

.infoIcon {
  width: 20px;
  height: 20px;
  /* Use mask to apply color */
  mask-image: url('../../../../images/InfoOutlined.svg');
  -webkit-mask-image: url('../../../../images/InfoOutlined.svg');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  background-color: var(--sunish);
  margin-top: 2px;
}

.pausedMessage {
  font-size: 14px;
  color: var(--secondary);
}

.temporarilyUnavailableContainer {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.InfoIcon {
  background-color: var(--secondary);
}

.temporarilyUnavailable {
  font-size: 14px;
  color: var(--sunish);
  font-weight: bold;
}

.tooltipContent {
  text-align: left;
}

.discordLink {
  color: white;
  font-weight: bold;
  text-decoration: underline;
}

.discordLink:hover {
  color: var(--primary-hover);
}
