.primary-button,
.secondary-button,
.tertiary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    overflow: hidden;
    padding: 12px 30px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
}

.primary-button {
    border: 1px solid #E02D3E;
    background: linear-gradient(to bottom, #E02D3E, #B91C2B);
}

.secondary-button {
    border: 1px solid #161616;
    background: #161616;
    padding-inline: 32px;
}

.tertiary-button {
    border: 1px solid #fff;
    border-radius: 3px;
    background: rgb(255 255 255 / 12%);
    padding-inline: 32px;
    color: #fff;
    cursor: pointer;
}

.primary-button__inner {
    position: relative;
    overflow: hidden;
}

.primary-button__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: transform 1.125s cubic-bezier(0.19, 1, 0.22, 1);
}

.primary-button__label img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

.primary-button__label--hover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transition: top 1.125s cubic-bezier(0.19, 1, 0.22, 1);
}

.primary-button:hover .primary-button__label:first-child,
.secondary-button:hover .primary-button__label:first-child,
.tertiary-button:hover .primary-button__label:first-child {
    transform: translateY(-100%);
}

.primary-button:hover .primary-button__label--hover,
.secondary-button:hover .primary-button__label--hover,
.tertiary-button:hover .primary-button__label--hover {
    top: 0;
}
