/* Fox Search base styles. Class names follow Advanced Woo Search so the
   themes' existing header rules keep applying; these are only the defaults
   AWS used to ship. */
.aws-container.fox-search { position: relative; width: 100%; }
.aws-container.fox-search .aws-search-form { display: flex; align-items: stretch; margin: 0; }
.aws-container.fox-search .aws-wrapper { position: relative; flex: 1 1 auto; min-width: 0; }
.aws-container.fox-search .aws-search-field { width: 100%; box-sizing: border-box; margin: 0; padding-right: 2.2em; }
.aws-container.fox-search .aws-search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
.aws-container.fox-search .aws-search-clear { position: absolute; right: .4em; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 1.4em; line-height: 1; padding: 0 .2em; color: inherit; opacity: .6; }
.aws-container.fox-search .aws-search-clear:hover { opacity: 1; }
.aws-container.fox-search .aws-loader { display: none; position: absolute; right: 2.3em; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 2px solid rgba(0,0,0,.15); border-top-color: rgba(0,0,0,.6); border-radius: 50%; animation: fox-spin .7s linear infinite; }
.aws-container.fox-search.aws-processing .aws-loader { display: block; }
@keyframes fox-spin { to { transform: rotate(360deg); } }
.aws-container.fox-search .aws-search-btn { display: flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; padding: 0 .6em; color: inherit; }
.aws-container.fox-search .aws-search-btn svg { display: block; }

.aws-container.fox-search .aws-search-result { position: absolute; left: 0; right: 0; top: 100%; z-index: 999999; background: #fff; color: #222; border: 1px solid #ccc; border-top: 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: min(70vh, 560px); overflow-y: auto; text-align: left; font-size: 14px; line-height: 1.35; }
.aws-container.fox-search .aws-search-result[hidden] { display: none; }
.aws-search-result .aws_result_heading { display: block; padding: 8px 12px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.aws-search-result .aws_result_item { display: block; border-bottom: 1px solid #eee; margin: 0; }
.aws-search-result .aws_result_item:last-child { border-bottom: 0; }
.aws-search-result .aws_result_link { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: inherit; text-decoration: none; }
.aws-search-result .aws_result_item.is-active .aws_result_link, .aws-search-result .aws_result_link:hover { background: #f5f5f5; }
.aws-search-result .aws_result_image { flex: 0 0 48px; width: 48px; height: 48px; display: block; }
.aws-search-result .aws_result_image img { width: 48px; height: 48px; object-fit: contain; display: block; }
.aws-search-result .aws_result_content { display: block; flex: 1 1 auto; min-width: 0; }
.aws-search-result .aws_result_title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aws-search-result .aws_result_price { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aws-search-result .aws_result_price del { opacity: .55; margin-right: .3em; }
.aws-search-result .aws_result_price ins { text-decoration: none; font-weight: 700; color: var(--color-sale, inherit); }
.aws-search-result .fox-search__off { display: inline-block; margin-left: .4em; padding: 1px 6px; border-radius: 3px; background: var(--color-sale, #c62828); color: var(--color-nav-text, #fff); font-size: .75em; font-weight: 700; line-height: 1.5; vertical-align: middle; }
.aws-search-result .aws_result_term .aws_result_link { padding: 6px 12px; }
.aws-search-result .aws_result_count { opacity: .5; font-size: 12px; }
.aws-search-result a.aws_search_more { display: block; padding: 10px 12px; text-align: center; font-weight: 600; color: inherit; text-decoration: none; background: #fafafa; }
.aws-search-result a.aws_search_more.is-active, .aws-search-result a.aws_search_more:hover { background: #f0f0f0; }
.aws-search-result .aws_result_empty { padding: 12px; opacity: .7; }

/* Results page facet bar */
.fox-facets { margin: 0 0 1.25em; font-size: 14px; }
.fox-facets__summary { margin-bottom: .5em; }
.fox-facets__parsed, .fox-facets__relaxed { opacity: .75; }
.fox-facets__applied { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .6em; }
.fox-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: #eee; color: inherit; text-decoration: none; font-size: 13px; }
.fox-chip:hover { background: #e2e2e2; }
.fox-chip--clear { background: transparent; text-decoration: underline; }
.fox-facets__groups { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.fox-facet { position: relative; }
.fox-facet > summary, .fox-facet--toggle { cursor: pointer; list-style: none; padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: inherit; text-decoration: none; display: inline-block; user-select: none; }
.fox-facet > summary::-webkit-details-marker { display: none; }
.fox-facet > summary::after { content: ' ▾'; opacity: .6; }
.fox-facet--toggle.is-active { background: #222; color: #fff; border-color: #222; }
.fox-facet__active, .fox-facet__count { opacity: .55; font-size: 12px; }
.fox-facet__list { position: absolute; z-index: 50; top: 100%; left: 0; margin: 4px 0 0; padding: 6px 0; list-style: none; min-width: 220px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.fox-facet__list li a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; color: inherit; text-decoration: none; }
.fox-facet__list li a:hover { background: #f5f5f5; }
.fox-facet__list li a.is-active { font-weight: 600; }
.fox-facet__list li a.is-active::before { content: '✓ '; }
@media (max-width: 600px) { .fox-facet__list { position: static; box-shadow: none; max-height: 240px; } }
