/*
 Theme Name:   Singapore Legal Advice 2.1 - Child
 Theme URI:    http://singaporelegaladvice.com
 Description:  Extension to Singapore Legal Advice parent theme
 Author:       CLLOH
 Author URI:   http://clloh.com
 Template:     sglegal_v2.1
 Version:      1.0.21
 Text Domain:  sglegal-child
*/

/*Breadcrumbs*/
.single-lawyer .breadcrumbs-ul,
.single-learning-center-page .breadcrumbs-ul {
    margin: 0;
}

/*End Breadcrumbs*/

/* Legal Templates */
.post-type-archive-legal_template #content {
    padding-top: 0;
}

.single-legal_template #content {
    padding-top: 0;
}

.banner {
    position: relative;
    padding: 2em 0;
    background-color: #D7DADF;
    background-image: url('./img/aaron-burden-90144.jpg');
    background-position: center;
    background-size: cover;
}

.banner h1,
.banner p {
    color: #ffffff;
}

.legal-template-searchbar {
    padding: 1.5em 0;
    background-color: #AE1B1B;
}

.legal-template-search-type {
    width: 30%;
    float: left;
    border-radius: 0.1875rem 0 0 0.1875rem;
    margin: 0;
}

.legal-template-searchbar .legal-template-search-text {
    width: 50%;
    float: left;
    border-radius: 0;
    margin: 0;
}

.legal-template-search-button {
    width: 20%;
    height: 37px;
    float: left;
    border-color: white;
    border-radius: 0 0.1875rem 0.1875rem 0;
}

.legal-template-list {
    padding-top: 1.5rem;
}

.legal-template-summary {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    border-top: solid 0.25rem #AE1B1B;
    border-radius: 0.1875rem;
    margin-bottom: 1.25rem;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.25) 0 0.0625rem 0.1875rem 0.0625rem;
    overflow: hidden;
}

.legal-template-summary-row {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    border-top: solid 0.25rem #AE1B1B;
    border-radius: 0.1875rem;
    margin-bottom: 1.25rem;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.25) 0 0.0625rem 0.1875rem 0.0625rem;
    overflow: hidden;
    height: 320px;
}

.single-legal-template-summary-row {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    border-top: solid 0.25rem #AE1B1B;
    border-radius: 0.1875rem;
    margin-bottom: 1rem;
    background-color: #fff;
    overflow: hidden;
}

@media only screen and (min-width: 40.0625em) {
    .legal-template-summary {
        padding-left: 200px;
    }
}

.legal-template-summary-image-wrapper {
    box-sizing: border-box;
    width: 100%;
    background-color: #FAFAFA;
    text-align: center;
    padding: 1em 0;
}

.single-legal-template-summary-image-wrapper {
    width: 100%;
    text-align: center;
    border-right: 1px solid #D7DADF;
    border-left: 1px solid #D7DADF;
}

@media only screen and (min-width: 40.0625em) {
    .legal-template-summary-image-wrapper {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 200px;
        padding: 0;
        border-right: 1px solid #D7DADF;
    }

    .single-legal-template-summary-image-wrapper {
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0;
        border-right: 1px solid #D7DADF;
        border-left: 1px solid #D7DADF;
    }
}

.single-legal-template-h3 {
    text-align: center;
}

.single-legal-icon-height {
    padding: 10px 10px 80px 10px;
}

@media only screen and (min-width: 40.0625em) {
    .legal-template-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -2em;
        transform: translateX(-50%) translateY(-50%);
    }

    .single-legal-icon-height {
        padding: 10px 10px 80px 10px;
    }

    .single-legal-template-h3 {
        text-align: center;
        font-size: 1.3rem;
    }
}

.legal-template-summary-btn {
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    border-radius: 0;
}

.legal-template-summary-content {
    padding: 1em 1em 4em;
}

.legal-template-summary-content-row {
    padding: 5px 1px 1px 5px;
}

.legal-template-summary-term {
    font-size: 0.8em;
    padding: 0.25em 0.5em;
    border: 1px solid #AE1B1B;
    border-radius: 1em;
    background-color: #AE1B1B;
    color: #fff;
}

.legal-template-summary-term:hover {
    background-color: transparent;
    color: #AE1B1B;
}

.legal-template-find-lawyer {
    padding-bottom: 1.875rem;
}

body.post-type-archive-legal_template .find-a-lawyer .type-lawyer.content-box {
    border-color: #AE1B1B;
}

body.post-type-archive-legal_template .find-a-lawyer .type-lawyer .content-box--content {
    padding: 1.0625rem;
}

body.post-type-archive-legal_template .find-a-lawyer .type-lawyer.content-box .content-box--content .medium-2.columns {
    text-align: center;
}

body.post-type-archive-legal_template .find-a-lawyer .type-lawyer.content-box .content-box--content .medium-2.columns .lawyer-photo {
    display: inline-block;
}

body.post-type-archive-legal_template .find-a-lawyer .type-lawyer.content-box .content-box--content .medium-10.columns {
    padding-left: 0.9375rem;
}

body.post-type-archive-legal_template .find-a-lawyer .type-lawyer .lawyer-photo {
    margin-bottom: 0;
}

body.post-type-archive-legal_template .find-a-lawyer .type-lawyer .lawyer-meta {
    padding-bottom: 0;
    border: none;
    margin-bottom: 0;
}

body.archive .post-type-archive-legal_template.content-box {
    margin-bottom: 0.625rem;
    padding: 0.75625rem;
    color: #323D50;
    border-color: #AE1B1B;
}

/* End Legal Templates */

/* Single Legal Templates */
.legal-template-single {
    padding: 1.625rem 0;
}

.legal-template-single-content {
    margin-bottom: 1.25rem;
}

@media only screen and (min-width: 40.0625em) {
    .single-legal-template-btn {
        font-size: 1.25em;
        padding: 0.5em 1.5em;
        border-radius: 4px;
        background-color: #AE1B1B;
        color: #fff;
        margin-top: 0.5em;
    }
}

@media only screen and (max-width: 800px) {
    .single-legal-template-btn {
        background-color: #AE1B1B;
        color: #fff;
        position: relative;
        margin-top: 0.5em;
        padding: 0.6rem 1rem 0.6rem 1rem;
    }
}

@media only screen and (max-width: 700px) {
    .single-legal-template-btn {
        background-color: #AE1B1B;
        color: #fff;
        position: relative;
        margin-top: 0.5em;
        padding: 0.6rem 0.6rem 0.6rem 0.6rem;
    }
}

@media only screen and (max-width: 640px) {
    .single-legal-template-btn {
        font-size: 1.25em;
        padding: 0.5em 1.5em;
        border-radius: 4px;
        background-color: #AE1B1B;
        color: #fff;
        margin-top: 0.5em;
    }
}

.content-box-simple {
    padding: 1.625rem 0.625rem;
    border-top: 1px;
}

/* End Single Legal Templates */

/* Related Lawyers Widget */
.widget_related_lawyers_horizontal .lawyer-photo {
    border: none;
    max-width: 100%;
}

.widget_related_lawyers_horizontal .lawyer-photo img {
    border: solid 1px #D7DADF;
}

/* End Related Lawyers Widget */

/* Single Legal Templates Modal */
#legal_template-download-modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.legal-template-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 670px;
    height: auto;
    border-style: solid;
    border-radius: 5px;
    border-color: #323D50;
    background: #fff;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    z-index: 999;
}

@media only screen and (min-width: 40.0625em) {
    .legal-template-modal-box {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 55%;
        height: auto;
        border-style: solid;
        border-radius: 5px;
        border-color: #323D50;
        background: #fff;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        z-index: 9999 !important;
    }
}

@media only screen and (max-width: 900px) {
    .legal-template-modal-box {
        width: 65%;
    }
}

@media only screen and (max-width: 800px) {
    .legal-template-modal-box {
        width: 70%;
    }
}

@media only screen and (max-width: 700px) {
    .legal-template-modal-box {
        width: 75%;
    }
}

@media only screen and (max-width: 640px) {
    .legal-template-modal-box {
        width: 80%;
    }

    .modal-close {
        color: #000;
        position: fixed;
        left: 94%;
        top: 3%;
    }
}

@media only screen and (max-width: 545px) {
    .legal-template-modal-box {
        width: 90%;
    }
}

@media only screen and (max-width: 485px) {
    .modal-close {
        color: #000;
        position: fixed;
        left: 93%;
        top: 5%;
    }
}

.legal-template-modal-content {
    padding: 10px;
}

.modal-form {
    margin: 1em 1em 1em 1em;
}

@media only screen and (min-width: 40.0625em) {
    .modal-close {
        color: #000;
        position: fixed;
        left: 95%;
        top: 5%;
    }
}

/* End Single Legal Templates Modal */

.learning-center--outline-section ol li {
    list-style-type: none;
}

.editable,
.editable-wysiwyg {
    position: relative;
    cursor: pointer;
    transition: background-color 0.5s;
}

.editable-error {
    font-size: 0.875rem;
}

.profile-upload-messages .success {
    display: block;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 1rem;
    margin-top: -1px;
    padding: 0.375rem 0.5625rem 0.5625rem;
    background-color: #43AC6A;
    color: #fff;
    text-align: center;
}

.profile-upload-messages .error {
    text-align: center;
}

/*Lawyer profile pic*/
#lawyer_profile_preview {
    position: absolute;
    top: 1px;
    left: 1px;
}

.lawyer-photo {
    position: relative;
}

.lawyer-photo canvas {
    max-width: 100%;
    border-radius: 0.1875rem;
    display: inline-block;
    vertical-align: middle;
}

.lawyer_profile_upload_wrapper {
    width: 150px;
    max-width: 100%;
    margin-top: 7px;
    margin-bottom: 7px;
}

#lawyer_profile_upload {
    display: none;
}

.profile-upload {
    width: 150px;
    max-width: 100%;
    margin-bottom: 7px;
}

.profile-upload--confirm {
    margin-top: 7px;
}

/*Lawyer areas of practice*/
.editable-areas {
    overflow: visible;
}

.editable-areas:after {
    content: '';
    display: table;
    clear: both;
}

.editable-wysiwyg {
    border-bottom: dashed 1px #0088cc;
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    border-bottom-color: rgb(0, 136, 204);
}

.editable-pre-wrapped {
    white-space: normal;
}

/*Lawyer profile*/
body.single-lawyer .type-lawyer .lawyer-profile--editable {
    overflow: visible;
}

.js-editable__instructions {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/*Featured services*/
.featured-services .editable-container,
.featured-services .editable-input {
    display: block;
}

.featured-services__title--editable {
    font-size: 1rem;
    font-weight: bold;
    font-family: "franklin-gothic-urw", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    line-height: 1.6;
    margin-bottom: 0;
}

.editable:hover,
.editable-wysiwyg:hover {
    background-color: #efefef;
}

.editable:before,
.editable-wysiwyg:before {
    content: '';
    font-size: 12px;
    font-weight: normal;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    transition: all 0.25s;
}

body.single-lawyer .type-lawyer .lawyer-profile-section .section-subtitle:before {
    text-transform: none;
}

.editable:hover:before,
.editable-wysiwyg:hover:before {
    content: 'Click to edit';
    background-color: #961717;
    color: #ffffff;
    padding: 0.5em 1em;
    top: -30px;
    left: 0;
    box-shadow: 1px 1px 2px 1px #EFEFEF;
    width: 100px;
    height: 30px;
    opacity: 1;
}

.editable-service~.editable-container,
.editable-service~.editable-container .editable-input,
.editable-service~.editable-container .editable-input .select2,
.editable-gender~.editable-container,
.editable-gender~.editable-container .editable-input,
.editable-gender~.editable-container .editable-input select,
.editable-terms~.editable-container,
.editable-terms~.editable-container .editable-input,
.editable-terms~.editable-container .editable-input .select2 {
    /*set select 2 editable to full width*/
    display: block;
    width: 100%;
    margin-bottom: 1em;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.3125rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.3125;
}

.editable-terms~.editable-container .editable-input {
    margin-bottom: 1em;
}

.editable-terms~.editable-container .editable-input .select2-search__field {
    margin: 0;
}

.editable-clear-x {
    /*vertically center the clear editable icon*/
    top: 18px;
}

body.single-lawyer .type-lawyer .lawyer-profile--legal-services.editable {
    margin-left: 0;
}

body.single-lawyer .type-lawyer .lawyer-profile--legal-services.editable>li:first-child {
    margin-left: 0;
}

.action-buttons {
    margin-top: 1em;
}

.js-cancel {
    margin-left: 7px;
}

/*Javascript classes*/
.js-hide {
    display: none;
}

/* TinyMCE customisation */
.mce-window {
    max-width: 90% !important;
}

@media (min-width: 480px) {
    .mce-window {
        min-width: 440px !important;
    }
}

.mce-menubar .mce-menubtn button:hover span,
.mce-menubar .mce-menubtn button:hover i,
.mce-toolbar-grp .mce-menubtn button:hover span,
.mce-toolbar-grp .mce-menubtn button:hover i,
.mce-toolbar-grp .mce-btn button:hover i {
    color: white;
}

.mce-menubar .mce-menubtn button:hover .mce-caret,
.mce-toolbar-grp .mce-menubtn button:hover .mce-caret {
    border-top-color: white;
}

/* End TinyMCE customisation */

/* Banner overlay */
.banner:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    background: #000000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
}

@media only screen and (min-width: 40.0625em) {
    .banner:before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        background: #000000;
        opacity: 0.5;
        height: 100%;
        width: 100%;
    }
}

/* End Banner overlay */

/* Document icon at single legal template */
.legal-template-single-document-icon {
    /*background: #F5F5F5;*/
    /*border: solid 1px #D7DADF;*/
    border-radius: 31.25rem;
    height: 5.1875rem;
    width: 5.1875rem;
    vertical-align: middle;
    margin-left: 4em;
    margin-top: 0.5em;
}

.legal-template-single-img {
    display: inline-block;
    vertical-align: middle;
    margin-top: 1em;
    position: relative;
}

@media only screen and (max-width: 640px) {
    .single-legal_template-summary-row-padding {
        padding-left: 1px;
        padding-right: 1px;
    }
}

/* Document icon at single legal template */

/* Generic */
.clearfloat:after {
    content: '';
    display: table;
    clear: both;
}

.table-responsive {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #ddd;
}

.table-responsive {
    min-height: .01%;
    overflow-x: auto;
}

.table-responsive>table {
    margin-bottom: 0;
}

.table-fullWidth {
    width: 100%;
}

table thead,
table tr.even,
table tr.alt,
table tr:nth-of-type(even) {
    background: #e9e9e9;
}

/* End Generic */

/* Lawyer Queries */
.sglegal-actions {
    margin-bottom: 1em;
}

/* End Lawyer Queries */

/* Pagination */
.sglegal-pagination {
    text-align: center;
}

.sglegal-page-prev {
    margin-right: 2em;
}

/* End Pagination */

/* Select Lawyers Form */
@media only screen and (min-width: 40.0625em) {
    .contact-lawyers-input--right {
        float: right;
    }
}

.lawyers--filter input[type="checkbox"],
.lawyers--filter input[type="radio"] {
    margin-bottom: 0;
    margin-right: 3px;
}

/* End Select Lawyers Form */

/* Ajax Loading Animation */
.ajax-loading,
.ajax-loading:after {
    border-radius: 50%;
    width: 7em;
    height: 7em;
}

.ajax-loading {
    display: none;
    margin: 20px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1em solid rgba(172, 29, 33, 0.2);
    border-right: 1em solid rgba(172, 29, 33, 0.2);
    border-bottom: 1em solid rgba(172, 29, 33, 0.2);
    border-left: 1em solid rgb(172, 29, 33);
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* End Ajax Loading Animation */

/* Lawyer Detail Button */
.button.whatsapp {
    margin-bottom: 0.9375rem;
    background-color: #01E675;
    border-color: #01E675;
    color: #fff;
}

.button.whatsapp:hover,
.button.whatsapp:focus {
    background-color: #01c464;
}

svg.whatsapp-icon {
    height: 1.8em;
    position: absolute;
    top: 4px;
    left: 30%;
}

/* End Lawyer Detail Button */

/* accordion list mobile */
body.mobile .accordion-sublist {
    list-style-position: outside;
    margin-left: 15px;
}

body.mobile .accordion-sublist a {
    margin-left: -15px;
    padding-left: 15px;
}

/* End accordion list mobile */

/* Lawyer's review modal */
div[id^="lawyer--review-modal-"] {
    max-height: 80%;
    overflow-y: auto;
}

/* End Lawyer's review modal */

/* lawyer author image */
.post-author-info .post-author--image-lawyer img {
    border-radius: 0;
}

/* End lawyer author image */

/* Learning center page */
.learning-center-page--content {
    margin-bottom: 60px;
}
li.learning-center-page--sharer-whatsapp a {
    font-size: 19px;
    color: #4fce5d;
}

li.learning-center-page--sharer-whatsapp a:hover {
    color: white;
}

li.learning-center-page--sharer-email a {
    color: #003a63;
}

li.learning-center-page--sharer-email a:hover {
    color: white;
}
/* End earning center page */
/* CTA Shortcode */
.cta-wrapper {
    background: #AE1B1B;
    padding: 20px 0;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-wrapper .icon, .cta-wrapper .content, .cta-wrapper .link {
    display: inline-block;
    vertical-align: middle;
}

.cta-wrapper .icon {
    width: 13%;
    margin: 0 1%;
}

.cta-wrapper .link {
    width: 28%;
    margin: 0 1%;
    text-align: right;
}

.cta-wrapper .content {
    width: 48%;
    margin: 0 1%;
}

.cta-wrapper .content h4 {
    font-weight: bold;
    color: #ffffff;
    font-size: 19px;
}

.cta-wrapper .link a {
    color: #ffffff;
    padding: 15px 20px;
    border: 1px solid #ae2723;
}
.cta-wrapper .link a span {
    margin-top: 3px;
}

.cta-wrapper .link a:hover {
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
}

/* Tweak shortcode CTA */
.callalawyer--wrapper {
    display: none;
}
.lawyer-photo {
    text-align: center;
}
.attachment-lawyer-thumbnail {
    margin-bottom: 1em;
}
.content-box.type-lawyer {
    /*display: none;*/
}

@media only screen and (max-width: 480px) {
    .cta-wrapper .icon, .cta-wrapper .content, .cta-wrapper .link {
        display: inline-block;
        vertical-align: middle;
    }

    .cta-wrapper .content {
        width: 80%;
        margin: 0 1%;
    }

    .cta-wrapper .link {
        width: 100%;
        text-align: center;
    }
}

@media only screen and (max-width: 350px) {
    .cta-wrapper .icon {
        width: 100%;
        text-align: center;
    }

    .cta-wrapper .icon img {
        width: 20%;
    }

    .cta-wrapper .content {
        width: 95%;
        text-align: center;
    }
}
.ui-menu .ui-menu-item {
    padding: 4px 10px;
}
ul.ui-autocomplete {
    border-radius: 5px;
}
.search-box.lawyer-search .search-field{
    display: inline-block;
}