/*
 * blockreinsurance — Tangerine override.
 *
 * WHY THIS FILE EXISTS. thirty bees loads a module's stylesheet from
 * themes/<theme>/css/modules/<module>/ when one exists there, and falls
 * back to the module's own otherwise. blockreinsurance was installed
 * after this theme was forked, so the raw PrestaShop 1.6 default loaded:
 *
 *     #reinsurance_block { background: url(bg_reinsurance_block.gif)
 *                          repeat-x 0 0 #c3c7cb }
 *
 * A light grey panel in a dark footer, with the footer's white text left
 * invisible on top of it.
 *
 * This REPLACES the module's stylesheet, so nothing from the original
 * survives unless restated here.
 *
 * Pairs with themes/tangerine/modules/blockreinsurance/blockreinsurance.tpl,
 * which swaps the module's 51px JPEGs for Font Awesome glyphs. The badge
 * circle below is therefore drawn by the browser rather than baked into
 * an image — crisp at any size, and it follows the theme's colour instead
 * of carrying a grey background that has to be matched by hand.
 */

/*
 * CLEAR THE FLOATED FOOTER COLUMNS. They are floated Bootstrap cells.
 * There used to be four; deleting the duplicate Store Information block
 * left three, so a quarter of the row sat empty and this block floated UP
 * into it, landing beside the columns instead of beneath them.
 */
#reinsurance_block {
    background: none;
    border: 0;
    clear: both;
    padding-top: 28px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

#reinsurance_block ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
}

/*
 * Stacked and centred, rather than the original icon-left/text-right.
 * At five across each cell is ~175px and the original gave the label 65%
 * of that — about 114px — so "Payment upon shipment." wrapped onto three
 * ragged lines.
 */
#reinsurance_block li {
    float: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 120px;
    padding: 10px !important;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .02em;
    color: inherit;
    text-shadow: none;
    text-transform: uppercase;
}

/* The badge: a real circle, not a picture of one. */
#reinsurance_block li i.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 0 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    font-size: 21px;
    line-height: 1;
    color: inherit;
    transition: background .18s ease, border-color .18s ease;
}

#reinsurance_block li:hover i.icon {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .20);
}

#reinsurance_block li span {
    float: none;
    width: auto;
    padding-top: 0;
    display: block;
}

/* Neutralise the module's fixed-pixel width1..width5 classes; flex sizes
   the cells now, and leaving both in play makes them fight. */
#reinsurance_block .width1 li,
#reinsurance_block .width2 li,
#reinsurance_block .width3 li,
#reinsurance_block .width4 li,
#reinsurance_block .width5 li {
    width: auto;
}

@media (max-width: 767px) {
    #reinsurance_block li { flex-basis: 45%; }
}
