/* --------------- System Tabs  --------------- */
.layout-builder-form li.tabs__tab {
  display: inline-block;
  width: auto;
}

.layout-builder-form li.tabs__tab a {
  padding: 9px 2em;
}

/* Node title */
.layout-builder-form #block-nordea-theme-page-title {
  display: none;
}

/* Layout builder */
.layout-builder-form #edit-layout-builder-message {
  display: none;
}

.layout-builder-form .vertical-tabs {
  display: none;
}

body.path-node .ui-dialog #drupal-off-canvas .block-categories .js-layout-builder-category:first-child .js-layout-builder-block-link{
  list-style-type: none !important;
}

#block-frankly-theme-primary-local-tasks .node-layout-builder-form .form-actions
{
  right: calc(50% - 504px);
  left: auto;
  top: 0;
  right: calc(var(--ginSidebarWidth) + min(5vw, 64px));
  bottom: auto;
  width: auto;
  padding-left: 0;
  padding-right: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: 0.15s cubic-bezier(0.19, 1, 0.22, 1);
  transition: 0.15s cubic-bezier(0.19, 1, 0.22, 1);
  right: 0px;
  z-index: 102;
  position: absolute;
  /* bottom: 0; */
  /* left: 0; */
  /* display: -webkit-box; */
  display: -ms-flexbox;
  /* display: flex; */
  -ms-flex-wrap: wrap;
  /* flex-wrap: wrap; */
  /* width: 100%; */
  /* padding: 0 1rem; */
  /* background-color: var(--colorGinAppBackground); */
  /* -webkit-box-shadow: 0 -4px 10px rgba(0,0,0,0.1); */
  /* box-shadow: 0 -4px 10px rgba(0,0,0,0.1); */
  top: -225px;
}

#block-frankly-theme-primary-local-tasks .entity-content-form-revision-information {
  display: none;
}
#layout-builder-modal [id*="edit-settings-admin-label"] {
  font-size: 1.5rem;
  margin: 0.5rem 0 1.7rem 0!important;
}
#layout-builder-modal [id*="edit-settings-admin-label"] label {
  display: none!important;
}
[id*="edit-settings-block-form-field-background-color"]{
  display: flex;
  flex-direction: row;
  align-items: center;
}



[id*="edit-settings-block-form-field-background-color"] .form-item input:checked + .checkbox-toggle{
  border: 1px solid #003cc5;
}

[id*="edit-settings-block-form-field-background-color"] .form-item{
  margin-right: 80px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
[id*="edit-settings-block-form-field-background-color"] .form-item .form-radio{
  display: none;
}
[id*="edit-settings-block-form-field-background-color"] .form-item label{
  padding-top: 60px !important;
}


[id*="edit-settings-block-form-field-background-color"] > div:nth-child(1) {
  display: none !important;
}
[id*="edit-settings-block-form-field-background-color-bg1"] + .checkbox-toggle, [id*="edit-settings-block-form-field-background-color-p1"] + .checkbox-toggle,
[id*="edit-settings-block-form-field-background-color-none"] + .checkbox-toggle
{
  width: 50px;
  height: 50px;
  display: block !important;
  border-radius: 50%;
  border: 1px solid #ccc;
  position: absolute;
  pointer-events: none;
}
[id*="edit-settings-block-form-field-background-color-p1"] + .checkbox-toggle{
  background-color: #fff3ee;
}
[id*="edit-settings-block-form-field-background-color-bg1"] + .checkbox-toggle{
  background-color: #e5f2ff;
}
[id*="edit-settings-block-form-field-background-color-none"] + .checkbox-toggle{
  background-color: #ffffff;
}

.layout-builder-add-block textarea{
  width: 100%;

}


#block-frankly-theme-primary-local-tasks #edit-discard-changes, #edit-revert {

}

#block-frankly-theme-primary-local-tasks #block-frankly-theme-primary-local-tasks {
  margin-top: 90px;
}

#block-frankly-theme-primary-local-tasks #edit-submit
{
  border-radius: 6px;
  background-color: #0550e6;
  /* box-shadow: 0 0.125em 0.25em var(--colorGinPrimaryLightActive),0.1em 0.25em 0.5em var(--colorGinPrimaryLight),-0.25em -0.5em 1em var(--colorGinAppBackground); */
  padding: calc(1rem - 2px) calc(1.5rem - 2px);
  border: 2px solid var(--colorGinPrimary) !important;
  background-image: none;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1rem;
}


/* Layout builder sidebar */
body.path-node .ui-dialog #drupal-off-canvas .block-categories .js-layout-builder-block-link
{
  margin-top: 0;
  display: block;
  padding-top: 10px;
  color: var(--gin-color-primary);
  text-align: center;
  width:auto;
  margin:0;
}

body.path-node .ui-dialog #drupal-off-canvas .block-categories .js-layout-builder-category:first-child .js-layout-builder-block-link {
  /* width: 100%;
  text-align: left;
  margin: 0 !important;
  margin-left: 1rem !important; */
  display: list-item;          /* This has to be "list-item"                                               */
  list-style-type: square;       /* See https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type     */
  list-style-position: inside; /* See https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-position */
}

body.path-node .ui-dialog #drupal-off-canvas .block-categories .js-layout-builder-block-link:hover,
body.path-node .ui-dialog #drupal-off-canvas .block-categories img:hover{
  cursor: pointer;
}

body.path-node .ui-dialog #drupal-off-canvas .block-categories img {
  width: 100%;
  background: #fff;
  margin-bottom: 10px;
}

body.path-node #drupal-off-canvas .details-wrapper {
  display: flex;
  flex-wrap: wrap;
}

body.path-node .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-dialog-off-canvas.ui-dialog-position-side {
  width: 40% !important;
  max-width: 450px;
}


body.path-node .layout-container .js-layout-builder-filter {
  display: none;
}

.layout-builder-form #block-nordea-theme-breadcrumbs {
  display: none;
}

.layout-builder-form #layout-builder-content-preview
{
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
  width: 40px;
  height: 24px;
  clip: auto;
  margin-left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.layout-builder-form #edit-preview-toggle .checkbox-toggle
{
  line-height: 1.5rem;
  z-index: 0;
  display: inline-block !important;
  vertical-align: top;
  width: 40px;
  height: 24px;
  background-color: #909090;
  border-radius: 12px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.layout-builder-form .node-layout-builder-form #edit-actions {
  display: flex;
  flex-direction: row-reverse;
  margin-top: 1.4rem;
  margin-bottom: 1rem;
}

.layout-builder-form .node-layout-builder-form #edit-actions #edit-submit {
  margin-left: 2rem;
}

.layout-builder-form #edit-preview-toggle #layout-builder-content-preview:checked ~ .checkbox-toggle .checkbox-toggle__inner,
.layout-builder-form #edit-preview-toggle #layout-builder-content-preview:checked + .checkbox-toggle .checkbox-toggle__inner
{
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-clip-path: circle(24px at 50% 50%);
  clip-path: circle(24px at 50% 50%);
  border: 4px solid transparent;
  border-radius: 12px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.layout-builder-form #edit-preview-toggle .checkbox-toggle .checkbox-toggle__inner
{
  background-color: #26a769;
}

.layout-builder-form #edit-preview-toggle .checkbox-toggle .checkbox-toggle__inner:before
{
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 21px;
  -webkit-transform: translateX(-16px);
  transform: translateX(-16px);
  -webkit-transition: -webkit-transform .3s;
  transition: -webkit-transform .3s;
  transition: transform .3s;
  transition: transform .3s, -webkit-transform .3s;
  -webkit-transform: translateX(16px);
  transform: translateX(16px);
}

.layout-builder-form #layout-builder-content-preview ~ label
{
  z-index: 1;
  position: relative;
  padding-left: 4px;
  padding-bottom: 0;
  color: #222330;
}

.layout-builder-form > header {
  /*display: none;*/
}

#node-page-layout-builder-form .layout__region {
  overflow: hidden;
}

.layout .block-menu #toggle-expand {
  display: none;
}

/* hide ckeditor help */
.js-text-format-wrapper.text-format-wrapper .js-filter-wrapper.js-form-wrapper.form-wrapper.filter-wrapper {
  display: none;
}
/* hide ckeditor bottom attributes display */
.js-text-format-wrapper.text-format-wrapper .cke_bottom.cke_reset_all {
  display: none;
}

.layout-builder__region {
  outline: none !important;
  border: 2px dashed #2f91da;
  box-sizing: border-box;
}

.layout-builder-page .page-main {
  max-width: 98%;
  margin: auto;
}

body.layout-builder-page.path-node .ui-dialog .ui-dialog-title {
  display: block;
  padding: 9px 0 0 0!important;
  margin: 0!important;
}

[id*="format-help-about"], [id*="format-guidelines"] {
  display: none;
}

.layout-builder-discard-changes.confirmation {
    text-align: center;
}

.layout-builder-discard-changes.confirmation .form-actions {
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tabs.tabs--primary { /* gin font */
    font-family: Ginter, Inter, "Helvetica Neue", BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}
