/* Custom Spacer Block */
.custom-spacer-block {
  display: block;
  width: 100%;
}
@media screen and (max-width: 768px) {
  .custom-spacer-block[style*="--mobile-height"] {
    height: var(--mobile-height) !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .custom-spacer-block[style*="--tablet-height"] {
    height: var(--tablet-height) !important;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .custom-spacer-block[style*="--desktop-height"] {
    height: var(--desktop-height) !important;
  }
}
@media screen and (min-width: 1441px) {
  .custom-spacer-block[style*="--fullhd-height"] {
    height: var(--fullhd-height) !important;
  }
}
@media screen and (max-width: 768px) {
  .custom-spacer-block.hide-mobile {
    display: none !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .custom-spacer-block.hide-tablet {
    display: none !important;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .custom-spacer-block.hide-desktop {
    display: none !important;
  }
}
@media screen and (min-width: 1441px) {
  .custom-spacer-block.hide-fullhd {
    display: none !important;
  }
}
.custom-spacer-block.is-selected .spacer-preview, .custom-spacer-block:hover .spacer-preview {
  opacity: 1;
}

.spacer-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
  border: 2px dashed rgba(0, 53, 95, 0.3);
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 53, 95, 0.05) 10px, rgba(0, 53, 95, 0.05) 20px);
  padding: 0.5rem;
  gap: 0.5rem;
}
.spacer-preview .spacer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.spacer-preview .spacer-height-indicator,
.spacer-preview .spacer-responsive-indicator {
  background: rgba(0, 53, 95, 0.9);
  color: #F1E7D3;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Public Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.spacer-preview .spacer-responsive-indicator.mobile {
  background: rgba(142, 186, 84, 0.9);
}
.spacer-preview .spacer-responsive-indicator.tablet {
  background: rgba(0, 110, 145, 0.9);
}
.spacer-preview .spacer-responsive-indicator.desktop {
  background: rgba(0, 53, 95, 0.9);
}
.spacer-preview .spacer-responsive-indicator.fullhd {
  background: rgba(51, 51, 51, 0.9);
}
.spacer-preview .spacer-visibility {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}
.spacer-preview .visibility-indicator.hidden {
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Public Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
}
.spacer-preview .spacer-color-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
}

.custom-spacer-block.alignwide {
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.custom-spacer-block.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media screen and (max-width: 768px) {
  .custom-spacer-block[style*="height: 200px"], .custom-spacer-block[style*="height: 300px"], .custom-spacer-block[style*="height: 400px"], .custom-spacer-block[style*="height: 500px"] {
    min-height: 100px;
  }
  .spacer-preview .spacer-height-indicator {
    font-size: 11px;
    padding: 0.2rem 0.4rem;
  }
  .spacer-preview .spacer-color-indicator {
    width: 16px;
    height: 16px;
  }
}
@media (prefers-contrast: high) {
  .spacer-preview {
    border-color: #000;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, #000 10px, #000 12px);
  }
  .spacer-preview .spacer-height-indicator {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
  }
  .spacer-preview .spacer-color-indicator {
    border-color: #000;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spacer-preview {
    transition: none;
  }
}
