/* Mobile search/category repair for the global header and WooCommerce widgets. */
@media (max-width: 991px) {
	.header-991 .elementor-element-efbca58 {
		padding: 8px 14px 10px !important;
	}

	.header-991 .elementor-element-6440609,
	.header-991 .elementor-element-6440609 > .elementor-element-populated {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
	}

	.header-991 .elementor-element-6440609 > .elementor-widget-wrap {
		display: grid !important;
		grid-template-columns: 44px minmax(0, 1fr) 44px !important;
		grid-template-rows: 44px auto !important;
		grid-template-areas:
			"toggle logo cart"
			"search search search" !important;
		align-items: center !important;
		gap: 8px 10px !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.header-991 .elementor-element-1a3bb59 {
		grid-area: toggle !important;
		justify-self: start;
		margin: 0 !important;
	}

	.header-991 .elementor-element-31c2a06 {
		grid-area: logo !important;
		justify-self: center;
		margin: 0 !important;
	}

	.header-991 .elementor-element-68656a4 {
		grid-area: search !important;
		align-self: stretch;
		margin: 0 !important;
	}

	.header-991 .elementor-element-4ca135d {
		grid-area: cart !important;
		justify-self: end;
		margin: 0 !important;
	}

	.header-991 .elementor-element-a494bba,
	.header-991 .elementor-element-c282063,
	.header-991 .elementor-element-9e1bc57 {
		display: none !important;
	}

	.header-991 .elementor-widget-wolmart_header_search,
	.header-991 .elementor-widget-wolmart_header_search .elementor-widget-container,
	.header-991 .elementor-widget-wolmart_header_search .search-wrapper {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.header-991 .elementor-widget-wolmart_header_search {
		margin-top: 2px !important;
	}

	.header-991 .elementor-widget-wolmart_header_search form.input-wrapper {
		position: relative;
		display: grid !important;
		grid-template-columns: minmax(104px, 30%) minmax(0, 1fr) 46px;
		grid-template-rows: 46px;
		align-items: stretch;
		gap: 0;
		width: 100%;
		height: 46px;
		min-width: 0;
		padding: 0 !important;
		border: 1px solid var(--ecomart-border, #dfe3e8);
		border-radius: 8px;
		background: #fff;
		overflow: visible;
	}

	.header-991 .elementor-widget-wolmart_header_search form.input-wrapper:focus-within {
		outline: 2px solid rgb(53 197 255 / 48%) !important;
		outline-offset: 2px;
		box-shadow: none !important;
	}

	.header-991 .elementor-widget-wolmart_header_search .select-box {
		position: relative;
		grid-column: 1;
		grid-row: 1;
		display: flex;
		width: auto !important;
		min-width: 0 !important;
		height: 44px;
		border: 0;
		border-right: 1px solid var(--ecomart-border, #dfe3e8);
		border-radius: 7px 0 0 7px;
		background: #fff;
		cursor: pointer;
		overflow: visible;
	}

	.header-991 .elementor-widget-wolmart_header_search .select-box::before {
		z-index: 3;
		pointer-events: none;
	}

	.header-991 .elementor-widget-wolmart_header_search select {
		position: relative;
		z-index: 2;
		display: block !important;
		display: block;
		width: 100%;
		min-width: 0;
		height: 44px;
		margin: 0;
		padding: 0 25px 0 10px;
		border: 0;
		border-radius: 7px 0 0 7px;
		background-color: #fff;
		color: #242424;
		font-size: 12px;
		cursor: pointer;
		pointer-events: auto !important;
		line-height: 44px;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}

	.header-991 .elementor-widget-wolmart_header_search select:focus,
	.header-991 .elementor-widget-wolmart_header_search input.form-control:focus,
	.header-991 .elementor-widget-wolmart_header_search .btn-search:focus {
		outline: 0 !important;
		border-color: transparent !important;
		box-shadow: none !important;
	}

	.header-991 .elementor-widget-wolmart_header_search input.form-control {
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		min-width: 0;
		height: 44px;
		margin: 0;
		padding: 0 11px;
		border: 0;
		border-radius: 0;
		background: #fff;
		color: #242424;
		font-size: 13px;
		cursor: text;
		pointer-events: auto !important;
		line-height: normal;
	}

	.header-991 .elementor-widget-wolmart_header_search .btn-search,
	.header-991 .elementor-widget-wolmart_header_search form.input-wrapper > .btn-search {
		grid-column: 3;
		grid-row: 1;
		align-self: stretch;
		width: 46px;
		min-width: 46px;
		height: 44px !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 7px 7px 0 !important;
	}

	.header-991 .elementor-widget-wolmart_header_search .live-search-list {
		position: absolute;
		top: calc(100% + 6px);
		right: 0;
		left: 0;
		z-index: 3100;
		width: 100%;
		max-height: min(55vh, 360px);
		border-radius: 8px;
		overflow-x: hidden;
		overflow-y: auto;
	}
}

@media (max-width: 399px) {
	.header-991 .elementor-element-efbca58 {
		padding: 7px 10px 9px !important;
	}

	.header-991 .elementor-widget-wolmart_header_search form.input-wrapper {
		grid-template-columns: minmax(0, 1fr) 46px;
		grid-template-rows: 40px 46px;
		height: 88px;
		border-radius: 8px;
	}

	.header-991 .elementor-widget-wolmart_header_search .select-box {
		grid-column: 1 / -1;
		grid-row: 1;
		height: 39px;
		border-right: 0;
		border-bottom: 1px solid var(--ecomart-border, #dfe3e8);
		border-radius: 7px 7px 0 0;
	}

	.header-991 .elementor-widget-wolmart_header_search select {
		height: 39px;
		padding-inline: 12px 30px;
		border-radius: 7px 7px 0 0;
		font-size: 13px;
		line-height: 39px;
	}

	.header-991 .elementor-widget-wolmart_header_search input.form-control {
		grid-column: 1;
		grid-row: 2;
		height: 46px;
		padding-inline: 12px;
		border-radius: 0 0 0 7px;
		font-size: 14px;
	}

	.header-991 .elementor-widget-wolmart_header_search .btn-search,
	.header-991 .elementor-widget-wolmart_header_search form.input-wrapper > .btn-search {
		grid-column: 2;
		grid-row: 2;
		height: 46px !important;
		border-radius: 0 0 7px 0 !important;
	}
}

@media (max-width: 767px) {
	.widget_product_categories,
	.widget_product_search,
	.widget_search {
		width: 100%;
		max-width: 100%;
	}

	.widget_product_categories ul.product-categories {
		max-height: min(55vh, 380px);
		padding: 4px 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.widget_product_categories ul.product-categories a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding-block: 9px;
		white-space: normal;
	}

	.widget_product_search form,
	.widget_search form {
		display: flex;
		align-items: stretch;
		width: 100%;
		min-width: 0;
	}

	.widget_product_search input[type="search"],
	.widget_search input[type="search"] {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		height: 44px;
	}

	.widget_product_search button,
	.widget_search button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 44px;
		min-width: 44px;
		height: 44px;
		padding: 0;
	}
}
