.cat_wrapper {
    padding: 10px 0;
}
.cat_wrapper .table_wrapper {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    margin: 0;
}
.cat_wrapper .table_wrapper th {
    padding: 5px 16px;
    text-align: center;
}
.cat_wrapper .shop_list .shop_name {
    line-height: 36px;
    padding: 0 16px;
}
.cat_wrapper .table_wrapper .layui-table {
    border: none;
}
.cat_wrapper .table_wrapper .layui-table td {
    border-color: #fff;
}
.cat_wrapper .table_wrapper .layui-table tr.active {
    background: #FFF0F1;
}
.cat_wrapper .table_wrapper .layui-table tr.invalid {
    background: #f0f0f0;
}
.cat_wrapper td {
    padding: 16px;
    text-align: center;
    color: #666666;
    font-size: 14px;
}
.cat_wrapper .table_wrapper .layui-table tr.invalid td,
.cat_wrapper .table_wrapper .layui-table tr.invalid td .detail .tit,
.cat_wrapper tr.invalid td .detail .spec,
.cat_wrapper tr.invalid td .small {
    color: #ccc;
}
.cat_wrapper .table_wrapper .layui-table tr.invalid td .invalid_badge {
    color: #5f5f5f;
    background: #dadada;
    border-radius: 3px;
    text-align: center;
    width: 33px;
    height: 17px;
    line-height: 16px;
    display: inline-block;
    margin-right: 7px;
}
.cat_wrapper .product_map {
    width: 101px;
    height: 101px;
    border-radius: 4px;
}

.cat_wrapper td .detail {
    display: inline-block;
    vertical-align: top;
    padding-left: 23px;
    padding-top: 21px;
}
.cat_wrapper td .detail .tit {
    font-size: 14px;
    color: #333333;
    line-height: 18px;
}
.cat_wrapper td .detail .spec {
    font-size: 12px;
    color: #999999;
    line-height: 18px;
    margin-top: 7px;
    position: relative;
    cursor: pointer;
}
.cat_wrapper td .detail .spec .spec_click::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #79797F;
    margin-left: 5px;
}
.cat_wrapper tr.invalid td .detail .spec .spec_click {
    pointer-events: none;
    color: #ccc;
}
.cat_wrapper tr.invalid td .detail .spec .spec_click::after {
    border-top-color: #ccc;
}
.spec_popup {
    padding: 20px;
    min-width: 389px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0px 6px 6px 0px rgba(207, 207, 207, 0.21);
    border-radius: 4px;
    display: none;
}
.layui-dropdown {
    z-index: 50 !important;
}
.spec_popup .spec_tit {
    font-size: 12px;
    color: #999999;
    line-height: 14px;
}
.spec_popup .spec_popup {
    padding: 0;
}
.spec_popup .spec_list {
    margin-top: 16px;
    max-width: 400px;
}
.cat_wrapper td .small {
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
    margin-left: 8px;
}
.cat_wrapper td .table_btn {
    font-size: 12px;
    color: #666;
    line-height: 18px;
    margin: 3px 0;
    background: transparent;
    cursor: pointer;
}
.cat_wrapper .count_price {
    height: 40px;
    font-size: 14px;
    color: #999;
    line-height: 40px;
    padding: 0 32px;
    text-align: right;
}
.cat_wrapper .count_price .num {
    font-weight: bold;
}
.radio {
    margin-right: 8px;
    margin-bottom: 8px;
}
.radio i {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.radio i::before {
    width: 100%;
    height: 100%;
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    border: 2px solid transparent;
    box-sizing: border-box;
}
.radio i img {
    width: 45px;
    height: 45px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
.radio input[type="radio"]:checked + i::before {
    border-color: #FF414D;
}
.radio .text {
    padding: 0 17px;
    height: 30px;
    border: 1px solid #D9D9D9;
    line-height: 28px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    display: block;
    font-size: 12px;
    color: #666666;
    box-sizing: border-box;
}
.radio input[type="radio"]:checked + i .text {
    color: #FF414D;
}
.cat_wrapper tr.invalid td .number_input {
    display: none;
}
.number_input {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #e8e8e8;
}
.number_input .layui-input {
    width: 40px;
    height: 30px;
    border: none;
    background: #fff;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 12px;
    color: #333;
    display: inline-block;
    text-align: center;
    padding: 0;
    vertical-align: top;
}
.number_input .up,
.number_input .down {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    color: #262626;
    font-size: 14px;
    font-weight: bold;
    background: #F6F6F6;
}
.number_input .up:not(.disabled):hover,
.number_input .down:not(.disabled):hover {
    color: #FF414D;
}
.number_input .down {
    border-right: 1px solid #e8e8e8;
}
.number_input .up {
    border-left: 1px solid #e8e8e8;
}
.number_input .up::before {
    content: '\e624';
}
.number_input .down::before {
    content: '\e67e';
}
.number_input .down.disabled,
.number_input .up.disabled {
    cursor: not-allowed;
    color: #999
}
.count_money {
    position: sticky;
    bottom: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 4px;
    height: 80px;
    padding-left: 16px;
    box-sizing: border-box;
}
.count_money .count_left .left_item {
    display: inline-block;
    vertical-align: middle;
    line-height: 30px;
    margin: 25px 43px 25px 0;
    background: #fff;
    color: #666;
    font-size: 12px;
}
.count_money .count_left .left_item > img {
    width: 27px;
    height: 19px;
}
.count_money .count_left .left_item > span {
    display: inline-block;
    vertical-align: top;
    margin-left: 6px;
}
.count_right {
    font-size: 14px;
    color: #999999;
    line-height: 30px;
}
.count_right .count_data {
    display: inline-block;
    text-align: right;
    vertical-align: middle;
}
.count_right .count_btn {
    width: 150px;
    height: 80px;
    font-size: 16px;
    line-height: 80px;
    margin-left: 20px

}

/* 没有图片的规格显示 */
.has_thumb .text {
    padding: 0 !important;
    width: 45px !important;
    height: 45px !important;
    text-align: center !important;
    line-height: 45px !important;
    text-overflow: ellipsis;
    overflow: hidden;
}

.not_allowed {
    cursor: not-allowed;
}


.layui-btn + .layui-btn {
    margin-left: initial;
}
