/*view-scale css*/
#view-scale-container{
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height: calc(var(--vh, 1vh)*100);
    z-index: 24;
    display:flex;
    align-items: center;
    justify-content: center;
}

#view-scale-container .dim{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width:100vw;
    height:100vh;
    /*height: calc(var(--vh, 1vh) * 100);*/
    background: #000000;
    opacity: 0.6;
    z-index: 23;
}

#view-scale-container .wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25;
    position: relative;
    width: 1024px;
    height: calc(min(768px, 100vh));
    overflow: hidden;
    border-radius: 16px;
}

#view-scale-container .wrap.status-close{
    background: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_background.png") center no-repeat;
    background-size: 1909px 1932px;
}

#view-scale-container .wrap.status-mid{
    background: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_background.png") center no-repeat;
    background-size: 1235px 1250px;
    background-position-y: -450px;
}

#view-scale-container .wrap.status-wide{
    background: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_background.png") center no-repeat;
    background-size: 1247px 1060px;
    background-position-y: -250px;
}

#view-scale-container .wrap .status-close-man{
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_man.png");
    background-size: cover;
    width: 631px;
    height: 1574px;
    position: absolute;
    right: -228px;
    bottom: -1024px;
    z-index: 11;
    pointer-events: none;
}

#view-scale-container .wrap .status-mid-man{
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_man.png");
    background-size: cover;
    width: 268px;
    height: 670px;
    position: absolute;
    right: 0;
    bottom: -74px;
    z-index: 11;
    pointer-events: none;
}

#view-scale-container .wrap .status-wide-man{
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_man.png");
    background-size: cover;
    width: 189px;
    height: 473px;
    position: absolute;
    right: 24px;
    bottom: -31px;
    z-index: 11;
    pointer-events: none;
}

#view-scale-container .wrap .status-close-woman{
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_woman.png");
    background-size: cover;
    width: 679px;
    height: 1432px;
    position: absolute;
    right: -368px;
    bottom: -890px;
    z-index: 11;
    pointer-events: none;
}

#view-scale-container .wrap .status-mid-woman{
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_woman.png");
    background-size: cover;
    width: 295px;
    height: 622px;
    position: absolute;
    right: -19px;
    bottom: -67px;
    z-index: 11;
    pointer-events: none;
}

#view-scale-container .wrap .status-wide-woman{
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_woman.png");
    background-size: cover;
    width: 204px;
    height: 430px;
    position: absolute;
    right: -17px;
    bottom: -7px;
    z-index: 11;
    pointer-events: none;
}

#view-scale-container .wrap .btn-close {
    display: block;
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/close_button_base.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    padding: 8px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    border-radius: 9999px;
    background-color: #FFFFFF;
    border: 1px solid #D6D6D6;
    z-index: 1001;
}

#view-scale-container .wrap .btn-close-hover {
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/close_button_base.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    padding: 8px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    border-radius: 9999px;
    background-color: #FAFAFA;
    border: 1px solid #D6D6D6;
    opacity: 0;
    z-index: 1002;
}

#view-scale-container .wrap .btn-close-hover:hover{
    opacity: 1;
}

#view-scale-container .wrap .img-box{
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

#view-scale-container .wrap .img-box img{
    box-shadow: 10px 10px 20px 0 rgb(0 0 0 / 7%), 10px 10px 20px 0 rgb(0 0 0 / 7%);
    object-fit: cover;
    flex-shrink: 0;
}

#view-scale-container .wrap .img-box .size{
    position: absolute;
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: #1C1C1C;
    font-weight: 500;
}
#view-scale-container .wrap .img-box .size-x{
    min-width: 50px;
    bottom: -17px;
    width: 100%;

    align-items: center;
    justify-content: center;
}

#view-scale-container .wrap .img-box .size-x-bar-container{
    bottom: -13.5px;
    width: 100%;

    height: 7px;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#view-scale-container .wrap .img-box .size-x-bar{
    width: 100%;
    height: 1px;
    background-color: #2B2B2B;
}

#view-scale-container .wrap .img-box .size-y{
    white-space: nowrap;
    right: 100%;
    height: 100%;

    flex-direction: column;
    justify-content: center;
    margin-right: 5px;
}

#view-scale-container .wrap .img-box .size-y-bar-container{
    right: 100%;
    margin-right: 5.5px;

    width: 7px;
    height: 100%;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#view-scale-container .wrap .img-box .size-y-bar{
    height: 100%;
    width: 1px;
    background-color: #2B2B2B;
}

/* 토글 스위치 기본 스타일 */
#view-scale-container .wrap .size-toggle-btn {
    position: relative;
    width: 36px;
    height: 20px;
    background: #e8e8e8;
    border: none !important;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    padding: 2px;
    box-shadow: none;
}

/* 토글 스위치 활성 상태 */
#view-scale-container .wrap .size-toggle-btn.on {
    background: #39c3bc;
}

/* 토글 스위치 비활성 상태 */
#view-scale-container .wrap .size-toggle-btn.off {
    background: #e8e8e8;
}

/* 스위치 버튼 (원형) */
#view-scale-container .wrap .size-toggle-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
}

/* 활성 상태일 때 스위치 버튼 위치 */
#view-scale-container .wrap .size-toggle-btn.on::before {
    transform: translateX(16px);
}

/* 호버 효과 */
#view-scale-container .wrap .size-toggle-btn:hover:not(.off) {
    background-color: #39c3bc;
}

/* 비활성 상태 호버 효과 */
#view-scale-container .wrap .size-toggle-btn.off:hover {
    background-color: #d1d5db;
}

/* 비활성 상태 스타일 */
#view-scale-container .wrap .size-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#view-scale-container .wrap .size-toggle-btn:disabled:hover {
    transform: none;
    background-color: #e8e8e8;
}

/* 3단 상태 변경 버튼 스타일 - 슬라이딩 배경 탭 */
#view-scale-container .wrap .scope-button-wrapper {
    position: relative;
    display: flex;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 3px;
    height: 32px;
    align-items: center;
}

/* 슬라이딩 배경 */
#view-scale-container .wrap .scope-button-wrapper::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 80px;
    height: 26px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 1px 3px 0px rgba(12,17,29,0.1), 0px 1px 2px 0px rgba(12,17,29,0.06);
    transition: transform 0.3s ease;
    z-index: 1;
}

/* 클로즈업 상태 (첫 번째 버튼) */
#view-scale-container .wrap .scope-button-wrapper.first-button::before {
    transform: translateX(0);
}

/* 미드 상태 (두 번째 버튼) */
#view-scale-container .wrap .scope-button-wrapper.second-button::before {
    transform: translateX(80px);
}

/* 와이드 상태 (세 번째 버튼) */
#view-scale-container .wrap .scope-button-wrapper.third-button::before {
    transform: translateX(160px);
}

#view-scale-container .wrap .status-btn {
    padding: 8px;
    border: none;
    background: transparent;
    color: #757575;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease;
    width: 80px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

#view-scale-container .wrap .status-btn:hover:not(:disabled) {
    color: #2b2b2b;
}

#view-scale-container .wrap .status-btn.active {
    color: #2b2b2b;
    font-weight: 600;
}

#view-scale-container .wrap .status-btn:disabled {
    background: transparent;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

#view-scale-container .wrap .navigation-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 8px;
    z-index: 9999;
    position: absolute;
    width: calc(100% - 48px);
    bottom: 24px;
}

#view-scale-container .wrap .instruction-container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 12px;
}

#view-scale-container .wrap .drag-instruction-icon {
    background-image: url("https://public.seoulauction.io/resources/assets/images/common/ico-drag.svg");
    width: 24px;
    height: 24px;
}

#view-scale-container .wrap .drag-instruction {
    font-size: 14px;
    color: #2B2B2B;
    font-weight: 400;
    line-height: 20px;
}

#view-scale-container .wrap .drag-instruction-container {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

#view-scale-container .wrap .divider {
    width: 1px;
    height: 12px;
    background-color: #E8E8E8;
}

#view-scale-container .wrap .size-scope-button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#view-scale-container .wrap .button-instruction {
    font-size: 14px;
    color: #2B2B2B;
    font-weight: 400;
    line-height: 20px;
}

@media (max-width: 1023px){
    #view-scale-container .wrap{
        height: 100%;
        max-width: 1024px;
        border-radius: 0;
    }

    #view-scale-container .wrap.status-close{
        background: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_background_mobile.png") center no-repeat;
        background-size: 1622px 1947px;
        background-position-y: calc(50% - 90px);
    }
    
    #view-scale-container .wrap.status-mid{
        background: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_background_mobile.png") center no-repeat;
        background-size: 1135px 1361px;
        background-position-y: calc(50% - 60px);
    }
    
    #view-scale-container .wrap.status-wide{
        background: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_background_mobile.png") center no-repeat;
        background-size: max(714px, 100vw) max(857px, 100vh);
        background-position-y: calc(50% - 50px);
    }

    #view-scale-container .wrap .size-toggle-btn{
        bottom: 35px;
    }

    #view-scale-container .wrap .status-close-man{
        background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_man.png");
        background-size: cover;
        width: 241px;
        height: 602px;
        position: absolute;
        right: -64px;
        top: calc(50% - 172px);
        z-index: 11;
    }
    
    #view-scale-container .wrap .status-mid-man{
        background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_man.png");
        background-size: cover;
        width: 104px;
        height: 260px;
        position: absolute;
        right: -13px;
        top: calc(50% - 7px);
        z-index: 11;
    }
    
    #view-scale-container .wrap .status-wide-man{
        background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_man.png");
        background-size: cover;
        width: 73px;
        height: 182px;
        position: absolute;
        right: 4px;
        top: calc(55% - 42px);
        z-index: 11;
    }
    
    #view-scale-container .wrap .status-close-woman{
        background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_woman.png");
        background-size: cover;
        width: 241px;
        height: 602px;
        position: absolute;
        right: -95px;
        top: calc(50% - 172px);
        z-index: 11;
    }
    
    #view-scale-container .wrap .status-mid-woman{
        background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_woman.png");
        background-size: cover;
        width: 104px;
        height: 260px;
        position: absolute;
        right: -20px;
        top: calc(50% - 7px);
        z-index: 11;
    }
    
    #view-scale-container .wrap .status-wide-woman{
        background-image: url("https://public.seoulauction.io/resources/assets/images/common/scale_view_woman.png");
        background-size: cover;
        width: 73px;
        height: 182px;
        position: absolute;
        top: calc(55% - 42px);
        z-index: 11;
    }

    #view-scale-container .wrap .navigation-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background-color: #fff;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        z-index: 9999;
        position: absolute;
        width: 100%;
        bottom: 0;
        padding-bottom: 32px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    #view-scale-container .wrap .instruction-container {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: flex-end;
        gap: 16px;
        width: 100%;
    }

    #view-scale-container .wrap .drag-instruction-container {
        display: flex;
        flex-direction: row;
        gap: 6px;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    #view-scale-container .wrap .divider {
        height: 1px;
        width: 100%;
    }

    #view-scale-container .wrap .size-scope-button-wrapper {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding: 6px 0;
    }

    #view-scale-container .wrap .scope-button-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #view-scale-container .wrap .scope-button-container {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #view-scale-container .wrap .scope-button-text {
        font-size: 14px;
        color: #2B2B2B;
        font-weight: 400;
        line-height: 20px;
    }

    #view-scale-container .wrap .size-toggle-btn {
        bottom: 0px;
        width: 52px;
        height: 30px;
    }

    /* 스위치 버튼 (원형) */
    #view-scale-container .wrap .size-toggle-btn::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 24px;
        height: 24px;
        background: #ffffff;
        border-radius: 50%;
        transition: transform 0.3s ease;
        box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
    }

    /* 활성 상태일 때 스위치 버튼 위치 */
    #view-scale-container .wrap .size-toggle-btn.on::before {
        transform: translateX(22px);
    }

    #view-scale-container .wrap .button-instruction {
        font-size: 16px;
        color: #2B2B2B;
        font-weight: 400;
        line-height: 24px;
    }
}
