/**
 * Used grid layout and otherwise flexbox
 */

.ActionOverview__list * {
    box-sizing: border-box;
}

.ActionOverview__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ActionOverview__item {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 15em;
    flex: 1 1 15em;
    margin: 5px;
}

/** We need to set the margin used on flex items to 0 as we have gaps in grid. */
@supports (display: grid) {
    .ActionOverview__list > * {
        margin: 0;
    }

    .ActionOverview__list {
        display: -ms-grid;
        display: grid;
        grid-gap: 1.5em;
        margin: 0 auto;
        grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
        grid-auto-rows: auto;
    }
}

/**
 * Action item
 */

.ActionOverview__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    line-height: 1.2;/** Can be huge in the custom user interface and that's why we don't want to inherit that */
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    overflow: hidden;
}

.ActionItem__coverLink {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.ActionItem__cover {
    display: block;
    width: 100%;
}

.ActionItem__body {
    padding: 1em 1em 0;
}

.ActionItem__footer {
    padding: 1em;
}

/**
 * Campaigner
 */

.ActionItem__campaigner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 1em;
}

.ActionItem__profilePicture {
    display: block;
    width: 50px;
    height: 50px;
    margin-right: .5em;
    border-radius: 100%;
    box-shadow: 0 0 1px #000;
}

.ActionItem__campaignerName {
    display: block;
}

/**
 * Action info
 */

.ActionItem__title {
    margin: 0;
    padding: 0;
    font-size: 1.2em;/** Can be huge in the custom user interface and that's why we don't want to inherit that */
    line-height: 1.2;/** Can be huge in the custom user interface and that's why we don't want to inherit that */
}

.ActionItem__button {
    display: block;
    margin: 0 0 1em 0;
    padding: .5em;
    border: 1px solid;
    text-align: center;
    text-decoration: none;
}

.ActionItem__button:hover {
    text-decoration: none;
}

/**
 * Donation thermometer
 */
.ActionItem__thermometer {
    display: block;
    margin-top: .2rem;
    background: #e5e5e5;
}

.ActionItem__thermometer,
.ActionItem__thermometerFluid {
    border-radius: .5em;
}

.ActionItem__thermometerFluid {
    display: block;
    border: solid .25em;
}

.ActionItem__thermometerText {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.ActionItem__moreLink {
    display: block;
    padding: 1.5em 0 0;
}
