.custom-button {
    display: flex;
    margin-bottom: var(--space-2);
}

.custom-button.align-left {
    justify-content: flex-start;
}

.custom-button.align-center {
    justify-content: center;
}

.custom-button.align-right {
    justify-content: flex-end;
}

.custom-button[data-style="alternate"] .button-link {
    background-color: var(--sw-button-secondary-bg);
    color: var(--sw-button-secondary-color);
}

.custom-button .button-link {
    position: relative;
    display: inline-block;
    padding: 9.5px var(--space-5);
    font-size: 0.8125rem;
    line-height: var(--leading-none);
    font-weight: 700;
    color: var(--sw-button-primary-color);
    text-decoration: none;
    border-radius: var(--rounded-full);
    border: 1px solid var(--deep-blue);
    background-color: var(--sw-button-primary-bg);
}

.custom-button[data-style="blue-alt"] .button-link {
    background-color: var(--light-blue);
}

.custom-button[data-style="red-alt"] .button-link {
    color: var(--white);
    background-color: var(--red);
}

.custom-button[data-style="orange-alt"] .button-link {
    background-color: var(--gold);
}

.custom-button .button-link span {
    position: relative;
    z-index: 1;
}

@media (hover: hover) {
    .custom-button .button-link {
        overflow: hidden;
        transition: color ease-out 300ms;
    }
    .custom-button .button-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 105%);
        border-radius: var(--rounded-full);
        background-color: var(--pale-yellow);
        aspect-ratio: 1 / 1;
        width: 71px;
        height: unset;
        transition: width ease-out 300ms,
                    transform ease-out 300ms;
        z-index: -1;
    }
    .custom-button[data-style="alternate"] .button-link::after {
        background-color: var(--gold);
    }
    .custom-button .button-link:hover {
        background-color: var(--sw-button-primary-bg-hover);
        color: var(--sw-button-primary-color-hover);
    }

    .custom-button .button-link:hover::after {
        width: 100%;
        transform: translate(-50%, 40%);
    }

    .custom-button[data-style="alternate"] .button-link:hover {
        background-color: var(--sw-button-secondary-bg-hover);
        color: var(--sw-button-secondary-color-hover);
    }

    .custom-button[data-style="red"] .button-link:hover {
        color: var(--white);
    }

    .custom-button[data-style="red"] .button-link::after {
        width: 105%;
        background-color: var(--red);
    }
    .custom-button[data-style="blue"] .button-link::after {
        background-color: var(--light-blue);
    }

    .custom-button[data-style="blue-alt"] .button-link:hover {
        background-color: var(--light-blue);
    }

    .custom-button[data-style="red-alt"] .button-link:hover {
        background-color: var(--red);
    } 

    .custom-button[data-style="orange-alt"] .button-link:hover {
        background-color: var(--gold);
    } 

    .custom-button[data-style="red-alt"] .button-link::after,
    .custom-button[data-style="blue-alt"] .button-link::after, 
    .custom-button[data-style="orange-alt"] .button-link::after {
        width: 105%;
        background-color: var(--white);
        z-index: 0;
    }
}

.custom-button .button-link:focus-visible {
    outline: var(--sw-focus-color) solid 1px;
    outline-offset: 2px;
}