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

@supports ((-webkit-backdrop-filter: blur()) or (backdrop-filter: blur())) {
  .node-preview-container.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.node-preview-container {
  background: rgba(27, 27, 29, .98);
}

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

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

.gin--navigation .node-preview-container.node-preview-container {
  margin-inline-start: var(--gin-toolbar-x-offset);
  width: calc(100% - var(--gin-toolbar-x-offset));
}

.node-preview-container.node-preview-container .gin-layout-container {
  box-sizing: border-box;
}

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

.node-preview-container.node-preview-container .node-preview-backlink {
  all: revert;
  position: relative;
  padding-inline-start: 1.75em;
  text-decoration: none;
  font-weight: var(--gin-font-weight-normal);
  color: var(--gin-color-text-light);
  border-radius: var(--gin-border-xxs);
}

.node-preview-container.node-preview-container .node-preview-backlink:hover {
  color: var(--gin-color-primary-hover);
}

.node-preview-container.node-preview-container .node-preview-backlink:active {
  color: var(--gin-color-primary-active);
}

.node-preview-container.node-preview-container .node-preview-backlink::before {
  content: "";
  display: inline-block;
  position: absolute;
  inset-block-start: calc(50% - 1px);
  inset-inline-start: 0;
  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;
}

.node-preview-container.node-preview-container .form-item {
  all: revert;
}

.node-preview-container.node-preview-container .form-item__label {
  font-size: var(--gin-font-size-s);
  font-weight: var(--gin-font-weight-normal);
  color: var(--gin-color-title);
  margin: 0;
}

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

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

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

.node-preview-container.node-preview-container .node-preview-form-select label {
  padding-inline-end: .5em;
}

.node-preview-container.node-preview-container .form-element {
  all: revert;
  font-size: var(--gin-font-size-s);
  line-height: 1.5;
  color: var(--gin-color-text);
  background-color: var(--gin-bg-input);
  border: 1px solid var(--gin-border-color-form-element);
  border-radius: var(--gin-border-s);
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  .node-preview-container.node-preview-container .form-element {
    transition: var(--gin-transition);
  }
}

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

.node-preview-container.node-preview-container *:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--gin-color-focus-border), 0 0 0 4px var(--gin-color-focus);
}

