/* -------------------------------------------
    Mini Popup
---------------------------------------------- */

.minipopup-area {
  position: fixed;
  display: flex;
  flex-direction: column-reverse;
  #{$left}: 30px;
  bottom: 30px;
  z-index: 6000;
}
.minipopup-box {
  width: 320px;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s ease-out;
  transform: translateX(if-ltr(-200%, 200%));
  font-size: 14px;
  &.show {
    opacity: 1;
    transform: translateX(0);
  }

  .product {
    display: flex;
    align-items: center;
    font-size: 13px;

    @include if-rtl {
      flex-flow: row;
    }
  }

  figure.product-media {
    flex-basis: 80px;
    max-width: 80px;
    margin-#{$right}: 12px;
  }

  div.product-details {
    max-width: calc(100% - 92px);
  }

  a.product-title {
    display: block;
    margin-bottom: 8px;
    color: var(--alpus-dark-color, $dark-color);
    font-size: 14px;
    line-height: 1.43;

    @include text-block();
  }

  figure {
    max-width: 90px;
  }

  .btn {
    width: 100%;
    min-width: 125px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    + .btn {
      margin-#{$left}: 5px;
    }
  }
}
.minipopup-title {
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 600;
}
.minipopup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  .btn.btn-sm {
    font-size: 12px;
    padding: 10px 18px;
  }
  .btn.btn-dark:hover {
    color: var(--alpus-dark-color, #333);
    border-color: var(--alpus-dark-color, #333);
    background-color: #fff;
  }
}
