/* Search Results */
.search-result__image {
    margin-bottom: 23px;
}

.search-result__image img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    min-height: 312px;
    max-height: 312px;
    max-width: 312px;
    border-radius: 9.595px 9.595px 0 9.595px;
}

@media (min-width:768px){ 
    .search-result__image {
        margin-right: 23px;
        margin-bottom: 0;
        min-width: 200px;
        max-width: 200px;
    }

    .search-result__image__inner {
        height: 0;
        padding-top: 100%;
        overflow: hidden;
    }

    .search-result__image img {
        position: absolute;
        top: 0;
        left: 0;
        min-height: auto;
    }
}

.search-result__content {  
    flex-grow: 1;
}

.search-result__content h2 {
    word-break: break-word;
}

.search-result__content__details li {
    margin-bottom: 1rem;
}

.search-result__content__details span {
    margin-bottom: 2px;
}

@media (min-width:400px){ 

    .search-result__content__details li {
        width: 50%;
    }

    .search-result__content__details li:not(:last-child) {
        padding-right: 10px;
    }
}

@media (min-width:1400px){ 
    .search-result__content__details li {
        width: 25%;
    }
}

/* Pagination */
.search-results-wrapper .pagination a {
    background: inherit;
}

.search-results-wrapper .pagination-item.active a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4.5px 4.5px 0 4.5px;
}

.search-results-wrapper .pagination-item:not(:has(.active)) {
    align-self: center;
}

.search-results-wrapper .pagination-item a.previous svg {
    margin-right: 10px;
    transform: rotate(180deg);
}

.search-results-wrapper .pagination-item a.next svg {
    margin-left: 10px;
}

/* Promoted Result */
.promoted-search-result__inner {
    background: #f4f6fa;
    padding: 23px;
}

/* Section Type Tag */
.block-18__link-item .search-result__type {
    bottom: 0;
    left: 0;
    padding: .375rem .75rem;
    font-weight: 600;
    background: #7edcf2;
    color: #0a2a3d;
    border-radius: 4.5px 4.5px 0 4.5px;
    margin-bottom: 0;
}

/* Search Page Tidy */
.search-feedback-filters-wrapper .edit-button {
    display: none;
}

.search-header .mastheader__search {
    padding-top: 30px;
}

.search-header .mastheader__search > form,
.search-header .mastheader__search > span,
.search-header .mastheader__search > a {
    display: none;
}

.facet-wrapper .month_t label {
    text-transform: capitalize;
}

.facet-wrapper .input-checkbox .check {
    min-width: 20px;
}

#searchContainer .container {
    padding: 0 !important;
    max-width: none !important;
}

#searchContainer .container .reset-row {
    margin: 0 !important;
}

#searchContainer .list-wrapper {
    display: block;
    width: 100%;
}

@media (min-width: 1024px) {
    .search-results-wrapper .sidebar--search {
        margin-top: 46px;
    }
}

.all-results {
    display: flex;
}

.all-results .facet-container-wrapper {
	display: none;
}

@media (min-width:1200px){ 
	.all-results .results-container-wrapper {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
	}
}

.search-input-wrapper.no-results + .t4-search-container #searchTabs {
    display: none !important;
}

.filters .sectionType_s {
	display: none;
}

.input-container-wrapper .hidden-label {
	display: none;
}

/* Search Page Hero */
.search-hero form {
	max-width: 800px;
	margin: 0 auto 20px;
}

.search-hero form input {	
	font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: #0a2a3d;
    border-radius: 8px 8px 0 8px;
    width: 100%;
    display: flex;
    padding: 7.5px 7.5px 7.5px 16px;
    height: 55px;
    border: 0;
}

.search-hero form button {
	position: absolute;
    right: 7.5px;
    top: 8px;
    display: flex;
    width: 38.25px;
    height: 38.25px;
    padding: 12.5px 12.48px 11.75px 11.77px;
    justify-content: center;
    align-items: center;
    background: #0a2a3d;
    border: 0;
    border-radius: 6px 6px 0 6px;
}

.search-hero h1 {
    font-family: "Copernicus Book";
    color: #0a2a3d;
    font-size: 45px;
    font-style: normal;
    font-weight: 550;
    line-height: 140%;
    letter-spacing: -.7px;
}

.search-hero__tabs .btn--cardiff-outline.active {
    color: #fff;
    background: #0a2a3d;
    border: .75px solid #0a2a3d;
}

.search-hero__tabs .btn--cardiff-outline.active:disabled {
    opacity: .95;
}

@media (max-width:767px) { 
    .search-hero__tabs .btn--cardiff-outline {
        border-radius: 0;
    }

    .search-hero__tabs .btn--cardiff-outline:not(:last-child) {
        margin-bottom: 20px;
    }

    .search-hero__tabs .btn--cardiff-outline:first-of-type {
        border-radius: 4.5px 4.5px 0 0;
    }

    .search-hero__tabs .btn--cardiff-outline:last-of-type {
        border-radius: 0 0 0 6px;
    }
}

@media (min-width:768px){ 
    .search-hero__tabs .btn--cardiff-outline {
        margin: 0 10px;
    }
}

/* Search placeholder */
.search-placeholder {
    display: none;
    background: white;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* Loading graphics */
.search-loader svg {
    color: #0a2a3d;
    width: 3rem;
    height: 3rem;
}

.search-hero .search-loader {
    right: 7.5px;
    top: 8px;
    width: 38.25px;
    height: 38.25px;
    padding: 12.5px 12.48px 11.75px 11.77px;
    background: #0a2a3d;
    border-radius: 6px 6px 0 6px;
}

.search-hero .search-loader svg {
    color: #FAD239;
}

.search-loader svg {
    animation-name: spin;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; 
}

@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

/* Autosuggest */
#autosuggest-autosuggest__results .autosuggest__results {
    position: absolute;
    top: calc(100% - 8px);
    left: -.25rem;
    right: -.25rem;
    background: #ffffff;
    border-bottom-left-radius: 8px;
    z-index: 1;
    border-left: .25rem solid rgba(44, 65, 133, .25);
    border-right: .25rem solid rgba(44, 65, 133, .25);
    border-bottom: .25rem solid rgba(44, 65, 133, .25);
    font-size: 14px;
}

.autosuggest__results ul {
    padding: 0.5rem 1rem 1rem;
    list-style: none;
    margin: 0;
}

.autosuggest__results li {
	cursor: pointer;
}

.autosuggest__results li:not(:last-child) {
    margin-bottom: 0.25rem;
}
