/*Media Modal*/
.t4-modal-open,
.t4-options-modal-open {
  overflow: hidden;
}

.t4-modal-open .t4-options-modal-overlay,
.t4-modal-open .t4-options-modal {
  display: none;
}

.t4-modal-overlay,
.t4-options-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
}

.t4-modal,
.t4-options-modal {
  position: fixed;
  top: 100px;
  left: 50%;
  width: 820px;
  height: 600px;
  z-index: 9991;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.07);
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
}

.t4-modal-small {
  top: 5%;
  width: 420px;
  height: 90%;
}

.t4-modal-header,
.t4-options-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  background-color: #E8EEF3;
  height: 60px;
  border-radius: 4px 4px 0 0;
  padding: 0 20px;
  z-index: 99;
  align-items: center;
}

.t4-modal-header-title,
.t4-options-modal-header-title {
  font-size: 14px;
  font-weight: 500;
  color: #6F737A;
}

.t4-modal-footer,
.t4-options-modal-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  background-color: #E8EEF3;
  height: 60px;
  border-radius: 0 0 4px 4px;
  padding: 0 20px;
  z-index: 99;
  align-items: center;
}

.t4-modal-footer .btn,
.t4-options-modal-footer .btn {
  margin-right: 10px;
  font-size: 12px;
}

.t4-modal-breadcrumbs {
  width: 560px;
}

.t4-modal-actions-left {
  position: absolute;
  top: 0;
  left: 20px;
  height: 60px;
  padding-top: 15px;
  background: #E8EEF3;
  z-index: 3;
  width: 560px;
  display: none;
}

.t4-modal-actions-right {
  width: 220px;
  text-align: right;
}

.action-t4-modal-close,
.action-t4-options-modal-close {
  background-color: #dc3545;
  border-radius: 25px;
  color: #fff;
  height: 30px;
  line-height: 30px;
  position: absolute;
  right: -15px;
  text-align: center;
  top: -15px;
  width: 30px;
  z-index: 3;
}

.action-t4-modal-close:hover,
.action-t4-options-modal-close:hover {
  background-color: #c82333;
  color: #fff;
}

.t4-modal-actions-left .btn,
.t4-modal-actions-right .btn {
  font-size: 12px;
  margin-right: 10px;
}

.t4-modal-actions-left .btn-last,
.t4-modal-actions-right .btn-last {
  margin-right: 0;
}

.t4-media-breadcrumb {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.t4-media-breadcrumb-item {
  height: 60px;
  line-height: 60px;
  font-size: 14px;
  text-transform: capitalize;
}

.t4-media-breadcrumb-item + .t4-media-breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  color: #868e96;
  content: "\f105";
  font-family: FontAwesome;
}

.t4-media-breadcrumb-item + .t4-media-breadcrumb-item:hover::before {
  text-decoration: underline;
}

.t4-media-breadcrumb-item + .t4-media-breadcrumb-item:hover::before {
  text-decoration: none;
}

.t4-media-breadcrumb-item {
  color: #868e96;
}

.t4-modal-inner,
.t4-options-modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.t4-modal-preloader {
  position: relative;
  width: 100%;
  height: 100%;
  display: table;
  text-align: center;
}

.t4-modal-preloader .fa {
  display: table-cell;
  vertical-align: middle;
}

#t4-media-manager,
.t4-modal-content {
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  overflow-y: auto;
}

.t4-options-modal-content {
  position: absolute;
  top: 60px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  overflow-y: auto;
}

.t4-modal-content,
.t4-options-modal-content {
  bottom: 80px;
}

.t4-options-modal-content > .control-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
} 

.t4-media {
  list-style: none;
  padding: 0;
  margin: -10px;
}

.t4-media:empty {
  margin: 0;
  border: 2px dashed #E8EEF3;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  overflow: hidden;
}

.t4-media:empty:before {
  content: "This folder is empty";
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
}

.t4-media > li {
  width: 140px;
  height: 180px;
  display: block;
  float: left;
  margin: 10px;
  position: relative;
}

.t4-media-thumb {
  height: 140px;
  width: 140px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #fff;
  margin-bottom: 4px;
  cursor: pointer;
  position: relative;
  background-color: #fff;
}

.t4-media-thumb-new {
  animation: newFolder 5000ms;
}

@keyframes newFolder {
    from {background-color: #e8f7ed;}
    to {background-color: #fff;}
}

.t4-media-image .t4-media-thumb img {
  background: #e7e8ec;
  border: 1px solid #d4d5d9;
  border-radius: 3px;
}

.t4-media-selected .t4-media-thumb {
  background: #D6E8FA;
  border-color: #D6E8FA;
}

.t4-media-select {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 13px;
  border: 1px solid #d4d5d9;
  border-radius: 3px;
  z-index: 993;
  opacity: 0;
  cursor: pointer;
  transition: opacity 400ms;
  -webkit-transition: opacity 400ms;
}

.t4-media > li:hover .t4-media-select {
  opacity: 1;
}

.t4-media-select > span {
  display: none;
}

.t4-media-selected .t4-media-select {
  border-color: #1D84E9;
  background-color: #1D84E9;
  opacity: 1;
}

.t4-media-selected .t4-media-select > span {
  display: block;
  color: #fff;
  line-height: 24px;
}

.t4-media-label {
  width: 90%;
  margin-left: 5%;
  height: 40px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 12px;
  line-height: 1.5em;
  color: #1B2733;
  word-wrap: break-word;
  overflow: hidden;
}

.t4-media-thumb img {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-height: 100%;
  max-width: 100%;
  cursor: pointer;
  outline: none;
}

.t4-image-holder img {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-height: 100%;
  max-width: 100%;
  outline: none;
  background: #e7e8ec;
  border: 1px solid #d4d5d9;
  padding: 5px;
  border-radius: 3px;
}

.t4-image-holder:not(:empty) {
  margin-bottom: 15px;
}

.t4-media-picker {
  margin-right: 10px;
}

/* Progress */
.t4-progress {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 1rem;
  width: 100%;
  overflow: hidden;
  font-size: .75rem;
  background-color: #e9ecef;
  border-radius: .25rem;
}

.t4-progress-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #007bff;
    transition: width .6s ease;
}