/* =========================================================
   WooCommerce product tabs
   Use Kadence theme button colours
   Desktop + Mobile
   ========================================================= */

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 12px 0 0 !important;
    margin: 0 0 20px !important;

    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    display: block !important;
    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid var(--global-palette-btn-bg) !important;
    border-radius: 7px !important;

    background: #ffffff !important;
    box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block !important;

    padding: 7px 14px !important;

    color: var(--global-palette-btn-bg) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;

    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Active tab */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--global-palette-btn-bg) !important;
    border-color: var(--global-palette-btn-bg) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--global-palette-btn) !important;
}

/* Hover / keyboard focus */
.woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active):hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active):focus-within {
    background: var(--global-palette-btn-bg-hover) !important;
    border-color: var(--global-palette-btn-bg-hover) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active):hover a,
.woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active):focus-within a {
    color: var(--global-palette-btn-hover) !important;
}


/* Hide SKU on single product pages */

.single-product .product_meta .sku_wrapper {
    display: none !important;
}

/* =========================================================
   POST ARCHIVES - READ MORE BUTTON AT BOTTOM OF CARD
   ========================================================= */

@media (min-width: 768px) {

    /* The whole white card becomes the positioning container */
    body.blog .loop-entry.post,
    body.archive .loop-entry.post,
    body.search .loop-entry.post {
        position: relative;
    }

    /* Leave room at the bottom for the button */
    body.blog .loop-entry.post .entry-content-wrap,
    body.archive .loop-entry.post .entry-content-wrap,
    body.search .loop-entry.post .entry-content-wrap {
        padding-bottom: 85px !important;
    }

    /* Position Read More relative to the whole card */
    body.blog .loop-entry.post .more-link-wrap,
    body.archive .loop-entry.post .more-link-wrap,
    body.search .loop-entry.post .more-link-wrap {
        position: absolute !important;
        left: var(--global-boxed-spacing, 2rem);
        bottom: 28px;
        margin: 0 !important;
    }
}


/* =========================================================
   POST ARCHIVES - READ MORE BUTTON STYLE
   ========================================================= */

body.blog .loop-entry.post a.post-more-link,
body.archive .loop-entry.post a.post-more-link,
body.search .loop-entry.post a.post-more-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 7px 14px !important;

    background: var(--global-palette-btn-bg) !important;
    color: var(--global-palette-btn) !important;

    border: 0;
    border-radius: 6px;

    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;

    transition: all 0.2s ease;
}

body.blog .loop-entry.post a.post-more-link:hover,
body.blog .loop-entry.post a.post-more-link:focus,
body.archive .loop-entry.post a.post-more-link:hover,
body.archive .loop-entry.post a.post-more-link:focus,
body.search .loop-entry.post a.post-more-link:hover,
body.search .loop-entry.post a.post-more-link:focus {
    background: var(--global-palette-btn-bg-hover) !important;
    color: var(--global-palette-btn-hover) !important;
}

/* Parkland footer — main 4-column area */
.site-middle-footer-inner-wrap {
    color: #3F4944;
}

/* Footer column headings */
.site-middle-footer-inner-wrap h2,
.site-middle-footer-inner-wrap h3,
.site-middle-footer-inner-wrap h4,
.site-middle-footer-inner-wrap .widget-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    color: #123F31;
    margin: 0 0 18px;
}

/* Footer paragraphs and links */
.site-middle-footer-inner-wrap p,
.site-middle-footer-inner-wrap li,
.site-middle-footer-inner-wrap a {
    font-size: 14px;
    line-height: 1.55;
}

/* Remove oversized Gutenberg paragraph spacing */
.site-middle-footer-inner-wrap p {
    margin-top: 0;
    margin-bottom: 11px;
}

/* Footer links */
.site-middle-footer-inner-wrap a {
    color: #294E3D;
    text-decoration: none;
}

.site-middle-footer-inner-wrap a:hover {
    color: #0B6B3A;
    text-decoration: underline;
}

/* First brand column */
.site-middle-footer-inner-wrap .footer-widget-area:first-child p {
    max-width: 250px;
}

/* Rating block */
.site-middle-footer-inner-wrap .footer-widget-area:first-child .wp-block-shortcode,
.site-middle-footer-inner-wrap .footer-widget-area:first-child [class*="review"] {
    margin-top: 16px;
    margin-bottom: 16px;
}
/* Footer refinement */
.site-middle-footer-inner-wrap p,
.site-middle-footer-inner-wrap li,
.site-middle-footer-inner-wrap a {
    font-family: inherit !important;
}

/* Tighter spacing between footer links */
.site-middle-footer-inner-wrap .wp-block-paragraph {
    margin-bottom: 7px !important;
}

/* Remove extra spacing from block groups */
.site-middle-footer-inner-wrap .widget-area .wp-block-group,
.site-middle-footer-inner-wrap .widget-area .wp-block-columns {
    gap: 8px;
}

/* Compact rating */
.site-middle-footer-inner-wrap .footer-widget-area:first-child [class*="review"] {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

.site-middle-footer-inner-wrap .footer-widget-area:first-child [class*="review"] + p {
    margin-top: 4px !important;
}

/* Keep long footer labels readable */
.site-middle-footer-inner-wrap a {
    white-space: normal;
}

/* Compact spacing between individual footer blocks */
.site-middle-footer-inner-wrap .widget-area > * {
    margin-block-start: 0 !important;
    margin-block-end: 9px !important;
}

/* Keep footer headings separated from links */
.site-middle-footer-inner-wrap .widget-area > h2,
.site-middle-footer-inner-wrap .widget-area > h3,
.site-middle-footer-inner-wrap .widget-area > h4 {
    margin-bottom: 17px !important;
}
/* Remove leftover code/monospace styling in footer */
.site-middle-footer-inner-wrap code,
.site-middle-footer-inner-wrap pre,
.site-middle-footer-inner-wrap kbd,
.site-middle-footer-inner-wrap samp {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Parkland footer — mobile */
@media (max-width: 767px) {

    /* Align all footer columns consistently */
    .site-middle-footer-inner-wrap,
    .site-middle-footer-inner-wrap .widget-area,
    .site-middle-footer-inner-wrap .footer-widget-area {
        text-align: left !important;
    }

    /* Compact horizontal padding */
    .site-middle-footer-inner-wrap {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Space between the four footer sections */
    .site-middle-footer-inner-wrap .widget-area {
        margin-bottom: 28px !important;
    }

    /* Footer headings */
    .site-middle-footer-inner-wrap h2,
    .site-middle-footer-inner-wrap h3,
    .site-middle-footer-inner-wrap h4,
    .site-middle-footer-inner-wrap .widget-title {
        margin-bottom: 14px !important;
    }

    /* Individual links / paragraphs */
    .site-middle-footer-inner-wrap .widget-area > * {
        margin-block-start: 0 !important;
        margin-block-end: 7px !important;
    }

    /* Brand description should not be artificially narrow */
    .site-middle-footer-inner-wrap
    .footer-widget-area:first-child p {
        max-width: none !important;
    }

    /* Keep review area compact */
    .site-middle-footer-inner-wrap
    .footer-widget-area:first-child [class*="review"] {
        margin-top: 12px !important;
        margin-bottom: 7px !important;
    }
}

/* Footer bottom — desktop */
@media (min-width: 768px) {

    .site-footer-bottom-section-1 br {
        display: none;
    }

    .site-footer-bottom-section-1 a {
        display: inline !important;
        margin: 0 2px !important;
    }

    .site-footer-bottom-section-1 {
        line-height: 1.5 !important;
    }
}

/* =========================================================
   Homepage Trust Strip – Review Counter
   Match Kadence Info Box geometry
   ========================================================= */

/* Section containing shortcode */
.homepage-trust-strip {
    display: flex;
    align-items: stretch;
    height: 100%;
}

/* Gutenberg shortcode wrapper */
.homepage-trust-strip .wp-block-shortcode {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: stretch;
}

/* Whole clickable review counter */
.homepage-trust-strip .parkland-review-info-box {
    width: 100%;
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Icon area
   Mimics Kadence media container
   --------------------------------------------------------- */

.homepage-trust-strip .parkland-review-info-box-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    margin: 0 0px 0 0;

    box-sizing: content-box;

    color: #328a34;
}

.homepage-trust-strip .parkland-review-info-box-icon svg {
    display: block;
    width: 30px;
    height: 30px;

    stroke: currentColor;
}

/* ---------------------------------------------------------
   Text area
   --------------------------------------------------------- */

.homepage-trust-strip .parkland-review-info-box-copy {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    margin: 0;
    padding: 0 20px 0 0;

    text-align: left;
}

/* 4.94/5 */
.homepage-trust-strip .parkland-review-info-box-rating {
    display: block;

    margin: 5px 0 10px 0;
    padding: 0;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: normal;

    color: #328a34;
}

/* based on 176 reviews */
.homepage-trust-strip .parkland-review-info-box-count {
    display: block;

    margin: 0;
    padding: 0;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;

    color: inherit;
}

/* Links */
.homepage-trust-strip .parkland-review-info-box,
.homepage-trust-strip .parkland-review-info-box:hover,
.homepage-trust-strip .parkland-review-info-box:focus,
.homepage-trust-strip .parkland-review-info-box:visited {
    text-decoration: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .homepage-trust-strip .parkland-review-info-box {
        min-height: 96px;
    }

    .homepage-trust-strip .parkland-review-info-box-icon {
        width: 30px;
        height: 30px;

        padding: 32px;
        margin-right: 0px;
    }

    .homepage-trust-strip .parkland-review-info-box-icon svg {
        width: 30px;
        height: 30px;
    }

    .homepage-trust-strip .parkland-review-info-box-rating {
        font-size: 17px;
    }

    .homepage-trust-strip .parkland-review-info-box-count {
        font-size: 14px;
    }

    .homepage-trust-strip .parkland-review-info-box-copy {
        padding-right: 20px;
    }
}