.node-preview-container {
  font-size: var(--gin-font-size-xs);
  z-index: 501; /* on top of the Drupal world */
  position: sticky;
  top: 0;
  padding: 0;
  width: 100%;
  height: var(--gin-toolbar-secondary-height);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--gin-border-color-layer);
}

@supports ((-webkit-backdrop-filter: blur()) or (backdrop-filter: blur())) {
  .node-preview-container {
    opacity: .999; /* Fix Chrome issue with mask */
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
  }
}

.gin--dark-mode .node-preview-container {
  background: rgba(27, 27, 29, .98);
}

@supports ((-webkit-backdrop-filter: blur()) or (backdrop-filter: blur())) {
  .gin--dark-mode .node-preview-container {
    background: rgba(22, 22, 23, .9);
  }
}

.gin--high-contrast-mode .node-preview-container {
  background: var(--gin-bg-app);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.node-preview-container .node-preview-backlink,
.node-preview-container .node-preview-form-select label {
  color: var(--gin-color-text-light);
}

.node-preview-container .node-preview-backlink {
  position: relative;
  text-decoration: none;
}

[dir="ltr"] .node-preview-container .node-preview-backlink {
  padding-left: 2em;
}

[dir="rtl"] .node-preview-container .node-preview-backlink {
  padding-right: 2em;
}

.node-preview-container .node-preview-backlink::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  width: var(--gin-icon-size-toolbar-secondary);
  height: var(--gin-icon-size-toolbar-secondary);
  transform: translateY(-50%);
  background-color: var(--gin-icon-color);
  -webkit-mask-image: url("../../media/sprite.svg#backtosite-view");
          mask-image: url("../../media/sprite.svg#backtosite-view");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-position: center center;
          mask-position: center center;
}

[dir="ltr"] .node-preview-container .node-preview-backlink::before {
  left: 0;
}

[dir="rtl"] .node-preview-container .node-preview-backlink::before {
  right: 0;
}

.node-preview-container .node-preview-form-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: var(--gin-spacing-m) 0;
  margin: 0 var(--gin-spacing-m);
  height: 100%;
}

@media (min-width: 48em) {
  .node-preview-container .node-preview-form-select {
    margin: 0 var(--gin-spacing-xl);
  }
}

@media (min-width: 61em) {
  .node-preview-container .node-preview-form-select {
    margin: 0 min(5vw, var(--gin-spacing-xxl));
  }
}

[dir="ltr"] .node-preview-container .node-preview-form-select label {
  padding-right: .5em;
}

[dir="rtl"] .node-preview-container .node-preview-form-select label {
  padding-left: .5em;
}

.node-preview-container .js-hide {
  display: none;
}

.node-preview-container ~ .gin-secondary-toolbar--frontend {
  display: none;
}

