/* Screen reader text - visually hidden but accessible */
.qemetica-search-screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.search-results-inner {
    width: min(var(--qemetica-search-start-width, 580px), calc(100% - 40px));
    max-width: calc(100% - 40px);
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    padding: 0 10px;
    border-radius: var(--qemetica-search-start-radius, 8px);
    transform: translate(var(--qemetica-search-start-x, 0px), var(--qemetica-search-start-y, 0px));
    opacity: 0;
    height: var(--qemetica-search-start-height, 54px);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: width, transform, height;
}

.search-results-inner.is-morph-primed {
    transition: none;
}

@media (max-width: 782px) {
    .search-results-inner {
        transform: translate(0, 0);
        height: 54px;
        width: min(580px, calc(100% - 40px));
        transition: none;
    }
}

.qemetica-search-overlay.is-active .search-results-inner.is-morph-primed,
.qemetica-search-overlay.is-active .search-results-inner.is-active {
    opacity: 1;
}

.search-results-inner.is-active {
    width: min(580px, calc(100% - 40px));
    transform: translate(0, 0);
    opacity: 1;
    border-radius: 8px;
    height: 54px;
}

.search-results-inner.has-results {
    display: flex;
    flex-direction: column;
    height: 80svh;
    max-height: min(calc(100svh - 40px), 80svh);
    overflow: hidden;
    color: #2f2f2f;
}

.search-results-inner.has-results a {
    text-decoration: none;
    transition: all 150ms ease;
}

.search-results__input {
    width: 100%;
    padding: 0 10px;
    height: 100%;
    max-height: 54px;
    border: none;
    border-radius: 4px;
    outline: none;
    border-color: transparent !important;
    color: #000 !important;
}

.search-results__sticky {
    height: 100%;
    max-height: 54px;
}

#qemetica-search-input::placeholder {
}

#qemetica-search-results {
    max-height: none;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
    will-change: opacity;
}


.search-results__item.selected a,
.search-results__item.selected .search-results__post-link,
.search-results__item.selected .search-results__taxonomy-link,
.search-results__item.selected .search-results__special-link,
.search-results__load-more.selected {
    background-color: #e3f8f4;
    border-color: #0dc5b2;
    color: #000;
}

#qemetica-search-results.has-results {
    opacity: 1;
    flex: 1 1 auto;
    min-height: var(--qemetica-search-results-min-height, 0px);
    height: var(--qemetica-search-results-height, auto);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 12px;
}

.search-results__section {
    margin-bottom: 5px;
}

.search-results__section+.search-results__section {
    margin-top: 15px;
    padding-top: 0;
    border-top: 1px solid #eee;
}

.search-results__title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a3a3a3;
    letter-spacing: .025em;
    text-transform: uppercase;
    flex-direction: row-reverse;
    padding: 0 0 0 0.75rem;
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    padding: 3px 0;
}

.search-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.search-results__header>strong {
    font-weight: 600;
}


.search-results__special-link-container.search-results__special-link-container--custom-link .search-results__header {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.search-results__category-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.search-results__category-link:hover {
    text-decoration: underline;
}

.search-results__section--special>.search-results__item--special+.search-results__item--special {
    display: none;
}

.search-results__item+.search-results__item {
    margin-top: 10px;
}

.search-results__section--geo-loading {
    pointer-events: none;
}

.search-results__container--geo-loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-results__item--geo-loading+.search-results__item--geo-loading {
    margin-top: 0;
}

.search-results__skeleton-card {
    display: flex;
    align-items: center;
    height: 66px;
    gap: 12px;
    padding: .5rem .55rem .5rem .75rem;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.search-results__skeleton-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-results__skeleton-block {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f2f4f7 0%, #e7edf2 45%, #f2f4f7 100%);
    background-size: 200% 100%;
    animation: qemetica-search-skeleton-shimmer 1.4s ease-in-out infinite;
}

.search-results__skeleton-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-results__skeleton-line {
    height: 10px;
    border-radius: 999px;
}

.search-results__skeleton-line--title {
    width: 58%;
}

.search-results__skeleton-line--excerpt {
    width: 84%;
}

.search-results__post-link {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: #171717;
    font-size: 15px;
}

.search-results__post-link--action-card {
    align-items: center;
    gap: 10px;
    padding: .5rem .55rem .5rem .75rem;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    color: #2f2f2f;
    font-size: 12px;
    font-weight: 500;
}

.search-results__post-link--action-card .search-results__post-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    padding-top: 0;
}

.search-results__post-link--action-card .search-results__post-title {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.2;
}

.search-results__post-link--action-card .search-results__post-geo-reason {
    line-height: 1.3;
}

.search-results__post-link--action-card .search-results__post-geo-reason {
    margin-top: 0;
    color: #757575;
}

.search-results__post-link--post-type-icon::before {
    content: "";
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    background-color: #f5f7f8;
    background-image: var(--qemetica-search-post-type-icon, url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z'%3e%3c/path%3e%3cpath d='M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z'%3e%3c/path%3e%3c/svg%3e"));
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
}

.search-results__thumbnail {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #9acfc6;
}

.search-results__thumbnail--product {
    border: 5px solid transparent;
}

.search-results__post-link--action-card .search-results__thumbnail {
    border: 5px solid transparent;
}

.search-results__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-results__thumbnail--product img {
    object-fit: contain;
}

.search-results__post-link--action-card .search-results__thumbnail img {
    object-fit: contain;
}

.search-results__thumbnail--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9acfc6;
    color: #fff;
}

.search-results__thumbnail--placeholder.search-results__thumbnail--placeholder-has-custom-icon {
    background-color: #9acfc6;
}

.search-results__thumbnail-placeholder {
    display: block;
    width: 28px;
    height: 28px;
    background-color: currentColor;
    -webkit-mask-image: var(--qemetica-search-placeholder-icon, url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z'%3e%3c/path%3e%3cpath d='M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z'%3e%3c/path%3e%3c/svg%3e"));
    mask-image: var(--qemetica-search-placeholder-icon, url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z'%3e%3c/path%3e%3cpath d='M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z'%3e%3c/path%3e%3c/svg%3e"));
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
}

.search-results__thumbnail--placeholder-has-custom-icon .search-results__thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-image: var(--qemetica-search-placeholder-icon-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
    -webkit-mask-image: none;
    mask-image: none;
}

.search-results__post-content {
    flex: 1;
    min-width: 0;
}

.search-results__post-title {
    display: block;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.1;
}

.search-results__post-title strong {
    font-weight: 600;
    color: #000;
}

.search-results__post-excerpt {
    font-size: 11px;
    hyphens: auto;
    color: #757575;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.search-results__post-excerpt strong {
    color: #171717;
}

.search-results__post-geo-reason {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
    color: #505050;
}

.search-results__post-geo-reason strong {
    color: #171717;
    font-weight: 600;
}

.search-results__post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-top: 0;
}

.search-results__post-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid #cfd6dd;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.search-results__item .search-results__post-action,
.search-results__item .search-results__post-action + .search-results__post-action {
    margin: 0;
}

.search-results__item a.search-results__post-action {
    min-height: 0;
    padding: 0 4px;
    border: 0px solid transparent;
    background: transparent;
    color: #1f2937;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    box-shadow: none !important;
    outline: 1px solid transparent !important;
}

.search-results__post-action:hover {
    border-color: #0dc5b2;
    background: #f3fffc;
    color: #000;
}

.search-results__post-action:focus {
    outline: none;
}

.search-results__post-action:focus-visible {
    border-color: #0dc5b2;
    background: #fff;
    color: #000;
    box-shadow: 0 0 0 2px rgb(13 197 178 / 20%);
}

.search-results__post-action:active {
    border-color: #0aa999;
    background: #def8f3;
    color: #000;
}

.search-results__taxonomy-count {
    color: #666;
    font-size: 0.9em;
    margin-left: 5px;
}

.search-results__special-link-container {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #e8eef4;
    border-radius: 4px;
}

.search-results__special-link {
    display: inline-block;
    margin-top: 8px;
    color: #0073aa;
    text-decoration: none;
}

.search-results__special-link:hover {
    text-decoration: underline;
}

.highlight {
    font-weight: 800;
}

.wp-block-qemetica-search .button-search {
	background: var(--dominant-color--muted, var(--latest-post-dominant-color--muted, var(--wp--preset--color--main--muted)));
	border: none;
	border-radius: 4px;
	color: #272727;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	gap: 8px;
	padding: 8px 12px;
}

.wp-block-qemetica-search .button-search:hover,
.wp-block-qemetica-search .button-search:focus {
	background: #fff;
}

.wp-block-qemetica-search .button-search svg {
	height: 16px;
	width: 16px;
}

.wp-block-qemetica-search .search-button-shortcut {
	background: rgb(212 212 212);
	border-radius: 3px;
	color: #666;
	font-size: 12px;
	padding: 2px 6px;
}

.wp-block-qemetica-search .button-search {
	align-items: center;
	background-color: transparent;
	border: 1px solid rgb(0 0 0 / 10%);
	border-radius: 4px;
	box-shadow: none;
	display: grid;
	gap: .5em;
	grid-template-columns: 1.4em 1fr 1.4em;
	min-width: 250px;
	padding: 4px 10px;
	text-align: start;
}

.wp-block-qemetica-search.qemetica-search-input-style .search-button-text {
	opacity: .5;
    margin-top: 4px;
}

.wp-block-qemetica-search .shortcut-hint {
	pointer-events: none;
	text-align: center;
	--size: 25px;
	border: 1px solid transparent;
	border-radius: 3px;
	display: block;
	font-size: 12px;
	height: var(--size);
	line-height: var(--size);
	overflow: hidden;
	position: relative;
	width: var(--size);
	background: transparent;
	padding: 0;
}

.wp-block-qemetica-search .shortcut-hint:before {
	background-color: rgb(187 187 187);
	content: "";
	height: 100%;
	left: 0;
	opacity: .2;
	position: absolute;
	top: 0;
	width: 100%;
}

.wp-block-qemetica-search.is-style-button {
	width: auto;
}

.wp-block-qemetica-search.is-style-button .button-search {
	background-color: var(--wp--preset--color--primary, #0f204b);
	border: none;
	border-radius: 4px;
	color: #fff;
	display: inline-flex;
	grid-template-columns: none;
	justify-content: center;
	min-width: 0;
	padding: 10px 20px;
	text-align: center;
}

.wp-block-qemetica-search.is-style-button .search-button-text {
	display: inline;
}

.wp-block-qemetica-search.is-style-button .shortcut-hint {
	display: none;
}

.wp-block-qemetica-search.is-style-button .button-search:hover {
	opacity: .9;
}

.wp-block-qemetica-search {
	width: 350px;
}

@media (max-width: 1170px) {
	.wp-block-qemetica-search {
		width: auto !important;
	}
}

@media (max-width: 1045px) {
	.wp-block-qemetica-search .search-button-text,
	.wp-block-qemetica-search .shortcut-hint {
		display: none;
	}

	.wp-block-qemetica-search .button-search {
		grid-template-columns: 1fr;
	}
}

.search-button-shortcut {
    font-size: 12px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    text-align: center;
    color: #817d7d;
}

/* .button-search:hover {
    background: #f0f0f0;
} */

.button-search svg {
    width: 16px;
    height: 16px;
}

.qemetica-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    transition: background-color 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        backdrop-filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: backdrop-filter, background-color;
    font-size: 1rem;
    color: #000;
}

@media (max-width: 782px) {
    :root {
        --qemetica-search-modal-height: calc(100dvh - 16px);
    }

    .qemetica-search-overlay {
        align-items: center;
        padding: 8px 0;
        overflow: hidden;
    }

    .search-results-inner {
        max-width: calc(100% - 16px);
    }

    .search-results-inner.has-results {
        height: var(--qemetica-search-modal-height, calc(100svh - 16px));
        max-height: var(--qemetica-search-modal-height, calc(100svh - 16px));
    }

    .search-results__footer-hints {
        display: none !important;
    }

    .search-close-text {
        display: none;
    }

    .search-close-button .tooltip {
        display: none;
    }
}

.qemetica-search-overlay.is-active {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-results__author-link,
.search-results__taxonomy-link {
    text-decoration: none;
    display: flex;
    position: relative;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 6px 0 0;
}

.search-results__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 10px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #9acfc6;
}

.search-results__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-results__taxonomy-content {
    display: flex;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.search-close-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 4px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    margin-left: auto;
}

.search-close-button:hover {
    color: #333;
}

.search-close-text {
    font-size: 12px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.search-results__sticky {
    padding: 0 12px;
    gap: 8px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;

    svg {
        width: 16px;
        height: 16px;
        display: block;
        min-width: 16px;
    }
}

.search-results__buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0 15px;
}

.search-results__load-more {
    padding: 8px 16px;
    background: #069b8b;
    border: 1px solid #069b8b;
    border-radius: 4px;
    cursor: pointer;
    color: #e5e1e1;
    font-size: 14px;
    width: 100%;
}

.search-filters-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 4px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    margin-left: auto;
}

.search-filters-text {
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    color: #666;
}

.search-results__filters-menu {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    background: white;
    z-index: 1;
    border-bottom: 1px solid #eee;
}

.search-results__filters-instruction {
    font-size: 12px;
    color: #666;
    padding: 8px 12px 0;
    margin: 0;
}

.search-results__filters {
    font-size: 13px;
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.search-results__filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    line-height: 1;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 2px;
    background: white;
    color: rgb(102, 102, 102);
    cursor: pointer;
    transition: 0.15s;
}

.search-results__filter::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask-image: var(--qemetica-search-filter-icon, url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' aria-hidden='true' focusable='false'%3e%3cpath d='M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z'%3e%3c/path%3e%3cpath d='M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z'%3e%3c/path%3e%3c/svg%3e"));
    mask-image: var(--qemetica-search-filter-icon, url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' aria-hidden='true' focusable='false'%3e%3cpath d='M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z'%3e%3c/path%3e%3cpath d='M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z'%3e%3c/path%3e%3c/svg%3e"));
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.search-results__filter.is-active {
    background: #08c6b2;
    color: white;
    border-color: #08c6b2;
}

/* .wp-block-qemetica-search {
    width: 350px;
} */


.search-results__author-link,
.search-results__taxonomy-link {
    line-height: 1;
}

.search-results__item {
    line-height: 1;
}

.search-results__item a {
    padding: .5rem .55rem .5rem .75rem;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    color: #2f2f2f;
    font-size: 12px;
    font-weight: 500;
}

.search-results__item a:hover {
    background-color: #e3f8f4;
    border-color: #e3f8f4;
}

.search-results__special-link-container a {
    border: 1px solid #c5ced7;
}

.search-results__special-link-container a:hover {
    background-color: #c5ced7;
}

.search-results__item a+a {
    margin-top: .5rem;
}

.search-results__item a strong {
    font-weight: 600;
    color: #000
}

.search-results__no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.search-results__no-results h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.search-results__no-results p {
    font-size: 14px;
    margin: 0;
}

.search-results__post-authors {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Phase 1: Focus styles with box-shadow instead of outline */
.search-results__item a:focus {
    outline: 1px solid currentColor;
}

/* Phase 2: Skip close button in tab navigation */
.search-close-button {
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 2px solid transparent;
}

.search-close-button:focus {
    outline: 2px solid transparent;
    box-shadow: none;
}

/* Phase 3: Add icons to search-results__title */
.search-results__section--posts .search-results__title::before,
.search-results__section--pages .search-results__title::before {
    content: "";
    width: 2em;
    aspect-ratio: 1/1;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z'%3e%3c/path%3e%3cpath d='M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z'%3e%3c/path%3e%3c/svg%3e");
    margin-right: 8px;
}


.search-results__section--authors .search-results__title::before {
    content: "";
    width: 2em;
    aspect-ratio: 1/1;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath fill-rule='evenodd' d='M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z' clip-rule='evenodd'%3e%3c/path%3e%3c/svg%3e");
    margin-right: 8px;
}

.search-results__section--tags .search-results__title::before {
    content: "";
    width: 2em;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'%3e%3c/path%3e%3c/svg%3e");
    margin-right: 8px;
}

.search-results__section--categories .search-results__title::before {
    content: "";
    width: 2em;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z' fill-rule='evenodd' clip-rule='evenodd'%3e%3c/path%3e%3c/svg%3e ");
    margin-right: 8px;
}

.search-results__section--special .search-results__title::before {
    content: "";
    width: 2em;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath fill-rule='evenodd' d='M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z' clip-rule='evenodd'%3e%3c/path%3e%3c/svg%3e");
    margin-right: 8px;
}

.search-results__section--custom-link .search-results__title::before {
    content: "";
    width: 2em;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z'%3e%3c/path%3e%3c/svg%3e");
    margin-right: 8px;
}

.search-results__section .search-results__title.search-results__title--post-type::before {
    content: "";
    width: 18px;
    aspect-ratio: 1 / 1;
    background-image: var(--qemetica-search-title-icon, url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'%3e%3cpath d='M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z'%3e%3c/path%3e%3cpath d='M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z'%3e%3c/path%3e%3c/svg%3e"));
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 8px;
}

/* Author post count styling */
.search-results__author-count {
    font-size: .9rem;
    opacity: .5;
}

/* BEM Modifiers for different content types */

/* Post-specific modifiers */
.search-results__post-title--post {
    /* Default post title styling */
}


.search-results__post-title--special {
    /* Special result title styling */
    font-weight: 600;
}

/* Author-specific modifiers */
.search-results__author-link--author {
    /* Default author link styling */
}

/* Taxonomy-specific modifiers */
.search-results__taxonomy-link--tag {
    /* Tag-specific styling */
}

.search-results__taxonomy-link--category {
    /* Category-specific styling */
}

/* Item-specific modifiers */
.search-results__item--post {
    /* Post item styling */
}


.search-results__item--author {
    /* Author item styling */
}

@keyframes qemetica-search-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.search-results__item--tag {
    /* Tag item styling */
}

.search-results__item--category {
    /* Category item styling */
}

.search-results__item--special {
    /* Special item styling */
}

.search-results-inner input::-webkit-input-placeholder {
    color: #888;
}

/* Chrome, Safari, Edge */
.search-results-inner input::-moz-placeholder {
    color: #888;
}

/* Firefox 19+ */
.search-results-inner input:-ms-input-placeholder {
    color: #888;
}

/* IE 10+ */
.search-results-inner input::-ms-input-placeholder {
    color: #888;
}

/* Edge Legacy */
.search-results-inner input::placeholder {
    color: #888;
}

.search-results-inner.has-results #qemetica-search-input::placeholder {
}

/* Standard */

/* Tooltip styles */
.search-close-button,
.search-filters-toggle,
.tooltip-hint,
.button-search {
    position: relative;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    transition: visibility 0s, opacity 0.2s ease-in-out;
    margin-top: 6px;
}

.tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.75);
}

.search-close-button:hover .tooltip,
.search-filters-toggle:hover .tooltip,
.button-search:hover .tooltip,
.tooltip-hint:hover + .tooltip,
.tooltip-hint:hover ~ .tooltip {
    visibility: visible;
    opacity: 1;
}

.search-results__footer-hints {
    display: none;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px 12px;
    border-top: 1px solid #eee;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #666;
    font-size: 12px;
}

.search-results-inner.has-results .search-results__footer-hints {
    display: flex;
}

.search-results__footer-hint {
    display: inline-flex;
    align-items: center;
    flex: 1 1 0;
    gap: 6px;
    white-space: nowrap;
}

.search-results__footer-hint:nth-child(2) {
    justify-content: center;
}

.search-results__footer-hint:last-child {
    justify-content: flex-end;
}

.search-results__footer-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    font-size: 12px;
    line-height: 1;
}

.search-results__footer-key::before {
    background-color: rgb(187 187 187);
    content: "";
    inset: 0;
    opacity: .2;
    position: absolute;
}

.search-results__footer-key + .search-results__footer-key {
    margin-left: 0;
}

.search-results__footer-label {
    color: #666;
}
