.dlm-download-box {
  width: 250px;
  border: 1px solid #ccc;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  text-align: center;
  position: relative;
  margin: 1em auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);

  h1 {
    margin: 0.5em 0 !important;
  }

  img.wp-post-image {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-top-left-radius: 3px;
    -moz-border-top-right-radius: 3px;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    border-radius: 0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .dlm-download-box-content {
    padding: 0 1em 1em;
  }

  .dlm-download-count {
    -moz-border-radius: 1em;
    -webkit-border-radius: 1em;
    border-radius: 1em;
    color: #777;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    background: #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 0;
    right: 0;
    padding: .6em;
    width: auto;
    min-width: 1em;
    font-size: 1em;
    text-align: center;
    vertical-align: middle;
    line-height: 1em;
    border: 1px solid #bbb;
    margin: -.5em -.5em 0 0;
  }
}

:where(.dlm-downloads) li {
  margin-top: 0.5em;
}

.dlm-download-default {
  display: inline-block;
}

.dlm-download-button {
  display: inline-flex;
  flex-direction: column;

  .dlm-button-meta {
    font-size: 0.8em;
    opacity: 0.8;
  }
}


.dlm-filetype-pdf {
  background-image: url(../images/filetypes/document-pdf.png);
}

.dlm-filetype-m4r, .dlm-filetype-au, .dlm-filetype-snd, .dlm-filetype-mid, .dlm-filetype-midi, .dlm-filetype-kar, .dlm-filetype-mpga, .dlm-filetype-mp2, .dlm-filetype-mp3, .dlm-filetype-aif, .dlm-filetype-aiff, .dlm-filetype-aifc, .dlm-filetype-m3u, .dlm-filetype-ram, .dlm-filetype-rm, .dlm-filetype-rpm, .dlm-filetype-ra, .dlm-filetype-wav, .dlm-filetype-wave {
  background-image: url(../images/filetypes/document-music.png);
}

.dlm-filetype-mpeg, .dlm-filetype-mpg, .dlm-filetype-mpe, .dlm-filetype-qt, .dlm-filetype-mov, .dlm-filetype-mxu, .dlm-filetype-avi, .dlm-filetype-movie, .dlm-filetype-mp4, .dlm-filetype-divx, .dlm-filetype-wmv {
  background-image: url(../images/filetypes/document-film.png);
}

.dlm-filetype-zip, .dlm-filetype-gz, .dlm-filetype-rar, .dlm-filetype-sit, .dlm-filetype-tar, .dlm-filetype-7z {
  background-image: url(../images/filetypes/document-zipper.png);
}

.dlm-filetype-xls, .dlm-filetype-tsv, .dlm-filetype-csv, .dlm-filetype-xlsx {
  background-image: url(../images/filetypes/document-excel.png);
}

.dlm-filetype-doc, .dlm-filetype-docx {
  background-image: url(../images/filetypes/document-word-text.png);
}

.dlm-filetype-ai {
  background-image: url(../images/filetypes/document-illustrator.png);
}

.dlm-filetype-swf {
  background-image: url(../images/filetypes/document-flash-movie.png);
}

.dlm-filetype-eps, .dlm-filetype-ps, .dlm-filetype-bmp, .dlm-filetype-gif, .dlm-filetype-ief, .dlm-filetype-jpeg, .dlm-filetype-jpg, .dlm-filetype-jpe, .dlm-filetype-png, .dlm-filetype-tiff, .dlm-filetype-tif, .dlm-filetype-djv, .dlm-filetype-wbmp, .dlm-filetype-ras, .dlm-filetype-pnm, .dlm-filetype-pbm, .dlm-filetype-pgm, .dlm-filetype-ppm, .dlm-filetype-rgb, .dlm-filetype-xbm, .dlm-filetype-xpm, .dlm-filetype-xwd {
  background-image: url(../images/filetypes/document-image.png);
}

.dlm-filetype-psd {
  background-image: url(../images/filetypes/document-photoshop.png);
}

.dlm-filetype-ppt, .dlm-filetype-pptx {
  background-image: url(../images/filetypes/document-powerpoint.png);
}

.dlm-filetype-js, .dlm-filetype-css, .dlm-filetype-as, .dlm-filetype-htm, .dlm-filetype-htaccess, .dlm-filetype-sql, .dlm-filetype-html, .dlm-filetype-php, .dlm-filetype-xml, .dlm-filetype-xsl {
  background-image: url(../images/filetypes/document-code.png);
}

.dlm-filetype-rtx, .dlm-filetype-rtf {
  background-image: url(../images/filetypes/document-text-image.png);
}

.dlm-filetype-txt {
  background-image: url(../images/filetypes/document-text.png);
}

nav.dlm-download-monitor-pagination, #content nav.dlm-download-monitor-pagination {
  text-align: center;
  ul {
    display: inline-block;
    white-space: nowrap;
    padding: 0;
    clear: both;
    border: 1px solid #eee;
    border-right: 0;
    margin: 1px;
    li {
      border-right: 1px solid #eee;
      padding: 0;
      margin: 0;
      float: left;
      display: inline;
      overflow: hidden;
      a, span {
        margin: 0;
        text-decoration: none;
        padding: 0;
        line-height: 1em;
        font-size: 1em;
        font-weight: normal;
        padding: .5em;
        min-width: 1em;
        display: block;
      }
      span.current, a:hover, a:focus {
        background: #eee;
        color: darken(#eee, 40);
      }
    }
  }
}
.dlm_widget_downloads ul, .dlm_widget_downloads ul li {
  list-style: none;
}

.dlm-hidden-info {
  visibility:hidden;
}

/**
* Progress bar
*/

@keyframes infinite-spinning {
  from {
      transform: rotate(0)
  }

  to {
      transform: rotate(360deg)
  }
}

@keyframes infinite-loading {
  from {
    width:0%;
  }

  to {
    width:100%;
  }
}

data.dlm-hidden-info {
  position: relative;
  span {
    font-weight: 700;
    color: green
  }
}

.dlm-hidden-info {
  .progress {

      &.dlm-visible-spinner {
        display: inline-block;
        visibility: visible;
      }

      &.box {
        width: 100%;
        span.dlm-download-done {
          &::after {
            content: '✓'
          }
        }

        .progress-inner {
          height: 6px;
          top: 0;
          width: 0%;
          -webkit-transition: width .3s, opacity .3s;
          transition: width .3s, opacity .3s;
          position: absolute;
          left: 0;
          background: #006080;
          animation: none;
        }

      }

      .progress-inner {
      display: none;
      width: 75px;
      position: relative;
      margin-left: 15px;
      .dlm-visible-spinner {
        display: inline-block;
        visibility: visible;
      }
    }
  } 
}
/* Comment below lines for the new XHR loader so that we know where to rever*/
html body a.dlm-download-button{
  position: relative;
  
  &.dlm-download-started {
    text-decoration: none;
  }

  &::before {
    content: '';
    position: absolute;
    height: 2px;
    z-index:3;
    bottom: -2px;
    left: 0;
    width: 0;
    background: red;
    transition: width .5s;
    box-shadow:0px 0px 3px rgba(255, 0, 0, 0.8);
    border-radius:5px;
  }

  &.dlm-download-Infinity {
    &::before {
      animation: infinite-loading 1s infinite linear;
    }
  }

  &.dlm-download-10:before {
    width: 10%;
  }

  &.dlm-download-20:before {
    width: 20%;
  }

  &.dlm-download-30:before {
    width: 30%;
  }

  &.dlm-download-40:before {
    width: 40%;
  }

  &.dlm-download-50:before {
    width: 50%;
  }

  &.dlm-download-60:before {
    width: 60%;
  }

  &.dlm-download-70:before {
    width: 70%;
  }

  &.dlm-download-80:before {
    width: 80%;
  }

  &.dlm-download-90:before {
    width: 90%;
  }

  &.dlm-download-100:before {
    width:100%;
  }
}

a.dlm-download-button {

  &::before {
    z-index: 0;
  }

  & > * {
    z-index:2;
    position: relative;
  }
}

html body .dlm-download-link {
  position: relative;

  &.dlm-download-started {
    text-decoration: none;
  }
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
.dlm-xhr-error {
  font-size:12px;
  color:red;
}

.dlm-xhr-loading-gif {
  width: 20px;
  height: 20px;
  align-self: center;
  margin: 5px 0;
}

.dlm-xhr-progress {
  min-width:75px;
  width:auto;
  display:inline-block;
  position:relative;
}

.dlm-no-access-modal-window {
/*  position: fixed;
  top: 50%;
  left: 50%;
  color: inherit;
  background-color: #fff;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width:auto;
  min-width: 600px;
  height: auto;
  min-height: 250px;
  box-shadow: rgba(0,0,0,.45) 0 25px 20px -20px;
  border-radius: 10px;
  max-width: 80%;
  max-height: 90%;
  overflow-y: auto;
  z-index: 99;*/

  & > * {
    padding: 20px;
  }

  .dlm-no-access-modal__header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    width: calc(100% - 40px);
    justify-content: space-between;
    align-items: center;
    clear: both;
    position: relative;
  }

  .dlm-no-access-modal__body {
    border-bottom:1px solid rgba(0,0,0,0.1);
    position: relative;
  }

  .dlm-no-access-modal__footer {
    text-align: right;
  }
}

.dlm-no-access-modal-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: #dededea1;
	top: 0;
  z-index: 98;
}

.dlm-no-access-modal-close {

  span {
    display: block;
    position: relative;
    text-align: center;
    border-radius: 100px;
    background: #212A2F;
    color:#fff;
  }
}

.dlm-no-access-modal-close:hover {
	cursor: pointer;
}
.dlm-no-access-notice {
  font-style: italic;
  color:red;
  font-weight: lighter;
}

#dlm_login_form {
  input[type="submit"] {
    cursor: pointer;
  }
}