
.wpsl-view-select .view-select-button {
    border: 1px solid #999;
    background-color: white;
    height:40px;
    width:40px;
    cursor: pointer;
    font-family: "Font Awesome 5 Free", FontAwesome;
    font-style: normal;
    font-size: 1.4em;
    font-weight: 900;
    margin-left: 2px;
    margin-right: 2px;
    color: #999;
}

.library-action-button {
    display: inline-block;
    border: 1px solid #999;
    background-color: white;
    height:35px;
    width:35px;
    cursor: pointer;
    font-family: "Font Awesome 5 Free", FontAwesome;
    font-style: normal;
    font-weight: 900;
    font-size: 1.4em;
    margin: 2px;
    text-align: center;
    line-height: 35px;
    vertical-align: middle;

}

.wpsl-search {
    margin-bottom: 16px;
    text-align: left;
}

.wpsl-search, .wpsl-gmap-canvas {
    border: 1px solid #dadada;
}

#wpsl-gmap {
    transition: all .5s ease-in-out;
}
#wpsl-wrap.view-list #wpsl-gmap {
    max-height: 0px;
    max-width: 0px;
}

#wpsl-wrap.view-map .view-select-button.view-map, #wpsl-wrap.view-list .view-select-button.view-list, .library-action-button i {
    color: #0099ff;
}

#wpsl-result-list {
    transition: all .5s ease-in-out;
    float: left;
}
#wpsl-wrap.view-list #wpsl-result-list {
    margin-right: 0;
    width: 100%;
}

.library-service-listing, .library-listing {
    clear: both;
    margin-bottom: 16px;
    background: #fafafa;
    text-align: left;
    border: 1px solid #dadada;
}

.library-service-title, .library-listing-title {
    background: #eee;
    border-bottom: 5px solid #30465b;
    padding: 5px;
}

.library-details, .library-description {
    background: #efefef;
    margin: 5px;
    clear: both;
    padding: 5px;
}

.library-listing-distance {
    float: right;
    margin-right: 10px;
}

.library-details {
    display: grid;
grid: none / auto 35px;
box-sizing: border-box;
}

.library-listing-more-detail {
float: right;
display: inline-block;
padding-left: 7px;
padding-right: 5px;
cursor: pointer;
}

.library-listing-more-detail i, .library-listing-more-detail-i i {
pointer-events: none;
transition: all .5s ease-in-out;
transform: rotate(0deg);
}

.library-listing-more-detail-link {
    cursor: pointer;
    text-decoration: underline;
    color: #0099ff;
}
.library-listing-more-detail-link-text {
    pointer-events: none;
}
.library-listing-more-detail-link-text.less {
    display:none;
}
.library-listing.expanded .library-listing-more-detail-link-text.less {
    display: block;
}
.library-listing.expanded .library-listing-more-detail-link-text.more {
    display: none;
}


.library-listing.expanded .library-listing-more-detail i {
transform: rotate(90deg);
}

.library-service-icon {
text-align: center;
}

@supports (-ms-ime-align:auto) {
    .library-service-icon-svg {
        padding-top: 10px;
    }
}

.library-service-icon-title-svg {
    max-height: 36px;
}

.library-service-icon-title-svg-text {
    font: italic 10px sans-serif;
    dominant-baseline: middle;
    text-anchor: middle;
    fill: black;
}

.library-service-icon-title {
   width: 100%;
}

.library-service-listing .library-service-icon {
    color: #000;
    font-size: 5rem;
}

.library-service-icon-svg-text {
    font-family: "Font Awesome 5 Free", FontAwesome, sans;
     font-size: 40px;
     dominant-baseline: middle;
     text-anchor: middle;
     fill: grey;
 }
.service-available .library-service-icon-svg-text {
    fill: black;
}

.library-service-icon-svg-available {
    font-family: "Font Awesome 5 Free", FontAwesome, sans;
    font-weight: 900;
    font-size: 15px;
    dominant-baseline: middle;
    text-anchor: middle;
    fill: none;
}
.service-available .library-service-icon-svg-available {
    fill: #009e0f;
}
.library-service-icon-svg-available-background {
    fill: none;
}
.service-available .library-service-icon-svg-available-background {
    fill: white;
}

.main-fas {
    font-weight: 900;
}
.main-far {
    font-weight: 400;
}
.main-fab {
    font-family: "Font Awesome 5 Brands";
}

.library-listing-available-services {
    text-align: center;
    margin: 7px 0 0 0;
    transition: all .5s ease-in-out;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    grid-gap: 2px;
    width: 100%;
    justify-items: center;
    justify-content: space-evenly;
    box-sizing: border-box;
    overflow: hidden;
    max-height: 70px;
}

.library-services.library-listing-available-services {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}


.library-service-icon,
.library-listing-available-services .library-service-icon-svg {
    max-height: 50px;
}

.library-service-listing .library-service-icon {
    max-height: 500px;
}

.library-listing.expanded .library-listing-available-services {
    /* 16 rows as fallback for old browsers like IE 10 and 11 because they don't support var() */
    max-height: 1140px;

    /* Calculated height of the icon container based on the number of terms in our DB.
    This number is set via a custom property on the elements in the template */
    max-height: calc((var(--icon-count) / 2) * 70px);
}

.library-services.library-listing-available-services {
    max-height: none;
}

.library-listing-single-service {
    margin: 0 0 -10px 0;
    width: 100%;
}

.ibrary-listing-single-service:nth-child(n+6) {
    display: none;
}

.ibrary-service-usage {
    clear: both;
    padding: 0 5px;
}

.magellan-fa-select,
#magellan-fa-select-dropdown-target,
.select2-container--magellan li,
#select2-acf-magellan_service_icon_selector-results,
.magellan-fa-select-wrapper .select2-selection__rendered {
    font-family: "Font Awesome 5 Free", FontAwesome, sans;
    font-size: 1.2em;
}

.service-available .library-service-icon {
    color: #000;
}

#wpsl-wrap #wpsl-result-list li {
    padding: 0;
}

.expandable-js {
    display: none;
}

.expandable {
    overflow: hidden;
    transition: all .5s ease-in-out;
    line-height: 0;
    padding: 0;
    color: transparent;
}

.library-service-listing.expanded .expandable, .library-listing.expanded .expandable {
    line-height: 1.5;
    padding-top: 1em;
    padding-bottom: 1em;
    color: black;
}


.wpsl-contact-details {
    white-space: normal;
    overflow-wrap: break-word;
}

.library-service-details {
    padding: 10px 0 10px 10px;
    display: grid;
    grid-template-columns: 110px auto;
}

.hidden-accessible {
    border: 0!important;
    clip: rect(0 0 0 0)!important;
    -webkit-clip-path: inset(50%)!important;
    clip-path: inset(50%)!important;
    height: 1px!important;
    overflow: hidden!important;
    padding: 0!important;
    position: absolute!important;
    width: 1px!important;
    white-space: nowrap!important;
}

.library-listing-available-services:after,
.library-listing-available-services:before,
.library-listing-single-service:before,
.library-service-icon:before,
.library-details:before,
.library-service-icon-title:before,
.library-service-icon-title:after,
.library-service-icon-title-svg:after,
.library-service-details:before,
.mainlib-no-after:after,
.mainlib-no-before:before,
.library-service-icon-svg:after {
    content: none;
    display:none;
}

/*Used to hide the Parent select box in the sidebar metabox*/
#newwpsl_store_category_parent {
display: none;
}

#wpsl-search-wrap .select2.select2-container {
    display: inline-block!important;
}

#wpsl-search-wrap-magellan {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
#wpsl-search-wrap-magellan::before {
    content: none;
}

#wpsl-search-input, .magellan-input-group .magellan-input {
    width: 100%;
    border: 1px solid #ccc;
}

#wpsl-search-input.magellan-input {
    width: 100% !important;
}

#wpsl-wrap input.magellan-small-input {
    width: 75px;
}

#wpsl-search-wrap-magellan label {
    display: block;
    white-space: nowrap;
    padding-left: 1px;
}

.c1 {
    grid-column: span 1;
}
.c2 {
    grid-column: span 2;
}
.c3 {
    grid-column: span 3;
}
.c4 {
    grid-column: span 4;
}

@media (max-width: 825px) {
    #wpsl-search-wrap-magellan {
        grid-template-columns: 24% 24% 24% 24%;
    }
}

@media (max-width: 570px) {
    #wpsl-search-wrap-magellan {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }

    .library-services.library-listing-available-services {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    }
}
