#learn-press-certificates {
  margin-top: 20px;
  border: 1px solid #DDD;
  background: #FFF;
}
#learn-press-certificates.no-design {
  padding: 20px;
  color: #2d85ba;
  font-size: 18px;
}
#learn-press-certificates .cert-toolbar {
  border-bottom: 1px solid #DDD;
  position: relative;
  z-index: 100;
}
#learn-press-certificates .cert-toolbar .cert-fields {
  list-style: none;
  margin: 0;
  padding: 0 5px;
}
#learn-press-certificates .cert-toolbar .cert-fields .cert-field {
  float: left;
  width: 100px;
  text-align: center;
  margin: 10px 5px 0 5px;
  padding: 10px 0;
  border: 1px solid #DDD;
  background: #F5F5F5;
  color: #777;
  cursor: move;
}
#learn-press-certificates .cert-toolbar .cert-fields .cert-field span {
  display: block;
}
#learn-press-certificates .cert-toolbar .cert-fields .cert-field span:before {
  font-size: 24px;
  line-height: 1;
}
#learn-press-certificates .cert-toolbar .cert-fields .cert-field span[class^=dashicons] {
  font-family: Dashicons;
}
#learn-press-certificates .cert-toolbar .cert-fields .cert-field p {
  margin: 0;
  font-size: 11px;
}
#learn-press-certificates .cert-toolbar .cert-fields .cert-field:hover {
  background: #d1e5ef;
}
#learn-press-certificates .cert-toolbar .cert-fields .cert-field.ui-draggable-dragging {
  z-index: 1000;
}
#learn-press-certificates .cert-toolbar .cert-fields:after {
  clear: both;
  display: block;
  content: "";
}
#learn-press-certificates .buttons {
  margin: 10px;
}
#learn-press-certificates:not(.has-template) #cert-design-view-inside {
  min-height: 500px;
}
#learn-press-certificates #no-template-selected {
  position: absolute;
  top: 50%;
  margin-top: -80px;
  text-align: center;
  width: 100%;
}
#learn-press-certificates #cert-design-view {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
#learn-press-certificates #cert-design-view .canvas-container {
  position: absolute !important;
  top: 0;
  left: 0;
}
#learn-press-certificates #cert-design-view #cert-design-view-inside {
  position: relative;
  overflow: hidden;
}
#learn-press-certificates #cert-design-view .cert-design-line {
  position: absolute;
  z-index: 100;
  display: none;
  border: 0px dashed #d54e21;
  pointer-events: none;
}
#learn-press-certificates #cert-design-view .cert-design-line.horizontal {
  left: 0;
  right: 0;
  top: 0;
  margin-top: 30px;
  border-top-width: 1px;
}
#learn-press-certificates #cert-design-view .cert-design-line.vertical {
  top: 0;
  bottom: 0;
  border-left-width: 1px;
  left: 0;
  margin-left: 30px;
}
#learn-press-certificates #cert-design-view.dragover .cert-design-line {
  display: block;
}
#learn-press-certificates #cert-design-view.small {
  border: 1px solid #DDD;
  margin: 20px auto;
}
#learn-press-certificates #cert-design-view #cert-rulers {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 10;
  pointer-events: none;
}
#learn-press-certificates #cert-design-view .cert-ruler-vertical,
#learn-press-certificates #cert-design-view .cert-ruler-horizontal {
  position: absolute;
  background: #d1e5ef;
}
#learn-press-certificates #cert-design-view .ruler-magnitude {
  position: absolute;
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  color: #00a0d2;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.horizontal {
  width: 30px;
  text-align: center;
  margin-left: -15px;
  padding-top: 10px;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.horizontal.twenty-five {
  left: 25%;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.horizontal.fifty {
  left: 50%;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.horizontal.seventy-five {
  left: 75%;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.horizontal:after {
  height: 10px;
  border-left: 1px solid #00a0d2;
  top: 0;
  left: 15px;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.vertical {
  height: 30px;
  left: 0;
  position: absolute;
  text-align: center;
  width: 30px;
  padding-top: 0px;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.vertical.twenty-five {
  top: 25%;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.vertical.fifty {
  top: 50%;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.vertical.seventy-five {
  top: 75%;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.vertical:after {
  width: 10px;
  border-top: 1px solid #00a0d2;
  left: 0;
}
#learn-press-certificates #cert-design-view .ruler-magnitude:after {
  content: "";
  display: inline-block;
  position: absolute;
}
#learn-press-certificates #cert-design-view .ruler-magnitude.twenty-five:before {
  content: "25%";
}
#learn-press-certificates #cert-design-view .ruler-magnitude.fifty:before {
  content: "50%";
}
#learn-press-certificates #cert-design-view .ruler-magnitude.seventy-five:before {
  content: "75%";
}
#learn-press-certificates #cert-design-view .cert-ruler-horizontal {
  height: 30px;
  left: 30px;
  right: 30px;
}
#learn-press-certificates #cert-design-view .cert-ruler-horizontal:before, #learn-press-certificates #cert-design-view .cert-ruler-horizontal:after {
  content: "";
  background: #FFF;
  position: absolute;
  height: 30px;
  width: 30px;
  top: 0;
}
#learn-press-certificates #cert-design-view .cert-ruler-horizontal:before {
  left: -30px;
}
#learn-press-certificates #cert-design-view .cert-ruler-horizontal:after {
  right: -30px;
}
#learn-press-certificates #cert-design-view .cert-ruler-horizontal.bottom {
  bottom: 0;
}
#learn-press-certificates #cert-design-view .cert-ruler-horizontal.bottom .ruler-magnitude {
  padding-top: 0;
  height: 30px;
}
#learn-press-certificates #cert-design-view .cert-ruler-horizontal.bottom .ruler-magnitude:after {
  bottom: 0;
  top: auto;
}
#learn-press-certificates #cert-design-view .cert-ruler-vertical {
  width: 30px;
  top: 30px;
  bottom: 30px;
}
#learn-press-certificates #cert-design-view .cert-ruler-vertical.right {
  right: 0;
}
#learn-press-certificates #cert-design-view .cert-ruler-vertical.right .ruler-magnitude:after {
  right: 0;
  left: auto;
}
#learn-press-certificates #cert-design-editor {
  margin: 30px;
  position: relative;
}
#learn-press-certificates #cert-design-editor .cert-template {
  max-width: 100%;
  line-height: 1;
  vertical-align: top;
}
#learn-press-certificates .certificate-preview {
  padding: 20px;
  border-top: 1px solid #DDD;
}
#learn-press-certificates .certificate-preview img {
  max-width: 400px;
}

#certificates-options {
  display: none;
}
#certificates-options .cert-layer-options {
  margin-top: 12px;
}
#certificates-options .cert-layer-options .remove-layer {
  color: #FF0000;
}
#certificates-options.loading .cert-layer-options {
  display: none;
}
#certificates-options.loading .inside:before {
  content: "...";
}

#certificates-layers .inside,
#certificates-options .inside {
  max-height: 400px;
  overflow: auto;
  margin: 0;
}
#certificates-layers .button.layer-center,
#certificates-options .button.layer-center {
  margin-bottom: 4px;
}

.cert-layer-options li {
  margin: 0 0 10px 0;
  border-bottom: 1px dashed #DDD;
  padding-bottom: 10px;
}
.cert-layer-options li label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.cert-layer-options li .cert-option-slider-value {
  width: 70px;
  float: right;
  margin-top: 4px;
}
.cert-layer-options li .cert-option-slider {
  background-color: #F1F1F1;
  height: 5px;
  margin: 20px 90px 20px 7px;
  position: relative;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
.cert-layer-options li .cert-option-slider .ui-slider-handle {
  left: 0%;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-top: -4px;
  position: absolute;
  background-color: #48bfef;
  margin-left: -7px;
}
.cert-layer-options li .cert-option-slider .ui-slider-handle:before {
  border: 5px solid rgba(33, 150, 243, 0.3);
  width: 9px;
  height: 9px;
  content: "";
  position: absolute;
  border-radius: 50%;
  top: -3px;
  left: -3px;
  cursor: pointer;
}
.cert-layer-options li .cert-option-slider .ui-slider-handle:hover, .cert-layer-options li .cert-option-slider .ui-slider-handle.ui-state-active {
  background-color: rgb(0, 162, 239);
}
.cert-layer-options li .cert-option-slider .ui-slider-handle:hover:before, .cert-layer-options li .cert-option-slider .ui-slider-handle.ui-state-active:before {
  width: 13px;
  height: 13px;
  top: -5px;
  left: -5px;
}

#certificate-browser .theme-name {
  padding: 15px;
}
#certificate-browser .theme-name > span {
  display: none;
}
#certificate-browser .themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 10px;
}
#certificate-browser .theme {
  margin: 0 !important;
  width: 100% !important;
}
#certificate-browser .theme .theme-screenshot .certificate-result {
  z-index: 10;
}
#certificate-browser .theme .button-remove-certificate {
  display: none;
}
#certificate-browser .theme:hover .theme-screenshot:after {
  opacity: 0.5;
  background: #FFF;
  z-index: 1000;
  position: relative;
}
#certificate-browser .theme.active .theme-name {
  background: #ffffff;
  color: #03A9F4;
  box-shadow: inset 0 1px 1px #DDD;
  -webkit-box-shadow: inset 0 1px 1px #DDD;
}
#certificate-browser .theme.active .theme-name > span {
  display: inline-block;
}
#certificate-browser .theme.active .theme-actions {
  background: #B3E5FC;
  border-left: 1px solid #DDD;
}
#certificate-browser .theme.active .button-remove-certificate {
  display: inline-block;
}
#certificate-browser .theme.active .button-assign-certificate {
  display: none;
}
#certificate-browser .theme.updating:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
}

#certificates-layers .cert-layers {
  margin: 12px 0 -5px 0px;
}
#certificates-layers .cert-layers .layer {
  border: 1px solid #DDD;
  padding: 7px 10px;
  margin-bottom: 5px;
  cursor: pointer;
  background: #FFF;
}
#certificates-layers .cert-layers .layer a {
  display: inline-block;
  font-family: "dashicons";
  float: right;
  text-decoration: none;
  color: #FF0000;
}
#certificates-layers .cert-layers .layer a:before {
  content: "\f182";
}
#certificates-layers .cert-layers .layer.active {
  border-color: #05d7ff;
}

body.post-type-lp_course .wp-list-table .column-certificate {
  width: 100px;
}
body.post-type-lp_course .wp-list-table .course-cert-preview img {
  max-width: 100px;
}
body.post-type-lp_cert .wp-list-table .column-courses {
  width: 300px;
}

@media screen and (max-width: 1280px) {
  #certificate-browser .themes {
    margin-right: 0%;
  }
  #certificate-browser .theme {
    width: 100%;
    margin: 0 0% 4% 0;
  }
}
#learn-press-certificates-preload {
  margin: 0;
  border: 1px solid #DDD;
  background: #FFF;
  display: block;
  height: 1px;
  overflow: hidden;
  visibility: hidden;
}
#learn-press-certificates-preload #cert-design-view-preload {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}
#learn-press-certificates-preload #cert-design-view-preload #cert-design-view-inside-preload {
  position: relative;
  overflow: hidden;
}
#learn-press-certificates-preload #cert-design-view-preload #cert-design-view-inside-preload #cert-design-editor-preload {
  margin: 30px;
  position: relative;
}
#learn-press-certificates-preload #cert-design-view-preload #cert-design-view-inside-preload #cert-design-editor-preload img {
  width: 100%;
}

.learnpress-certificate-metabox {
  display: flex;
  flex-direction: row;
  position: relative;
  margin: 0;
  padding: 15px 0;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}
.learnpress-certificate-metabox__label {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  padding: 0;
  color: #23282d;
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
}