/* Frontend rules ported from the EditorsKit (block-options) plugin: classes still saved in post content. */

/* Device visibility */
@media screen and (min-width: 769px) {
  body:not(.wp-admin) .editorskit-no-desktop { display: none; }
}

@media screen and (max-width: 768px) and (min-width: 737px) {
  body:not(.wp-admin) .editorskit-no-tablet { display: none; }

  body:not(.wp-admin) .has-tablet-text-align-center { text-align: center; }
  body:not(.wp-admin) .has-tablet-text-align-center.wp-block-buttons { justify-content: center; }
  body:not(.wp-admin) .has-tablet-text-align-right { text-align: right; }
  body:not(.wp-admin) .has-tablet-text-align-right.wp-block-buttons { justify-content: right; }
  body:not(.wp-admin) .has-tablet-text-align-left { text-align: left; }
  body:not(.wp-admin) .has-tablet-text-align-left.wp-block-buttons { justify-content: left; }
  body:not(.wp-admin) .has-tablet-text-align-justify { text-align: justify; }
}

@media screen and (max-width: 736px) {
  body:not(.wp-admin) .editorskit-no-mobile { display: none; }

  body:not(.wp-admin) .has-mobile-text-align-center { text-align: center; }
  body:not(.wp-admin) .has-mobile-text-align-center.wp-block-buttons { justify-content: center; }
  body:not(.wp-admin) .has-mobile-text-align-right { text-align: right; }
  body:not(.wp-admin) .has-mobile-text-align-right.wp-block-buttons { justify-content: right; }
  body:not(.wp-admin) .has-mobile-text-align-left { text-align: left; }
  body:not(.wp-admin) .has-mobile-text-align-left.wp-block-buttons { justify-content: left; }
  body:not(.wp-admin) .has-mobile-text-align-justify { text-align: justify; }
}

/* List styles */
ul.has-list-bullet-color li,
ol.has-list-bullet-color li,
ul.is-style-checked li,
ol.is-style-checked li {
  list-style-type: none !important;
  padding-left: 8px;
  position: relative;
}

ul.has-list-bullet-color li:before,
ol.has-list-bullet-color li:before,
ul.is-style-checked li:before,
ol.is-style-checked li:before {
  background-size: cover;
  display: inline-block;
  height: 25px;
  left: -25px;
  position: absolute;
  top: 1em;
  margin-top: -18px;
  transform: scale(.9);
  width: 25px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

ul.has-list-bullet-color li:before {
  top: 2px;
  content: "•";
  text-align: center;
  font-weight: 900;
  background-color: transparent;
  color: var(--ek-bullet-color);
}

ol.has-list-bullet-color { counter-reset: li var(--li-start, 0); }
ol.has-list-bullet-color li { counter-increment: li; }

ol.has-list-bullet-color li:before {
  content: counter(li) ".";
  top: 2px;
  text-align: center;
  background-color: transparent;
  color: var(--ek-bullet-color);
  width: auto !important;
  min-width: 25px;
}

ul.is-style-checked li:before,
ol.is-style-checked li:before {
  content: "";
  background-color: var(--ek-bullet-color, currentColor);
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}
