/*
 * Copyright 2015-2016 Imply Data, Inc.
 * Copyright 2017-2019 Allegro.pl
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../imports';

.modal {
  @include pin-full;

  .backdrop {
    @include pin-full;
    background: $black;
    opacity: 0.2;
  }

  .golden-center {
    @include pin-full;
    overflow-y: auto;
  }

  .modal-window {
    @extend %modal-cont;
    width: 420px;
    padding: $modal-window-padding;
    background: $white;

    .modal-title {
      line-height: $modal-header-height;
      font-size: 17px;
      margin-bottom: 16px;

      .close {
        top: 0;
        right: 0;
        position: absolute;
        padding: 5px;
        cursor: pointer;
      }

      &:hover {
        svg path {
          @include css-variable(fill, icon-hover);
        }
      }

      svg {
        width: 19px;

        path {
          @include css-variable(fill, icon-light);
        }
      }
    }

    p {
      line-height: 17px;
      margin-bottom: 25px;
    }
  }

  .p-group {
    margin-bottom: 25px;

    p {
      margin-bottom: 18px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .button-bar {
    margin-top: 10px;

    button {
      margin-right: 8px;
    }
  }
}
