@import '@unistylus/core';

.modal-alert {
  width: 270px;
  height: auto;
  pointer-events: none;
  background: var(--app-color-background);
  border-radius: var(--app-size-radius);

  .head, .foot {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .head {
    padding: p('*', .5);
    padding-left: p();
    border-bottom: 1px solid var(--app-color-background-shade);

    strong {
      font-weight: 700;
      flex: 1;
    }

    button {
      pointer-events: auto;
      padding: 0 p('*', .25);
      font-size: 1.5rem;
      line-height: 1;
    }
  }

  .body {
    padding: p();
    
    .content {
      display: flex;
      flex-wrap: nowrap;
      align-items: flex-start;
      width: 100%;

      p {
        margin: 0;
      }
  
      p:first-child {
        width: 3.5rem;
        
        img {
          width: 100%;
          padding-right: p();
        }
      }
  
      p:last-child {
        flex: 1;
      }
    }

    .form-control {
      margin-top: m();
      pointer-events: auto;
    }

    textarea {
      height: 100px;
    }
  }

  .foot {
    padding: 0 p('*', .5) p('*', .5);

    button {
      pointer-events: auto;
    }
    
    .left {
      flex: 1;
    }

    .right {}
  }
}

.basicLightbox {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0.01;
  transition: opacity 0.4s ease;
  z-index: 1000;
  will-change: opacity;
}
.basicLightbox--visible {
  opacity: 1;
}
.basicLightbox__placeholder {
  max-width: 100%;
  transform: scale(0.9);
  transition: transform 0.4s ease;
  z-index: 1;
  will-change: transform;
}
.basicLightbox__placeholder > iframe:first-child:last-child,
.basicLightbox__placeholder > img:first-child:last-child,
.basicLightbox__placeholder > video:first-child:last-child {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  max-width: 95%;
  max-height: 95%;
}
.basicLightbox__placeholder > iframe:first-child:last-child,
.basicLightbox__placeholder > video:first-child:last-child {
  pointer-events: auto;
}
.basicLightbox__placeholder > img:first-child:last-child,
.basicLightbox__placeholder > video:first-child:last-child {
  width: auto;
  height: auto;
}
.basicLightbox--iframe .basicLightbox__placeholder,
.basicLightbox--img .basicLightbox__placeholder,
.basicLightbox--video .basicLightbox__placeholder {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.basicLightbox--visible .basicLightbox__placeholder {
  transform: scale(1);
}
