.createAd {
    border-radius: 8px;

    .cardTitle {
        font-weight: 600;
        font-size: 18px;
    }
}

.settingsBody {
    user-select: none;
    margin-top: 16px;
    width: 100%;
    overflow: hidden;
    overflow-x: auto;
    --w5: 216px;

    .settingsBody_content {
        min-width: 1400px;
        overflow: hidden;
        overflow-y: auto;
        border: 1px solid #f0f0f0;
        border-left: none;
        display: flex;
        box-sizing: border-box;

        >div {
            display: flex;
            box-sizing: border-box;
        }
    }



    .settingsBody_content_right {
        width: calc(100% - (var(--w5) * 2));

        .row1,
        .row2,
        .row3 {
            width: 20%;
            min-width: 238px;
        }

        .row4 {
            // width: 40%;
            flex: 1;
            overflow: hidden;
        }
    }

    .settingsBody_content_left {
        width: calc(var(--w5) * 2);
        display: flex;

        >div {
            width: 50%;
        }
    }

    .settingsBody_content_row {
        border-left: 1px solid #f0f0f0;
        box-sizing: border-box;

        .title {
            height: 50px;
            padding: 5px 10px;
            color: #333;
            background-color: #fff;
            border-bottom: 1px solid #ebeef5;
            display: flex;
            justify-content: space-between;
            align-items: center;

            >span {
                font-size: 14px;
                font-weight: 600;
            }

            .selected {
                margin-left: 8px;
                font-size: 12px;
                font-weight: 500;
                color: #999;
            }
        }

        .detail {
            position: relative;
        }

        .ad_config {
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            width: 100%;
            height: 100%;
            background: #fff;
            z-index: 10;
        }

        .ad_config_item {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            text-align: center;
            cursor: pointer;
            background-color: #f5f5f5;
            font-size: 12px;

            &:hover {
                background-color: #f2f2f2;
            }
        }



        &:hover .detail_footer {
            box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08);
        }
    }
}

.detail_body {
    height: 305px;
    padding: 12px 6px;
    overflow: hidden;
    overflow-y: auto;
    color: #666;
    font-family: PingFang SC, Microsoft YaHei UI, Microsoft YaHei, Helvetica Neue, Helvetica, Hiragino Sans GB, Arial, sans-serif;

    >p,
    .tpP {
        word-break: break-all;
        margin-bottom: 0;
        line-height: 20px;
        font-size: 12px;
        font-family: PingFang SC, Microsoft YaHei UI, Microsoft YaHei, Helvetica Neue, Helvetica, Hiragino Sans GB, Arial, sans-serif;
    }

    .empty_block {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text {
        width: 100%;
        height: 32px;
        padding-right: 8px;
        padding-left: 8px;
        margin-bottom: 4px;
        font-weight: 400;
        color: #666;
        background-color: #f1f1f1;
        border-radius: 4px;
        font-size: 12px;
        line-height: 32px;
    }
}

.detail_footer {
    height: 32px;
    font-size: 14px;
    line-height: 32px;
    user-select: none;
    font-family: PingFang SC, Microsoft YaHei UI, Microsoft YaHei, Helvetica Neue, Helvetica, Hiragino Sans GB, Arial, sans-serif;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.detail_body_m {
    display: flex;
    // flex-direction: column;
    flex-wrap: wrap;
    row-gap: 10px;

    >div {
        min-width: 90px;
    }

    .video {
        display: flex;
        justify-content: space-between;
        padding-right: 15px;

        >div {
            max-width: 80px;
            max-height: 60px;

            img {
                max-width: 80px;
                max-height: 60px;
            }
        }
    }

    .imageList {
        display: flex;
        gap: 6px;
    }

    .cover_image {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #e6e6e6;
        border-radius: 6px;
        width: 80px;
        height: 60px;
        overflow: hidden;

        >img {
            max-width: 96%;
            max-height: 96%;
        }
    }
}

.bts {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.template {
    width: 100%;
    display: flex;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    height: calc(100% - 68px);
    overflow: hidden;
}

.template_left {
    width: 150px;
    padding-top: 10px;
    border-right: 1px solid #f0f0f0;
    box-sizing: border-box;
    overflow: hidden;
    overflow-y: auto;

    .title {
        font-weight: 700;
        padding-left: 10px;
        box-sizing: border-box;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
        padding-bottom: 7px;
    }

    .accItem {
        height: 32px;
        line-height: 32px;
        cursor: pointer;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        margin-bottom: 1px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;

        &:hover {
            background-color: #e6f7ff;
            color: #1890ff;
        }
    }

    .select {
        background-color: #e6f7ff;
        color: #1890ff;
        border-right: 2px solid #1890ff;
    }

    .alreadySelect {
        background-color: #d1f0ff;
    }
}

.template_center {
    padding: 10px;
    box-sizing: border-box;
    flex: 1 0;
    overflow: hidden;
}

.template_right {
    width: 200px;
    border-left: 1px solid #f0f0f0;
    box-sizing: border-box;
    overflow: hidden;
    overflow-y: auto;
    height: 100%;

    >.header {
        border-bottom: 1px solid #f0f0f0;
        padding: 0 10px;
        margin-bottom: 1px;
    }

    .selectTarget {
        height: calc(100% - 34px);
        overflow: hidden;
        overflow-y: auto;
        padding: 4px;
        box-sizing: border-box;
        font-size: 12px;
        font-family: PingFang SC, Microsoft YaHei UI, Microsoft YaHei, Helvetica Neue, Helvetica, Hiragino Sans GB, Arial, sans-serif;
    }

    .selectTarget__row {
        padding: 4px 6px;
        border-radius: 4px;
        background-color: #eeeeee;
        margin-bottom: 4px;
        position: relative;

        &:hover {
            background-color: #e5e5e5;

            &>.clear {
                display: inline-block;
            }
        }

        .clear {
            position: absolute;
            padding: 0;
            top: 50%;
            right: 4px;
            transform: translateY(-50%);
            background-color: #fff;
            font-size: 12px;
            height: auto;
            width: 20px;
            display: none;
        }
    }
}



.newSpace {
    padding: 10px 12px;

    .newSpace_top {
        display: flex;
        align-items: center;
    }

    .newSpace_bottom {
        background-color: #fafafb;
        padding: 18px 16px 10px;
        margin-left: 124px;
    }

    &:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }

    .newSpace_title {
        width: 140px;
        font-weight: bold;
        padding-right: 15px;
    }
}