/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * Presentational styles for Drupal dialogs.
 */

.ui-dialog {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0
0
1rem
-0.25rem
#222330;
}

.ui-dialog:focus {
  outline: 2px
dotted
transparent;
  box-shadow: 0
0
0
3px
#26a769;
}

@media all and (max-width: 48em) { /* 768px */
  .ui-dialog:not(.ui-dialog-off-canvas) {
    min-width: 92%;
    max-width: 92%;
  }
}

.ui-dialog .ui-dialog-titlebar {
  position: relative;
  box-sizing: border-box;
  padding: 1rem 4rem 1rem 1.5rem; /* LTR */
  color: #fff;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background: #222330;
  line-height: 2rem;
}

[dir="rtl"] .ui-dialog .ui-dialog-titlebar {
  padding-right: 1.5rem;
  padding-left: 4rem;
}

.ui-dialog .ui-dialog-title {
  -webkit-font-smoothing: antialiased;
  font-size: 1.424rem;
  font-weight: bold;
}

.ui-dialog .ui-dialog-titlebar-close {
  position: absolute;
  top: 50%;
  right: 0; /* LTR */
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  margin: 0 1.5rem;
  padding: 0;
  transition: all 0.1s;
  transform: translateY(-50%);
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
}

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

.ui-dialog .ui-dialog-titlebar-close:hover {
  border-color: #fff;
}

.ui-dialog .ui-dialog-titlebar-close:focus {
  border-color: #26a769;
  outline: 2px
dotted
transparent;
  box-shadow: none;
}

.ui-dialog .ui-icon.ui-icon-closethick {
  width: 100%;
  height: 100%;
  margin: 0;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28px' height='28px' viewBox='0 0 28 28'%3E%3Cpath stroke='%23D4D4D8' stroke-width='1.5' d='M19,9L9,19'/%3E%3Cpath stroke='%23D4D4D8' stroke-width='1.5' d='M19,19L9,9'/%3E%3C/svg%3E%0A") 50% 50% / 100% 100% no-repeat;
}

.ui-dialog > .ui-dialog-content {
  overflow: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  color: #222330;
  background: #fff;
}

/**
 * @todo it should not be necessary to specify not(.views-ui-dialog) after
 *   https://drupal.org/node/3066006
 */

.ui-dialog:not(.views-ui-dialog) > .ui-dialog-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.ui-dialog > .ui-dialog-buttonpane {
  color: #222330;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  background: #f3f4f9;
}

.ui-dialog-buttonpane .ui-dialog-buttonset {
  justify-content: flex-end;
  margin: 0 0.75rem;
}

.ui-dialog .ui-dialog-buttonpane .ui-button-text-only .ui-button-text {
  padding: 0;
}

.ui-dialog .ui-dialog-content {
  position: static;
}

/* Form action buttons are moved in dialogs. Remove empty space. */

.ui-dialog .ui-dialog-content .form-actions {
  margin: 0;
  padding: 0;
}

/**
 * Off-canvas styles.
 */

.ui-dialog.ui-dialog-off-canvas .ui-widget-content.ui-dialog-content {
  background: none;
}

@media screen and (-ms-high-contrast: active) {
  .ui-dialog .ui-icon.ui-icon-closethick {
    background: none;
  }

  .ui-dialog .ui-icon.ui-icon-closethick::before,
  .ui-dialog .ui-icon.ui-icon-closethick::after {
    position: relative;
    display: block;
    width: 50%;
    height: 100%;
    content: "";
  }
  .ui-dialog .ui-icon.ui-icon-closethick::before {
    top: -40%;
    left: 60%;
    transform: rotate(45deg);
    border-bottom: 2px white solid;
  }
  .ui-dialog .ui-icon.ui-icon-closethick::after {
    top: -78%;
    left: 60%;
    transform: rotate(-45deg);
    border-top: 2px white solid;
  }
}
