/* Hosting comparison table.
   Responsive by CSS: the scroll wrapper lets the table scroll horizontally on narrow screens,
   so no JavaScript and no duplicated markup are needed. */

.hosting-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hosting-table {
    width: 100%;
    margin: 20px 0;
    font-family: "Open Sans", sans-serif;
}

.hosting-table table {
    min-width: 100%;
    border: 1px solid #ddd;
    border-collapse: collapse;
    margin-bottom: 0;
}

/* Provider logos: keep a fixed size regardless of column width. The theme's img{max-width:100%}
   shrinks logos in narrow (empty-data) columns; pin the width so every provider matches. */
.hosting-table img {
    width: 96px;
    height: auto;
    max-width: none;
}

.hosting-table th,
.hosting-table td {
    line-height: 1.3em;
    height: 36px;
    padding: 5px;
    text-align: center;
    font-size: 14px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    border: 1px solid #ddd;
}

.hosting-table td:first-child,
.hosting-table th:first-child {
    text-align: left;
    min-width: 80px;
    background-color: #eee;
}

.hosting-table tbody tr:nth-child(even) {
    background-color: #eee;
}

.hosting-table .group-row td,
.hosting-table:not(.hosting-table--transposed) thead th {
    background-color: #244150;
    color: #fff;
    font-weight: bold;
    border: none;
}

.hosting-table .button-row td a,
.hosting-table td.button-cell a {
    display: inline-block;
    background-color: darkgreen;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
}

.hosting-table .button-row td a:hover,
.hosting-table td.button-cell a:hover {
    background-color: green;
}

/* Best value of a comparable column (benchmarks view). */
.hosting-table td.best-cell {
    color: green;
    font-weight: bold;
}

.hosting-table .wp-caption-text {
    font-size: 14px;
    margin-top: 6px;
    text-align: center;
}
