.lwas-search-widget {
	width: 100%;
	direction: rtl;
	font-family: inherit;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	position: relative !important;
	z-index: 5;
	box-sizing: border-box;
}

.lwas-search-widget *,
.lwas-search-widget *::before,
.lwas-search-widget *::after {
	box-sizing: border-box;
}

.lwas-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	color: #041496;
}

.lwas-form {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	height: auto !important;
}

.lwas-field {
	flex: 1 1 140px;
	min-width: 120px;
	position: relative;
}

.lwas-field-keyword {
	flex: 2 1 200px;
	position: relative;
}

/* Search icon inside the keyword field */
.lwas-field-keyword::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354595F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 1;
}

.lwas-input-keyword {
	padding-right: 42px;
}

.lwas-input-keyword,
.lwas-select-world,
.lwas-select-age {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1.5px solid #e9e9ee;
	border-radius: 12px;
	background: #fff;
	color: #2b2b33;
	font-size: 14px;
	font-family: inherit;
	direction: rtl;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lwas-select-world,
.lwas-select-age {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-left: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041496' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
	background-size: 16px;
	cursor: pointer;
}

.lwas-input-keyword::placeholder {
	color: #9a9aa5;
}

.lwas-input-keyword:focus,
.lwas-select-world:focus,
.lwas-select-age:focus {
	outline: none;
	border-color: #041496;
	box-shadow: 0 0 0 3px rgba(4, 20, 150, 0.12);
}

.lwas-submit {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 28px;
	background: #FF0B1B;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.1s ease;
	white-space: nowrap;
	letter-spacing: 0.2px;
}

.lwas-submit:hover {
	background: #d6000f;
}

.lwas-submit:active {
	transform: scale(0.97);
}

/* Header widget on desktop: compact single row */
.header .lwas-form,
.widget_lwas_widget .lwas-form {
	flex-wrap: nowrap;
}

/* ---------------------------------------------- */
/* Mobile: compact layout matching the native menu */
/* ---------------------------------------------- */
@media (max-width: 767px) {
	.lwas-search-widget {
		width: 100% !important;
		max-width: 100%;
		padding: 0;
		margin: 0 0 4px;
	}

	.lwas-title {
		font-size: 14px;
		font-weight: 600;
		text-align: right;
		margin-bottom: 8px;
		color: #54595F;
	}

	.lwas-form {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 8px;
		width: 100%;
	}

	/* Keyword search: full width, matches the native search box look */
	.lwas-field-keyword {
		flex: 1 1 100%;
		width: 100%;
		order: 1;
	}

	/* World + Age dropdowns share one row to save vertical space */
	.lwas-field-world {
		flex: 1 1 0;
		width: auto;
		order: 2;
	}

	.lwas-field-age {
		flex: 1 1 0;
		width: auto;
		order: 3;
	}

	.lwas-form {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"kw kw"
			"world age"
			"btn btn";
	}

	.lwas-field-keyword { grid-area: kw; }
	.lwas-field-world { grid-area: world; }
	.lwas-field-age { grid-area: age; }
	.lwas-submit { grid-area: btn; }

	.lwas-input-keyword,
	.lwas-select-world,
	.lwas-select-age {
		height: 40px;
		font-size: 13px;
		padding: 0 12px;
		border-radius: 8px;
		border-color: #e2e2e6;
	}

	.lwas-select-world,
	.lwas-select-age {
		padding-left: 26px;
		background-size: 12px;
		background-position: left 10px center;
	}

	.lwas-field-keyword::before {
		right: 12px;
		width: 15px;
		height: 15px;
	}

	.lwas-input-keyword {
		padding-right: 34px;
	}

	.lwas-submit {
		width: 100%;
		height: 38px;
		border-radius: 8px;
		font-size: 13px;
		box-shadow: none;
	}
}
