@use '../../themes/styles/mixins' as *;

.dialog-window {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  position: fixed;
  background-color: var(--color-background-modal);

  @include applyBorderBox;

  &--disable {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: block;
  }

  &__content {
    width: 380px;
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 24px;
    border-radius: 4px;
    background-color: var(--main-background);
    box-shadow: 0 9px 15px 0 rgba(0, 0, 0, 0.04),
    0 9px 46px 0 rgba(0, 0, 0, 0.08);

    @media (max-width: 767px) {
      width: 300px;
    }
  }

  &__header {
    margin-bottom: 28px;
    padding: 0px !important;

    svg {
      fill: var(--main-text);
    }
  }

  &__close {
    width: 24px;
    height: 24px;
    fill: var(--main-text);
    cursor: pointer;
  }
}
