/*
 Theme Name:   Medigreen Child
 Theme URI:    http://medigreen.bold-themes.com
 Description:  Medigreen child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     medigreen
 Version:      1.1.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  medigreen-child
*/

/* Conversion, accessibility, and usability repairs. */

.single-product .btBlogHeaderContent:has(.bt_bb_column_content:empty),
.single-product .btBlogHeaderContent {
    display: none !important;
}

.single-product .btContentHolder {
    margin-top: 0 !important;
}

.spliff-shop-tools {
    clear: both;
    margin: 0 0 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    background: #fff;
}

.spliff-shop-tools h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.1;
}

.spliff-product-search,
.spliff-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.spliff-product-search input[type="search"] {
    flex: 1 1 18rem;
    min-height: 48px;
    padding: 0 .9rem;
    border: 1px solid #666;
    border-radius: 8px;
}

.spliff-product-search button,
.spliff-primary-button,
.spliff-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.1rem;
    border: 2px solid #111;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
}

.spliff-product-search button,
.spliff-primary-button {
    color: #fff !important;
    background: #111;
}

.spliff-secondary-button {
    color: #111 !important;
    background: #fff;
}

.spliff-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.spliff-category-chips a {
    display: inline-block;
    padding: .55rem .85rem;
    border-radius: 999px;
    color: #fff !important;
    background: #355928;
    font-weight: 600;
    text-decoration: none !important;
}

.spliff-pickup-badge {
    display: inline-block;
    margin: .45rem 0 .2rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    color: #23451c;
    background: #e8f4e3;
    font-size: .78rem;
    font-weight: 700;
}

.spliff-product-reassurance {
    display: grid;
    gap: .25rem;
    margin: 1rem 0;
    padding: .85rem 1rem;
    border-left: 4px solid #355928;
    background: #f5f7f3;
    font-size: .92rem;
}

.spliff-page-intro,
.spliff-referral-cta,
.spliff-location-actions {
    margin: 0 auto 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 14px;
    background: #f7f7f3;
}

.spliff-page-intro h1,
.spliff-referral-cta h1 {
    margin: 0;
    line-height: 1.1;
}

.spliff-referral-cta p,
.spliff-location-actions > span {
    display: block;
    margin: .75rem 0;
}

.home .btContent,
.home .bt_bb_full_screen {
    position: relative;
}

.spliff-hero-actions {
    position: absolute;
    z-index: 4;
    right: 1rem;
    bottom: 2rem;
    left: 1rem;
    max-width: 760px;
    margin: auto;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    text-align: center;
    backdrop-filter: blur(7px);
}

.spliff-hero-actions h1,
.spliff-mobile-hero-title {
    margin: 0 0 .35rem;
    color: #fff;
    font-family: inherit;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
}

.spliff-hero-actions p {
    margin: 0 0 .75rem;
}

.spliff-hero-actions .spliff-action-row {
    justify-content: center;
}

.spliff-hero-actions small {
    display: block;
    margin-top: .6rem;
}

body.spliff-pickup-active #billing_address_1_field,
body.spliff-pickup-active #billing_address_2_field,
body.spliff-pickup-active #billing_city_field,
body.spliff-pickup-active #billing_state_field,
body.spliff-pickup-active #billing_postcode_field,
body.spliff-pickup-active #billing_country_field {
    display: none !important;
}

.btVerticalMenuTrigger[role="button"]:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffcf33 !important;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .spliff-hero-actions {
        right: .75rem;
        bottom: 1rem;
        left: .75rem;
        padding: .85rem;
    }

    .spliff-hero-actions p {
        font-size: .9rem;
    }

    .spliff-hero-actions .spliff-primary-button,
    .spliff-hero-actions .spliff-secondary-button {
        flex: 1 1 9rem;
        min-height: 44px;
        padding: .6rem .8rem;
    }

    .spliff-shop-tools {
        padding: 1rem;
    }

    .single-product div.product.product-type-simple form.cart {
        position: fixed;
        z-index: 99998;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        gap: .65rem;
        align-items: center;
        margin: 0 !important;
        padding: .75rem;
        background: #fff;
        box-shadow: 0 -6px 22px rgba(0, 0, 0, .2);
    }

    .single-product div.product.product-type-simple form.cart .quantity {
        flex: 0 0 72px;
        margin: 0 !important;
    }

    .single-product div.product.product-type-simple form.cart .single_add_to_cart_button {
        flex: 1 1 auto;
        min-height: 48px;
        margin: 0 !important;
    }

    body.single-product {
        padding-bottom: 78px;
    }
}



/* Homepage layout repair: preserve the theme, clarify the conversion path. */
body.home .spliff-home-audit-hidden {
    display: none !important;
}

body.home .spliff-home-cta-strip,
body.home .spliff-home-cta-strip * {
    box-sizing: border-box;
}

body.home .spliff-home-cta-strip {
    position: relative;
    z-index: 5;
    border-top: 5px solid #9dad3d;
    border-bottom: 1px solid rgba(20, 20, 20, .14);
    color: #171717;
    background: #f7f5ef;
}

body.home .spliff-home-cta-inner {
    display: grid;
    width: min(1200px, calc(100% - 3rem));
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4.75rem) 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
}

body.home .spliff-home-eyebrow {
    display: block;
    margin-bottom: .75rem;
    color: #7c8d2e;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
}

body.home .spliff-home-cta-strip h1 {
    max-width: 760px;
    margin: 0;
    color: #171717;
    font-family: inherit;
    font-size: clamp(2.35rem, 4.2vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
}

body.home .spliff-home-cta-copy p {
    max-width: 680px;
    margin: 1.1rem 0 0;
    color: #505050;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.55;
}

body.home .spliff-home-cta-actions {
    display: grid;
    gap: .7rem;
}

body.home .spliff-home-primary,
body.home .spliff-home-secondary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.2rem;
    border: 2px solid #17371d;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

body.home .spliff-home-primary {
    color: #fff;
    background: #17371d;
}

body.home .spliff-home-secondary {
    color: #17371d;
    background: transparent;
}

body.home .spliff-home-primary:hover,
body.home .spliff-home-primary:focus-visible,
body.home .spliff-home-secondary:hover,
body.home .spliff-home-secondary:focus-visible {
    color: #171717;
    border-color: #b6c94b;
    background: #c8da54;
}

body.home .spliff-home-cta-actions small {
    display: block;
    margin-top: .35rem;
    color: #676767;
    font-size: .7rem;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

/* Let the brand film breathe while bringing the order path closer to the fold. */
@media (min-width: 768px) {
    body.home .bt_bb_section.bt_bb_video {
        height: clamp(420px, 58vh, 620px) !important;
        min-height: 420px !important;
    }
}

/* Keep the complete mobile film in frame, with conversion content below it. */
@media (max-width: 767px) {
    body.home .bt_bb_section.bt_bb_video.bt_bb_hidden_md {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        background: #121212 !important;
    }

    body.home .bt_bb_section.bt_bb_video.bt_bb_hidden_md video {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9;
        transform: none !important;
        object-fit: contain !important;
        object-position: center center !important;
        background: #000;
    }

    body.home .bt_bb_section.bt_bb_video.bt_bb_hidden_md > .bt_bb_port {
        display: none !important;
    }

    body.home .spliff-home-cta-inner {
        display: block;
        width: auto;
        padding: 2.4rem 1.25rem 2.6rem;
    }

    body.home .spliff-home-cta-strip h1 {
        font-size: clamp(2rem, 10.5vw, 3rem);
        line-height: 1;
    }

    body.home .spliff-home-cta-copy p {
        font-size: .96rem;
    }

    body.home .spliff-home-cta-actions {
        margin-top: 1.7rem;
    }

    body.home .spliff-home-primary,
    body.home .spliff-home-secondary {
        min-height: 50px;
    }
}

/* Keep chat available without covering fields, buttons, or homepage content. */
iframe[title="Intercom notifications message"] {
    display: none !important;
}


/* The conversion heading below replaces the clipped legacy hero text. */
body.home .bt_bb_section.bt_bb_video > .bt_bb_port {
    display: none !important;
}
