.ui-dialog {
  max-width: calc(100vw - 30px);
  border-radius: 1.5rem;
}

.ui-dialog.ui-widget-content {
  border: none;
}

.ui-widget-header {
  background: none;
  border: none;
}

.ui-widget-content {
  border: none;
  overflow: auto;
}

.ui-dialog-titlebar-close {
  width: 16px;
  height: 16px;
  background-image: url(../../images/close.svg);
  background-color: unset;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  position: absolute;
  top: 24px;
  
  right: 24px;
  z-index: 10;
}

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

.ui-widget-overlay {
  background: #000;
  opacity: .5;
  z-index: 1040;
}

.ui-widget {
  font-family: inherit;
  font-size: inherit;
}

