/* Custom Region — nestable container for blocks like Insight Split */

.shop-custom-region {
  box-sizing: border-box;
  width: 100%;
  margin: 1.5em 0;
  padding: 0;
}

.shop-custom-region *,
.shop-custom-region *::before,
.shop-custom-region *::after {
  box-sizing: border-box;
}

.shop-custom-region__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}

.shop-custom-region.alignwide .shop-custom-region__inner {
  max-width: 1200px;
}

.shop-custom-region.alignfull .shop-custom-region__inner {
  max-width: none;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.shop-custom-region .shop-insight-split {
  margin-top: 0;
  margin-bottom: 0;
}

/* ---------- Editor ---------- */
.shop-custom-region.is-editor {
  min-height: 80px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  position: relative;
}

.shop-custom-region.is-editor.is-selected,
.shop-custom-region.is-editor.has-child-selected {
  border-color: #2563eb;
  border-style: solid;
}

.shop-custom-region__label {
  position: absolute;
  top: -10px;
  left: 12px;
  z-index: 1;
  padding: 0 8px;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.shop-custom-region.is-editor .shop-custom-region__inner {
  min-height: 64px;
  padding-top: 28px;
}

.shop-custom-region.is-editor .block-list-appender {
  margin: 8px 0 0;
}

@media (max-width: 767px) {
  .shop-custom-region__inner {
    padding: 16px 14px;
  }
}
