/* -------------------------------------------
    Mini Popup
---------------------------------------------- */


.minipopup-area {
    position: fixed;
    display: flex;
    flex-direction: column-reverse;
    #{$left}: 30px;
    bottom: 30px;
    z-index: 6000;
}

.minipopup-box {
    width: 30rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--alpha-change-color-light-1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    opacity: 0;
    transition: opacity .4s, transform .4s ease-out;
    transform: translateX(if-ltr(-200%, 200%));
    font-size: 14px;
    line-height: 1.4;

    &.show {
        opacity: 1;
        transform: translateX(0);
    }

    .product {
        font-size: 1.3rem;

        @include if-rtl {
            flex-flow: row;
        }
    }

    figure.product-media {
        flex-basis: 8rem;
        max-width: 8rem;
        margin-#{$right}: 1.6rem;
    }

    div.product-details {
        max-width: calc(100% - 9.2rem);
    }

    a.product-title {
        display: block;
        color: var(--alpha-change-color-dark-1);
        font-size: 1.4rem;
        margin-bottom: 5px;

        @include text-block();

        &:hover {
            color: var(--alpha-primary-color);
        }
    }

    figure {
        max-width: 9rem;
    }

    .btn {
        display: block;
        width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        font-size: 1.2rem;
        padding: 1.1rem 1.9rem;

        ~.btn {
            margin-#{$left}: .7rem;
        }
    }

    .btn-rounded {
        border-radius: var(--alpha-border-radius);
    }
}

.minipopup-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.minipopup-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.6rem;
}