@keyframes mask_animation {
  from {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
  to {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
}
@keyframes mask_animation_2 {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

.animex-button i {
  transition: all 0.3s;
}
.animex-button svg {
  width: 1em;
  height: 1em;
}
.animex-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.animex-button-text {
  display: inline-block;
  line-height: 1 !important; /* Force match Elementor default */
  margin: 0 !important;
  padding: 0 !important;
}

.animex-button span,
.animex-button i {
  vertical-align: middle;
}
.animex-button.icon-position-after i,
.animex-button.icon-position-after svg {
  order: 15;
}
.animex-button.icon-position-after .animex-btn-mask::after {
  align-items: flex-start;
  justify-content: flex-start;
}

.animex-btn-default {
  border: 1px solid #1c1d20;
  overflow: hidden;
  z-index: 0;
}
.animex-btn-default:hover {
  color: #1c1d20;
}
.animex-btn-circle {
  width: 140px;
  height: 140px;
  color: #1c1d20;
  border-radius: 100%;
  flex-direction: column;
  background-color: #e8bf96;
}
@media only screen and (max-width: 1199px) {
  .animex-btn-circle {
    width: 130px;
    height: 130px;
  }
}
.animex-btn-circle:hover {
  color: #fff;
}
.animex-btn-oval {
  color: #1c1d20;
  border: 1px solid #1c1d20;
  padding: 32px 52px;
  border-radius: 50% 50% 50% 50%/50% 50% 50% 50%;
}
@media only screen and (max-width: 991px) {
  .animex-btn-oval {
    padding: 30px;
  }
}
.animex-btn-oval:hover {
  color: #e8bf96;
}
.animex-btn-ellipse {
  color: #1c1d20;
  padding: 45px 45px;
  position: relative;
  background-color: #1c1d20;
  border-radius: 100%;
  border-top-left-radius: 200%;
  border-bottom-right-radius: 200%;
  z-index: 1;
}
.animex-btn-ellipse:hover {
  color: #ffbc7d;
  background-color: #e8bf96;
}
.animex-btn-ellipse:before {
  position: absolute;
  content: "";
  width: calc(100% - 16px);
  height: calc(100% - 2px);
  background-color: #fff;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  border-top-left-radius: 200%;
  border-bottom-right-radius: 200%;
}
.animex-btn-square {
  flex-direction: column;
  color: #1c1d20;
  text-align: center;
  border: 1px solid currentColor;
  height: 215px;
  width: 215px;
  padding: 20px;
  z-index: 0;
  transition: all 0.5s;
}
@media only screen and (max-width: 1199px) {
  .animex-btn-square {
    width: 200px;
    height: 200px;
  }
}
@media only screen and (max-width: 991px) {
  .animex-btn-square {
    width: 170px;
    height: 170px;
    font-size: 18px;
  }
}
.animex-btn-square:hover {
  color: #e8bf96;
}
.animex-btn-underline {
  color: #1c1d20;
  padding-bottom: 5px;
  position: relative;
}
.animex-btn-underline::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  left: 0;
  bottom: 0;
  background-color: #1c1d20;
  transition: all 0.3s;
}
.animex-btn-underline:hover {
  color: #e8bf96;
  fill: #e8bf96;
}
.animex-btn-underline:hover::after {
  width: 0%;
}
.animex-btn-mask {
  position: relative;
  overflow: hidden;
  transition: all 0.5s;
  border-radius: 5px;
  color: #1c1d20;
  border: 1px solid #1c1d20;
  z-index: 1;
}
.animex-btn-mask i,
.animex-btn-mask svg {
  position: relative;
  z-index: 1;
}
.animex-btn-mask::after {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: #fff;
  position: absolute;
  content: attr(data-text);
  cursor: pointer;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: #1c1d20;
  /* Note: You will need to copy the mask image separately if needed */
  /* -webkit-mask: url("../../images/mask-btn.png"); */
  /* mask: url("../../images/mask-btn.png"); */
  -webkit-mask-size: 2300% 100%;
  mask-size: 2300% 100%;
  animation: mask_animation_2 0.7s steps(22) forwards;
}
.animex-btn-mask:hover {
  color: #1c1d20;
}
.animex-btn-mask:hover::after {
  animation: mask_animation 0.7s steps(22) forwards;
}

.btn-hover-bgchange {
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.btn-hover-bgchange span {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  left: 50%;
  top: 50%;
  z-index: -1;
  border-radius: 100%;
  transition: all 1s;
  background-color: #1c1d20;
  transform: translate(-50%, -50%);
}
.btn-hover-bgchange:hover {
  color: #fff;
  border: 1px solid #1c1d20;
}
.btn-hover-bgchange:hover span {
  width: 400px;
  height: 400px;
}

.btn-hover-default:hover {
  color: #1c1d20;
  background-color: #fff;
}
.btn-hover-cross {
  overflow: hidden;
  position: relative;
  transition: all 1s;
}
.btn-hover-cross::after {
  position: absolute;
  content: "";
  width: 150%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: #1c1d20;
  transform: translateX(-50%) translateY(-50%);
  transition: all 0.75s;
  opacity: 0.5;
  z-index: -1;
}
.btn-hover-cross:hover {
  color: #fff;
  background-color: transparent;
}
.btn-hover-cross:hover::after {
  height: 120%;
  opacity: 1;
}
.btn-hover-divide {
  overflow: hidden;
  position: relative;
  transition: all 1s;
  z-index: 1;
}
.btn-hover-divide::after {
  position: absolute;
  content: "";
  width: 0%;
  height: 100%;
  left: 50%;
  top: 50%;
  background-color: #1c1d20;
  transform: translateX(-50%) translateY(-50%);
  transition: all 0.75s;
  opacity: 0.5;
  z-index: -1;
}
.btn-hover-divide:hover {
  color: #fff;
  background-color: transparent;
}
.btn-hover-divide:hover::after {
  width: 120%;
  opacity: 1;
}
.btn-hover-cropping {
  overflow: hidden;
  position: relative;
  transition: all 1s;
}
.btn-hover-cropping::after {
  position: absolute;
  content: "";
  width: 150%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: #1c1d20;
  transform: translateX(-50%) translateY(-50%) rotate(25deg);
  transition: all 0.75s;
  opacity: 0.5;
  z-index: -1;
}
.btn-hover-cropping:hover {
  color: #fff;
  background-color: transparent;
}
.btn-hover-cropping:hover::after {
  height: 400%;
  opacity: 1;
}
.btn-rollover-top {
  position: relative;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}
.btn-rollover-top:after {
  position: absolute;
  left: 0px;
  bottom: 0px;
  height: 0px;
  width: 100%;
  z-index: -1;
  content: "";
  background-color: #1c1d20;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}
.btn-rollover-top:hover {
  color: #fff;
  background-color: transparent;
}
.btn-rollover-top:hover::after {
  top: 0%;
  bottom: auto;
  height: 100%;
}
.btn-rollover-left {
  position: relative;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}
.btn-rollover-left::after {
  position: absolute;
  top: 0px;
  right: 0px;
  height: 100%;
  width: 0px;
  z-index: -1;
  content: "";
  background-color: #1c1d20;
  transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
}
.btn-rollover-left:hover {
  color: #fff;
  background-color: transparent;
}
.btn-rollover-left:hover::after {
  left: 0%;
  right: auto;
  width: 100%;
}
.btn-rollover-cross {
  overflow: hidden;
  position: relative;
  transition: all 0.5s;
}
.btn-rollover-cross::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  bottom: 100%;
  left: 100%;
  opacity: 0;
  border-bottom: 1px solid #1c1d20;
  border-left: 1px solid #1c1d20;
  transition: all 0.75s;
}
.btn-rollover-cross::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 100%;
  right: 100%;
  opacity: 0;
  border-top: 1px solid #1c1d20;
  border-right: 1px solid #1c1d20;
  transition: all 0.75s;
}
.btn-rollover-cross:hover {
  border-color: transparent !important;
  color: #1c1d20;
}
.btn-rollover-cross:hover::before {
  bottom: 0;
  left: 0;
  opacity: 1;
  width: 100%;
  height: 100%;
}
.btn-rollover-cross:hover::after {
  top: 0;
  right: 0;
  opacity: 1;
  width: 100%;
  height: 100%;
}
.btn-parallal-border {
  overflow: hidden;
  position: relative;
  transition: all 0.5s;
}
.btn-parallal-border::before {
  position: absolute;
  content: "";
  width: 0%;
  height: 0%;
  bottom: 0;
  left: 0;
  opacity: 0;
  border-bottom: 1px solid #1c1d20;
  border-left: 1px solid #1c1d20;
  transition: all 0.75s;
}
.btn-parallal-border::after {
  position: absolute;
  content: "";
  width: 0%;
  height: 0%;
  top: 0;
  right: 0;
  opacity: 0;
  border-top: 1px solid #1c1d20;
  border-right: 1px solid #1c1d20;
  transition: all 0.75s;
}
.btn-parallal-border:hover {
  border-color: transparent !important;
  color: #1c1d20;
}
.btn-parallal-border:hover::before {
  opacity: 1;
  width: 100%;
  height: 100%;
}
.btn-parallal-border:hover::after {
  opacity: 1;
  width: 100%;
  height: 100%;
}

/* Advanced Hover Structural Styles */
/* Redundant animex-button block removed */

.animex-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-color: var(--animex-btn-hover-bg, rgba(0, 0, 0, 0.1));
  transform: scaleX(0);
  transform-origin: right;
}

.animex-button-text-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.animex-button-text-hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  white-space: nowrap;
}

.animex-button-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 3;
  pointer-events: none;
}

.animex-liquid-fill {
  position: absolute;
  top: 100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-color: var(--animex-btn-liquid-color, #6c5ce7);
  border-radius: 40%;
  z-index: 0;
  pointer-events: none;
}

.animex-button-container[data-settings*="unveil"] .animex-button-text-wrapper {
  height: 1.2em; /* Ensure single line height for reveal */
}
