/* media-library */

.section_media-library > .container > .row { margin-top: 0!important;}

.section_media-library .filter { margin-bottom: .2rem;}
.section_media-library .filter .filter-item, .section_media-library .filter a.link-show-hide { font-size: .9rem;}
.section_media-library .filter .filter-item label { cursor: pointer;}
/*.section_media-library .filter .form-check-input { position: absolute; opacity: 0;}*/
.section_media-library .filter .fa { display: none; /*vertical-align: middle; padding: 2px 4px; font-size: 9px; line-height: 9px; color: #fff; border-radius: 100%; background: #E17F00;*/}
/*.section_media-library .filter .form-check-input:checked[type="checkbox"] + span .fa { display: inline-block;}*/
.section_media-library .filter .form-check-input:checked[type="checkbox"] + span { color: #E17F00;}

.results_title { font-weight: 600!important;}

.sorting .title, .selected-filters .title { font-size: .9rem; font-weight: 600; text-transform: uppercase;}

.selected-filters { flex-direction: column;}
.selected-filters .tags { flex-wrap: wrap;}
.selected-filters .tags .tag { position: relative; margin-right: 20px; cursor: pointer; font-size: .9rem; white-space: nowrap;}
.selected-filters .tags .tag .fa { display: inline-block; padding: 2px 4px; font-size: .75em; color: #9da2a5;}
.selected-filters .tags .tag:hover .fa {color: #E17F00;}

@media (max-width: 767px) {
    .section_media-library { flex-direction: column;}
    .selected-filters .title { margin-bottom: 16px;}
}
@media (min-width:768px) {
    .section_media-library .col-md-9 { padding-left: calc(var(--bs-gutter-x) * .5 + 2%)!important;}
    .selected-filters .title { margin-right: 20px;}
}

/* sorting  */
.section_media-library .sorting .dropdown button { position: relative; padding-right: 1.75rem; width: 220px!important; text-align: left;}
.section_media-library .sorting .dropdown button:after { position: absolute; right: .5rem; top:50%; transform: translateY(-50%);}

/* results_item */
.results_item { display: flex; flex-wrap: wrap; padding: 1rem 0 1.4rem; border-top: 1px solid #ccc;}
.results_item:last-child { border-bottom: 1px solid #ccc;}
.results-item_title { flex: 0 0 100%; margin-bottom: .75rem; font-weight: 600;}
.results-item_ico { flex: 0 0 5rem; margin-right: .75rem; padding-top: .25rem; text-align: center;}
.results-item_description { width: calc(100% - 5.75rem); font-size: .9rem; line-height: 1.2;}
.results-item_description p:last-child { margin-bottom: 1px;}

.results-item_ico img { margin: 0 auto; width: auto; height: 42px;}
.results-item_description .btn-set { margin-top: -8px;}
.results-item_description .btn-set .btn { margin: 8px 8px 0 0; max-width: 250px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
@media (max-width: 767px) {
    .results-item_ico { padding-top: .25rem;}
}
@media (min-width: 768px) {
    .results-item_ico img { height: 64px;}
}

.results-item_description-popup { padding-top: 1rem; border-top: 1px solid #dee2e6;}

/* not active item */
.not-active a { cursor: default;}
.not-active a:hover { color: #dd821e; text-decoration: none;}

/* to pdf */
.modal .modal-body_pdf .carousel-item { padding-bottom: 0!important;}
.modal .modal-body_pdf .results_item { text-align: center; padding: 0 15px; border: 0; margin-left: auto; margin-right: auto;}
.modal .modal-body_pdf .results_item > * { width: 100%;}
.modal .modal-body_pdf .results_item .results-item_ico { margin: 0 auto;}
.modal .modal-body_pdf .results_item img { position: relative; max-width:100%; width: 80px; height:auto}
.modal .modal-body_pdf .results_item .results-item_title { margin-top: 1rem; margin-bottom: .25rem;}

@media (min-width: 1600px) {
    /*.modal .results_item-pdf { width: 350px;}*/
}