/* Scoped overflow fix for program action columns. */
.copp-program-article__layout {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
}

.copp-program-article__content,
.copp-program-article__aside,
.copp-program-article__aside > *,
.copp-program-article__aside *,
.copp-program-article__aside .copp-enrollment-box,
.copp-program-article__aside .copp-enrollment-box__head,
.copp-program-article__aside .copp-enrollment-box__actions,
.copp-program-article__aside .copp-enrollment-box__form {
    box-sizing: border-box !important;
    min-width: 0;
    max-width: 100%;
}

.copp-program-article__aside {
    width: 100% !important;
    overflow: hidden;
}

.copp-program-article__aside > *,
.copp-program-article__aside .copp-enrollment-box,
.copp-program-article__aside .copp-enrollment-box__actions,
.copp-program-article__aside .copp-enrollment-box__form {
    width: 100% !important;
}

.copp-program-article__aside > .copp-news-btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.copp-program-article__aside .copp-enrollment-box__head {
    flex-wrap: wrap;
}

.copp-program-article__aside .copp-enrollment-box__head > *,
.copp-program-article__aside .copp-enrollment-box__status {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    text-align: left;
}

.copp-program-article__aside .copp-enrollment-box__actions > *,
.copp-program-article__aside .copp-enrollment-box__form {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
}

.copp-program-article__aside .copp-enrollment-box__actions .copp-news-btn,
.copp-program-article__aside .copp-enrollment-box__form .copp-news-btn {
    box-sizing: border-box !important;
    min-width: 0;
    width: 100% !important;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.copp-program-article__aside .copp-news-btn > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* At the mobile breakpoint the base stylesheet changes the actions to a
   column. Keep that column a single flex line: `flex-wrap: wrap` combined
   with `flex: 1 1 100%` otherwise places the second action in a new column
   outside the white enrollment card. */
@media (max-width: 767px) {
    .copp-program-article__aside .copp-enrollment-box__actions {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .copp-program-article__aside .copp-enrollment-box__actions > *,
    .copp-program-article__aside .copp-enrollment-box__form {
        flex: 0 1 auto;
        width: 100%;
    }
}
