/* Uiverse style base */
.cssbuttons-io-button {
  color: white;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 1.2em;
  font-size: 17px;
  border-radius: 10em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 1.6em rgba(183, 33, 255, 0.3), 0 0 1.6em hsla(191, 98%, 56%, 0.3);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

/* ✅ Default gradient only when Elementor background isn't set */
.cssbuttons-io-button.feb-default-gradient {
  background-image: linear-gradient(19deg, #21D4FD 0%, #B721FF 100%);
}

/* ✅ Force flat background when Classic is selected in Elementor */
.cssbuttons-io-button.feb-bg-classic {
  background-image: none !important;
}

.cssbuttons-io-button .icon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 10em;
  right: 0.3em;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: #B721FF;
  fill: currentColor;
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.9);
}

/* 🔧 Ensure text goes behind icon on hover */
.cssbuttons-io-button .feb-text {
  position: relative;
  
  transition: z-index 0s linear 0.3s;
}
.cssbuttons-io-button:hover .feb-text {
  z-index: 0;
  transition-delay: 0s;
}
