/* CMS tables and commerce blocks: owned by the article detail component. */

.left-align thead th,
.left-align tbody td,
.left-align tfoot td {
    text-align: left;
}

@media (max-width: 1050px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table td:before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
        margin-right: 20px;
    }
}

.commerce-block {
    margin-top: 1.5rem;
    display: block;
    grid-gap: 10px;
    border: 5px solid #a4ba9b;
    grid-auto-flow: column;
}

.commerce-product {
    text-decoration: none;
    color: #4c504a;
    font-weight: 700;
}

h2.commerce-title {
    margin: 0;
    text-align: center;
    color: #4c514a;
    padding: 15px;
}

.catalog-link-block {
    display: flex;
    width: 100%;
    background-color: #a4ba9b;
    height: 50px;
}

.catalog-link-block a {
    border-bottom: 3px solid #ffffff;
}

.catalog-link-block-btn {
    display: inline-block;
    color: #ffffff;
    border-bottom: none;
    text-transform: uppercase;
    font-size: 120%;
    font-weight: bold;
    margin: auto;
}

ol.square {
    margin: 0;
    counter-reset: li;
    list-style: none;
    background: #ffffff;
    padding: 20px;
}

.square li {
    margin: 0 0 10px 2em;
    padding: 4px 8px;
    transition: .3s linear;
}

.square li:last-child {
    margin-bottom: 0;
}

ol.square li:before {
    content: counter(li);
    counter-increment: li;
    position: absolute;
    top: -2px;
    left: -2em;
    width: 2em;
    box-sizing: border-box;
    margin-right: 8px;
    padding: 4px;
    border-top: 2px solid #a4ba9b;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    background: #a4ba9b;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: .3s linear;
}
