/* ============================================================
  GENERAL
============================================================ */

/* ADD BUFFER AT TOP FOR ANCHOR LINKS */
html {
    scroll-padding-top: 100px !important;
}

/* FIX FOR SAFARI STRETCHED IMAGES */
.sow-image-container a {
    align-items: flex-start;
}

/* FIX FOR WP VIDEO */
.mejs-video .mejs-inner,
.mejs-video .mejs-inner .mejs-layers {
    height: 100%;
}

/* NGG */
.slideshowlink {
    display: none;
}
.ngg-galleryoverview .ngg-navigation {
    display: none !important;
}

/* INSTAGRAM FEED PRO */
.sbi-critical-notice {
    display: none !important;
}

/* INSTAGRAM EMBEDS */
iframe.instagram-media,
blockquote.instagram-media-registered {
	display: block;
	position: relative !important;
    margin: 0 auto !important;
    border: none !important;
}

/* SG PRODUCT CAT FILTER - NOT SURE IF NEEDED?? */
.sg-product-cat-item {
    display: inline-block;
    width: 24%;
    min-width: 200px;
    line-height: 2;
}

/* ============================================================
  FONTS
============================================================ */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/fa-regular-400.woff2') format('woff2'),
        url('../fonts/fa-regular-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../fonts/fa-solid-900.woff2') format('woff2'),
        url('../fonts/fa-solid-900.ttf') format('truetype');
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/fa-brands-400.woff2') format('woff2'),
        url('../fonts/fa-brands-400.ttf') format('truetype');
}
.fa,
.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.fa,
.fas,
.far,
.fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
.fab {
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}
.far {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}
.fa-twitter:before {
    content: '\f099';
}
.fa-twitter-square:before {
    content: '\f081';
}
.fa-x-twitter:before {
    content: '\e61b';
}
.fa-square-x-twitter:before {
    content: '\e61a';
}
.fa-instagram:before {
    content: '\f16d';
}
.fa-instagram-square:before {
    content: '\e055';
}
.fa-facebook:before {
    content: '\f09a';
}
.fa-facebook-f:before {
    content: '\f39e';
}
.fa-whatsapp:before {
    content: '\f232';
}
.fa-square-whatsapp:before {
    content: '\f40c';
}
.fa-whatsapp-square:before {
    content: '\f40c';
}
.fa-tiktok:before {
    content: '\e07b';
}
.fa-check:before {
    content: '\f00c';
}
.fa-phone:before {
    content: '\f095';
}
.fa-envelope:before {
    content: '\f0e0';
}
.fa-face-frown:before {
    content: '\f119';
}
.fa-face-smile:before {
    content: '\f118';
}
.fa-circle-xmark:before {
    content: '\f057';
}
.fa-circle-check:before {
    content: '\f058';
}
.fa-google:before {
    content: '\f1a0';
}
.fa-apple:before {
    content: '\f179';
}

/* ============================================================
  HEADER LAYOUTS
============================================================ */
.site-header .header-inner {
    display: block;
    max-width: 100vw;
    margin: 0;
}
.site-header .header-titles-wrapper,
.site-header .header-navigation-wrapper {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
}
.site-header .row1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}
.site-header .row1 .column {
    text-align: center !important;
    width: 100%;
    flex: 1 0 100%;
}
.site-header .row1 a.social-media-button {
    padding: 5px 20px;
    text-decoration: none;
}
.site-header .row1 a.social-media-button.header-book {
    font-weight: 700;
}
.site-header .row1 .logo {
    width: 180px;
}

@media (min-width: 1000px) {
    .site-header .row1 .column {
        flex: 1 0 33%;
        padding: 0;
    }
    .site-header .row1 .column:nth-child(1) {
        text-align: left;
    }
    .site-header .row1 .column:nth-child(2) {
        text-align: center;
    }
    .site-header .row1 .column:nth-child(3) {
        text-align: right;
    }
    .site-header .row1 .socialmedia {
        text-align: left;
    }
}

/* ============================================================
   CONTENT LAYOUT - SITE ORIGIN PAGEBUILDER
============================================================ */
article .panel-grid .width-600 {
    display: block;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}
article .panel-grid .width-800 {
    display: block;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}
article .panel-grid .width-1000 {
    display: block;
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}
article .panel-grid .width-1200 {
    display: block;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}
article .panel-grid .width-1400 {
    display: block;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
}
article .panel-grid .width-full {
    display: block;
    width: 100vw;
    max-width: 100%;
}
article .panel-grid .width-full-1000 {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-right: calc((100% - 1000px) / 2);
    padding-left: calc((100% - 1000px) / 2);
}
article .panel-grid .width-full-1200 {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-right: calc((100% - 1200px) / 2);
    padding-left: calc((100% - 1200px) / 2);
}
article .panel-grid .width-full-1400 {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-right: calc((100% - 1400px) / 2);
    padding-left: calc((100% - 1400px) / 2);
}
article .action-buttons-row {
    margin-bottom: 0;
}

/* ============================================================
  CUSTOM PAGE TEMPLATES POSTS
============================================================ */
/* fix to make panel-layout go full width on No H1 Title template */
.page-template-template-no-h1
    #primary
    .entry-content
    > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(
        .is-style-wide
    ) {
    width: 100%;
}

/* ============================================================
  RELATED POSTS
============================================================ */
.related-posts-wrapper {
    margin-top: 1em;
    padding: 4% 2% !important;
    background: #f5f5f5;
}
.related-posts-wrapper > h2 {
    margin-top: 0;
}
.related-posts-wrapper > h2,
.related-posts-wrapper > p {
    text-align: center;
}
.related-posts-wrapper ul.related-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: normal;
    justify-content: center;
    list-style: none;
    margin: 0;
}
.related-posts-wrapper ul.related-posts li.post {
    flex: 1 1 250px;
    max-width: 275px;
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 0 5px #d8d8d8;
    padding: 5px;
    margin: 0 !important;
    text-align: center;
}
.related-posts-wrapper ul.related-posts li.post a {
    text-decoration: none;
}
.related-posts-wrapper ul.related-posts li.post img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}
.related-posts-wrapper ul.related-posts li.post h3 {
    text-align: center;
    font-weight: 700;
    min-height: 65px;
}
.related-posts-wrapper ul.related-posts li.post p {
    text-align: center;
    font-size: 16px;
}
.related-posts-wrapper ul.related-posts li.post p.excerpt {
    padding: 0 0.5em;
    margin: 0;
}
.related-posts-wrapper ul.related-posts li.post p.button {
    display: inline-block;
    background: #000;
    border-radius: 0;
}

@media (max-width: 780px) {
    .related-posts-wrapper ul.related-posts li.post {
        flex: 1 1 50%;
        max-width: 250px;
    }
}

/* ============================================================
  NEW SEARCH
============================================================ */
.search-results .search-results-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap: 10px;
}
.search-results article {
    display: flex;
    flex: 1 0 100%;
    margin-bottom: 5px;
    padding: 0 !important;
    align-items: center;
    justify-content: left;
    border: none;
}
.search-results article.loc-left {
    background: linear-gradient(
        90deg,
        rgba(216, 216, 216, 0.5) 0%,
        rgba(255, 255, 255, 0) 74%
    );
}
.search-results article.loc-right {
    flex-direction: row-reverse;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(216, 216, 216, 0.5) 74%
    );
}
.search-results article.loc-right > div.col:nth-child(2) {
    width: inherit;
}
.search-results article > div.col {
    padding: 30px 10px;
    text-align: left;
    min-width: 250px;
    max-width: 100%;
}
.search-results article > div.col img {
    width: 300px;
    height: 300px;
    margin-bottom: -7px;
    max-width: 100%;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 0 5px rgb(119 119 119 / 50%);
    border-radius: 5px;
}
.search-results article > div.col h2 {
    margin: 0;
    text-align: left;
}
.search-results article > div.col a.button {
    font-size: 12px;
}

@media (max-width: 667px) {
    .search-results article {
        display: block;
    }
    .search-results article > div.col,
    .search-results article > div.col h2,
    .search-results article > div.col p {
        text-align: center;
    }
    .search-results .pagination .nav-links {
        justify-content: center;
    }
}

/* ============================================================
  PRIVACY POLICY - ON ALL SITES - SHOULD THIS BE IN THE PLUGIN?
============================================================ */
#privacy-policy .comment-break,
#privacy-policy .comment-link-wrapper {
    display: none;
}

#cookie-policy .comment-break,
#cookie-policy .comment-link-wrapper {
    display: none;
}

table.privacy-gdpr {
    clear: both;
    width: 100%;
    border: 1px solid #f0f0f0;
}

table.privacy-gdpr th {
    text-align: left;
    background: rgba(150, 150, 150, 0.15);
    font-size: 13px;
}

table.privacy-gdpr td {
    width: 33%;
    padding: 5px;
    text-align: left;
    vertical-align: middle;
    font-size: 12px;
}

table.privacy-gdpr tr:nth-child(odd) {
    background: rgba(150, 150, 150, 0.1);
}

@media (max-width: 568px) {
    table.privacy-gdpr td {
        font-size: 10px;
    }

    table.privacy-gdpr th {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    table.privacy-gdpr td {
        font-size: 5px;
    }

    table.privacy-gdpr th {
        font-size: 8px;
    }
}

/* ============================================================
  MEET THE TEAM - SHOULD THIS BE IN PLUGIN???
============================================================ */
#team .teamMember .title {
    opacity: 1;
}
#team .teamMember .title a {
    text-decoration: none;
}
#team .teamMember .title span {
    color: #fff;
}
#team .teamMember .name {
    font-size: 14px;
    font-weight: 700;
}
.single-staff .staff-img {
    max-width: 300px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.single-staff #yourSalonReviews {
    display: block;
    clear: both;
}


/* ============================================================
  ARCHIVE - with [getCatList]
============================================================ */
.entry-content .catlist h2 {
    line-height: 1.2;
}

/* ============================================================
  ARCHIVE - without [getCatList]
============================================================ */
.archive article {
    position: relative;
    background: #efefef;
    text-align: center;
    padding: 10px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 10px;
    border-top: 1px solid #d8d8d8;
}
.archive article::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
    z-index: 9; 
    opacity: 1;
}
.archive article h2.entry-title {
    background: #d0d0d0;
    padding: 10px;
}
.archive article h2.entry-title a {
    text-decoration: none;
}

.archive article .wp-post-image {
    display: none;  
}
.archive article .entry-meta {
    clear: both;
}




/* ============================================================
  WOOCOMMERCE
============================================================ */
.woocommerce-checkout
    form
    #order_review
    .woocommerce-checkout-review-order-table
    .woocommerce-Price-amount {
    white-space: nowrap;
}
.woocommerce mark,
.woocommerce ins {
    background: #fff;
}
.woocommerce ul.products li.product h3 {
    color: #000;
    font-size: 12px;
}
.woocommerce ul.products li.product .price {
    color: #000;
    font-size: 15px;
}
.woocommerce li.product {
    text-align: center;
    border: 1px solid #dcdcdc;
    box-shadow: 0 0 5px #d8d8d8;
}
.woocommerce ul.products li.product .button {
    margin-bottom: 1em;
}
.woocommerce p.out-of-stock {
    color: red;
}
.woocommerce p.in-stock {
    margin: 5px;
    padding: 0;
    color: green;
}
.woocommerce span.onsale {
    background-color: #000;
}
.woocommerce .quantity {
    color: #000;
}
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    transition: all 0.25s;
    background: #000;
}
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    transition: all 0.25s;
    background-color: #848484;
}
.single-product.woocommerce div.product form.cart div.quantity {
    width: 100%;
    margin-bottom: 10px;
}
.single-product.woocommerce div.product form.cart .button {
    float: none;
}
.archive.woocommerce #container,
.category.woocommerce #container {
    padding: 0 4%;
}
.woocommerce ul.cart_list li img,
.woocommerce ul.product_list_widget li img {
    width: 32px;
}
.woocommerce .woocommerce-breadcrumb {
    display: none;
}
.woocommerce .action-buttons-row {
    display: none;
}
.reset_variations,
.variations .label {
    display: none;
}

/* ============================================================
  CONTACT MAPS
============================================================ */
.map-iframe,
#map_canvas,
.map_sidebar,
.contact-map {
    width: 100%;
    height: 400px;
    box-shadow: 0 0 3px #aaa;
}

@media (min-width: 480px) {
    .alignleft,
    .alignright {
        max-width: 100%;
    }
}

@media (min-width: 660px) {
    .entry-content > .alignleft,
    .entry-content > p .alignleft,
    .entry-content > .wp-block-image .alignleft {
        margin-left: 0;
    }

    .entry-content > .alignright,
    .entry-content > p .alignright,
    .entry-content > .wp-block-image .alignright {
        margin-right: 0;
    }

    #site-footer {
        font-size: 1.5rem;
    }

    .alignnone,
    .aligncenter {
        display: block;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 700px) {
    .singular .entry-header {
        padding: 0;
    }
}

@media (min-width: 1280px) {
    .entry-content > .alignleft,
    .entry-content > p .alignleft,
    .entry-content > .wp-block-image .alignleft {
        margin-left: 0;
    }

    .entry-content > .alignright,
    .entry-content > p .alignright,
    .entry-content > .wp-block-image .alignright {
        margin-right: 0;
    }
}
