/* Rich HTML tables (blog posts, hotel/city SEO content) */
.single-page-content table,
.rich-content table {
    display: block;
    overflow-x: auto;
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 14px;
    text-wrap: nowrap;
    border: unset;

    -webkit-overflow-scrolling: touch;
}

.single-page-content table tbody tr:first-child,
.rich-content table tbody tr:first-child {
    background-color: var(--primary-20);
}

.single-page-content table thead,
.rich-content table thead {
    background-color: #f5f7fa;
}

.single-page-content table p,
.rich-content table p {
    margin: 0 !important;
}

.single-page-content table th,
.rich-content table th {
    font-weight: 600;
    text-align: right;
    padding: 12px;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.single-page-content table td,
.rich-content table td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    line-height: 1.6;
}

.single-page-content table tbody tr:nth-child(even),
.rich-content table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.single-page-content table tbody tr:hover,
.rich-content table tbody tr:hover {
    background-color: var(--primary-10);
}

.single-page-content table::-webkit-scrollbar,
.rich-content table::-webkit-scrollbar {
    height: 6px;
}

.single-page-content table tbody,
.rich-content table tbody {
    display: block;
    overflow: auto;
}

.single-page-content table tbody tr td,
.rich-content table tbody tr td {
    width: 100%;
}

@media (min-width: 996px) {
    .single-page-content table,
    .rich-content table {
        font-size: 13px;
    }

    .single-page-content table th,
    .single-page-content table td,
    .rich-content table th,
    .rich-content table td {
        padding: 8px 10px;
    }
}
