@import 'variables';

.BomModalComponent {
  font-size: 14px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  background: $white;
  color: $black;
  box-shadow: 0 0 10px rgba($black, 0.6);
  padding: 20px;
  text-align: left;
  overflow: hidden;
  min-width: 400px;

  @media (min-width: $tablet-breakpoint) {
  }

  a {
    color: $black;
    text-decoration: underline;
  }

  .no-boxshadow & {
    outline: 1px solid $silver;
  }

  & > div {
    position: relative;
  }

  h3 {
    font-size: 18px;
  }

  &-header {
    font-weight: $font-bold;

    > h3 {
      font-size: 18px;
    }
  }

  &-title {
    top: 18px;
    left: 40px;
    position: relative;
  }

  &-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
  }

  &--isOpen.BomModalComponent,
  &--isOpen.BomModalComponent-overlay {
    opacity: 1;
    visibility: visible;
  }

  .BomModal-container {
    padding-bottom: 20px;
    overflow: hidden;
  }

  .BomModalComponent-buttons {
    overflow: hidden;
    float: right;
    width: 100%;

    button {
      width: calc(50% - 7.5px);
      max-width: none;
      vertical-align: bottom;
      float: left;
      transition: none;

      &:first-child {
        margin-right: 15px;
      }
    }
  }

  .BomModal-error {
    font-size: 13px;
    color: $red;
  }

  .BomModalButton {
    display: inline-block;
    min-width: 49%;
    width: 49%;
    margin-top: 0;
    background: $black;
    color: $white;
    text-transform: uppercase;
    line-height: 2;
    border: 2px solid $black;
    &:first-child {
      margin-left: 0;
    }

    &--left {
      float: left;
    }

    &--right {
      float: right;
    }

    &.Button--red {
      background: $red;
      border-color: $red;
    }

    &.Button--green {
      color: $white;
      background-color: $green;
      border-color: $green;
    }

    &.Button--white {
      color: $black;
      border-color: $black;
      background-color: $white;
    }

    :first-child {
      margin-left: 0;
    }
  }

  .BomModal-close {
    position: absolute;
    right: 0px;
    font-size: 12px;
    font-weight: $font-bold;
    opacity: 0.5;
    color: $black;

    &:hover {
      opacity: 1;
    }
  }

  &--small {
    width: 490px;
  }

  &--large {
    width: 650px;

    .BomModalComponent-buttons {
      width: 350px;
    }
  }

  .BomModal-message span {
    display: block;
    margin-bottom: 5px;
  }

  .BomModal-dismissable {
    clear: both;
    padding: $gutter 0 0;
    font-size: $font-size-s;

    input,
    label {
      cursor: pointer;
    }
  }
}
