.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    width: calc(100% - 30px);
    max-width: 768px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 30px);
    overflow: hidden;
}

.search-modal.is-open .modal-container {
    transform: scale(1);
}

.modal-container button#close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.modal-container .close {
    position: relative;
    width: 20px;
    height: 20px;
    top: 0;
    right: 0;
}

.modal-container .close::before,
.modal-container .close::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 20px;
    width: 2px;
    background-color: #333333;
    transition: background-color 0.2s ease;
}

.modal-container .close::before {
    transform: rotate(45deg);
}
.modal-container .close::after {
    transform: rotate(-45deg);
}

.modal-container button:hover .close::before,
.modal-container button:hover .close::after {
    background-color: #ff4d4d;
}

.modal-content {
    padding-top: 45px;
}
.search-modal .container {
    max-width: 100%;
    padding: 0;
    width: 100%;
}
.search-modal .row {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}
.search-modal .col-md-20.offset-md-2 {
    margin: 0;
    display: block;
    max-width: 100%;
}

.search-modal .result-category {
    display: none;
}

.elasticsearch-more-button {
    display: none;
}

.search-model .elasticsearch-input,
.search-modal .mod_elasticsearch .close-results {
 display: none !important;   
}

.search-modal .mod_elasticsearch .categories-results {
    margin-top: 15px 0;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid #f7f7f7;
    border-bottom: 1px solid #f7f7f7;
}
.search-modal .mod_elasticsearch .categories-results .categories-headline {
    display: none;
}
.search-modal .mod_elasticsearch .categories-results ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.search-modal .mod_elasticsearch .categories-results ul li {
    margin-right: 6px;
}

.search-modal .mod_elasticsearch .categories-results ul button {
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid #CE0437;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 600;
    color: #CE0437;
    outline: none;
    background: #fff;
    font-family: 'ZwoWebPro-Light', sans-serif;
}

.search-modal .mod_elasticsearch .categories-results ul li.active button,
.search-modal .mod_elasticsearch .categories-results ul button:hover {
    color: #fff;
    background: #CE0437;
}

.search-modal .mod_elasticsearch .search-results {
    width: 100%;
    max-height: 400px;
    overflow-y: scroll;
    padding-top: 15px;
}

.search-modal .elasticsearch-input {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.search-modal .elasticsearch-input .elasticsearch-input-button {
    width: 30px;
}
.search-modal .elasticsearch-input input {
    width: calc(100% - 70px);
    line-height: 36px;
    height: 36px;
    border: 1px solid #314f68;
    background: #fff;
    padding: 0 10px;
    outline: none;
    font-size: 16px;
    font-weight: 400;
    color: #314f68;
}

.search-modal .results-panel-container .elasticsearch-input {
    display: none;
}

.search-modal .no-search-results p,
.search-modal p.suggest-results-mean,
.search-modal p.suggest-results-for {
    font-weight: 400;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.2;
}

.search-modal p.suggest-results-mean span {
    font-weight: 900;
    font-style: italic;
    color: #ce0538;
}

.search-modal p.suggest-results-for span {
    font-weight: 900;
    font-style: italic;
}

.search-modal .result-hit {
 margin-bottom: 15px;
 padding-bottom: 15px;
 border-bottom: 1px solid #f7f7f7;
}

.search-modal .result-hit .hit {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.search-modal .result-hit .hit .text {
    width: 100%;
}

.search-modal .result-hit .hit .text p {
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
}
.search-modal .result-hit .hit .text p.summary strong {
    color: #CE0437;   
}

.search-modal .result-hit .hit .text p.description {
    display: none;
}
.search-modal .result-hit .hit .text p.url {
    font-size: 14px;
    margin-top: 10px;
}
.search-modal .result-hit .hit .text p.title {
    font-weight: 900;
    color: #CE0437;
    margin-bottom: 10px;
}

.search-modal .result-hit .hit.with-image .text {
    width: calc(100% - 100px);
}

.search-modal .result-hit .hit.with-image .image {
    width: 75px;
}

.search-modal .result-hit .hit.with-image .image img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

body.active-search {
    overflow: hidden;
}