$bg_type1: #FE6161;
$bg_type2: #E0B97B;
.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;
        }

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

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

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

        &.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%);
            }
        }
    }

    .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;
        }
    }
}