// Display Flex
@mixin display() {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

// Flex Wrap
@mixin flex-wrap( $args ) {
    -ms-flex-wrap: $args;
    -webkit-flex-wrap: $args;
    flex-wrap: $args;
}

// Flex Direction
@mixin flex-direction( $args ) {
    -webkit-flex-direction: $args;
    flex-direction: $args;
}

// Align Items
@mixin align-items( $args ) {
    -webkit-align-items: $args;
    align-items: $args;
}

// Justify Content
@mixin justify-content( $args ) {
    -webkit-justify-content: $args;
    justify-content: $args;
}

// Transition
@mixin transition( $args ) {
    -webkit-transition: $args;
    -moz-transition: $args;
    -ms-transition: $args;
    -o-transition: $args;
    transition: $args;
}

/*------------------------------------------------------------------
Price List
-------------------------------------------------------------------*/
.oew-price-list {
    .oew-price-list-item {
        @include display();
        @include align-items( center );
    
        &:not(:last-child) {
            margin-bottom: 15px;
        }
    }

    .oew-price-list-text {
        @include flex-wrap( wrap );
        -webkit-box-flex: 1;
        -webkit-flex-grow: 1;
        -ms-flex-positive: 1;
        -moz-box-flex: 1;
        flex-grow: 1;
    }

    .oew-price-list-header {
        @include display();
        @include flex-wrap( wrap );
        @include align-items( center );
        @include justify-content( space-between );
        font-size: 16px;
        font-weight: 600;
    }

    &.no-separator .oew-price-list-header {
        display: block;
    }

    .oew-price-list-image {
        padding-right: 18px;
        width: 150px;
        min-width: 150px;

        img {
            width: 100%;
        }
    }

    .oew-price-list-title {
        color: #333;
        max-width: 80%;
    }

    .oew-price-list-description {
        color: #999999;
        font-size: 14px;
        margin: 10px 0 0;
    }

    .oew-price-list-separator {
        border-bottom: 1px dotted #b5b5b5;
        flex: 1;
        -webkit-box-flex: 1;
        -webkit-flex-grow: 1;
        -ms-flex-positive: 1;
        -moz-box-flex: 1;
        flex-grow: 1;
        margin: 0 10px;
        height: 0;
    }

    .oew-price-list-price-wrap {
        display: inline-block;
    }

    &.oew-price-list-inline .oew-price-list-price-wrap {
        margin-top: 10px;
    }

    .oew-price-list-price {
        padding: 5px 10px;
        color: #13aff0;
        border: 1px dotted #13aff0;
        width: 50px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 2px;
        text-align: center;
        @include transition( all .3s ease );
    }

    a:hover .oew-price-list-price {
        background-color: #13aff0;
        color: #fff;
    }

    .oew-price-list-discount-price {
        text-decoration: line-through;
        color: #ccc;
    }
}

/* RTL */
body.rtl {
    .oew-price-list {
        .oew-price-list-image {
            padding-left: 25px;
            padding-right: 0;
        }

        .oew-price-list-price {
            padding-right: 30px;
            padding-left: 0;
        }
    }
}

/*------------------------------------------------------------------
Responsive
-------------------------------------------------------------------*/
@media only screen and (max-width: 480px) {
    .oew-price-list {
        .oew-price-list-item {
            display: block;
        }

        .oew-price-list-image {
            padding: 0;
        }

        .oew-price-list-title {
            font-size: 14px;
            max-width: 100%;
        }

        .oew-price-list-description {
            font-size: 12px;
        }
    }
}