/**
************************************************************************************
* CSR  : http://clm.lge.com/issue/browse/BTOCSITE-116356
* CODE : Dev - EV00021151 , Prod - EV00008842 
* FILE : /kr/event/2026/02/01_dishwashers_Quiz/eventMainDishwashersQuiz.jsp
* DESC : 식기세척기 기획전-OX 퀴즈 즉당 이벤트
* PROJ : lge.co.kr 5.0
************************************************************************************
*							Modification History
************************************************************************************
* DATE						AUTHOR				DESCRIPTION
************************************************************************************
* 2026/01/14				김기범				Created
************************************************************************************
**/
@charset "UTF-8";

/* 기본: 모든 쿠폰 숨김 */
.couponA, .couponB, .couponC {
    display: none;
}

/* 활성화: 현재 쿠폰만 표시 */
.couponA.active,
.couponB.active,
.couponC.active {
    display: block;
}

/* 만료: 선택사항 */
.couponA.expired,
.couponB.expired,
.couponC.expired {
    opacity: 0.6;
}
* {
    --width: 1380;
    font-family: 'pretendard';
}

.dish-container {
    max-width: 1380px;
    margin: 0 auto;
    text-align: center;
}

.dish-container .evt-func {
    position: relative;
}

.dish-container .dish-highlight {
    color: #f63333;
}

.evt-func,
.quiz-box {
    position: relative;
}

.quiz-bg {
    max-width: 1146px;
    margin: 0 auto;
    padding: calc(40 / 1380 * 100%) 0 calc(20 / 1380 * 100%);
    border-radius: 16px;
    background: #ffeed6;
}

.quiz-box #quizQuestion {
    font-size: clamp(12px, 1.2vw, 24px);
    font-weight: 600;
    line-height: 30px;
}

.quiz-wrap {
    margin-top: calc(40 / 1380 * 100%);
}

.quiz-selection {
    display: flex;
    justify-content: center;
    height: 100%;
}

.quiz-selection .rdo-wrap {
    width: calc(223 / 1380 * 100vw);
    max-width: 300px;
    height: calc(170 / 1380 * 100vw);
    min-height: 142px;
    max-height: 208px;
}

/* 공통 css 제거 */
.rdo-wrap input:focus+label {
    outline: none;
    outline-offset: 2px;
}

.quiz-wrap.on {
    border: 2px solid;
}

/* input 숨김 */
.rdo-wrap input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* OX 라벨 공통 */
.ox-label {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
    padding-left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* 기본 호버 효과 */
.ox-label:hover {
    transform: scale(1.1);
}

@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* 오답/정답 박스 스타일 */
.answer-badge {
    display: none;
    position: absolute;
    top: calc(-80 / 1380 * 100%);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: calc(0 / 1380 * 100%) calc(40 / 1380 * 100%);
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}
/* 정답 확인 시 오답/정답 박스 표시 */
.quiz-selection.show-answer .answer-badge {
    display: block;
}
/* 완료 상태에서는 오답/정답 박스 숨김 */
.quiz-selection.completed .answer-badge {
    display: none;
}

.quiz-wrap .rdo-wrap label.ox-label-o::after,
.quiz-wrap .rdo-wrap label.ox-label-x::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    /* background-position: center; */
    z-index: 1;
}

/* ox 영역 */
.quiz-wrap .rdo-wrap input+label.ox-label-o::after {
    background-image: url('/kr/event/2026/02/01_dishwashers_Quiz/images/btn_rd_O.png');
    border-radius: 20px;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.2));
}

/* 체크된 상태 - 눌렸다가 올라오는 애니메이션 */
.quiz-wrap .rdo-wrap input:checked+label.ox-label {
    animation: buttonPress 0.3s ease;
}

/* 체크된 것이 있을 때, 체크되지 않은 것에 opacity 0.5 적용 */
.quiz-selection:has(input:checked) .rdo-wrap input:not(:checked)+label.ox-label {
    opacity: 0.5;
}

/* 체크되지 않은 것 호버 시 scale 1.1 효과 유지 */
.quiz-selection:has(input:checked) .rdo-wrap input:not(:checked)+label.ox-label:hover {
    transform: scale(1.1);
}

/* disabled 상태 */
.quiz-wrap .rdo-wrap input:disabled+label.ox-label {
    opacity: 1;
    pointer-events: none;
    cursor: not-allowed;
}
.quiz-wrap .rdo-wrap input:disabled+label.ox-label:hover {
    transform: none;
}
.quiz-wrap .rdo-wrap input+label.ox-label-x::after {
    background-image: url('/kr/event/2026/02/01_dishwashers_Quiz/images/btn_rd_X.png');
    border-radius: 20px;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.2));
}

.dish-container .layer-input .chk-wrap input+label::after {
    background-image: url('/kr/event/2026/01/02_pc_teasing/images/btn-checkbox-off-48.svg');
    width: 20px;
    height: 20px
}

.dish-container .layer-input .chk-wrap input:checked+label::after {
    background-image: url('/lg5-common/images/icons/btn-checkbox-on-48.svg');;
}

.dish-container .quizResult.is-active {
    display: block;
    padding-top: calc(40 / 1380 * 100%);
}
.dish-container .quizResult {
    display: none;
}
.dish-container .quizResult p {
    font-size: clamp(12px, 1.2vw, 24px);
    font-weight: bold;
}

.dish-container #layerChkType {
    margin-top: calc(32 / 1380 * 100%);
}
.dish-container .chk-wrap input+label {
    line-height: 1.2;
}
.dish-container .layer-input .txt-bold-underline {
    font-weight: bold;
    text-decoration: underline;
}
.dish-container .btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin-top: calc(20 / 1380 * 100%)
}

.dish-container .btn-wrap #quizChk {
    display: block;
    width: calc(260 / 1380 * 100%);
    padding: calc(19 / 1380 * 100%) 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 500;
}

.dish-container .btn-wrap #confirmBtnA {
    width: calc(260 / 1380 * 100%);
    padding: calc(19 / 1380 * 100%) 0;
    border-radius: 8px;
    background: #fff;
    color: #111;
    border: 1px solid #8F9298;
    font-weight: 500;
}
.dish-container .evt-func.pd32 {
    padding:calc(70 / 1380 * 100%) 0 calc(80 / 1380 * 100%);
}

.dish-container .kakao_wrap .eachLink {
	position: absolute;
	display: flex;
	left: calc(427 / 1380 * 100%);
    bottom: calc(219 / 1380 * 100%);
    width: calc(259 / 1380 * 100%);
    height: calc(151 / 1380 * 100%);
}
.dish-container .kakao_wrap .eachLink a {
	width: 100%;
}
.dish-container .kakao_wrap a.kakao {
	position: absolute;
    display: flex;
    left: calc(694 / 1380 * 100%);
    bottom: calc(222 / 1380 * 100%);
    width: calc(260 / 1380 * 100%);
    height: calc(151 / 1380 * 100%);
}
/* 팝업 영역 */
#prdCheckPopWin.popup-wrap, 
#prdCheckPopLose.popup-wrap,
#prdCheckPopAnswer.popup-wrap,
#prdCheckPopWrong.popup-wrap,
#prdCheckPopDone.popup-wrap,
#prdCheckPopDoneLastDay.popup-wrap {
    max-width: 300px;
    /* min-height: 272px !important; */
}

#prdCheckPopWin .pop-conts,
#prdCheckPopLose .pop-conts,
#prdCheckPopAnswer .pop-conts,
#prdCheckPopWrong .pop-conts,
#prdCheckPopDone .pop-conts,
#prdCheckPopDoneLastDay .pop-conts {
    position: relative;
    padding: 0;
}

.popup-wrap .gift-img,
.popup-wrap .alert-img {
    position: relative;
}

#prdCheckPopWin.popup-wrap .btn-close,
#prdCheckPopLose.popup-wrap .btn-close,
#prdCheckPopAnswer.popup-wrap .btn-close,
#prdCheckPopWrong.popup-wrap .btn-close,
#prdCheckPopDone.popup-wrap .btn-close,
#prdCheckPopDoneLastDay.popup-wrap .btn-close {
    position: absolute;
    top: 9px;
    right: 17px;
    width: 22px;
    height: 21px;
}
#prdCheckPopWin.popup-wrap .btn-ok-close,
#prdCheckPopLose.popup-wrap .btn-ok-close {
    position: absolute;
    bottom: calc(17 / 300 * 100%);
    left: calc(20 / 300 * 100%);
    width: calc(260 / 300 * 100%);
    height: calc(50 / 300 * 100%);
}
#prdCheckPopAnswer.popup-wrap .btn-ok-close {
    position: absolute;
    bottom: calc(22 / 300 * 100%);
    left: calc(20 / 300 * 100%);
    width: calc(260 / 300 * 100%);
    height: calc(56 / 300 * 100%);
}
#prdCheckPopWrong.popup-wrap .btn-ok-close,
#prdCheckPopDone.popup-wrap .btn-ok-close{
    position: absolute;
    bottom: calc(32 / 300 * 100%);
    left: calc(20 / 300 * 100%);
    width: calc(260 / 300 * 100%);
    height: calc(83 / 300 * 100%);
}
#prdCheckPopDoneLastDay.popup-wrap .btn-ok-close {
    position: absolute;
    bottom: calc(35 / 300 * 100%);
    left: calc(20 / 300 * 100%);
    width: calc(260 / 300 * 100%);
    height: calc(95 / 300 * 100%)
}
#prdCheckPopWin.popup-wrap .btn-close::before,
#prdCheckPopLose.popup-wrap .btn-close::before,
#prdCheckPopAnswer.popup-wrap .btn-close::before,
#prdCheckPopWrong.popup-wrap .btn-close::before,
#prdCheckPopDone.popup-wrap .btn-close::before,
#prdCheckPopDoneLastDay.popup-wrap .btn-close::before {
    z-index: -1;
}
/* #prdCheckPop .btn-close {
    position: absolute;
    right: calc(64 / var(--width) * 100%);
    width: calc(45 / var(--width) * 100%);
    height: 24px;
    max-width: 40px;
    max-height: 38px;
    z-index: 99;
}
#prdAlertPop #prdAlertPopClose {
    position: absolute;
    border: 1px solid;
    width: calc(335 / 400 * 100%);
    height: calc(84 / 400 * 100%);
    bottom: calc(60 / 400 * 100%);
    left: calc(32 / 400 * 100%);
}
#tab01:target::before {
    content: "";
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
} */

/* @media screen and (max-width:430px) {
    #prdCheckPop .btn-close {
        height: calc(155 / var(--width) * 100%);
    }
} */

@media screen and (max-width: 767px) {
    .quiz-bg {
        border-radius: 0;
        padding: calc(65 / 720 * 100%) calc(40 / 720 * 100%) calc(80 / 720 * 100%);
        /* padding: 0; */
    }
    .quiz-box #quizQuestion {
        font-size: clamp(17px, 1.2vw, 24px);
        line-height: 23px;
    }
    .quiz-box #quizQuestion.dish-txt-wrap {
        text-align: left;
    }
    .quiz-box .txt-center-wrap {
        text-align: center;
        padding-left: 0;
    }
    .quiz-wrap {
        margin-top: calc(100 / 1380 * 100%);
    }
    /* 모바일 오답/정답 박스 */
    .answer-badge {
        top: calc(-50 / 720 * 100%);
        font-size: 12px;
        padding: calc(0 / 720 * 100%) calc(84 / 720 * 100%);
    }

    .quiz-selection .rdo-wrap {
        width: 100%;
        height: calc(260 / 720 * 100vw);
    }

    .quiz-wrap .rdo-wrap input+label.ox-label:after {
        border-radius: 16px;
    }

    .quiz-wrap .rdo-wrap input:checked+label.ox-label:after {
        border-radius: 10px;
    }

    .dish-container .quizResult p {
        font-size: clamp(17px, 1.2vw, 24px);
    }
    .dish-container .layer-input {
        padding:  calc(40 / 720 * 100%);
    }

    .dish-container .layer-input .chk-wrap {
        width: 100%;
        height: 100%;
    }

    .dish-container .layer-input .chk-wrap input+label {
        padding-left: calc(50 / 720 * 100vw);
        text-align: left;
        line-height: calc(35 / 720 * 100vw);
        font-size: calc(25 / 720 * 100vw);
    }

    .dish-container .layer-input .chk-wrap input+label::after {
        background-image: url('/kr/event/2026/01/02_pc_teasing/images/btn-checkbox-off-48.svg');
        top: 0px;
        width: calc(33 / 720 * 100%);
        height: calc(35 / 720 * 100vw);
    }

    .dish-container .layer-input .chk-wrap input:checked+label::after {
        background-image: url('/kr/event/2026/01/02_pc_teasing/images/btn-checkbox-on-48.svg');
    }

    .quiz-wrap .rdo-wrap input+label.ox-label-o::after {
        background-image: url('/kr/event/2026/02/01_dishwashers_Quiz/images/m_btn_rd_O.png');
        background-size: cover;
    }
    .quiz-wrap .rdo-wrap input+label.ox-label-x::after {
        background-image: url('/kr/event/2026/02/01_dishwashers_Quiz/images/m_btn_rd_X.png');
        background-size: cover;
    }
    .dish-container .quizResult.is-active {
        padding-top: calc(80 / 720 * 100%);
    }
    .dish-container .btn-wrap {
        flex-direction: column;
        gap: 8px;
        padding: 0 calc(40 / 720 * 100%);
        margin-top: calc(65 / 1380 * 100%);
    }
    .dish-container .btn-wrap.mobile button + button {
        margin-top: calc(20 / 720 * 100%);
    }
    .dish-container .btn-wrap #quizChk, 
    .dish-container .btn-wrap #confirmBtnA {
        width: 100%;
        /* padding: calc(33 / 720 * 100%) 0; */
        padding: 0;
        height: calc(90 / 720 * 100vw);
        font-size: calc(30 / 720 * 100vw);
        font-weight: 500;
    }
    
    .dish-container .evt-func.pd32 {
        padding: calc(45 / 720 * 100%) 0 calc(75 / 720 * 100%);
    }

    .dish-container .kakao_wrap .eachLink {
		left: calc(37 / 720 * 100%);
		bottom: calc(162 / 1380 * 100%);
		width: calc(316 / 720 * 100%);
		height: calc(191 / 1380 * 100%);
	}
	.dish-container .kakao_wrap .eachLink a {
		width: 100%;
	}
	.dish-container .kakao_wrap a.kakao {
		left: calc(367 / 720 * 100%);
		bottom: calc(162 / 1380 * 100%);
		width: calc(316 / 720 * 100%);
		height: calc(191 / 1380 * 100%);
	}

    .c-divider {
        height: calc(16 / 720 * 100vw);
        background: #F3F5F7;
    }

    #prdCheckPopWin.popup-wrap, 
    #prdCheckPopLose.popup-wrap,
    #prdCheckPopAnswer.popup-wrap,
    #prdCheckPopWrong.popup-wrap,
    #prdCheckPopDone.popup-wrap,
    #prdCheckPopDoneLastDay.popup-wrap {
        max-width: 300px;
        min-height: auto !important;
        /* max-height: 272px; */
        height: auto;
        transform: translateX(-50%) translateY(-50%) !important;
        left: 50% !important;
        top: 50% !important;
        border-radius: 8px;
    }
    #prdCheckPopWin.popup-wrap .pop-conts, 
    #prdCheckPopLose.popup-wrap .pop-conts,
    #prdCheckPopAnswer.popup-wrap .pop-conts,
    #prdCheckPopWrong.popup-wrap .pop-conts,
    #prdCheckPopDone.popup-wrap .pop-conts,
    #prdCheckPopDoneLastDay.popup-wrap .pop-conts {
        min-height: fit-content;
    }
}