html{
    margin: 0 !important;
}

body{
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.wp-site-blocks{
    position: relative;
}

/* =========================================
   DEFAULT TRANSPARENT HEADER
========================================= */

header.wp-block-template-part{
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
}

header .header-sticky{
    background: transparent !important;
    border-bottom: 1px solid rgb(255 255 255 / 29%);
    color: #ffffff;
}

header .header-sticky .alignwide{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

header .header-sticky .wp-block-search__button svg{
    fill: #ffffff;
}

header .header-sticky a:where(:not(.wp-element-button)){
    color: #ffffff;
}

header .header-sticky .wp-block-search.wp-block-search__button-only .wp-block-search__button{
    padding: 0;
}

/* =========================================
   STICKY HEADER ACTIVE STATE
========================================= */

header .header-sticky.header-sticky-custom{
    background: #ffffff !important;
    border-bottom: 1px solid rgb(255 255 255 / 29%);
    color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

header .header-sticky.header-sticky-custom .wp-block-search__button svg{
    fill: #000000;
}

header .header-sticky.header-sticky-custom a:where(:not(.wp-element-button)){
    color: #000000;
}

header .header-sticky.header-sticky-custom img{
    filter: brightness(0) saturate(100%) invert(31%) sepia(14%) saturate(1758%) hue-rotate(180deg) brightness(96%) contrast(87%);
    -webkit-filter: brightness(0) saturate(100%) invert(31%) sepia(14%) saturate(1758%) hue-rotate(180deg) brightness(96%) contrast(87%);
    transform: translateZ(0);
}

header .header-sticky.header-sticky-custom .dgwt-wcas-search-icon path{
    fill: #000000 !important;
}

/* =========================================
   WHITE HEADER PAGES
   Add body classes here when needed
========================================= */

body.product-template-default.single.single-product,
body.woocommerce-order-received,
body.error404{
}

/* Header positioning */
body.product-template-default.single.single-product header,
body.woocommerce-order-received header,
body.error404 header{
    position: relative !important;
}

/* Top bar border */
body.product-template-default.single.single-product .wp-site-blocks header .top-bar,
body.woocommerce-order-received header .top-bar,
body.error404 header .top-bar{
    border-bottom: 1px solid #bababa;
}

/* Header border */
body.product-template-default.single.single-product .wp-site-blocks header,
body.woocommerce-order-received header,
body.error404 header{
    border-bottom: 1px solid #bababa;
}

/* White header background + text */
body.product-template-default.single.single-product header .header-sticky,
body.woocommerce-order-received header .header-sticky,
body.error404 header .header-sticky{
    background: #ffffff !important;
    color: #000000;
}

/* Logo color */
body.product-template-default.single.single-product header .header-sticky img,
body.woocommerce-order-received header .header-sticky img,
body.error404 header .header-sticky img{
    filter: brightness(0) saturate(100%) invert(31%) sepia(14%) saturate(1758%) hue-rotate(180deg) brightness(96%) contrast(87%);
    -webkit-filter: brightness(0) saturate(100%) invert(31%) sepia(14%) saturate(1758%) hue-rotate(180deg) brightness(96%) contrast(87%);
    transform: translateZ(0);
}

/* Navigation links */
body.product-template-default.single.single-product header .header-sticky a:where(:not(.wp-element-button)),
body.woocommerce-order-received header .header-sticky a:where(:not(.wp-element-button)),
body.error404 header .header-sticky a:where(:not(.wp-element-button)){
    color: #000000;
}

/* Search icon */
body.product-template-default.single.single-product header .header-sticky .wp-block-search__button svg,
body.woocommerce-order-received header .header-sticky .wp-block-search__button svg,
body.error404 header .header-sticky .wp-block-search__button svg{
    color: #000000;
    fill: #000000;
}

/* Ajax search icon */
body.product-template-default.single.single-product header .header-sticky .dgwt-wcas-search-icon path,
body.woocommerce-order-received header .header-sticky .dgwt-wcas-search-icon path,
body.error404 header .header-sticky .dgwt-wcas-search-icon path{
    fill: #000000 !important;
}

/* =========================================
   GENERAL
========================================= */

.wp-block-navigation .wp-block-navigation-item:hover{
    text-decoration: underline !important;
}

body .wc-block-mini-cart__badge{
    background: #2A3D65 !important;
    color: #ffffff !important;
}

.add-to-cart-quantity-block .wp-block-add-to-cart-with-options-quantity-selector{
    max-width: 200px;
    width: 100%;
}

.add-to-cart-quantity-block .wp-block-add-to-cart-with-options-quantity-selector .quantity.wc-block-components-quantity-selector{
    width: 100%;
    border: 2px solid #72919c;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-quantity-block .wp-block-add-to-cart-with-options-quantity-selector .quantity.wc-block-components-quantity-selector input{
    border: 0;
    height: 38px;
    padding: 0;
}

.stp-homepage-categories{
    padding-bottom: 0 !important;
}

.stp-homepage-categories p:empty{
    display: none;
}

.wp-block-accordion-item{
    min-height: 45px !important;
}

.wp-block-accordion-item .wp-block-accordion-heading__toggle{
    padding-bottom: 0 !important;
    padding-top: 10px !important;
}

.wp-block-accordion-item .wp-block-accordion-panel-is-layout-flow{
    margin-top: 10px !important;
}

.wp-block-accordion-item .wp-block-accordion-panel-is-layout-flow ul{
    margin-top: 0 !important;
}

.stp-purity-certificate-download br{
    display: none !important;
}

.wp-block-woocommerce-product-sale-badge{
    display: none;
}

.woocommerce-page form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
}
.wc-block-components-notice-banner>.wc-block-components-notice-banner__content {
    justify-content: start !important;
}
p#validate-error-coupon svg {
    display: none !important;
}
/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 767px){

    .is-product-collection-layout-carousel .wc-block-product .wp-block-group{
        min-height: 131px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    footer .is-layout-flex:not(nav.is-layout-flex,.wp-block-group-is-layout-flex,.wp-block-social-links){
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 20px;
    }

    footer .is-layout-flex .alignwide{
        padding: 0 !important;
    }

    footer .is-vertically-aligned-top,
    footer .is-layout-flow{
        padding: 0 !important;
    }

    footer .is-layout-flow .is-nowrap{
        padding-left: 0 !important;
    }

    footer nav.is-layout-flex,
    footer .wp-block-social-links{
        padding-left: 0 !important;
    }

    .contact-details{
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body .wp-block-woocommerce-product-collection:has(.is-product-collection-layout-carousel) :where(.wc-block-next-previous-buttons.wc-block-next-previous-buttons){
        display: inline-block !important;
    }
}

/* =========================================
   SEARCH CUSTOMIZATION
========================================= */

body .stp-homepage-categories__arrow.swiper-button-disabled{
    opacity: 0.9 !important;
}

.stp-homepage-categories__nav{
    gap: 4px !important;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp{
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html:not(.dgwt-wcas-overlay-mobile-on) .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon .dgwt-wcas-search-form{
    top: -25px !important;
    min-width: 200px !important;
    left: -210px !important;
}

.dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{
    padding: 10px;
    height: 60px;
    border: none;
    border-radius: 16px !important;
}

.dgwt-wcas-preloader.dgwt-wcas-close{
    right: 0 !important;
}

.dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit{
    display: none !important;
}

.dgwt-wcas-search-wrapp{
    right: 3px !important;
}
.woocommerce .woocommerce-ordering .orderby{
        padding-right: 40px !important;
}
div.product .wc-block-add-to-cart-form p.stock {
    background-color: #2a3d65 !important;
    color: #ffffff !important;
}
.single-product .variations_form .reset_variations {
    display: none !important;
}
.woocommerce div.product form.cart .variations {
    margin-bottom: 0 !important;

}
svg.dgwt-wcas-ico-magnifier {
    display: none;
}
input#dgwt-wcas-search-input-1 {
    border: #eff5ff 1px solid;
}
