
// element colors
$layer-color: rgba(0, 0, 0, 0.5) !default; // the fullsize layer, when access is blocked

.cookie-consent-modal {
  padding-top: 0;
  position: fixed;
  width: auto;
  height: auto;
  z-index: 1000;

  .modal-content-wrap {
    position: fixed;
    bottom: 0;
    margin: 1rem;

    &.right {
      right: 0;
    }

    &.left {
      left: 0;
    }

    .modal-content {
      padding: 0;
      // width: 95%;
      max-width: 700px;
      border-radius: 1.5rem;

      .modal-header {
        padding: 1rem;

        h3 {
          margin: 0;
          font-size: 130%;
          font-weight: 700;
          position: relative;
          top: 0.2rem;
        }
      }

      .modal-body {
        padding: 0 1rem;
        line-height: 1.3;

        a {
          color: $primary;

          &:hover {
            color: $link-hover-color;
          }
        }
      }

      .modal-footer {
        padding: 1rem 0.5rem 0.5rem 0.5rem;

        .buttons {
          display: flex;
          justify-content: flex-end;
          flex-wrap: wrap;

          .btn {
            margin-left: 0.5rem;

          }
        }
      }
    }
  }

  @media screen and (max-width: 620px) {
    .btn {
      width: 100%;
    }
  }

  &.block-access {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5); // the fullscreen background layer
    padding-top: 20vh; // modals vertical position in desktop mode
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    @media screen and (max-width: 620px) {
      padding-top: 0;
    }

    .modal-content-wrap {
      position: relative;
      margin: 2.5% auto;

      .modal-content {
        border: none;
        margin: 0 auto;
      }

      bottom: auto;
      width: 95%;
    }
  }
}
