.custom-block-preview-modal {
  width: 100%;
}

.custom-block-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d3d4d9;
}

.custom-block-preview-size.is-active {
  font-weight: 700;
}

.custom-block-preview-frame-wrap {
  width: 100%;
  overflow: auto;
  padding: 0;
  background: #fffff;
}

.custom-block-preview-iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  margin: 0 auto;
  border: 0;
  background: #fff;
  transition: width 0.2s ease;
}

.custom-block-preview-page #block-libertygrmeast-libertyannouncementsection,
.custom-block-preview-page header,
.custom-block-preview-page footer,
.custom-block-preview-page [data-drupal-messages],
.custom-block-preview-page .contextual,
.custom-block-preview-page .toolbar-oriented,
.custom-block-preview-page #toolbar-administration {
  display: none !important;
}

.custom-block-preview-frame-wrap {
  position: relative;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-block-preview-iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.custom-block-preview-iframe.is-loading {
  opacity: 0;
}

.custom-block-preview-loader {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  z-index: 10;
}

.custom-block-preview-loader.is-hidden {
  display: none;
}

.custom-block-preview-spinner {
  width: 42px;
  height: 42px;

  border: 4px solid #e5e7eb;
  border-top-color: #111827;

  border-radius: 50%;

  animation: custom-block-preview-spin 0.8s linear infinite;
}

@keyframes custom-block-preview-spin {
  to {
    transform: rotate(360deg);
  }
}