/* 커스텀 alert을 띄우는 dom */
.custom-alert-renderer {
    position: relative;
    overflow: hidden !important;
}

/* 커스텀 영역 변수 */
#custom-alert-area,
#custom-alert-background {
    --alert-background-color: rgba(0, 0, 0, 0.6);
    --title-font-color: #292929;
    --msg-font-color:  #44556B;
    --highlight-font-color:  #2699FB;
    --negative-msg-font-color:  #FF6969;
    --button-border:   #E5E5E5;
    --main-btn-font-color: #2699FB;
    --sub-btn-font-color:  #44556B;
    --disabled-btn-font-color: #C4C4C4;
}

/* 커스텀 alert 배경 */
#custom-alert-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--alert-background-color);
    transition: opacity 0.3s;
    cursor: pointer;
    z-index: 9999;
}

/* 커스텀 alert 영역 */
#custom-alert-area {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
}

/* alert 창 */
#custom-alert-area .custom-alert {
    display: flex;
    max-width: 44.8rem;
    max-height: 64rem;
    padding: 3.2rem;
    background-color: #FFF;
    border-radius: 1.5rem;
    text-align: center;
    flex-direction: column;
    opacity: 1;
    gap: 2.4rem;
    overflow: hidden auto;
    transition: opacity 0.3s ease-out;
}

#custom-alert-area .custom-alert.badge_style {
    width: 360px;
    min-height: 220px;
    justify-content: space-between;
}

/* 맨 마지막 alert만 노출 */
#custom-alert-area .custom-alert:not(:last-child) {
    opacity: 0;
}

/* alert 타이틀 */
#custom-alert-area .custom-alert .alert-title {
    width: 100%;
    font: normal normal 500 2.6rem 'Pretendard';
    color: var(--title-font-color);
    text-align: center;
    flex-shrink: 0;
}

/* alert 메시지 */
#custom-alert-area .custom-alert .alert-msg {
    width: 100%;
    font: normal normal 500 1.4rem/1.7rem 'Pretendard';
    color: var(--msg-font-color);
    overflow: hidden auto;
    white-space: pre-wrap;
    word-break: keep-all;
}
#custom-alert-area .custom-alert .alert-msg.badge_style {
    display: flex;
    min-height: 80px;
    flex-direction: column;
    justify-content: center;
    line-height: 20px;
    flex-shrink: 0;
}

/* 강조 메시지 폰트 색상 */
#custom-alert-area .custom-alert .alert-msg .highlight {
    color: var(--highlight-font-color);
}

/* 부정 메시지 폰트 색상 */
#custom-alert-area .custom-alert .alert-msg .negative {
    color: var(--negative-msg-font-color);
}

/* alert footer */
#custom-alert-area .custom-alert footer {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

#custom-alert-area .custom-alert header ~ footer {
    gap: 2.4rem;
}

/* alert 버튼 */
#custom-alert-area .custom-alert footer > button {
    min-width: 10.8rem;
    height: 4rem;
    padding: 0 1.6rem;
    background-color: #FFF;
    border: 0.1rem solid var(--button-border);
    border-radius: 0.5rem;
    font: normal normal 500 1.4rem 'Pretendard';
    color: var(--sub-btn-font-color);
    outline: none;
}

#custom-alert-area section.alert-msg .custom-checkbox-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#custom-alert-area section.alert-msg .custom-checkbox-wrapper label,
#custom-alert-area section.alert-msg .custom-checkbox-wrapper label input {
    margin: 0;
}

#custom-alert-area section.alert-msg .custom-checkbox-wrapper input[type=checkbox] {
    display: none;
}

#custom-alert-area section.alert-msg .custom-checkbox-wrapper input[type=checkbox] + label {
    position: relative;
    width: 2.4rem;
    aspect-ratio: 1 / 1;
    background-color: #FFF;
    border: 0.1rem solid #E5E5E5;
    border-radius: 0.5rem;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 1rem;
}

#custom-alert-area article.custom-alert.wide {
    width: 50rem;
    gap: 0;
}

#custom-alert-area section.alert-msg .custom-checkbox-wrapper input[type=checkbox]:checked + label:after {
    content: "";
    width: 1.8rem;
    height: 1.8rem;
    position: absolute;
    top: 13%;
    left: 9%;
    border-radius: 0.5rem;
    background-color: #11AAFF;
}

/* 긍정 버튼 글씨 색 */
#custom-alert-area .custom-alert footer > button.confirm {
    color: var(--main-btn-font-color);
}

/* 비활성화 버튼 */
#custom-alert-area .custom-alert footer > button:disabled {
    color: var(--disabled-btn-font-color);
    cursor: default;
}

::selection {
    background-color: #191919;
    color: #FFF;
}