$bg_voucher: #FE6161;
$bg_free: #E0B97B;
$bg_expand: #8361FE;
.coupon {
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0px 2px 12px -8px;
    border-radius: 3px;

    .coupon-info {
        position: relative;
        height: 95px;
        padding: 10px 15px;
        color: $white;
        border-radius: 3px;

        .type {
            font-size: $font_14;
        }

        .denomination {
            font-size: $font_26;
            line-height: $font_26;
            text-align: center;

            span {
                font-size: $font_12;
            }
        }

        .course-title {
            width: 68.37%;
            margin: 0 auto 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: $font_16;
            text-align: center;
        }

        .expire {
            text-align: center;
            font-size: $font_12;
            line-height: $font_16;
        }

        &.coupon-type1 {
            background: $bg_voucher;
        }

        &.coupon-type2 {
            background: $E0B97B;
        }

        &.coupon-type4 {
            background: $bg_expand;
        }

        &.invalid {
            background: $color_999;
        }


        & > .iconfont {
            $size: 22px;
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            width: $size;
            height: $size;
            display: none;
        }

        .check {
            display: block;
        }

        ul {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;

            li {
                $dot_width: 10px;
                width: $dot_width;
                height: $dot_width;
                border-radius: 50%;
                background: $white;
                transform: translateY(50%);
            }
        }


        .progress-container {
            width: 299px;
            margin: 0 auto;

            .denomination {
                font-size: 15px;
                line-height: 1.3em;
                color: #F8E71C;
                span{
                    transform: scale(0.9);
                }
            }

            .progress-bar-container {
                position: relative;
                height: 7px;
                background: #5C2FFF;
                border-radius: 4px;
                overflow: hidden;
                margin-bottom: 6px;
                .progress-bar {
                    position: absolute;
                    left: 0;
                    top: 0;
                    height: 100%;
                    background: #F8E71C;
                    border-radius: 4px;
                }
            }

            .money {
                display: flex;
                justify-content: space-between;
            }
        }

    }

    .coupon-des {
        padding: 10px 15px;
        background: $white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0 0 3px 3px;

        .limit {
            width: 63.81%;
            font-size: $font_12;
            vertical-align: middle;
            color: $color_666;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .use {
            display: inline-block;
            padding: 3px 8px;
            font-size: $font_12;
            color: $border_f31;
            border: 1px solid $border_f31;
            border-radius: 10px;
            background: transparent;
            -webkit-appearance: none;
        }

        .stop-expanding {
            padding: 3px 8px;
            border: 1px solid #FF3131;
            border-radius: 10px;
            -webkit-appearance: none;
            background: transparent;
            color: #FF3131;
            font-size: 10px;
        }
    }
}
