@import "/assets/css/_lib";

.create_item {
    padding: 85px 16px 80px;
    @include pc {
        max-width: 707px;
        min-height: 100%;
        margin: 0 auto;
        padding: 85px 0 80px;
        box-sizing: border-box;
    }
}
.create_item_wrap {
    @include pc {
        &::after {
            @include clear;
        }
        .create_group {
            float: left;
            width: 483px;
            padding-right: 20px;
            box-sizing: border-box;
        }
    }
}
.create_title {
    display: block;
    padding-bottom: 15px;
    font-size: 24px;
    line-height: 30px;
}
.option_area {
    & + .option_area {
        padding-top: 36px;
    }
    .item_title {
        @include ellipsis;
        display: block;
        padding-bottom: 14px;
        font-size: 16px;
        line-height: 20px;
    }
    .optional {
        margin-left: 8px;
        color: #888;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }
    .item_required {
        color: red;
        margin-left: 2px;
    }
}
.option_box {
    overflow-x: auto;
    display: flex;
    margin: 0 -16px;
    flex-wrap: nowrap;
}
.logo_bsc {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url('/static/img/png/logo_dsc.png') 0 0 no-repeat;
    background-size: 50px 50px;
    vertical-align: top;
}
.file_box {
    text-align: center;
    .preview {
        position: relative;
        overflow: hidden;
        height: 234px;
        padding-bottom: 8px;
        .img {
            width: auto;
            height: 234px;
        }
    }
    .btn_delete {
        position: absolute;
        top: 0;
        right: 27px;
    }
    .guide {
        color: #888;
    }
    .file {
        margin-top: 18px;
    }
    .btn_file {
        display: inline-block;
        margin-top: 18px;
        padding: 0 40px;
        border: 1px solid #ddd;
        border-radius: 18px;
        font-size: 14px;
        font-weight: 700;
        line-height: 35px;
        background-color: #fff;
        text-align: center;
    }
}
.date_container {
    position: relative;
}
.btn_date {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 12px;
    line-height: 40px;
    text-align: left;
    box-sizing: border-box;
    caret-color: transparent;
    font-family: 'Retorica', 'Barun';
    &::placeholder {
        color: #000;
    }
}
.ico_arrow {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 18px;
    height: 18px;
}
.market {
    overflow: hidden;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #f5f5f5;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
}
.input_box {
    position: relative;
    &.royalties {
        .input {
            padding-right: 42px;
        }
        .percent {
            position: absolute;
            top: 11px;
            right: 15px;
            color: #888;
        }
    }
    &.feature {
        margin: 0 -4px;
        .input {
            width: calc(50% - 8px);
            margin: 0 4px 8px;
        }
    }
    .textarea {
        overflow: hidden;
        width: 100%;
        padding: 12px 16px;
        border-radius: 20px;
        border: 1px solid #ddd;
        box-sizing: border-box;
        resize: none;
        font-size: 12px;
        line-height: 18px;
        font-family: 'Retorica', 'Barun';
        &::placeholder {
            color: #888;
        }
    }
}
.input_box_validate {
    position: relative;
    .textarea {
        overflow: hidden;
        width: 100%;
        padding: 12px 16px;
        border-radius: 20px;
        border: 1px solid red;
        box-sizing: border-box;
        resize: none;
        font-size: 14px;
        line-height: 18px;
        &::placeholder {
            color: #888;
        }
    }
}
.guide_box {
    padding-top: 9px;
    font-size: 13px;
    .guide_title {
        margin-right: 6px;
        color: #888;
    }
}
.btn_area {
    margin: 22px auto 0;
    text-align: center;
    .btn_make {
        height: 37px;
        padding: 0 62px;
        border-radius: 18px;
        border: 2px solid #16dccf;
        color: #16dccf;
        font-size: 14px;
        font-weight: 700;
        line-height: 35px;
    }
}
.preview_group {
    position: relative;
    overflow: hidden;
    .preview_area {
        position: fixed;
        top: 118px;
        left: calc((100vw - 707px)/2 + 483px);
    }
    .preview_box {
        position: relative;
        top: 0;
        left: 0;
        width: 224px;
        padding: 16px;
        border: 1px solid #ddd;
        border-radius: 16px;
        box-sizing: border-box;
    }
    .profile_group {
        &::after {
            @include clear;
        }
    }
    .thumb_box {
        float: left;
        margin-right: 4px;
    }
    .thumb_inner {
        & + .thumb_inner {
            margin-left: -9px;
        }
        &.collection_img {
            display: inline-block;
            overflow-x: hidden;
            width: 20px;
            height: 20px;
            background-color: #f5f5f5;
            border-radius: 100%;
            border: 1px solid #fff;
            vertical-align: top;
            img {
                width: 100%;
            }
        }
    }
    .author_name {
        @include ellipsis;
        font-size: 12px;
    }
    .thumb_group {
        overflow: hidden;
        position: relative;
        margin: 10px auto 0;
        width: 161px;
        height: 161px;
        border-radius: 10px;
        background-color: #f5f5f5;
        .thumb {
            position: absolute;
            top: -100%;
            left: -100%;
            right: -100%;
            bottom: -100%;
            margin: auto;
            width: 100%;
            border-radius: 10px;
        }
    }
    .info_group {
        padding-top: 9px;
    }
    .title_box {
        @include ellipsis;
    }
    .price_box {
        @include ellipsis;
        padding-top: 10px;
        font-size: 13px;
        line-height: 17px;
        .count {
            margin-left: 6px;
            color: #888;
        }
    }
    .market_box {
        @include ellipsis;
        padding-top: 5px;
        color: #f948a0;
    }
}
.collection_make {
    padding: 18px 0 30px;
    .cover_wrap {
        overflow: hidden;
        position: relative;
        height: 88px;
        margin: 0 -20px;
        background-color: #ccc;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
    }
    .thumb_wrap {
        position: relative;
        z-index: 1;
        margin-top: -30px;
        text-align: center;
        .thumb_box {
            overflow: hidden;
            width: 60px;
            height: 60px;
            margin: 0 auto 11px;
            border-radius: 50%;
            background-color: #ccc;
            border: 2px solid #fff;
        }
        .thumb {
            width: 60px;
            height: 60px;
        }
        .guide {
            color: #888;
            padding-bottom: 13px;
            
        }
        .guide_cover {
            color: #888;
            margin-top: -15px;
            padding-bottom: 13px;
        }
        .btn_file {
            display: inline-block;
            margin-bottom: 4px;
            height: 37px;
            padding: 0 42px;
            border: 1px solid #ddd;
            border-radius: 18px;
            box-sizing: border-box;
            font-size: 14px;
            font-weight: 700;
            line-height: 35px;
            vertical-align: top;
        }
    }
    .collection_wrap {
        padding-top: 17px;
        .title {
            display: block;
            font-size: 16px;
            padding-bottom: 15px;
            .optional {
                margin-left: 6px;
                color: #888;
                font-size: 14px;
                font-weight: 400;
            }
        }
    }
    .input_container {
        display: flex;
        &.duplicate {
            input {
                border-color: #f00;
            }
            .duplicate_icon {
            display: block;
            }
        }
        &.checked {
            .checked_icon {
            display: block;
            }
        }
        .input_wrapper {
            position: relative;
            flex-grow: 1;
            input {
                padding-right: 30px;
            }
        }
        .icon {
            display: none;
            position: absolute;
            top: 11px;
            right: 9px;
        }
        .duplicate_check {
            height: 42px;
            margin-left: 8px;
            padding: 7px 14px;
            border-radius: 20px;
            border: 1px solid #ddd;
            vertical-align: top;
            font-weight: bold;
            font-size: 14px;
            white-space: nowrap;
        }
        .validate_duplicate_check {
            height: 42px;
            margin-left: 8px;
            padding: 7px 14px;
            border-radius: 20px;
            border: 1px solid red;
            vertical-align: top;
            font-weight: bold;
            font-size: 14px;
            white-space: nowrap;
        }
    }
    .textarea {
        width: 100%;
        padding: 12px 16px;
        border-radius: 20px;
        border: 1px solid #ddd;
        box-sizing: border-box;
        resize: none;
        font-size: 14px;
        line-height: 18px;
        &::placeholder {
            color: #888;
        }
    }
    .url {
        padding: 12px 16px;
        border-radius: 20px;
        background-color: #f5f5f5;
        box-sizing: border-box;
        line-height: 18px;
    }
}
.make_item_wrap {
    width: 280px;
    padding: 18px 0 20px;
    color: #888;
    text-align: center;
    strong {
        color: #000;
        font-weight: normal;
    }
}
.validate_message {
    margin-top: 5px;
    color: red
}