.btn-fill-wipe {
  --btn-fill-base: #f3cc84;
  --btn-fill-active: #ff9300;
  --btn-fill-hover: #E68200;
  --btn-fill-duration: 4s;
  --btn-fill-hover-duration: 1800ms;

  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--btn-fill-base) !important;
  background-image: none !important;
}

.btn-fill-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 0;
  background: linear-gradient(
    to right,
    var(--btn-fill-active) 0%,
    var(--btn-fill-active) 65%,
    rgba(255, 147, 0, 0) 100%
  );
  border-radius: inherit;
  transition: width var(--btn-fill-duration) ease;
}

.btn-fill-wipe::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 0;
  background: linear-gradient(
  to left,
  var(--btn-fill-hover) 0%,
  var(--btn-fill-hover) 65%,
  rgba(230, 130, 0, 0) 100%
);
  border-radius: inherit;
  transition: width var(--btn-fill-hover-duration) ease;
}

.btn-fill-wipe > *,
.btn-fill-wipe .btn-fill-label {
  position: relative;
  z-index: 1;
}

.btn-fill-wipe.is-activating::before {
  width: 100%;
}

.btn-fill-wipe.is-active {
  background-color: var(--btn-fill-active) !important;
  background-image: none !important;
}

.btn-fill-wipe.is-active::before {
  width: 0;
}

.btn-fill-wipe:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.btn-fill-wipe.btn-fill-hover-disabled:disabled {
  pointer-events: auto;
  cursor: pointer;
}

.btn-fill-wipe:not(.is-activating):not(:disabled):hover,
.btn-fill-wipe.btn-fill-hover-disabled:not(.is-activating):hover {
  transform: translateY(-1px);
}

.btn-fill-wipe:not(.is-activating):not(:disabled):hover::after,
.btn-fill-wipe.btn-fill-hover-disabled:not(.is-activating):hover::after {
  width: 100%;
}
