.pcgh-mobile-search-btn {
	display: none!important;
}

.pcgh-search-modal__panel {
	width: min(560px,calc(100vw - 32px));
}

.pcgh-search-modal__form {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 54px;
	padding: 0 7px 0 16px;
	border-radius: 14px;
	background: color-mix(in srgb,var(--pcgh-search-modal-color,var(--pcgh-primary)) 6%,var(--pcgh-bg));
	border: 1px solid color-mix(in srgb,var(--pcgh-search-modal-color,var(--pcgh-primary)) 34%,var(--pcgh-border));
}

.pcgh-search-modal__form > i[data-lucide],
.pcgh-search-modal__form > svg[data-lucide] {
	flex-shrink: 0;
	color: var(--pcgh-search-modal-color,var(--pcgh-primary));
}

.pcgh-search-modal__form input {
	min-width: 0;
	flex: 1;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--pcgh-text);
	font-size: 14px;
	font-weight: 650;
}

.pcgh-search-modal__form input::placeholder {
	color: var(--pcgh-text-3);
}

.pcgh-search-modal__form button {
	height: 40px;
	padding: 0 18px;
	border-color: var(--pcgh-search-modal-color,var(--pcgh-primary));
	background: var(--pcgh-search-modal-color,var(--pcgh-primary));
	color: #fff;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.pcgh-search {
		display: none;
	}

	.pcgh-mobile-search-btn {
		display: inline-flex!important;
		order: 90!important;
	}

	.pcgh-header__actions .pcgh-header-user {
		order: 100!important;
		flex: 0 0 34px;
	}

	.pcgh-header__actions .pcgh-header-user .pcgh-avatar {
		order: initial!important;
	}

	.pcgh-header__actions {
		margin-left: auto;
		justify-content: flex-end;
		gap: 7px;
		flex: 0 0 auto;
	}

	.pcgh-header__actions .pcgh-icon-btn,
	.pcgh-header__actions .pcgh-avatar {
		width: 34px;
		height: 34px;
		flex: 0 0 34px;
	}

	.pcgh-header__actions > .pcgh-header-user {
		margin-left: 0;
		width: 34px;
		height: 34px;
	}

	.pcgh-header__login-btn {
		height: 34px;
		margin-left: 0;
		padding: 0 12px;
		white-space: nowrap;
		order: 4;
	}

	.pcgh-header__actions .pcgh-avatar {
		order: 4;
	}

	.pcgh-search-modal__panel {
		width: calc(100vw - 24px);
		padding: 24px 18px 18px;
		border-radius: 16px;
	}

	.pcgh-search-modal__form {
		height: 50px;
		gap: 8px;
		padding-left: 14px;
	}

	.pcgh-search-modal__form button {
		height: 38px;
		padding: 0 15px;
	}
}

@media (max-width: 768px) {
	.pcgh-search-modal {
		align-items: flex-start;
		padding: 18px 0;
	}

	.pcgh-search-modal__panel {
		width: calc(100vw - 24px);
		max-height: calc(100vh - 36px);
		padding: 0;
		overflow-y: auto;
		border-radius: 16px;
	}

	.pcgh-search-modal__form {
		height: 72px;
		gap: 10px;
		padding: 0 16px;
		border: 0;
		border-bottom: 1px solid #edf0f4;
		border-radius: 0;
		background: transparent;
	}

	.pcgh-search-modal__form input {
		font-size: 18px;
	}

	.pcgh-search-modal__form button.pcgh-search-modal__close,
	.pcgh-search-modal__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 34px;
		width: 34px;
		height: 34px;
		padding: 0;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: #8d8d8d;
	}

	.pcgh-search-modal__body {
		padding: 20px 16px 24px;
	}

	.pcgh-search-modal__hot-chip {
		min-height: 38px;
		padding: 0 13px;
		font-size: 15px;
	}

	.pcgh-search-modal__recent-item {
		font-size: 17px;
	}

	html[data-pcgh-theme-resolved="dark"] .pcgh-search-modal__form {
		border-bottom-color: rgba(148,163,184,.13);
	}
}

@media (max-width: 768px) {
	.pcgh-search-modal {
		padding: 14px 0;
	}

	.pcgh-search-modal__panel {
		width: calc(100vw - 24px);
		max-height: calc(100vh - 28px);
		padding: 0;
		position: relative;
		border-radius: 14px;
	}

	.pcgh-search-modal__panel-close {
		position: absolute;
		z-index: 4;
		top: 9px;
		right: 9px;
		width: 26px;
		height: 26px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: rgba(243,244,246,.92);
		color: #8d8d8d;
		box-shadow: none;
	}

	.pcgh-search-modal__panel-close :where(i[data-lucide],svg[data-lucide],svg) {
		width: 15px;
		height: 15px;
		stroke-width: 2.4;
	}

	.pcgh-search-modal__form {
		height: 60px;
		gap: 8px;
		padding: 0 44px 0 14px;
	}

	.pcgh-search-modal__search-icon :where(i[data-lucide],svg[data-lucide],svg),
	.pcgh-search-modal__form > :where(i[data-lucide],svg[data-lucide]) {
		width: 18px;
		height: 18px;
	}

	.pcgh-search-modal__form input {
		font-size: 13px;
	}

	.pcgh-search-modal__form input::placeholder {
		font-size: 13px;
	}

	.pcgh-search-modal__form input[type="search"]::-webkit-search-cancel-button,
	.pcgh-search-modal__form input[type="search"]::-webkit-search-decoration {
		display: none;
		-webkit-appearance: none;
		appearance: none;
	}

	.pcgh-search-modal__form button.pcgh-search-modal__close,
	.pcgh-search-modal__close {
		flex: 0 0 32px;
		width: 32px;
		height: 32px;
	}

	.pcgh-search-modal__close :where(i[data-lucide],svg[data-lucide],svg) {
		width: 20px;
		height: 20px;
	}

	.pcgh-search-modal__body {
		padding: 16px 14px 20px;
	}

	.pcgh-search-modal__hot-chip {
		min-height: 34px;
		padding: 0 12px;
		font-size: 14px;
	}

	.pcgh-search-modal__recent-list {
		gap: 10px;
		margin-top: 14px;
	}

	.pcgh-search-modal__recent-item {
		gap: 8px;
		font-size: 14px;
	}

	.pcgh-search-modal__recent-item :where(i[data-lucide],svg[data-lucide],svg) {
		width: 15px;
		height: 15px;
	}
}
