/*
 * Theme chrome on the search page only.
 * Child theme keeps `.content { margin-top: 0px }` for ordinary posts.
 * Product and category pages apply matching chrome in their own stylesheets.
 * This stylesheet is not enqueued outside search results.
 */
body.tc-storefront-search-results .header {
	margin-top: 1em;
}

body.tc-storefront-search-results .content {
	margin-top: 1em;
}

body.tc-storefront-search-results .content-in > .main {
	float: none;
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

body.tc-storefront-search-results .content-in > .sidebar {
	display: none;
}

@media screen and (max-width: 834px) {
	body.tc-storefront-search-results .content {
		margin-top: 4em;
	}
}

.tc-storefront-search-results-page {
	position: relative;
	left: 50%;
	width: min(var(--tc-storefront-frame), calc(100vw - 32px));
	max-width: var(--tc-storefront-frame);
	min-width: 0;
	margin: 0 0 3rem;
	transform: translateX(-50%);
	box-sizing: border-box;
}

.tc-storefront-search-results-page__main {
	min-width: 0;
}

.tc-storefront-search-results-page h1,
.tc-storefront-search-results-page h1.tc-storefront-product-title,
.tc-storefront-search-results-page h1.entry-title {
	margin: 0 0 0.35rem;
	padding: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.35;
	background: none;
	color: inherit;
	text-shadow: none;
	overflow-wrap: anywhere;
}

.tc-storefront-search-results-page__form {
	margin: 0 0 1.25rem;
	max-width: 100%;
	min-width: 0;
}

.tc-storefront-search-results-page .tc-storefront-search-form,
.tc-storefront-search-results-page .search-edit {
	max-width: 100%;
	box-sizing: border-box;
}

.tc-storefront-search-results-page__hint {
	margin: 0.75rem 0;
}

.tc-storefront-wp-posts,
.tc-storefront-wblog-posts {
	margin: 2.5rem 0 0;
}

.tc-storefront-search-results-page h2,
.tc-storefront-search-results-page .tc-storefront-wp-posts h2,
.tc-storefront-search-results-page .tc-storefront-wblog-posts h2,
.tc-storefront-search-results-page .tc-storefront-search-suggestions h2 {
	margin: 0.75em 0 0.4em;
	padding: 0;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.4;
	background: none;
	background-image: none;
	color: inherit;
	text-shadow: none;
	border: none;
	overflow-wrap: anywhere;
}

.tc-storefront-search-post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.tc-storefront-search-post-card {
	margin: 0;
	min-width: 0;
	border: 1px solid #e4e7eb;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.tc-storefront-search-post-card__link {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.tc-storefront-search-post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f4f6;
}

.tc-storefront-search-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tc-storefront-search-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.75rem 0.85rem 1rem;
}

.tc-storefront-search-post-card__title {
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.tc-storefront-search-post-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #4b5563;
}

.tc-storefront-search-post-card__excerpt p {
	margin: 0;
}

.tc-storefront-search-post-card__date {
	font-size: 0.85rem;
	color: #6b7280;
}

.tc-storefront-search-posts__more {
	margin: 1rem 0 0;
}

.tc-storefront-search-suggestions {
	margin: 0 0 1.25rem;
}

.tc-storefront-search-suggestions ul {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

@media (min-width: 641px) {
	.tc-storefront-search-post-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.tc-storefront-search-post-list {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 834px) {
	.tc-storefront-search-results-page {
		width: min(calc(100vw - 24px), 760px);
	}
}

@media (max-width: 600px) {
	.tc-storefront-search-results-page {
		width: calc(100vw - 20px);
	}
}
