/*SEARCH BAR*/
.search-bar {
    margin-bottom: 10px;
    width: 35%;
}

.search-bar > button {
    float: right;
    margin-left:-1px;
    font-size:0px !important;;
    background-color: #cdcdcd;
    height: 20px;
    padding: 3px;
    width: 60px;
    font-size: 20px;
    display: inline-block;
    text-align: center;
    background-image: url(/-/media/designer/header/mvc/images/header-search.png);
    background-repeat: repeat-x;
    border: solid 1px #999;
    border-radius: 0 4px 4px 0;
    box-sizing: border-box;
    height: 27px;
    content: "";
    cursor:pointer;
    font-family: 'dk' !important;
}

.search-bar > button:before {
    font-size:20px;
    content: "\f02e";
}

    .rtl .search-bar > button {
        float:left;
        border-radius: 4px 0 0 4px;
        margin-left: 0;
        margin-right:-1px;
    }

.search-bar > .search-holder {
    display: block;
    overflow: hidden;
    border:solid 1px #ccc;
    padding:2px;
    border-radius: 2px;
}

.search-bar > .search-holder > input {
    width: 100%;
    border:none;
    height: 19px;
}

.video-result {
   vertical-align: top;
   /*! height: 265px; */
   /*! overflow: hidden; */
}

.video-result-container .video-result p:after {
  content: "";
  text-align: right;
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 70%;
  height: 2.1em;
  background: linear-gradient(to right, #fff0, var(--bg-color--card) 50%);
  overflow: hidden;
}

.rtl .video-result-container .video-result p:after {
  content: "";
  text-align: left;
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 100%;
  height: 2.1em;
  background: linear-gradient(to left, #fff0, white 50%);
}


/*KEYWORD-SORT BY*/
.result-keyword {
    width: max-content;
    height: 32px;
    border: 1px solid darkgray;
    padding: 5px 0;
    font-weight: bold;
    color: #555555; 
    margin-bottom: 8px;
    box-sizing: border-box;
    text-align: right;
}

.rtl .result-keyword {
    text-align: left;
}

.result-keyword div {
    padding:4px;
    display: inline-block;
    float: left;
}

.rtl .result-keyword div {
    float: right;
}

.result-keyword > label {
    font-size: 12px;
    color: gray;
    padding-top: 4px;
    padding-right: 4px;
}

.rtl .result-keyword > label {
    padding-right:0;
    padding-left:4px;
}


.result-keyword > .sortby {
    margin-right:5px;
}

.rtl .result-keyword > .sortby {
    margin-right:0;
    margin-left:5px;
}

/* PAGER */
.pager {
    display: block;
    float: right;
    margin: 0;
    padding: 0;
}

.rtl .pager {
    float: left;
}

.result-list + .result-info .pager {
    clear: both;
    margin-top:20px;
}

.pager button {
    display: block;
    float: left;
    margin: 0;
    padding: 5px 8px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: normal;
}

.rtl .pager button {
    float: right;
}


.pager button.button {
    background: var(--bg-color);
    color: #444;
    margin:0px;
    border: 1px solid var(--bg-color);
    box-shadow: none !important;
    min-width: auto;
}

.pager button.disabled,
.pager button:hover {
    background: var(--bg-color) !important;;
    color: #06517f;
    font-weight: bold;
    border-bottom: 3px solid #06517f;
}

.pager button.disabled,
.pager button.disabled.current {
    border-bottom: 3px solid #06517f;
    box-sizing: border-box;
    background: var(--bg-color);
    font-weight: bold;
    color: #06517f;
}

.pager button.disabled,
.pager button.disabled.current:hover {
    border-bottom: 3px solid #06517f;
    background: var(--bg-color);
    color: #06517f;
}

.pager button.disabled,
.pager button.disabled.current:first-child,
.pager button.disabled,
.pager button.disabled.current:last-child {
    border: 1px solid var(--bg-color);
    background: var(--bg-color);
    font-weight: normal;
    color: #333;
}

.pager button.disabled,
.pager button.disabled.current:hover:first-child,
.pager button.disabled,
.pager button.disabled.current:hover:last-child {
    border: 1px solid var(--bg-color);
    background: var(--bg-color);
    color: #333;
}

.pager button.disabled,
.pager button.disabled {
    background: var(--bg-color);
    color: #333;
    border: 1px solid var(--bg-color);
}

.pager button.disabled,
.pager button.disabled:hover {
    background: var(--bg-color);
    color: #333;
    border: 1px solid var(--bg-color);
}


/*RESULTS*/


.result-info {
    display: block;
    width:100%;
}

.result-report-wrapper {
    font-size:14px;
}

.result-report-wrapper .result-report {
    float: left;
    margin-top: 5px;
}

.rtl .result-report-wrapper .result-report {
    float: right;
}

.result-loader {
    display: block;
    width: 54px;
    height: 55px;
    background-image: url('https://www.digikey.com/-/media/Images/Content%20Search/ajax-loader.gif');
    margin: 20px auto;
}



.video-image {
    width:100%;
    height:0px;
    padding-top: 56%;
    position:relative;
    margin-bottom:5px;
}

.video-image-wrapper {
    position: absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
}

.video-image-wrapper img {
    width:100%;
    height:100%;
}

.overflow-fade {
    overflow: hidden;
    position: relative;
    background-color:var(--bg-color);
    line-height:1.2em;
}

.overflow-fade div {
  position: relative;
  overflow: hidden;
}

.overflow-fade div:after {
  content: "";
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 1.2em;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
}



.result-list {
    /*! width:100%; */
    clear:both;
    /*! height: 100%; */
    /*! display: block; */
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: -10px;
}

.result {
    margin-top: 20px;
    box-sizing: border-box;
    position:relative;
    padding-bottom:13px;
    overflow:hidden;
    flex: 21%;
    /*! min-width: 230px; */
    /*! flex: 0 0 calc(24% - 0.5em); */
    background: var(--bg-color--card);
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 2px 16px 0 #00000014;
    margin: 10px;
}

.result:last-child {
    max-width: 48.3%;
}

.rtl .result {
    /*! float: right; */
    /*! margin-left:0; */
    /*! margin-right:2%; */
}

.result:first-child,
.result:nth-child(1) {
    /*! margin-left:auto; */
}

.rtl .result:first-child,
.rtl .result:nth-child(4n+1) {
    /*! margin-left:0; */
    /*! margin-right:0; */
}



.video-result-container div:nth-child(2) {
    height: 100%;
    display: block;
    /*! max-height: 108px; */
    /*! position: relative; */
}

.video-result {
    vertical-align: top;
}

.video-image {
    width:100%;
    height:0px;
    padding-top: 56%;
    border-bottom:solid 1px #eaeaea;
    box-sizing: border-box;
    position:relative;
    margin-bottom:5px;
}

.video-image-wrapper {
    position: absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
}

.video-image-wrapper img {
    width:100%;
    height:100%;
}

.video-link {
    font-weight:bold;
    color: var(--link-blue);
    text-decoration: none;
    font-size: 12px;
    padding:0 10px;
    display: inline-block;
}

.video-link:hover {
    text-decoration: underline;
}

.video-text {
    position: relative;
    overflow: hidden;
    background-color: white;
    line-height: 1.45;
    
    
    padding:0 10px;
    display: block;
    height: 53px;
}


.video-views {
    position: absolute;
    bottom:0px;
    padding:4px;
    color:#666666;
    background:linear-gradient(transparent, #ffffff 50%);
    padding-top:25px;
    vertical-align: bottom;
    width:calc(100% - 8px);
}

.video-search-result-publish-date {
    display: block;
    padding:0 10px;
    font-size: 11px;
}

.video-result p {
    position: relative;
    min-height: 89px;
    margin: 0 10px;
}

.video-link,
.video-search-result-publish-date {
    margin: 10px 0;
}

.video-result .dk-btn__secondary {
    margin-top: 10px;
    width: max-content;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pagination-group {
    display: flex;
    flex-direction: row;
}

.filters-bar {
    display: flex;
    margin: 7px 0 0;
    padding: 0;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.dk-dropdown-group .dk-dropdown-label {
    margin: -10px 0;
}

.pagination-bar {
   display: flex;
   margin: 5px 0;
   padding: 0;
   justify-content: space-between;
   width: 100%;
}

.pagination-group > span {
    margin: 5px 5px 10px 0;
}

@media only screen and (max-width: 1100px)  {
    
.result {
    margin-top: 20px;
    border:solid 1px #000;
    box-sizing: border-box;
    position:relative;
    padding-bottom:15px;
    overflow:hidden;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 2px 16px 0 #00000014;
    flex: 22%;
}

    .video-result p {
    position: relative;
    min-height: 75px;
    margin: 0 10px;
}

}

@media only screen and (max-width: 788px)  {
    
    .result {
     height: 312px;
}
    
    .result:last-child {
    max-width: 47%;
}

.content .search-bar {
  width: 100%;
}

    
}

@media only screen and (max-width: 768px)  {
    .result-report-wrapper .result-report,
    .rtl .result-report-wrapper .result-report {
        float: none;
    }

    .result-report-wrapper,
    .pager,
    .rtl .result-report-wrapper,
    .rtl .pager{
        display: block;
        text-align: center;
        float:none;
        padding: 5px;
        clear:both;
    }
    
    .result {
        margin-top: 10px;
        margin-bottom:10px;
        width:32%;
        height: auto;
    }
    
    .rtl .result {
        /*! margin-left:0; */
        /*! margin-right:2%; */
    }
    
    .result:nth-child(4n+1) {
        /*! margin-left:2% */
    }
    
    .rtl .result:nth-child(4n+1) {
        /*! margin-left:0; */
        /*! margin-right:2%; */
    }

    .result:first-child,
    .result:nth-child(3n+1) {
        /*! margin-left:0; */
    } 
    
    .rtl .result:first-child,
    .rtl .result:nth-child(3n+1) {
        /*! margin-left:0; */
        /*! margin-right:0; */
    } 
    
    .result {
    margin-top: 20px;
    border:solid 1px #000;
    box-sizing: border-box;
    position:relative;
    padding-bottom:15px;
    overflow:hidden;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 2px 16px 0 #00000014;
    flex: 21%;
    min-width: 230px;
}
    
}

@media (max-width: 500px) {

.filters-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hydrated {
  margin-bottom: 10px;
}

.dk-dropdown-group .dk-dropdown-label {
    margin: 10px 0;
}
  
}

@media only screen and (max-width: 550px)  {
    
    .result-report-wrapper,
    .pager,
    .rtl .result-report-wrapper,
    .rtl .pager{
        padding: 5px 0;
    }
    
    .pager button {
        padding:5px;
    }
    
    .result-keyword,
    .rtl .result-keyword {
        height: auto;
        text-align: center;
    }
    
    .result-keyword div,
    .result-keyword *,
    .result-keyword > label,
    .rtl .result-keyword div,
    .rtl .result-keyword *,
    .rtl .result-keyword > label{
        float: none;
    }
    
    .result-keyword div {
    padding:4px;
    display: block;
}

    
    .result {
        width:49%;
        /*! margin-left:2%; */
    }
    
    .rtl .result {
        /*! margin-left:0; */
        /*! margin-right:2%; */
    }
    
    .result:nth-child(4n+1),
    .result:nth-child(3n+1){
        /*! margin-left:2% */
    }
    
    .rtl .result:nth-child(4n+1),
    .rtl .result:nth-child(3n+1){
        /*! margin-left:0; */
        /*! margin-right:2%; */
    }

    .result:first-child,
    .result:nth-child(2n+1) {
        /*! margin-left:0; */
    } 
    
    .rtl .result:first-child,
    .rtl .result:nth-child(2n+1) {
        /*! margin-right:0; */
    }
    
        .result {
    margin-top: 20px;
    border:solid 1px #000;
    box-sizing: border-box;
    position:relative;
    padding-bottom:15px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 2px 16px 0 #00000014;
    flex: 21%;
}
    
   .result:last-child {
    max-width: 100%;
}
    
}

@media only screen and (max-width: 400px)  {
    
    .result {
        width:100%;
        margin-left:0;
    }
    
    .rtl .result {
        margin-right:0;
        
    }
    
    .result:nth-child(4n+1),
    .result:nth-child(3n+1),
    .result:nth-child(2n+1){
        margin-left:0%
    }
    
    .rtl .result:nth-child(4n+1),
    .rtl .result:nth-child(3n+1),
    .rtl .result:nth-child(2n+1){
        margin-left:0%;
        margin-right:0;
    }

    .video-views {
        background:none;
    }

}

.content .dk-input-group,
.content .result-keyword {
  display: inline-block;
}

.content .dk-input-group {
  width: 50%;
}

.content .result-keyword {
  float: inline-end;
}

@media screen and (max-width: 600px) {

#root .content .dk-input-group, 
.content .result-keyword {
    display: block;
}

#root .content .dk-input-group {
    width: 100%;
}
    
}
