.ps-c2fa3890-wrapper {
	position: relative;
	display: inline-block;
}

.ps-c2fa3890-trigger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border-radius: 50%;
}

.ps-c2fa3890-trigger:hover {
	background: rgba(0, 0, 0, 0.05);
}

.ps-c2fa3890-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ps-c2fa3890-modal {
	position: fixed;
	top: 15%;
	left: 50%;
	transform: translateX(-50%) translateY(-20px) scale(0.95);
	width: 70%;
	max-width: 800px;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
	.ps-c2fa3890-modal {
		width: 90%;
		top: 10%;
	}
}

.ps-c2fa3890-wrapper.is-open .ps-c2fa3890-overlay {
	opacity: 1;
	visibility: visible;
}

.ps-c2fa3890-wrapper.is-open .ps-c2fa3890-modal {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0) scale(1);
}

.ps-c2fa3890-modal-inner {
	background: #ffffff;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: visible; /* Changed from hidden to ensure close button is visible */
}

@media (max-width: 767px) {
	.ps-c2fa3890-modal-inner {
		padding: 24px;
	}
}

.ps-c2fa3890-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent;
	border: none;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #0f172a;
	transition: all 0.2s ease;
	z-index: 99999; /* Increased z-index to ensure it sits on top */
	padding: 0;
	outline: none;
}

.ps-c2fa3890-close:hover {
	opacity: 0.6;
	transform: scale(1.1);
}

.ps-c2fa3890-form {
	margin-bottom: 32px;
	position: relative;
	margin-top: 16px;
}

.ps-c2fa3890-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.ps-c2fa3890-input {
	width: 100%;
	padding: 20px 140px 20px 20px;
	font-size: 18px;
	border: 2px solid #e2e8f0;
	border-radius: 100px;
	background: #f8fafc;
	color: #0f172a;
	transition: all 0.3s ease;
	outline: none;
	box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.02);
}

@media (max-width: 767px) {
	.ps-c2fa3890-input {
		font-size: 16px;
		padding: 16px 120px 16px 16px;
	}
}

.ps-c2fa3890-input:focus {
	border-color: #3b82f6;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ps-c2fa3890-submit {
	position: absolute;
	right: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 100px;
	color: white;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

@media (max-width: 767px) {
	.ps-c2fa3890-submit {
		padding: 10px 16px;
		right: 6px;
	}
}

.ps-c2fa3890-submit:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.ps-c2fa3890-suggestions-title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 16px;
	font-weight: 600;
}

.ps-c2fa3890-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ps-c2fa3890-tag {
	padding: 8px 16px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	color: #475569;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s ease;
	font-weight: 500;
}
