:root { 
  --inspector-border-color: #356dff;
  --inspector-background-color: #356dff;
  --inspector-font-color: #474f5e;
}
[class*="section-header"] .is-checker,
[class*="section-header"] .is-checker-hover:not(.is-checker) {
  z-index: 50 !important;
}

.is-checker::after,
.is-checker-hover:not(.is-checker)::after,
.checker-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
}

.is-checker::after {
  pointer-events: none;
  border: 2px solid var(--inspector-border-color) !important;
}

.is-checker::after {
  z-index: 500;
}

.is-checker-hover:not(.insert-mask)::after {
  pointer-events: none;
}

[class*="section-header"] .is-checker-hover:not(.is-checker) {
  z-index: 52 !important;
}

.is-checker-hover:not(.is-checker)::after {
  border: 2px solid var(--inspector-border-color);
}
.is-checker-hover.border-dashed:not(.is-checker)::after {
  border: 2px dashed var(--inspector-border-color);
}

.is-checker-hover:not(.is-checker)::after {
  z-index: 1001 !important;
}

[class*="section-header"] .is-checker-hover.is-checker {
  z-index: 53 !important;
}

.checker-border:not(.is-checker):not(.is-checker-hover)::after {
  /* border: 1px dashed #4e73df !important; */
}

.insert-box:not(.invalid-box).is-checker-active {
  z-index: 9999;
}

.insert-box:not(.invalid-box):hover,
.insert-box:not(.invalid-box).is-checker-active {
  left: 0;
  right: 0;
  min-width: fit-content !important;
  width: fit-content;
  height: 40px;
  background: #202223;
  color: #fff;
  border-radius: 8px;
  padding: 4px;
  margin: 0 auto;
}

.insert-before:not(.invalid-box):hover,
.insert-before:not(.invalid-box).is-checker-active {
  top: -20px;
}

.insert-after:not(.invalid-box):hover,
.insert-after:not(.invalid-box).is-checker-active {
  bottom: -20px;
}

.insert-box:not(.invalid-box):hover .add-icon,
.insert-box:not(.invalid-box).is-checker-active .add-icon {
  display: none;
}

.insert-box:not(.invalid-box):hover .add-label,
.insert-box:not(.invalid-box).is-checker-active .add-label {
  display: block;
}

.insert-box:not(.invalid-box):hover .add-label:hover,
.insert-box:not(.invalid-box).is-checker-active .add-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.checker-label {
  cursor: pointer;
  position: absolute;
  top: -27px;
  left: 0px;
  height: 30px;
  z-index: 1000 !important;
}
h2 .checker-label{
  top: -22px;
}
.shoppaas-editor-section_first.is-checker .checker-label{
  top: 0;
}
.checker-label div {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  background-color: var(--inspector-background-color);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  pointer-events: all;
  user-select: none;
  border-radius: 4px 4px 0 0;
}

.checker-label div .operate-icon {
  display: block;
  vertical-align: middle;
  fill: currentColor;
  stroke: currentColor;
  width: 10px;
  height: 10px;
  opacity: 1;
  transition: all 0.25s;
}

.checker-label div .icon-2 {
  display: none;
  opacity: 0;
}

.checker-label div span {
  color: #fff;
  font-family: sans-serif;
}

.checker-box {
  position: absolute;
  margin: 0 auto;
  left: calc(50% - 84px);
  z-index: 99999;
  padding: 10px 0 0;
  bottom: -36px;
  color: #fff;
}
.checker-box.is-footer {
  bottom: 100%;
  top: auto;
}
.checker-box div {
  display: flex;
  background: #202223;
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
}

.checker-box div span {
  display: inline-block;
  cursor: pointer;
  height: 32px;
  font-size: 20px;
  line-height: 20px;
  padding: 6px;
}

.checker-box div span[operate="false"] {
  cursor: not-allowed;
  opacity: 0.78;
}

.is-checker-hover:not(.insert-mask)::after {
  pointer-events: none;
}

.checker-box div span svg {
  width: 20px;
  height: 20px;
  fill: #f2f2f2 !important;
}

[data-shoppaas-editor-section],
[data-shoppaas-editor-block] {
  position: relative;
  border-radius: 0 4px 4px 4px !important;
}
.insert-before {
  top: -10px;
}
.insert-box {
  position: absolute;
  min-width: 20px !important;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--inspector-background-color);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  left: calc(50% - 10px);
  z-index: 9999;
}
.insert-box > span {
  color: #fff;
  fill: var(--inspector-background-color);
  display: grid;
  place-items: center;
  font-family: sans-serif;
}
.insert-box .add-label {
  display: none;
  padding: 4px 10px;
  font-size: 14px;
}

.insert-after {
  bottom: -10px;
}
.checker-label.is-header,
.insert-before .model-partition, .insert-after.is-header .model-partition {
  top: 0px;
}
.model-partition {
  background: #ffffff;
  width: 300px;
  position: absolute;
  min-width: 150px;
  border-radius: 4px;
  border: 1px solid #EBEEF5;
  padding: 12px;
  z-index: 2000;
  color: var(--inspector-font-color);
  line-height: 1.4;
  text-align: justify;
  font-size: 14px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  word-break: break-all;
}
.model-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--inspector-font-color);
  font-size: 14px;
}
.model-partition ul {
  margin: 0;
  padding: 0;
  max-height: 400px;
  overflow: auto;
}
.model-partition ul li {
  display: flex;
  width: 100%;
  margin-top: 10px;
  text-align: start;
  background-color: #fff;
  cursor: pointer;
  border: none;
  padding: 5px;
  align-items: center;
  font-size: 14px;
  color: var(--inspector-font-color);
  fill: var(--inspector-font-color);
  font-weight: 400;
  border-radius: 4px;
}
.model-partition ul li svg {
  display: inline-block;
  height: 17px;
  width: 17px;
  line-height: 17px;
  text-align: center;
  margin-right: 7px;
}
.model-partition ul li:hover {
  background: #f6f6f7;
}
.model-partition ul li.invalid-box {
  cursor: not-allowed;
  pointer-events: none;
}
.model-partition ul li.invalid-box svg, .model-partition ul li.invalid-box span {
  color: #bcbcbc;
  fill: #bcbcbc;
  stroke: #bcbcbc;
}
.is-checker-hover .product.insert-box {
  visibility: hidden;
}
/* .border-dashed::after {
  border: 1px dashed var(--inspector-border-color);
} */
/* 移动端优先样式 */
@media screen and (max-width: 768px) { 
  .model-partition{
    left: auto!important;
    top: 100%;
    bottom: auto;
  }
}