.aeropsyence-custom-button {
    --aeropsyence-button-font: inherit;
    --aeropsyence-button-font-size: 16px;
    --aeropsyence-button-padding-x: 24px;
    --aeropsyence-button-padding-y: 10px;
    --aeropsyence-button-height: calc(var(--aeropsyence-button-font-size) + var(--aeropsyence-button-padding-y) + var(--aeropsyence-button-padding-y) + 2px);
    --aeropsyence-button-capsule-size: var(--aeropsyence-button-height);
    --aeropsyence-button-label-width: 132px;
    --aeropsyence-button-icon-width: 18px;
    --aeropsyence-button-icon-height: 13px;
    --aeropsyence-button-label-bg: #FFFFFF;
    --aeropsyence-button-icon-bg: #FFFFFF;
    --aeropsyence-button-border-color: #FFFFFF;
    --aeropsyence-button-text-color: #0B3C5D;
    --aeropsyence-button-icon-color: #7E57C2;
    --aeropsyence-button-hover-label-bg: #FFFFFF;
    --aeropsyence-button-hover-icon-bg: #FFFFFF;
    --aeropsyence-button-hover-border-color: #0B3C5D;
    --aeropsyence-button-hover-text-color: #0B3C5D;
    --aeropsyence-button-hover-icon-color: #7E57C2;
    --aeropsyence-button-hover-font-weight: 700;
    --aeropsyence-button-hover-icon-scale: 1.3;
    position: relative;
    display: inline-block;
    width: calc(var(--aeropsyence-button-capsule-size) + var(--aeropsyence-button-label-width));
    max-width: 100%;
    height: var(--aeropsyence-button-height);
    color: var(--aeropsyence-button-text-color);
    text-decoration: none !important;
    vertical-align: middle;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

.aeropsyence-custom-button,
.aeropsyence-custom-button * {
    box-sizing: border-box;
}

.aeropsyence-custom-button.aeropsyence-editor-button {
    display: block;
    margin: 10px auto 25px;
}

.aeropsyence-custom-button__icon,
.aeropsyence-custom-button__label {
    position: absolute;
    top: 0;
    height: var(--aeropsyence-button-height);
    border: 1px solid var(--aeropsyence-button-border-color);
    border-radius: 999px;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
    will-change: transform;
}

.aeropsyence-custom-button__icon {
    left: 0;
    z-index: 3;
    display: flex;
    width: var(--aeropsyence-button-capsule-size);
    align-items: center;
    justify-content: center;
    background: var(--aeropsyence-button-icon-bg);
}

.aeropsyence-custom-button__label {
    left: var(--aeropsyence-button-capsule-size);
    z-index: 2;
    display: flex;
    width: var(--aeropsyence-button-label-width);
    min-width: calc(var(--aeropsyence-button-font-size) + var(--aeropsyence-button-padding-x) + var(--aeropsyence-button-padding-x));
    align-items: center;
    justify-content: center;
    padding: var(--aeropsyence-button-padding-y) var(--aeropsyence-button-padding-x);
    overflow: hidden;
    background: var(--aeropsyence-button-label-bg);
    color: var(--aeropsyence-button-text-color);
    font-family: var(--aeropsyence-button-font);
    font-size: var(--aeropsyence-button-font-size);
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.aeropsyence-custom-button.has-italic-label .aeropsyence-custom-button__label {
    font-style: italic;
}

.aeropsyence-custom-button__text {
    display: grid;
    align-items: center;
    transform: translateY(-0.02em);
}

.aeropsyence-custom-button__text-normal,
.aeropsyence-custom-button__text-bold {
    grid-area: 1 / 1;
}

.aeropsyence-custom-button.has-label-weight-animation .aeropsyence-custom-button__text-normal,
.aeropsyence-custom-button.has-label-weight-animation .aeropsyence-custom-button__text-bold {
    transition: opacity 0.28s ease;
}

.aeropsyence-custom-button__text-bold {
    opacity: 0;
    font-weight: var(--aeropsyence-button-hover-font-weight);
}

.aeropsyence-custom-button__glyph {
    display: block;
    width: var(--aeropsyence-button-icon-width);
    height: var(--aeropsyence-button-icon-height);
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.aeropsyence-custom-button__arrow,
.aeropsyence-custom-button__color-icon,
.aeropsyence-custom-button__image {
    display: block;
    width: 100%;
    height: 100%;
}

.aeropsyence-custom-button__arrow {
    background: var(--aeropsyence-button-icon-color);
    -webkit-mask: url("../buttons/arrow-vector.svg") center / contain no-repeat;
    mask: url("../buttons/arrow-vector.svg") center / contain no-repeat;
    transition: background-color 0.3s ease;
}

.aeropsyence-custom-button__color-icon {
    background: var(--aeropsyence-button-icon-color);
    -webkit-mask: var(--aeropsyence-button-custom-icon) center / contain no-repeat;
    mask: var(--aeropsyence-button-custom-icon) center / contain no-repeat;
    transition: background-color 0.3s ease;
}

.aeropsyence-custom-button__image {
    object-fit: contain;
}

.aeropsyence-custom-button [hidden] {
    display: none !important;
}

.aeropsyence-custom-button.has-swap-animation:not(.is-gsap-enabled):hover .aeropsyence-custom-button__icon,
.aeropsyence-custom-button.has-swap-animation:not(.is-gsap-enabled):focus-visible .aeropsyence-custom-button__icon {
    transform: translate3d(var(--aeropsyence-button-label-width), 0, 0);
}

.aeropsyence-custom-button.has-swap-animation:not(.is-gsap-enabled):hover .aeropsyence-custom-button__label,
.aeropsyence-custom-button.has-swap-animation:not(.is-gsap-enabled):focus-visible .aeropsyence-custom-button__label {
    transform: translate3d(calc(var(--aeropsyence-button-capsule-size) * -1), 0, 0);
}

.aeropsyence-custom-button:hover .aeropsyence-custom-button__icon,
.aeropsyence-custom-button:focus-visible .aeropsyence-custom-button__icon,
.aeropsyence-custom-button.is-hovered .aeropsyence-custom-button__icon {
    z-index: 1;
    background: var(--aeropsyence-button-hover-icon-bg);
    border-color: var(--aeropsyence-button-hover-border-color);
}

.aeropsyence-custom-button:hover .aeropsyence-custom-button__label,
.aeropsyence-custom-button:focus-visible .aeropsyence-custom-button__label,
.aeropsyence-custom-button.is-hovered .aeropsyence-custom-button__label {
    z-index: 4;
    background: var(--aeropsyence-button-hover-label-bg);
    border-color: var(--aeropsyence-button-hover-border-color);
    color: var(--aeropsyence-button-hover-text-color);
}

.aeropsyence-custom-button:hover .aeropsyence-custom-button__arrow,
.aeropsyence-custom-button:hover .aeropsyence-custom-button__color-icon,
.aeropsyence-custom-button:focus-visible .aeropsyence-custom-button__arrow,
.aeropsyence-custom-button:focus-visible .aeropsyence-custom-button__color-icon,
.aeropsyence-custom-button.is-hovered .aeropsyence-custom-button__arrow,
.aeropsyence-custom-button.is-hovered .aeropsyence-custom-button__color-icon {
    background: var(--aeropsyence-button-hover-icon-color);
}

.aeropsyence-custom-button.has-label-weight-animation:hover .aeropsyence-custom-button__text-normal,
.aeropsyence-custom-button.has-label-weight-animation:focus-visible .aeropsyence-custom-button__text-normal,
.aeropsyence-custom-button.has-label-weight-animation.is-hovered .aeropsyence-custom-button__text-normal {
    opacity: 0;
}

.aeropsyence-custom-button.has-label-weight-animation:hover .aeropsyence-custom-button__text-bold,
.aeropsyence-custom-button.has-label-weight-animation:focus-visible .aeropsyence-custom-button__text-bold,
.aeropsyence-custom-button.has-label-weight-animation.is-hovered .aeropsyence-custom-button__text-bold {
    opacity: 1;
}

.aeropsyence-custom-button.has-emphasis-animation:hover .aeropsyence-custom-button__glyph,
.aeropsyence-custom-button.has-emphasis-animation:focus-visible .aeropsyence-custom-button__glyph,
.aeropsyence-custom-button.has-emphasis-animation.is-hovered .aeropsyence-custom-button__glyph {
    transform: scale(var(--aeropsyence-button-hover-icon-scale));
}

.aeropsyence-custom-button.is-gsap-enabled .aeropsyence-custom-button__icon,
.aeropsyence-custom-button.is-gsap-enabled .aeropsyence-custom-button__label {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .aeropsyence-custom-button,
    .aeropsyence-custom-button * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
