.interactive-button {
    border-radius: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    max-width: 100%;
    min-height: 25rem;
    padding: 2rem 1.5rem;
    position: relative;
    text-decoration-color: transparent;
    width: auto;
}

.interactive-button-arrow-wrapper {
    align-items: center;
    aspect-ratio: 1/1;
    background-color: var(--wp--preset--color--base);
    border-radius: 50%;
    display: flex;
    margin-left: 1rem;
    max-width: 3rem;
    padding: 0.8rem;
}

.interactive-button-content-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.interactive-button-content-wrapper::before {
    background-color: white;
    border-radius: 1rem;
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.75s ease-out;
    width: 100%;
    z-index: -1;
}

.interactive-button.has-base-color .interactive-button-content-wrapper::before {
    background-color: black;
}

.interactive-button-title {
    display: block;
    font-size: var(--wp--preset--font-size--large);
    font-weight: 700;
    word-break: keep-all;
    word-wrap: normal;
}

.interactive-button .interactive-button-title {
    letter-spacing: 0.08em;
    transition: letter-spacing 0.5s ease-out;
}

.interactive-button-content {
    -webkit-box-orient: vertical;
    line-height: 0;
    opacity: 0;
    transition:
        line-height 0.5s ease-out,
        opacity 0.25s ease-out,
        padding 0.5s ease-out;
}

.interactive-button:focus .interactive-button-content,
.interactive-button:hover .interactive-button-content {
    line-height: inherit;
    opacity: 1;
    padding-block-start: 1rem;
    transition:
        line-height 0.5s ease-out,
        opacity 0.25s 0.4s ease-out,
        padding 0.5s ease-out;
}

.interactive-button:focus .interactive-button-title,
.interactive-button:hover .interactive-button-title {
    letter-spacing: revert;
}

.interactive-button:focus .interactive-button-content-wrapper::before,
.interactive-button:hover .interactive-button-content-wrapper::before {
    opacity: 0.5;
}

.interactive-button__background-image {
    aspect-ratio: 1/1;
    max-height: 80%;
    max-width: 80%;
    position: absolute;
    right: 2rem;
    top: 3rem;
    z-index: 1;
}

.interactive-button-space {
    margin: auto;
}

@media screen and (max-width: 781px) {
    .interactive-button {
        gap: 1rem;
        min-height: 100%;
    }

    .interactive-button-content {
        line-height: inherit;
        opacity: 1;
        padding-block-start: 1rem;
    }
}
