/* Alignment wrapper */
.elb-btn-wrap { display: block; }

/* Button base (clean defaults; all overridable by controls) */
.elb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  color: #ffffff;
  background-color: #4f46e5;
  border: 1px solid transparent;
  border-radius: 44rem;
  padding: 10px 20px;
  min-width: 22%;
  transition: all 300ms ease-in-out;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.2);
}

.elb-btn:hover { background-color: #4338ca; }

/* Icon wrapper (editable via controls) */
.elb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 44px;
  background-color: #000; /* control overrides */
  padding: 8px;
}

.elb-icon .elb-lottie,
.elb-icon lottie-player,
.elb-icon .elb-fallback {
  width: 100%;
  height: 100%;
  display: block;
}

/* Label + slide effect */
.elb-label {
  display: inline-flex;
  align-items: center;
  height: 36px;              /* synced by control */
  line-height: auto;         /* synced by control */
  overflow: hidden;
}

.elb-label .elb-lines {
  display: inline-flex;
  flex-direction: column;
  transform: translateY(25%);
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

.elb-btn:hover .elb-label .elb-lines,
.elb-btn:focus-visible .elb-label .elb-lines {
  transform: translateY(-25%);
}

.elb-line { white-space: nowrap; width: 100%; text-align: center; }

/* Icon position variants */
.elb-btn.icon-right { flex-direction: row-reverse; }

/* Focus a11y */
.elb-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/*-------------------------------------------------------------------------------------------------*/


/* ==== Simple Icon mode — color & hover inner-circle ==== */

/* Ensure .elb-icon can host the pseudo-element */
.elb-icon { position: relative; overflow: hidden; }

/* Colorize uploaded icon using a CSS mask */
.elb-simple {
  width: 70%;
  height: 70%;
  background-color: var(--elb-simple-color, #fff);
  -webkit-mask-image: var(--elb-simple-url);
  mask-image: var(--elb-simple-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  display: block;
    position: relative;   /* add this */
  z-index: 2;           /* icon above */
}

/* Inner-circle animation inside the icon background on hover */
.icon-simple.pulse-on::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--elb-pulse-color, rgba(255,255,255,0.25));
  transform: scale(0.2);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}
.elb-btn:hover .icon-simple.pulse-on::after {
  transform: scale(1);
  opacity: 1;
}

/* Remove gap and center text when icon is disabled */
.elb-btn.elb-btn--no-icon {
    gap: 0 !important;
    justify-content: center;
}

/* Ensure the label takes full width when no icon exists */
.elb-btn.elb-btn--no-icon .elb-label {
    width: 100%;
    justify-content: center;
}







