/* Overwrite some conflict styles or create new ones. */

/* global pieces */
.d-inline-block {
    display: inline-block;
}
.blog-home a.more:hover {
    color: #cc3300;
    border-color: #cc3300;
}
.nowrap {
    white-space: nowrap;
}
/* nav */
.menu-extra > ul > li.active > a {
    color: #cc3300;
}
/* inquiry */
#inquiry {
    position: relative;
}
#inquiry > div {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
#inquiry > div a {
    display: block;
    margin-top: 30px; 
    width: 800px;
    text-align: center;
    line-height: 100px;
    font-size: 30px;
    background-color: #fff;
}
#inquiry > div p {
    margin: 10px 0;
    color: #fff;
    font-size: 16px;
}

/* footer */
footer .widget.widget_recent_entries li {
    margin: 0;
}
footer .widget.widget_recent_entries li span {
    display: block;
    font-weight: bold;
}
footer .copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
footer .copyright .site-info a {
    color: rgba(255, 255, 255, 0.5);
}
/* calculator */
.calculator-wrapper {
    display: flex;
    justify-content: center;
}
#calculator .inline-fields {
    text-align: center;
}
#calculator .inline-fields > div {
    display: inline-block;
    margin: 0 .5rem;
}
#calculator > div {
    position: relative;
    margin-bottom: 30px;
}

#calculator > div > label {
    width: 7em;
    font-weight: 700;
}
#calculator > div > span {
    font-weight: 700;
}
#calculator > div > input:not(.submit),
#calculator > div > select {
    display: inline-block;
    width: 15em;
    height: 35px;
    padding: 5px;
    margin-right: 10px;
}
#calculator > div.inline-three input {
    width: 4em;
}
#calculator > div.inline-three span {
    margin: 0 .5rem 0 0;
}
#calculator #totalCNY,
#calculator #totalUSD {
    margin: 0 5px;
    color: #cc3300;
    font-weight: 500;
    font-size: 30px;
}
#calculator .note span {
    margin: 0 4px 0 0;
    display: inline-block;
    vertical-align: top;
}
#calculator #alert {
    display: flex;
    align-items: center;
    color: #cc3300;
    visibility: hidden;
}
#calculator .submit {
    width: 100%;
    height: 50px;
    padding: 0;
    font-size: 20px;
    line-height: 50px;
}
#calculator input[type=number].marked-as-invalid {
    border: 1px solid #cc3300;
}
#calculator input:disabled {
    background-color: rgba(0,0,0,0.09);
}

/* new styles - row with 5 columns */
.row .five-column-item {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .row .five-column-item {
        float: left;
        width: 20%;
    }
}

/* service tabs in homepage */
.service-tabs {
    z-index: 99;
    position: relative;
    margin-top: -60px;
}
.service-tabs::before {
    content: '';
    position: absolute;
    height: calc(100% - 60px);
    width: 100%;
    bottom: 0;
    background-color: #f3f3f3;
}
.service-tabs .tab span {
    display: block;
    line-height: 60px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    cursor: pointer;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #bfbfbf;
}
.service-tabs .tab.active span {
    color: #333;
    background-color: #f3f3f3;
}
.service-tabs .info {
    display: block;
    height: 0;
    min-height: 0;
    margin: auto 0;
    text-align: center;
    transition: height .4s ease, opacity .4s ease;
    overflow: hidden;
    opacity: 0;
}
.service-tabs .info.active {
    height: 210px;
    opacity: 1;
}
.service-tabs .info a {
    position: relative;
    top: 50%;
    transform: translateY(-50%);


    display: inline-block;
    width: 500px;
    max-width: 100%;
    max-width: 100%;
    line-height: 70px;
    font-size: 18px;
    color: #fff;
    background-color: #cc3300;
}

@media (max-width: 991.9px) {
    .service-tabs {
        margin-top: 20px;
        background-color: #f3f3f3;
    }
    .service-tabs .tab span {
        line-height: 40px;
        font-size: 16px;
        border-radius: 0;
    }
    .service-tabs .info.active {
        height: 100px;
    }
    .service-tabs .info a {
        line-height: 50px;
        font-size: 14px;
    }
}

/* sailing schedule */
#sailing-schedule-search {
    width: 100%;
}
#sailing-schedule-search .fields {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 10px;
}
#sailing-schedule-search .fields > div {
    flex: 0 0 24.9%;
    display: flex;
    align-items: center;
}
#sailing-schedule-search .fields label {
    width: 15em;
}
#sailing-schedule-search .fields select,
#sailing-schedule-search .fields input {
    width: 100%;
    height: 35px;
    padding: 5px;
}
#sailing-schedule-search .fields .buttons {
    flex: 0 0 auto;
}
#sailing-schedule-search .fields button {
    line-height: 35px;
    height: 35px;
    width: 120px;
}
#sailing-schedule-search .fields button[type="reset"] {
    background-color: #333;
}
#sailing-schedule-search .fields button[type="reset"]:hover {
    opacity: .8;
}
#sailing-schedule-search-result .dataTables_length {
    margin-bottom: 20px;
}
#sailing-schedule-search-result .dataTables_filter {
    display: none;
}
#sailing-schedule-search-result table {
    width: 100%;
}
#sailing-schedule-search-result table thead tr th {
    white-space: nowrap;
    font-weight: 700;
    text-align: center;
    background-color: #d2d2d2;
}
#sailing-schedule-search-result table tbody tr td {
    padding: 10px 20px 10px 10px;
    text-align: center;
}

/* page navigation */
.paging-navigation {
    padding: 0;
    text-align: center;
}

/* date range picker */
.daterangepicker .drp-buttons .btn {
    height: auto;
}
.daterangepicker .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, 
.daterangepicker .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, 
.daterangepicker .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td {
    padding: 0;
}

/* suspension */
.suspension .a-service-email i {
    width: 20px;
    height: 20px;
    margin-top: 12px;
    margin-left: 12px;
    color: #fff;
    font-size: 20px;
}
.suspension .d-service-item .text {
    margin: 0;
}
.suspension p {
    margin-bottom: 5px;
}

/* blog post */
.blog-shortcode .blog-post {
    margin-bottom: 20px;
}

.flat-row p.description {
    font-size: 18px;
    color: #000;
}

.flat-row h4 {
    font-size: 18px;
    color: #666e70;
}
.blog-shortcode .news-home .flat-item {
    padding-left: 100px;
    margin-bottom: 15px;
}
.news-home ul li a {
    font-size: 18px;
}
.news-home ul li a .date {
    font-size: 18px;
    margin: 0 8px 0 0;
}
/* lang en specified styles */
body.lang-en #mainnav > ul > li > a {
    padding: 0 10px;
    font-size: 14px;
    /* font-family: inherit; */
    /* font-weight: 600; */
}
/* slider */
.tp-caption .title-slide, .tp-caption.title-slide {
    font-size: 48px !important;
}
@media screen and (max-width: 997.9px) {
    /* slider */
    .tp-caption .title-slide, .tp-caption.title-slide {
        font-size: 32px !important;
    }
}

@media screen and (max-width: 767.9px) {
    /* slider */
    .tp-caption .title-slide, .tp-caption.title-slide {
        font-size: 24px !important;
    }
}
@media screen and (max-width: 449.9px) {
    /* slider */
    .tp-caption .title-slide, .tp-caption.title-slide {
        font-size: 18px !important;
    }
}