/* Font */
.ecwid span, .ecwid a, .ecwid p, .ecwid .label {
    font-family: Open Sans !important;
    font-size: .9rem !important;
    line-height: 1.5 !important;
    /* color: #262626; */
}

.form-control__placeholder-inner{
    font-family: Open Sans !important;
    font-size: unset !important;
    line-height: 1.2 !important;
}


/* Add To Bag Button */

.ecsp.ecsp-SingleProduct-v2 .ecwid-btn--addToBag {
    background-color: #292929 !important;
    color: #fff9f1 !important;
    font-family: 'Urbanist Medium' !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    padding: 0.75rem 1.75rem !important;
    line-height: 1.6 !important;
    letter-spacing: .4 !important;
    border-radius: 6px !important;
    width: 100% !important;
    height: 100% !important;
    box-shadow: none !important;
}

.ecsp.ecsp-SingleProduct-v2 .ecwid-btn--addToBag:hover {
    background-color: #fff9f1 !important;
    color: #292929 !important;
}



/* CART Popup */

/* .ec-minicart placeholder kept for future overrides */
/* .ec-minicart { display: none !important; } */

.ecwid-ProductBrowserPopup {
    position: fixed !important;
    top: 5rem !important;
    /* left: 5rem !important; */
}

.popupContent {
    background-color: #fff9f1 !important;
    border: none !important;
    /* Make the popup scrollable on desktop if content exceeds viewport */
    max-height: calc(100vh - 8rem) !important; /* accounts for top offset + breathing space */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

div.ecwid-productBrowser {
    background-color: #fff9f1 !important;
}

.ec-header-h1 {
    letter-spacing: -0.6px !important;
    font-family: Urbanist Bold, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem !important;
}


/* Cart Button color*/
.ec-size .ec-store .form-control--primary .form-control__button {
    background-color: #292929 !important;
    color: #fff9f1 !important;

}

.ec-size .ec-store .form-control--primary .form-control__button-text,
.ec-size .ec-store .form-control--secondary .form-control__button-text {
    letter-spacing: .2px !important;
    border-radius: 6px !important;
    padding: .75rem 1.5rem !important;
    font-family: 'Urbanist SemiBold' !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}

/* Cart Button color on hover*/
.ec-size .ec-store .form-control--primary .form-control__button:hover,
.ec-size .ec-store .form-control--secondary .form-control__button:hover {
    background-color: #fff9f1 !important;
    color: #292929 !important;
    border: solid 1px #292929 !important;
}

.ec-size .ec-store .ec-cart-summary__note {
    padding: 1.5rem 0 1rem !important;
}


/* END Cart */




/* Remove item from cart svg */
.ec-size .ec-store .ec-cart-item__control-inner svg {
    opacity: 1 !important;
    color: #292929;
    width: 25px;
    height: 25px;
    border: solid 1px #29292968 !important;
    border-radius: 3px !important;
    padding: 0.4rem !important;
    margin: -.5rem 0 .5rem !important;
    cursor: pointer;
}

/* quantity field */
/* .ec-cart-item__count placeholder for potential font-size override */
/* .ec-size .ec-store .ec-cart-item__count { font-size: 1rem !important; } */



@media screen and (max-width: 991px) {}



@media screen and (max-width: 767px) {
    .popupContent {
        overflow: auto !important;
        height: 100vh !important;
        padding-bottom: 2rem !important;
    }
}



@media screen and (max-width: 479px) {

    /* Add To Cart Button */

    .ecsp.ecsp-SingleProduct-v2 .ecwid-btn--addToBag {
        font-size: 1.1rem !important;
        padding: 0.75rem 1.7rem !important;
        line-height: 1.5 !important;
        letter-spacing: .2 !important;
    }


    /* Cart Popup */

    .popupContent {
        top: 0 !important;
        border-radius: 0 !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0rem !important;
    }

    .ecwid-ProductBrowserPopup-content {
        max-width: 100vw !important;
        width: 100vw !important;
        padding: 1rem !important;
    }

    .ec-header-h1 {
        letter-spacing: -0.4px !important;
        font-size: 2.25rem;
        margin-bottom: .5rem !important;
    }
}

/* Prevent background scroll while popup is visible */
/* Works in modern browsers via :has(), with JS class fallback below */
html:has(.ecwid-ProductBrowserPopup),
body:has(.ecwid-ProductBrowserPopup),
html:has(.ecwid-overlay),
body:has(.ecwid-overlay) {
    overflow: hidden !important;
}

html.ecwid-popup-open,
body.ecwid-popup-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Improve nested scroll behaviour inside popup */
.ecwid-ProductBrowserPopup .popupContent {
    overscroll-behavior: contain;
}