.vesna-animated-button-wrap {
    line-height: 1;
}

.vesna-animated-button,
.vesna-animated-button:visited {
    --vesna-button-text-color: #ffffff;
    --vesna-button-text-hover-color: var(--vesna-button-text-color);
    --vesna-button-icon-color: #ffffff;
    --vesna-button-icon-hover-color: var(--vesna-button-icon-color);
    --vesna-underline-color: #ffffff;
    --vesna-icon-travel: 10px;
    --vesna-icon-duration: .46s;
    --vesna-underline-duration: .58s;
    --vesna-motion-ease: cubic-bezier(.2, .8, .2, 1);
    --vesna-underline-offset: 12px;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    width: auto;
    max-width: 100%;
    color: var(--vesna-button-text-color);
    text-decoration: none !important;
    vertical-align: middle;
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
    transition: color .28s ease, background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.vesna-animated-button:hover,
.vesna-animated-button:focus-visible {
    color: var(--vesna-button-text-hover-color);
    text-decoration: none !important;
}

.vesna-animated-button__text {
    display: inline-block;
    color: inherit;
    line-height: 1.1;
    white-space: nowrap;
}

.vesna-animated-button__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    color: var(--vesna-button-icon-color);
    line-height: 1;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    transition:
        color .28s ease,
        transform var(--vesna-icon-duration) var(--vesna-motion-ease);
    will-change: transform;
}

.vesna-animated-button:hover .vesna-animated-button__icon,
.vesna-animated-button:focus-visible .vesna-animated-button__icon {
    color: var(--vesna-button-icon-hover-color);
}

.vesna-animated-button__icon-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transform: translate3d(0, 0, 0);
}

.vesna-animated-button__icon-clone {
    display: none !important;
}

.vesna-animated-button__icon i,
.vesna-animated-button__icon svg,
.vesna-animated-button__fallback-icon {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.vesna-animated-button__icon svg {
    fill: currentColor;
}

.vesna-animated-button__underline {
    position: absolute;
    left: 0;
    bottom: calc(-1 * var(--vesna-underline-offset));
    display: block;
    width: 100%;
    height: 3px;
    background: var(--vesna-underline-color);
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(1);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    transition:
        transform var(--vesna-underline-duration) var(--vesna-motion-ease),
        opacity .25s ease;
    will-change: transform;
}

.vesna-animated-button--underline-no .vesna-animated-button__underline {
    transform: scaleX(0);
}

.vesna-animated-button--trigger-hover:hover .vesna-animated-button__icon,
.vesna-animated-button--trigger-hover:focus-visible .vesna-animated-button__icon {
    transform: translate3d(var(--vesna-icon-travel), 0, 0);
}

.vesna-animated-button--trigger-hover.vesna-animated-button--underline-no:hover .vesna-animated-button__underline,
.vesna-animated-button--trigger-hover.vesna-animated-button--underline-no:focus-visible .vesna-animated-button__underline {
    transform: scaleX(1);
}

.vesna-animated-button--trigger-hover.vesna-animated-button--underline-yes:hover .vesna-animated-button__underline,
.vesna-animated-button--trigger-hover.vesna-animated-button--underline-yes:focus-visible .vesna-animated-button__underline {
    animation: vesnaUnderlineSweep var(--vesna-underline-duration) var(--vesna-motion-ease) both;
}

.vesna-animated-button--trigger-always .vesna-animated-button__icon {
    animation: vesnaArrowGentle var(--vesna-icon-duration) var(--vesna-motion-ease) infinite alternate;
}

.vesna-animated-button--trigger-always .vesna-animated-button__underline {
    animation: vesnaUnderlineSweep var(--vesna-underline-duration) var(--vesna-motion-ease) infinite;
}

.vesna-animated-button--trigger-none .vesna-animated-button__icon,
.vesna-animated-button--trigger-none .vesna-animated-button__underline {
    animation: none !important;
    transition: none !important;
}

@keyframes vesnaUnderlineSweep {
    0% { transform: scaleX(.001); }
    100% { transform: scaleX(1); }
}

@keyframes vesnaArrowGentle {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(var(--vesna-icon-travel), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .vesna-animated-button,
    .vesna-animated-button__underline,
    .vesna-animated-button__icon {
        animation: none !important;
        transition: none !important;
    }
}
