﻿[v-cloak] {
    display: none;
}

/* 购物车web端 */
.cart-web {
    width: 100%;
    height: auto;
    background: #e8e2e0;
}

/* 购物车移动端 */
.cart-phone {
    width: 100%;
    height: calc(100vh - 135px);
    background: #e8e2e0;
}

/* 购物车头部 */
.cart-header {
    width: 100%;
    height: 58px;
    padding: 11px 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
}

.cart-header .cart-header-contain {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cart-header .cart-header-contain .cart-back-btn{
    font-size:20px;
}

/* 购物车标题 */
.cart-header .cart-header-contain .cart-title {
    font-size: 18px;
    font-weight: 500;
    margin:0 10px;
    padding-top: 3px;
}

.cart-contain {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
}

.cart-table-container {
    width: 80%;
    border-radius: 25px;
    padding: 10px 30px;
    background: #fff;
    min-height: calc(100vh - 140px);
    position: relative;
}

.cart-filter-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.cart-filter-bar .switch-cart {
    overflow: hidden;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    height: 72px;
    line-height: 72px;
}

.cart-filter-bar .cart-sum {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.cart-sum .total-symbol {
    font-weight: 400;
    margin-right: 12px;
    font-size: 24px;
    color: #ff5000;
}

/* 激活状态的支付按钮 */
.cart-sum .pay-btn-active {
    width: 74px;
    height: 42px;
    line-height: 42px;
    color: #fff;
    background: #ff5000;
    border-radius: 21px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

/* 未激活状态的支付按钮 */
.cart-sum .pay-btn-inactive {
    width: 74px;
    height: 42px;
    line-height: 42px;
    color: #fff;
    background: #a3a3a3;
    border-radius: 21px;
    text-align: center;
    cursor: not-allowed;
    text-decoration: none;
    font-size: 16px;
}

.inactive-btn {
    background: #aaa !important;
    color: #fff;
    cursor: not-allowed !important;
}

.cart-list-content {
    height: calc(100vh - 300px);
    overflow-y: auto;
}

.cart-tooltip{
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}
.cart-item-cover{
    width: 150px;
    height: 170px;
    position: relative;
}

.cart-item-cover .cover-no-1{
    width: 100px;
    height: 150px;
    z-index: 100;
    position: absolute;
    left: 0;
    /*top: 8px;*/
    background: #898383;
}

.cart-item-cover .cover-no-2{
    width: 100px;
    height: 150px;
    z-index: 99;
    position: absolute;
    left: 5px;
    top: 13px;
    background: #898383;
}

.cart-item-cover .cover-no-3{
    width: 100px;
    height: 150px;
    z-index: 98;
    position: absolute;
    left: 10px;
    top: 18px;
    background: #898383;
}

.course-book-img-cover {
    width: 100px; 
    height: 150px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size:cover;
}

.course-book-color-cover {
    width: 100px;
    height: 150px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.course-book-title {
    font-size: 18px;
    text-align: center;
    line-height: 25px;
}

.course-book-sub-title {
    font-size: 11px;
    margin-top: 5px;
}

/* 购物车底部栏 */
.cart-filter-bar-bottom {
    width: 95%;
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 8px;
    background: #fff;
    z-index: 999;
}

.cart-filter-bar-bottom .bar-bottom-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 全选 */
.cart-filter-bar-bottom .all-check {
    overflow: hidden;
    color: #000;
    height: 72px;
    line-height: 72px;
    font-size: 12px;
}

.cart-filter-bar-bottom .all-check .all-check-checkbox {
    margin-right: 10px;
}

/* 全部删除 */
.cart-filter-bar-bottom .all-del {
    margin-left: 20px;
}

.cart-filter-bar-bottom .cart-sum {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.cart-sum .pay-text {
    margin: 0 12px;
}

.cart-sum .total-text {
    margin: 0 0 0 12px;
}


.cart-box {
    padding: 10px 0;
    height: 100%;
    overflow-y: auto;
}

.cart-header .cart-header-contain .cart-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid orange;
    border-radius: 50%;
    background: orange;
    color: #fff!important;
    font-size: 17px;
    cursor: pointer;
}

.cart-header .cart-header-contain .cart-icon a{
    color: #fff!important;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-list-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 20px;
    background-color: #fff;
    padding: 8px 0;
}

.cart-list-item .cart-item-info {
    display: flex;
    align-items: center;
    padding: 0 0 0 15px;
    width: 100%;
}

.cart-list-item .cart-item-left {
    width: 180px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cart-list-item .left-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8%;
}

/* 单个选择按钮 */
.cart-list-item .left-check .checkbox {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #b9b9b9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 单个选择按钮选中 */
.cart-list-item .left-check .checkbox .selected-check {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: red;
}


.cart-item-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    width: calc(100% - 100px);
}

.cart-item-opera {
    display: flex;
    align-items: center;
}

/* 删除按钮 */
.del-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 17px;
    color: red;
}
.cart-item-right .cart-item-info-content {
    margin-right: 20px;
    width: 100%;
}

.cart-item-right .goods-name {
    width: 100%;
    font-size: 15px;
    color: #333333;
    margin-top: 3px;
    text-align: left;
    line-height: 25px;
    font-weight: 500;
}

.cart-item-right .numbers {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
}

.cart-item-right .numbers .price {
    font-size: 14px;
    line-height: 25px;
    color: #ff0000;
}

.cart-item-right .unit {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    font-size: 14px;
}


.bottom-all {
    height: 50px;
    width: 100%;
    padding: 0 2%;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fdfdfd;
    z-index: 11;
    border-top: 1px solid #f8f8f8;
}

.bottom-all .left {
    float: left;
    width: 28vw;
    font-size: 14px;
    position: relative;
}


.bottom-all .left .text {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-52%);
    color: #333333;
}

.bottom-all .del-text {
    color: red;
    position: absolute;
    left: 100px;
    top: 47%;
    transform: translateY(-52%);
    white-space: nowrap;
}

.bottom-all .left-check {
    padding-left: 8px;
    flex-shrink: 0;
    height: 50px;
    margin-right: 8px;
    align-items: center;
    position: relative;
    display: flex;
}


.bottom-all .rights {
    width: 40vw;
    line-height: 50px;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.bottom-all .settlement-inactive {
    padding: 0 4px;
    border-radius: 16px;
    width: 18vw;
    height: 35px;
    line-height: 35px;
    color: #ffffff;
    font-size: 17px;
    text-align: center;
    margin-right: 20px;
    cursor: not-allowed;
    background-color: #a3a3a3;
}

.bottom-all .settlement-active {
    padding: 0 4px;
    border-radius: 16px;
    width: 18vw;
    height: 35px;
    line-height: 35px;
    color: #ffffff;
    font-size: 17px;
    text-align: center;
    margin-right: 20px;
    background-color: #ff5000;
}

/* 购物车为空的样式 */
.cart-no-data {
    padding-top: 20px;
    text-align: center;
}

.total-pay-count {
    font-size: 24px;
    color: #ff5000;
}

@media (max-width: 700px) {
    /* 弹窗 */
    .el-message-box {
        width: 300px !important;
    }

    /* el-input-number样式 */
    .el-input-number {
        width: 100px !important;
        line-height: 28px !important;
    }
    .el-input-number .el-input__inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .el-input__inner {
        height: 30px !important;
    }
    .el-input-number__decrease,
    .el-input-number__increase {
        width: 20px !important;
    }

    .loginPane{
        width: 88vw!important;
    }

    .cart-tooltip{
        max-height: 150px;
        overflow-y: auto;
        padding-right: 10px;
    }
    .cart-item-cover{
        width: 100px;
        height: 150px;
        position: relative;
    }

    .cart-item-cover .cover-no-1{
        width: 80px;
        height: 120px;
        z-index: 100;
        position: absolute;
        left: 0;
        top: 8px;
        background: #898383;
    }

    .cart-item-cover .cover-no-2{
        width: 80px;
        height: 120px;
        z-index: 99;
        position: absolute;
        left: 5px;
        top: 13px;
        background: #898383;
    }

    .cart-item-cover .cover-no-3{
        width: 80px;
        height: 120px;
        z-index: 98;
        position: absolute;
        left: 10px;
        top: 18px;
        background: #898383;
    }

    .course-book-img-cover {
        width: 80px;
        height: 120px;
        background-repeat: no-repeat;
        background-position: center center;
        background-size:cover;
    }

    .course-book-color-cover {
        width: 80px;
        height: 120px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .course-book-title {
        font-size: 18px;
        text-align: center;
        line-height: 25px;
    }

    .course-book-sub-title {
        font-size: 11px;
        margin-top: 5px;
    }

}

@media (max-width: 320px) {
    .cart-list-item .cart-item-left{
        width: 150px;
    }
    .cart-item-right {
        width: calc(100% - 10px);
    }
    .cart-tooltip{
        max-height: 150px;
        overflow-y: auto;
        padding-right: 10px;
    }
    .cart-item-cover{
        width: 60px;
        height: 90px;
        position: relative;
    }

    .cart-item-cover .cover-no-1{
        width: 50px;
        height: 75px;
        z-index: 100;
        position: absolute;
        left: 0;
        top: 8px;
        background: #898383;
    }

    .cart-item-cover .cover-no-2{
        width: 50px;
        height: 75px;
        z-index: 99;
        position: absolute;
        left: 5px;
        top: 13px;
        background: #898383;
    }

    .cart-item-cover .cover-no-3{
        width: 50px;
        height: 75px;
        z-index: 98;
        position: absolute;
        left: 10px;
        top: 18px;
        background: #898383;
    }

    .course-book-img-cover {
        width: 50px;
        height: 75px;
        background-repeat: no-repeat;
        background-position: center center;
        background-size:cover;
    }

    .course-book-color-cover {
        width: 50px;
        height: 75px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .course-book-title {
        font-size: 15px;
        text-align: center;
        line-height: 25px;
    }

    .course-book-sub-title {
        font-size: 11px;
        margin-top: 5px;
    }
    

}