@import "/assets/css/_lib";

.nft_card {
    position: relative;
    &.scroll {
        position: relative;
        display: inline-block;
        padding: 0 10px;
        width: calc(50vw - 30px);
        vertical-align: top;
        @include pc {
            width: 20%;
            box-sizing: border-box;
        }
        &.multi {
            &::before {
                left: 13px;
                right: 13px;
            }       
            &::after {
                left: 16px;
                right: 16px;
            }
        }
    }
    &.multi {
        margin-bottom: 10px;
        &::before {
            content: '';
            position: absolute;
            left: 3px;
            right: 3px;
            bottom: -5px;
            height: 100px;
            border: 1px solid #ddd;
            border-radius: 16px;
        }       
        &::after {
            content: '';
            position: absolute;
            left: 6px;
            right: 6px;
            bottom: -10px;
            height: 100px;
            border: 1px solid #ddd;
            border-radius: 16px;
            z-index: -1;
        }
    }
}
.card_wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
    border-radius: 16px;
    background-color: #fff;
    box-sizing: border-box;
}
.profile_group {
    display: flex;
}
.profile_area {
    overflow: hidden;
    flex: 1 1 auto;
    padding: 16px 16px 8px;
    &::after {
        @include clear;
    }
    .thumb_box {
        float: left;
        margin-right: 4px;
    }
    .thumb_inner {
        & + .thumb_inner {
            margin-left: -9px;
        }
    }
    .author_name {
        @include ellipsis;
        font-size: 12px;
        line-height: 20px;
    }
}
.contents_group {
    display: block;
    padding: 0 16px;
    .thumb_area {
        position: relative;
        overflow: hidden;
        padding-top: 100%;
        border-radius: 10px;
        text-align: center;
    }
    .label {
        position: absolute;
        top: 16px;
        right: 16px;
        padding: 0 5px;
        border-radius: 5px;
        background-color: #fff;
        font-size: 13px;
        font-weight: 700;
        line-height: 26px;
        letter-spacing: -0.65px;
    }
    .thumb {
        position: absolute;
        top: -100%;
        left: -100%;
        right: -100%;
        bottom: -100%;
        margin: auto;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
    .info_area {
        padding-top: 10px;
    }
    .description_box {
        @include ellipsis;
        line-height: 18px;
        letter-spacing: -0.45px;
    }
    .collection_name_box {
        display: flex;
        align-items: center; 
        justify-content: space-between; 
        .collection_name {
            @include ellipsis;
            color: #888;
            font-size: 12px;
            line-height: 2;
        }   
    }
   
    .price_box {
        height: 37px;
        padding-top: 10px;
        font-size: 13px;
        line-height: 17px;
    }
    .price_inner {
        @include ellipsis;
    }
    .type {
        color: #888;
        margin-left: 10px;
    }
    .bid {
        @include ellipsis;
        padding-top: 5px;
        color: #f948a0;
    }
}
.like {
    color: #888;
    font-size: 12px;
    line-height: 16px;
    & > button {
        font-size: 14px;
        & > svg{
            width: auto;
            height: 12px;
        }
    }
}