/**
 * @package     mod_redim_random_cta
 * @copyright   reDim GmbH | @link https://www.redim.de | @contact team@redim.de
 * @license     GNU General Public License version 2 or later
 */

.redim-random-cta {
    --redim-cta-green: #95c047;
    --redim-cta-green-dark: #7ea338;
    --redim-cta-white: #fff;
    --redim-cta-button-bg: #f8f8f8;

    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 2rem 1.5rem;
    background-color: var(--redim-cta-green);
    border-radius: 20px;
    color: var(--redim-cta-white);
}

.redim-random-cta *,
.redim-random-cta *::before,
.redim-random-cta *::after {
    box-sizing: inherit;
}

.redim-random-cta__content {
    flex: 1 1 auto;
    max-width: 44rem;
}

.redim-random-cta__title {
    color: #fff;
    font-size: 28px !important;
    line-height: 1.4;
    font-family: 'Merriweather', serif !important;
    font-weight: 400 !important;
}

.redim-random-cta__text {
    margin: 0 0 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--redim-cta-white);
}

.redim-random-cta__media {
    flex: 0 0 auto;
    align-self: center;
}

.redim-random-cta__image {
    display: block;
    width: 13rem;
    height: 13rem;
    border-radius: 100% !important;
    object-fit: cover;
}

@media (min-width: 48rem) {
    .redim-random-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
        padding: 3rem 2.75rem;
    }

    .redim-random-cta__image {
        width: 16.25rem;
        height: 16.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .redim-random-cta__button {
        transition: none;
    }
}
