portal-search {
    display: block;
}

.portal-search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    width: 250px;
    max-width: 100%;
    background: #fff;
    flex-shrink: 0;
}

.portal-search-form:focus-within {
    outline: 2px solid #088088;
    outline-offset: 2px;
}

.portal-search-form input {
    border: 0;
    padding: 8px 15px;
    font-size: 16px;
    width: 100%;
    min-width: 0;
    outline: none;
}

.portal-search-form button {
    border: 0;
    background: #088088;
    color: #fff;
    min-width: 50px;
    min-height: 42px;
}

.portal-search-form button:hover {
    background: #06666d;
}

.portal-search-form svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

#portal-search-dialog {
    width: 80%;
    max-width: 1000px;
    max-height: 85vh;
    border: 0;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 8px 40px #0004;
}

#portal-search-dialog::backdrop {
    background: #0008;
}

.portal-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.portal-search-refine {
    width: 100%;
    margin-bottom: 20px;
}

.portal-search-results {
    list-style: none;
    padding: 0;
}

.portal-search-results li {
    padding: 18px 0;
    border-top: 1px solid #ddd;
}

.portal-search-results h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.portal-search-results a {
    color: #06666d;
}

.portal-search-results p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.portal-search-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

#search-warning {
    background: #fff3cd;
    color: #664d03;
    padding: 12px;
}

@media (max-width: 767px) {
    #portal-search-dialog {
        width: 94%;
        padding: 18px;
    }
}
