.search-custom-toggen-open .site-header-item[data-section="base_customizer_header_search_advanced"] {
    display: block;
}

.custom-product-cart-control {
	width: 100%;
	position: relative;
}

.custom-loop-add-to-cart {
	width: 100%;
}

.custom-quantity-control button {
    height: auto;
    padding: 0;
    background: #91278f;
    font-size: 28px;
    cursor: pointer;
    width: 38px !important;
    background-color: #ffffff;
    color: #91278f;
    font-weight: normal;
    border: 1px solid #91278f;
}

.custom-quantity-control button:hover {
	background: #f5f5f5;
}

.custom-quantity-value {
    width: 33.333%;
    text-align: center;
    font-size: 18px;
    font-weight: normal;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 40px;
    color: inherit;
}

/* Remove browser number arrows */

.custom-quantity-value::-webkit-outer-spin-button,
.custom-quantity-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-quantity-value[type="number"] {
    -moz-appearance: textfield;
}

.custom-quantity-control button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.custom-product-cart-control.is-updating {
	opacity: 0.6;
	pointer-events: none;
}

/*
 * Extra safety:
 * never show WooCommerce "View cart"
 * inside our custom product control.
 */
.custom-product-cart-control
.added_to_cart.wc-forward {
	display: none !important;
}

/*
 * IMPORTANT:
 * Make sure hidden elements are actually hidden.
 */
.custom-product-cart-control [hidden] {
	display: none !important;
}


.custom-product-cart-control {
	width: 100%;
	position: relative;
}


/*
 * Add To Cart button.
 */
.custom-loop-add-to-cart {
	width: 100%;
}


/*
 * Quantity control.
 */
.custom-quantity-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: auto;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}


/*
 * Quantity buttons.
 */

/*
 * Hover.
 */
.custom-quantity-control button:hover {
	background: #91278f;
}


/*
 * Quantity number.
 */


/*
 * Prevent WooCommerce View Cart link.
 */
.custom-product-cart-control
.added_to_cart.wc-forward {
	display: none !important;
}


/*
 * While AJAX request is running.
 */
.custom-product-cart-control.is-updating {
	opacity: 0.6;
	pointer-events: none;
}

/* =========================================================
   Mini Cart Quantity
   ========================================================= */

.custom-mini-cart-quantity-wrap {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
}


/* Quantity control */

.custom-mini-cart-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid #ddd;
    border-radius: 4px;

    overflow: hidden;

    min-width: 110px;
    height: 38px;

    background: #fff;
}


/* Plus / Minus */

.custom-mini-cart-quantity button {
    width: 32px;
    height: 36px;

    padding: 0;

    border: 0;

    background: #fff;
    color: #91278f;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


.custom-mini-cart-quantity button:hover {
    background: #f5f5f5;
}


.custom-mini-cart-quantity button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Quantity input */

.custom-mini-cart-value {
    width: 40px !important;
    height: 36px !important;

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

    border: 0 !important;

    background: transparent !important;

    text-align: center;

    font-size: 15px;

    box-shadow: none !important;
}


/* Remove browser number arrows */

.custom-mini-cart-value::-webkit-inner-spin-button,
.custom-mini-cart-value::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-mini-cart-value {
    -moz-appearance: textfield;
}


/* Price */

.custom-mini-cart-price {
    display: inline-block;
    white-space: nowrap;
}


/* AJAX loading */

.custom-mini-cart-quantity-wrap.is-updating {
    opacity: 0.6;
    pointer-events: none;
}