#foe-search-form-container {
    display: flex;
    flex-direction: column-reverse;
}

.search-page-link-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #0066ff;
    font-family: "Open Sans", Sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    width: auto;
    box-shadow: none;
}

.search-page-link-button:hover,
.search-page-link-button:active,
.search-page-link-button:focus {
    color: #fff;
    background-color: #003771;
    text-decoration: none;
}

.search-page-link-button > span:first-child {
    margin-right: 10px;
}

.search-page-container select {
    min-width: 150px;
    margin-right: 40px;
}

.search-page-container form {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.search-page-container form > .select2-container {
    margin-left: 0 !important;
    margin-right: 3px;
}

.select2-dropdown {
    width: auto !important;
    max-width: 90vw;
}

.select2-selection {
    border-radius: 0 !important;
    height: auto !important;
}

.select2-selection--single {
    display: flex !important;
    flex-direction: row-reverse;
}

.select2-selection__placeholder {
    color: #006600 !important;
    font-size: 16px !important;
}

.select2-selection__rendered {
    padding: 4px !important;
    padding-left: 12px !important;
    padding-right: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #006600 !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #33bb00 !important;
}

.select2-selection__arrow {
    top: calc(50% - 13px) !important;
}

.select2-results__option {
    font-size: 16px !important;
}

.select2-results__option--highlighted .select2-results__option--selectable {
    background-color: #006600 !important;
}

.select2-container--open,
.select2-container--focus,
.select2-selection__rendered,
.select2-selection,
.select2-search__field,
.select2-container--open:focus,
.select2-container--focus:focus,
.select2-selection__rendered:focus,
.select2-selection:focus,
.select2-search__field:focus {
    outline: none !important;
}

.select2-selection:hover,
.select2-selection:focus,
.select2-search__field:focus {
    border: 1px solid #006600 !important;
}

.select2-selection__clear {
    height: auto !important;
    padding-top: 3px;
}

#foe-search-form-right {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

#foe-search-companies-search-result-container {
    margin-top: 10px;
    border: 1px solid #aaaaaa;
    padding: 20px;
    position: relative;
}

#foe-search-companies-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
}

#foe-search-companies-loader-container > span {
    color: #006600;
    text-transform: uppercase;
}

.foe-search-companies-loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.foe-search-companies-loader div {
    animation: foe-search-companies-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.foe-search-companies-loader div:after {
    content: ' ';
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #006600;
    margin: -4px 0 0 -4px;
}

.foe-search-companies-loader div:nth-child(1) { animation-delay: -0.036s; }
.foe-search-companies-loader div:nth-child(2) { animation-delay: -0.072s; }
.foe-search-companies-loader div:nth-child(3) { animation-delay: -0.108s; }
.foe-search-companies-loader div:nth-child(4) { animation-delay: -0.144s; }
.foe-search-companies-loader div:nth-child(5) { animation-delay: -0.18s; }
.foe-search-companies-loader div:nth-child(6) { animation-delay: -0.216s; }
.foe-search-companies-loader div:nth-child(7) { animation-delay: -0.252s; }
.foe-search-companies-loader div:nth-child(8) { animation-delay: -0.288s; }

.foe-search-companies-loader div:nth-child(1):after { top: 63px; left: 63px; }
.foe-search-companies-loader div:nth-child(2):after { top: 68px; left: 56px; }
.foe-search-companies-loader div:nth-child(3):after { top: 71px; left: 48px; }
.foe-search-companies-loader div:nth-child(4):after { top: 72px; left: 40px; }
.foe-search-companies-loader div:nth-child(5):after { top: 71px; left: 32px; }
.foe-search-companies-loader div:nth-child(6):after { top: 68px; left: 24px; }
.foe-search-companies-loader div:nth-child(7):after { top: 63px; left: 17px; }
.foe-search-companies-loader div:nth-child(8):after { top: 56px; left: 12px; }

@keyframes foe-search-companies-loader {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#foe-search-companies-filter-container {
    font-size: 14px;
}

.foe-search-companies-filter,
.foe-search-companies-button {
    display: inline-flex;
    justify-content: center;
    white-space: nowrap;
    padding: 4px 8px;
    border: 1px solid #aaaaaa;
    color: #aaaaaa;
    background-color: white;
    text-transform: uppercase;
    margin: 5px;
    margin-left: 7px;
}

.foe-search-companies-filter-active,
.foe-search-companies-filter:hover,
.foe-search-companies-button:hover {
    border: 1px solid #006600;
    color: #006600;
    text-decoration: none !important;
}

.foe-search-companies-filter:active,
.foe-search-companies-button:active,
.foe-search-companies-filter:focus,
.foe-search-companies-button:focus {
    text-decoration: none !important;
}

[id^="select2-name"],
[id^="select2-country"],
[id^="select2-category"],
[id^="select2-species"],
[id^="select2-fishing_area"] {
    font-size: 16px !important;
    color: #006600 !important;
}

#foe-search-comanies-search-result {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-row-gap: 40px;
    grid-column-gap: 20px;
    margin-top: 40px;
}

.foe-search-result-item {
    display: block;
    padding: 20px;
    border-left: 1px solid #aaaaaa;
}

.foe-search-result-item:hover,
.foe-search-result-item:focus {
    border-color: #006600;
    text-decoration: none;
    outline: none !important;
    background-color: white;
}

.foe-search-result-item > span {
    display: block;
}

.foe-search-result-item-title {
    font-weight: bold;
    font-size: 18px;
    color: #006600;
}

.foe-search-result-item:hover > .foe-search-result-item-title {
    text-decoration: underline;
}

.foe-search-result-item-location {
    font-size: 14px;
    color: #797979;
    margin-bottom: 10px;
}

.foe-search-result-item-product-type {
    font-size: 16px;
    color: #797979;
}

#foe-search-companies-load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

@media screen and (min-width: 600px) {
    #foe-search-comanies-search-result {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 640px) {
    #foe-search-form-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .search-page-container form {
        justify-content: flex-start;
    }

    #foe-search-form-right {
        justify-content: flex-end;
        margin-bottom: 9px;
    }
}

@media screen and (min-width: 992px) {
    #foe-search-comanies-search-result {
        grid-template-columns: repeat(3, 1fr);
    }
}
