#am-search-form {
    margin: 20px;
}

#autocomplete {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

#search-results div {
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.close-details {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    background: transparent;
    font-size: 20px;
}

#search-results {
    margin-top: 10px;
}

.search-links li {
    display: inline;
    margin-right: 5px;
}

.search-links a {
    color: #0073aa;
}

#search-results h3 {
    margin-top: 10px;
    color: navy;
}

#search-results div {
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f0f0f0;
    position: relative;
}

.search-button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    padding: 0;
    margin-left: -35px;
    vertical-align: middle;
}

.am-search-box {
    padding-right: 30px;
}

.details-button {
    margin-left: 10px;
}

.am-search-container .am-search-flex {
    display: flex;
}

#details-container-37, #details-container-36 {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
}

h4 {
    margin-top: 5px;
}

.spinner {
    border: 2px solid rgba(0,0,0,.05)!important;
    width: 30px!important;
    height: 30px!important;
    border-radius: 100%!important;
    border-left-color: #000!important;
    animation: spin 1s ease-in-out infinite !important;
    position:absolute;
    left: calc(50% - 22px);
    top: 50px;
    padding: 0 !important;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
