.brxe-ba-card {
    display: flex;
}

.ba-card-badge {
    position: absolute;
}

.ba-card-title,
.ba-card-subhead,
.ba-card-content {
    width: 100%;
}

/* top */
:where(.ba-card-badge-top-right-desktop) {
    top: 20px;
    right: 20px;
}

:where(.ba-card-badge-top-left-desktop) {
    top: 20px;
    left: 20px;
}

:where(.ba-card-badge-top-center-desktop) {
    top: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*center*/
:where(.ba-card-badge-center-right-desktop) {
    top: 50%;
    right: 20px;
    transform: translate(0, -50%);
}

:where(.ba-card-badge-center-left-desktop) {
    top: 50%;
    left: 20px;
    transform: translate(0, -50%);
}

:where(.ba-card-badge-center-desktop) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*bottom*/
:where(.ba-card-badge-bottom-right-desktop) {
    bottom: 20px;
    right: 20px;
}

:where(.ba-card-badge-bottom-left-desktop) {
    bottom: 20px;
    left: 20px;
}

:where(.ba-card-badge-bottom-center-desktop) {
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.brxe-ba-card:not(.ba-card-image-position-column) .ba-card-image-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 50%;
}

.brxe-ba-card:not(.ba-card-image-position-column) .ba-card-body-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
}


.ba-card-image-wrapper {
    margin: 0;
    width: 100%;
    position: relative;
}

.ba-card-image {
    height: 100%;
    width: 100%;
}

.ba-card-body-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-basis: auto;
}

.ba-card-button-fullwidth {
    width: 100%;
}

/* Tablet Portrait (<992px) */
@media (max-width: 991px) {

    /* top */
    :where(.ba-card-badge-top-right-tablet_portrait) {
        top: 20px;
        right: 20px;
        bottom: unset;
        left: unset;
        transform: unset;
    }

    :where(.ba-card-badge-top-left-tablet_portrait) {
        top: 20px;
        left: 20px;
        bottom: unset;
        right: unset;
        transform: unset;
    }

    :where(.ba-card-badge-top-center-tablet_portrait) {
        top: 20px;
        left: 50%;
        bottom: unset;
        right: unset;
        transform: translate(-50%, -50%);
    }

    /*center*/
    :where(.ba-card-badge-center-right-tablet_portrait) {
        top: 50%;
        right: 20px;
        bottom: unset;
        left: unset;
        transform: translate(0, -50%);
    }

    :where(.ba-card-badge-center-left-tablet_portrait) {
        top: 50%;
        left: 20px;
        bottom: unset;
        right: unset;
        transform: translate(0, -50%);
    }

    :where(.ba-card-badge-center-tablet_portrait) {
        top: 50%;
        left: 50%;
        bottom: unset;
        right: unset;
        transform: translate(-50%, -50%);
    }

    /*bottom*/
    :where(.ba-card-badge-bottom-right-tablet_portrait) {
        bottom: 20px;
        right: 20px;
        top: unset;
        left: unset;
        transform: unset;
    }

    :where(.ba-card-badge-bottom-left-tablet_portrait) {
        bottom: 20px;
        left: 20px;
        top: unset;
        right: unset;
        transform: unset;
    }

    :where(.ba-card-badge-bottom-center-tablet_portrait) {
        bottom: 20px;
        left: 50%;
        top: unset;
        right: unset;
        transform: translate(-50%, 0);
    }
}

/* Mobile Landscape (<768px) */
@media (max-width: 767px) {

    /* top */
    :where(.ba-card-badge-top-right-mobile_landscape) {
        top: 20px;
        right: 20px;
        bottom: unset;
        left: unset;
        transform: unset;
    }

    :where(.ba-card-badge-top-left-mobile_landscape) {
        top: 20px;
        left: 20px;
        bottom: unset;
        right: unset;
        transform: unset;
    }

    :where(.ba-card-badge-top-center-mobile_landscape) {
        top: 20px;
        left: 50%;
        bottom: unset;
        right: unset;
        transform: translate(-50%, -50%);
    }

    /*center*/
    :where(.ba-card-badge-center-right-mobile_landscape) {
        top: 50%;
        right: 20px;
        bottom: unset;
        left: unset;
        transform: translate(0, -50%);
    }

    :where(.ba-card-badge-center-left-mobile_landscape) {
        top: 50%;
        left: 20px;
        bottom: unset;
        right: unset;
        transform: translate(0, -50%);
    }

    :where(.ba-card-badge-center-mobile_landscape) {
        top: 50%;
        left: 50%;
        bottom: unset;
        right: unset;
        transform: translate(-50%, -50%);
    }

    /*bottom*/
    :where(.ba-card-badge-bottom-right-mobile_landscape) {
        bottom: 20px;
        right: 20px;
        top: unset;
        left: unset;
        transform: unset;
    }

    :where(.ba-card-badge-bottom-left-mobile_landscape) {
        bottom: 20px;
        left: 20px;
        top: unset;
        right: unset;
        transform: unset;
    }

    :where(.ba-card-badge-bottom-center-mobile_landscape) {
        bottom: 20px;
        left: 50%;
        top: unset;
        right: unset;
        transform: translate(-50%, 0);
    }
}

/* Mobile Portrait (<479px) */
@media (max-width: 478px) {

    /* top */
    :where(.ba-card-badge-top-right-mobile_portrait) {
        top: 20px;
        right: 20px;
        bottom: unset;
        left: unset;
        transform: unset;
    }

    :where(.ba-card-badge-top-left-mobile_portrait) {
        top: 20px;
        left: 20px;
        bottom: unset;
        right: unset;
        transform: unset;
    }

    :where(.ba-card-badge-top-center-mobile_portrait) {
        top: 20px;
        left: 50%;
        bottom: unset;
        right: unset;
        transform: translate(-50%, -50%);
    }

    /*center*/
    :where(.ba-card-badge-center-right-mobile_portrait) {
        top: 50%;
        right: 20px;
        bottom: unset;
        left: unset;
        transform: translate(0, -50%);
    }

    :where(.ba-card-badge-center-left-mobile_portrait) {
        top: 50%;
        left: 20px;
        bottom: unset;
        right: unset;
        transform: translate(0, -50%);
    }

    :where(.ba-card-badge-center-mobile_portrait) {
        top: 50%;
        left: 50%;
        bottom: unset;
        right: unset;
        transform: translate(-50%, -50%);
    }

    /*bottom*/
    :where(.ba-card-badge-bottom-right-mobile_portrait) {
        bottom: 20px;
        right: 20px;
        top: unset;
        left: unset;
        transform: unset;
    }

    :where(.ba-card-badge-bottom-left-mobile_portrait) {
        bottom: 20px;
        left: 20px;
        top: unset;
        right: unset;
        transform: unset;
    }

    :where(.ba-card-badge-bottom-center-mobile_portrait) {
        bottom: 20px;
        left: 50%;
        top: unset;
        right: unset;
        transform: translate(-50%, 0);
    }
}