/* stylelint-disable */
@import "@automattic/typography/styles/variables";
@import "../../assets/stylesheets/shared/mixins/_breakpoints";
/* stylelint-enable */

// SEARCH RESULTS
.inline-help__empty-results {
	padding: 8px 16px 0;
	margin: 0;
	font-size: $font-body-small;
	color: var(--color-text-subtle);
	font-style: italic;
	text-align: left;

	@include breakpoint-deprecated(">660px") {
		font-size: $font-body;
	}
}

.inline-help__results {
	padding: 8px 0 16px 0;
}

.inline-help__results-list {
	list-style: none;
	text-align: left;
	margin: 0;
	padding: 0;
}

.inline-help__results-title {
	font-weight: bold;
	line-height: 1.4;
	display: block;
	padding: 8px 16px;
	font-size: $font-body-small;
	text-align: left;

	&::after {
		content: ":";
	}
}

.inline-help__results-cell {
	width: 100%;

	svg {
		overflow: visible;
	}
}

.inline-help__results-item {
	margin: 0;
	font-size: $font-body-small;

	@include breakpoint-deprecated(">660px") {
		font-size: $font-title-small;
		line-height: 1.3;
	}

	a {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 8px 16px;
		padding-left: 0;
		font-size: $font-body;

		&:hover {
			cursor: pointer;
			background: var(--color-neutral-0);

			.gridicon {
				color: var(--color-neutral);
			}
		}

		&:focus {
			background: var(--studio-blue-0);

			svg,
			.gridicon {
				fill: var(--color-link-dark);
			}
		}
	}
}

// SEARCH
.inline-help__search .card.search-card {
	border-radius: 2px 2px 0 0;
	margin: 0;

	.search {
		border-radius: 2px 2px 0 0;
		border: 6px solid var(--color-surface);

		&.is-open {
			width: auto;
			max-width: 100%;
		}

		&.is-open.has-focus {
			box-shadow: none;
			border-color: var(--color-primary-light);

			@include breakpoint-deprecated(">660px") {
				box-shadow: none;
			}
		}

		@include breakpoint-deprecated(">660px") {
			border-width: 4px;
		}

		.search__input {
			font-size: $font-body;
			padding: 12px 0;
			color: var(--color-text);

			@include breakpoint-deprecated(">660px") {
				padding: 16px 0;
			}
		}

		.search__icon-navigation:focus {
			border-radius: 2px;
			box-shadow: 0 0 0 3px var(--color-primary-light);
		}
	}
}