.dcl.close,
.ui.modal > .dcl.close {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: var(--secondary-on-modal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: background-color 0.2s ease-in-out;
  padding: 0px;
}

.dcl.close:hover {
  background-color: var(--secondary-on-modal-hover);
}

.dcl.close .close-icon {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url(../../assets/close.svg);
  background-repeat: no-repeat;
  background-position: center;
  filter: var(--brightness);
}

.dcl.close.small {
  width: 16px;
  height: 16px;
}

.dcl.toast .dcl.close {
  width: 24px;
  height: 24px;
}

.dcl.toast .dcl.close .close-icon {
  background-size: 12px;
}

.dcl.close.small .close-icon {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url(../../assets/close-small.svg);
  background-repeat: no-repeat;
  background-position: center;
  filter: var(--brightness);
}

.ui.modal .dcl.close {
  position: absolute;
  right: 24px;
  top: 24px;
}

.ui.modal > :first-child:not(.icon).dcl.close {
  /* Override semantic's crazy class which adds a border radius */
  border-radius: 100%;
}

.ui.popup .dcl.close {
  margin-left: 12px;
}
