/**
 * 12go.asia timetable styles
 * Only loaded when [12go-timetable] shortcode is used (blog posts).
 * Classes: .one2go-timetable, .one2go-route-header, .one2go-route-detail,
 * .one2go-route-name, .one2go-route-duration, .one2go-route-price,
 * .one2go-trips, .one2go-class, .one2go-departures
 */
.tripways-12go-timetable-wrap {
    margin: 1.5em 0;
    overflow-x: auto;
}

.tripways-12go-timetable-wrap .one2go-timetable {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* Table headers: black background so white labels from embed are readable */
.tripways-12go-timetable-wrap .one2go-route-header {
    font-weight: 600;
    padding: 0.75em 0.5em 0.5em;
    border-bottom: 1px solid #333;
    background: #000 !important;
    color: #fff !important;
}

.tripways-12go-timetable-wrap .one2go-route-header a,
.tripways-12go-timetable-wrap .one2go-route-header span {
    color: #fff !important;
}

.tripways-12go-timetable-wrap .one2go-route-detail {
    padding: 0.5em;
    background: #1a1a1a !important;
    color: #fff !important;
}

.tripways-12go-timetable-wrap .one2go-route-detail a,
.tripways-12go-timetable-wrap .one2go-route-detail .one2go-route-name {
    color: #fff !important;
}

.tripways-12go-timetable-wrap .one2go-route-name a {
    color: inherit;
    text-decoration: none;
}

.tripways-12go-timetable-wrap .one2go-route-name a:hover {
    text-decoration: underline;
}

.tripways-12go-timetable-wrap .one2go-route-duration {
    color: #555;
    white-space: nowrap;
}

.tripways-12go-timetable-wrap .one2go-route-price {
    font-weight: 600;
    white-space: nowrap;
}

.tripways-12go-timetable-wrap .one2go-trips {
    padding: 0.5em;
    vertical-align: top;
}

/* Tags (Express, Economy): dark background so white label is readable */
.tripways-12go-timetable-wrap .one2go-class {
    display: inline-block;
    margin-right: 0.5em;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    background: #333 !important;
    color: #fff !important;
    font-size: 0.9em;
}

.tripways-12go-timetable-wrap .one2go-departures {
    display: block;
    margin-top: 0.25em;
    color: #333;
}

.tripways-12go-timetable-wrap td,
.tripways-12go-timetable-wrap th {
    border-bottom: 1px solid #eee;
    padding: 0.5em;
}

/* All th cells (e.g. main route title row) get black header styling */
.tripways-12go-timetable-wrap th {
    background: #000 !important;
    color: #fff !important;
    border-bottom-color: #333;
}

.tripways-12go-timetable-wrap th a {
    color: #fff !important;
}

.tripways-12go-timetable-wrap tr:last-child td,
.tripways-12go-timetable-wrap tr:last-child th {
    border-bottom: none;
}
