
.ui-dialog .ui-dialog-titlebar {
  position: relative;
  padding: var(--gin-spacing-m) var(--gin-spacing-l);
  border: 0 none;
  border-radius: var(--gin-border-m) var(--gin-border-m) 0 0;
  background: #1b1b1d;
  line-height: 1.2;
}

[dir="ltr"] .ui-dialog .ui-dialog-titlebar-close {
  right: 0;
  left: auto;
}

[dir="rtl"] .ui-dialog .ui-dialog-titlebar-close {
  right: auto;
  left: 0;
}

.ui-dialog .ui-dialog-titlebar-close {
  position: absolute;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin: 0 var(--gin-spacing-m);
  transform: translateY(-50%);
  opacity: .8;
  border: none;
  background: none;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
  opacity: 1;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon-closethick {
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
  background: #fff;
  -webkit-mask-image: url("/themes/contrib/gin/dist/media/sprite.svg#close-view");
  mask-image: url("/themes/contrib/gin/dist/media/sprite.svg#close-view");
  -webkit-mask-size: var(--gin-icon-size-close) var(--gin-icon-size-close);
  mask-size: var(--gin-icon-size-close) var(--gin-icon-size-close);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-position: center center;
}
.ui-dialog .ui-widget-content.ui-dialog-buttonpane {
  padding: var(--gin-spacing-s) var(--gin-spacing-l);
  border-top: 1px solid var(--gin-border-color-layer);
  border-bottom-right-radius: var(--button-border-radius);
  border-bottom-left-radius: var(--button-border-radius);
  background: var(--color-bg-slight-contrast);
}


.ui-widget-overlay.ui-front {
  opacity: 0.8;
  background: var(--color-neutral-canvas);
}

.ui-dialog.ui-widget,
.ui-dialog.ui-widget .ui-dialog-content {
  color: unset;
  font-family: unset;
}

.ui-dialog.ui-widget:not(.ui-dialog-off-canvas) {
  border-radius: 2px;
}

.ui-dialog {
  box-shadow: 0 0 0.5rem 0.25rem rgba(0, 0, 0, 0.2);
}

.ui-dialog.ui-widget .ui-dialog-titlebar {
  padding: 0.5rem 1.25rem;
  color: var(--color-text-inverted);
  border-radius: var(--button-border-radius) var(--button-border-radius) 0 0;
  background-color: var(--color-interaction);
}
.ui-dialog.ui-widget .ui-widget-content.ui-dialog-content {
  padding: 1.25rem;
  border: 1px solid var(--color-interaction);
  border-radius: 0 0 var(--button-border-radius) var(--button-border-radius);
  background: var(--color-bg-light);
}
.ui-dialog.ui-widget .ui-dialog-content .form-actions {
  margin: 1.25rem 1.25rem 0;
  padding-bottom: 1.25rem;
}
.ui-dialog.ui-widget select,
.ui-dialog.ui-widget input,
.ui-dialog.ui-widget button {
  font-family: inherit;
}

:root {
  --jui-dialog-z-index: 1260;
  --jui-dialog-title-font-size: var(--font-size-default);
  --jui-dialog-border-radius: var(--button-border-radius);
  --gin-icon-size-close: 20px;
  --gin-border-color-layer: rgba(0, 0, 0, .08);
  --gin-spacing-s: .75rem;
  --gin-spacing-m: 1rem;
  --gin-spacing-l: 1.5rem;
}

