body.is-fixed {
  overflow: hidden;
}

body .ui-widget-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
}

body .ui-dialog {
  --jui-dialog-border-radius: 8px;
  --jui-dialog-title-bg-color: #fff;
  --jui-dialog-title-color: #363636;
  --jui-dialog-title-font-size: 22px;
  --jui-dialog--focus-outline: none;
  --jui-dialog--focus-box-shadow: none;
  --jui-dialog-box-shadow: none;
}

body .ui-dialog .ui-dialog-titlebar {
  border-bottom: 1px solid #E5E5E5;
  padding: 20px var(--jui-dialog-close-button-reserved-space) 20px 32px;
}

body .ui-dialog .ui-dialog-title {
  font-weight: 500;
}

body .ui-dialog > .ui-dialog-buttonpane {
  background: #fff;
}

body .ui-dialog-buttonpane .ui-dialog-buttonset {
  gap: 16px;
  padding: 0 32px 24px;
  margin: 0;
  justify-content: flex-end;
}

body .ui-dialog-buttonpane .ui-dialog-buttonset > .button:first-child:last-child {
  width: 240px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

body .ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
  width: 16px;
  height: 16px;
  background: url("../../../images/icon/close-dark.svg") no-repeat 50% 50%;
  background-size: 32px;
  border-width: 0;
}

body .ui-dialog .ui-dialog-titlebar-close .ui-button-icon {
  display: none;
}

body .ui-dialog .ui-dialog-content {
  padding: 20px 32px;
}

body .ui-dialog .form-control {
  max-width: 100%;
  width: 100%;
}

/* Alpine component. */
.dialog {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-areas: "main";
  z-index: 100;
  overflow: auto;
}

.dialog__overlay {
  grid-area: main;
  background: rgba(0, 0, 0, 0.3);  
}

.dialog__window {
  display: flex;
  flex-direction: column;
  gap: 32px;
  grid-area: main;
  padding: 24px;
  border-radius: 8px;
  background-color: #fff;
  place-self: center;
  min-width: 320px;
  width: 560px;
  max-width: 100vw;
  margin-top: 80px;
  margin-bottom: 80px;
}

.dialog__titlebar {
  display: flex;
  gap: 24px;
}

.dialog__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.dialog__close {
  margin-left: auto;
  width: 12px;
  height: 12px;
  background: url("../../../images/icon/close-dark.svg") no-repeat 50% 50%;
  background-size: 32px;
  border-width: 0;
  cursor: pointer;
}

.dialog__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
