/* Global */ [class^='ais-'] { box-sizing: border-box; font-size: 0.9rem; } a[class^='ais-'] { color: #21243d; text-decoration: none; } /* We need to target the root element because Angular InstantSearch creates web components which are not targetable with the `*` selector. */ [class^='ais-'][class$='--disabled'], /* We need to target all elements for widgets containing multiple sub elements (e.g. RangeSlider) */ [class^='ais-'][class$='--disabled'] * { cursor: not-allowed; } .ais-Breadcrumb, .ais-ClearRefinements, .ais-CurrentRefinements, .ais-ClearRefinements-button, .ais-GeoSearch, .ais-HierarchicalMenu, .ais-Hits, .ais-Results, .ais-HitsPerPage, .ais-ResultsPerPage, .ais-InfiniteHits, .ais-InfiniteResults, .ais-Menu, .ais-MenuSelect, .ais-NumericMenu, .ais-NumericSelector, .ais-Pagination, .ais-Panel, .ais-PoweredBy, .ais-RangeInput, .ais-RangeSlider, .ais-RatingMenu, .ais-RefinementList, .ais-SearchBox, .ais-SortBy, .ais-SortBy-select, .ais-HitsPerPage-select, .ais-Stats, .ais-ToggleRefinement { color: #21243d; font-size: 0.75rem; } /* Highlighting */ .ais-Highlight-highlighted, .ais-Snippet-highlighted { background: rgba(226, 164, 0, 0.4); } /* Hits */ .ais-Hits-list { display: grid; grid-gap: 40px; grid-template-columns: 1fr; } @media (min-width: 680px) { .ais-Hits-list { grid-template-columns: 1fr 1fr; } } @media (min-width: 900px) { .ais-Hits-list { grid-template-columns: 1fr 1fr 1fr; } } @media (min-width: 1200px) { .ais-Hits-list { grid-template-columns: 1fr 1fr 1fr 1fr; } } /* Menus */ .ais-RefinementList-item, .ais-Menu-item, .ais-HierarchicalMenu-item, .ais-RatingMenu-item { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ais-RefinementList-item, /* The refinement list item in InstantSearch.js contains a wrapping `div` because of the template behavior. We therefore need to apply the styles to all the elements in a refinement list. */ .ais-RefinementList-item *, .ais-RatingMenu-item { cursor: pointer; } .ais-HierarchicalMenu-link, .ais-RatingMenu-item, .ais-RefinementList-item { padding-bottom: 1rem; } .ais-Breadcrumb-item--selected, .ais-HierarchicalMenu-item--selected, .ais-Menu-item--selected { font-weight: bold; } .ais-RatingMenu-starIcon--full { fill: #e2a400; } .ais-RatingMenu-starIcon--empty { fill: rgba(0, 0, 0, 0.08); } /* Panel */ .ais-Panel--collapsible { position: relative; } .ais-Panel--collapsed .ais-Panel-body, .ais-Panel--collapsed .ais-Panel-footer { display: none; } .ais-Panel-collapseButton { background: none; border: none; cursor: pointer; padding: 0; position: absolute; right: 0; } .ais-Panel-header { border: none; color: #21243d; font-size: 0.678rem; font-weight: 600; letter-spacing: 0.08rem; line-height: 1.6; padding-bottom: 1rem; text-transform: uppercase; } /* Search box */ .ais-SearchBox-form { position: relative; } .ais-SearchBox-input { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: rgba(65, 66, 71, 0.06); border: none; border-radius: 3px; color: rgba(33, 36, 61, 0.8); font-family: inherit; min-height: 54px; outline: none; padding-left: 56px; width: 100%; } .ais-SearchBox-input::placeholder { color: rgba(33, 36, 61, 0.5); opacity: 1; /* Firefox */ } .ais-SearchBox-input:-ms-input-placeholder { color: rgba(33, 36, 61, 0.5); } .ais-SearchBox-input::-ms-input-placeholder { color: rgba(33, 36, 61, 0.5); } .ais-SearchBox-reset, .ais-SearchBox-loadingIndicator, .ais-SearchBox-submit { align-items: center; -webkit-appearance: none; -moz-appearance: none; appearance: none; display: flex; height: 100%; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); width: 48px; } .ais-SearchBox-reset[hidden], .ais-SearchBox-loadingIndicator[hidden] { display: none; } .ais-SearchBox-submit { left: 0; } .ais-SearchBox-reset, .ais-SearchBox-loadingIndicator { right: 0; } .ais-SearchBox-resetIcon { height: 10px; width: 10px; } /* SFFV search box */ .ais-RefinementList .ais-SearchBox-input { border-radius: 3px; color: rgba(33, 36, 61, 0.8); font-size: 0.8rem; min-height: 40px; padding: 0 44px; } .ais-RefinementList .ais-SearchBox-form { margin-bottom: 1rem; } /* Menus */ .ais-HierarchicalMenu-link, .ais-RatingMenu-link, .ais-RefinementList-label { align-items: center; display: flex; } .ais-RefinementList-checkbox { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: rgba(65, 66, 71, 0.08); border: none; border-radius: 2px; height: 1rem; margin: 0; margin-right: 1rem; position: relative; width: 1rem; } .ais-RefinementList-item--selected { font-weight: bold; } .ais-RefinementList-item--selected .ais-RefinementList-checkbox { background-color: #e2a400; } .ais-RefinementList-item--selected .ais-RefinementList-checkbox::after { background-color: #fff; border-radius: 4px; content: ''; height: 4px; left: 50%; position: absolute; top: 50%; transform: translateX(-2px) translateY(-2px); width: 4px; } .ais-HierarchicalMenu-count, .ais-Menu-count, .ais-RefinementList-count, .ais-ToggleRefinement-count, .ais-RatingMenu-count { align-items: center; background-color: rgba(65, 66, 71, 0.08); border-radius: 4px; color: rgba(33, 36, 61, 0.8); display: flex; font-size: 0.64rem; font-weight: 600; letter-spacing: 1.1px; margin-left: 8px; padding: 0 4px; } .ais-HierarchicalMenu-showMore, .ais-Menu-showMore, .ais-RefinementList-showMore { margin-top: 1rem; } .ais-HierarchicalMenu-list { font-weight: normal; } .ais-HierarchicalMenu-link::before { align-items: center; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%2390919E' fill-rule='nonzero' d='M0 4l4-4 4 4z'/%3E%3C/svg%3E%0A"); display: flex; height: 8px; justify-content: center; margin-right: 1rem; width: 8px; } .ais-HierarchicalMenu-item--selected .ais-HierarchicalMenu-link::before { transform: rotate(180deg); } .ais-HierarchicalMenu-item--selected .ais-HierarchicalMenu-item:not(.ais-HierarchicalMenu-item--selected) .ais-HierarchicalMenu-link::before { transform: rotate(0); } /* ClearRefinements */ .ais-ClearRefinements, .ais-ClearRefinements-button { color: rgba(33, 36, 61, 0.7); } .ais-ClearRefinements-button--disabled { color: rgba(33, 36, 61, 0.5); } /* ToggleRefinement */ .ais-ToggleRefinement-label { cursor: pointer; display: flex; } .ais-ToggleRefinement-checkbox { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: rgba(65, 66, 71, 0.08); border: none; border-radius: 8px; cursor: pointer; height: 16px; margin-right: 16px; min-width: 30px; transition: background 150ms ease-out; } .ais-ToggleRefinement-checkbox:checked { background: #e2a400; } .ais-ToggleRefinement-checkbox::after { background-image: linear-gradient(to top, #f5f5fa, #fff); border-radius: 100%; box-shadow: 0 4px 11px 0 rgba(37, 44, 97, 0.15), 0 2px 3px 0 rgba(93, 100, 148, 0.2); content: ''; height: 16px; position: absolute; transition: transform 150ms ease-out; width: 16px; } .ais-ToggleRefinement-checkbox:checked::after { transform: translateX(100%); } /* Selectors */ .ais-SortBy, .ais-HitsPerPage { position: relative; } .ais-SortBy::after, .ais-HitsPerPage::after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M14-5v16H-2V-5z'/%3E%3Cpath fill='%23000' stroke='%23FFF' stroke-width='.5' d='M2.228 1.332a.664.664 0 0 0-.942.001.665.665 0 0 0-.002.941l4.247 4.247c.259.26.679.26.938 0l4.247-4.247a.664.664 0 0 0-.002-.94.666.666 0 0 0-.942-.002L6 5.105 2.228 1.332z'/%3E%3C/g%3E%3C/svg%3E%0A"); display: inline-block; } .ais-SortBy-select, .ais-HitsPerPage-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: none; border: none; color: #21243d; font-family: inherit; } /* Sliders */ .ais-RangeSlider .rheostat-horizontal { cursor: pointer; width: calc(100% - 10px); } .ais-RangeSlider .rheostat-background { background-color: rgba(65, 66, 71, 0.08); border: none; border-radius: 3px; height: 3px; } .ais-RangeSlider .rheostat-progress { background-color: #e2a400; border-radius: 3px; height: 3px; top: 0; } .ais-RangeSlider .rheostat-tooltip { font-weight: bold; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ais-RangeSlider .rheostat-handle { background-image: linear-gradient(to top, #f5f5fa, #fff); border: none; box-shadow: 0 4px 11px 0 rgba(37, 44, 97, 0.15), 0 2px 3px 0 rgba(93, 100, 148, 0.2); margin-left: -5px; top: -9px; } .ais-RangeSlider .rheostat-marker { background-color: rgba(65, 66, 71, 0.08); } /* RangeInput */ .ais-RangeInput-input { background: none; border: none; border-bottom: 1px solid #ebecf3; color: #21243d; font-family: inherit; font-size: 0.875rem; font-weight: 600; min-width: none; padding: 0; padding-bottom: 3px; } .ais-RangeInput-label:first-of-type { margin-right: 6px; } .ais-RangeInput-label:last-of-type { margin-left: 6px; } /* Pagination */ .ais-Pagination-list { justify-content: center; } .ais-Pagination-item, .ais-Pagination-link { align-items: center; display: flex; justify-content: center; } .ais-Pagination-item { height: 38px; width: 38px; } .ais-Pagination-item { background-color: rgba(65, 66, 71, 0.08); border-radius: 4px; color: #414247; } .ais-Pagination-item--selected { background-color: #e2a400; background-image: linear-gradient( to bottom, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) ); font-weight: bold; } .ais-Pagination-item--firstPage, .ais-Pagination-item--previousPage, .ais-Pagination-item--nextPage, .ais-Pagination-item--lastPage { background: none; } .ais-Pagination-item--disabled { opacity: 0.33; } .ais-Pagination-item--selected a { color: #fff; } .ais-Pagination-item.ais-Pagination-item--page { margin-right: 4px; } .ais-Pagination-item.ais-Pagination-item--previousPage { margin-right: 1rem; } .ais-Pagination-item.ais-Pagination-item--nextPage { margin-left: calc(1rem - 4px); } .ais-Pagination-link { height: 100%; width: 100%; }