/* =================================== input =================================== */

/* input 자동완성 배경색 없애기 + disable 상태 배경색 지정 */
.edk_input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset;
    -webkit-text-fill-color: #000;
}

.edk_input:-webkit-autofill,
.edk_input:-webkit-autofill:hover,
.edk_input:-webkit-autofill:focus,
.edk_input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

.edk_input:disabled:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 40rem #F8F8F8 inset;
    /* 컬러코드는 프로젝트 disabled 상태 백그라운드 컬러와 동일하게 */
}

.edk_input {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    background-color: transparent;

    display: block;
    font-size: var(--input-font-size, 16px);
    color: #222;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--input-border-color, #E1E1E1);
    flex-grow: 1;
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    /* padding: var(--input-padding-y, 12px) var(--input-padding-x, 16px); */
    padding: var(--input-padding-y, 12px) 0;
    text-indent: 16px;

    /* flex 설정(safari) */
    flex-basis: 0;
    width: 100%;
}

textarea.edk_input {
    text-indent: 0;
    padding: var(--input-padding-y, 12px) var(--input-padding-x, 16px);
}

.edk_input.input_border {
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    border: 1px solid var(--input-border-color, #E1E1E1);
}

.edk_input::placeholder {
    color: #AAAAAA;
}

.edk_input:disabled {
    background-color: #F8F8F8;
    opacity: 1;
}

.edk_input.input_disabled {
    background-color: #F8F8F8 !important;
}

.edk_input.error {
    border-color: var(--error-color);
}

.edk_input.complete {
    border-color: var(--success-color);
}

.edk_input.email {
    width: calc((100% - 50px)/2);
}

/* =================================== input =================================== */


/* =================================== select =================================== */
.edk_input.select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('/static/common/img/icon_select_down.png') no-repeat right calc(var(--input-padding-x, 16px) - 6px) center /var(--input-icon-size, 20px) auto;
    cursor: pointer;
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    padding-right: calc((var(--input-padding-x, 16px) - 6px) + var(--input-icon-size, 20px));
}

.edk_input.select::-ms-expand {
    display: none;
}

/* =================================== select =================================== */


/* =================================== input[search] =================================== */
.edk_input[type="search"]::-ms-clear,
.edk_input[type="search"]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.edk_input[type="search"]::-webkit-search-decoration,
.edk_input[type="search"]::-webkit-search-cancel-button,
.edk_input[type="search"]::-webkit-search-results-button,
.edk_input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* =================================== input[search] =================================== */


/* =================================== input[date] =================================== */
/* ios 달력 오류 해결 */
.edk_input[type="date"],
.edk_input[type="datetime-local"],
.edk_input[type=month] {
    position: relative;
    cursor: pointer;
    text-align: left;
    width: 100%;
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    padding-right: calc(var(--input-padding-x, 16px) + var(--input-icon-size, 20px));

    /* 달력 아이콘 */
    background-image: url('/static/common/img/icon_calendar.png');
    background-position: right var(--input-padding-x, 16px) center;
    background-size: var(--input-icon-size, 20px);
    background-repeat: no-repeat;
}

.edk_input[type="date"]:focus:before,
.edk_input[type="date"]:valid:before,
.edk_input[type=month]:focus:before,
.edk_input[type=month]:valid:before {
    display: none !important;
}

/* ios 텍스트 왼쪽 정렬 */
.edk_input[type="date"]::-webkit-date-and-time-value,
.edk_input[type="datetime-local"]::-webkit-date-and-time-value,
.edk_input[type=month]::-webkit-month-value {
    text-align: left;
}

.edk_input[type="date"]::-webkit-clear-button,
.edk_input[type="datetime-local"]::-webkit-clear-button,
.edk_input[type="date"]::-webkit-inner-spin-button,
.edk_input[type="datetime-local"]::-webkit-inner-spin-button,
.edk_input[type=month]::-webkit-clear-button,
.edk_input[type=month]::-webkit-inner-spin-button {
    display: none;
}

/* 클릭 범위 넓히기 */
.edk_input[type="date"]::-webkit-calendar-picker-indicator,
.edk_input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.edk_input[type=month]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: -10px;
    top: 0;
    transform: translateX(-10px);
    padding-left: 3000px;
    height: 100%;
    cursor: pointer;
    background: transparent;
    z-index: 1;

    /* 기본 달력 아이콘 제거 */
    opacity: 0;
}

/* =================================== input[date] =================================== */


/* =================================== input[checkbox] =================================== */
/* 웹접근성 유지 checkbox */
.edk_WAI.checkbox+label {
    display: inline-block;
    position: relative;
    cursor: pointer;

    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    /* 만드는 체크박스의 width(기본값 16px) + 간격(기본값 8px) = padding-left 값 */
    padding-left: calc(var(--input-padding-x, 16px) + 8px);
    font-size: var(--input-font-size, 16px);
    color: #222;
    font-weight: 400;
}

/* 바꿀 checkbox 체크하기 전 */
.edk_WAI.checkbox+label:before {
    content: "";
    position: absolute;
    /* checkbox text가 여러줄일때 가운데 정렬이 아닌 윗줄 정렬을 위한 top 좌표 계산 (((font-size * lineheight)-font-size)/2) => 첫열 중앙정렬 */
    top: calc(((var(--input-font-size, 16px) * 1.3) - var(--input-font-size, 16px)) / 2);
    left: 0;
    /* font-size에 맞게 크기 조절 */
    width: var(--input-font-size, 16px);
    height: var(--input-font-size, 16px);

    /* 선택하기 전 checkbox 이미지 */
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    background: var(--check-default-img, url('/static/common/img/icon_checkbox_default.png')) center / cover no-repeat;
}

/* 바꿀 checkbox 체크 후 */
.edk_WAI.checkbox:checked+label:before {
    /* 선택 후 checkbox 이미지 */
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    background-image: var(--check-active-img, url('/static/common/img/icon_checkbox_check.png'));
}

/* =================================== input[checkbox] =================================== */


/* ==================================== switch ==================================== */
.edk_switch label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.edk_switch input[type="checkbox"] {
    appearance: none;
    position: relative;
    border-radius: 1.25em;
    border: max(2px, 0.1em) solid gray;
    width: 90px;
    height: 45px;
}

.edk_switch input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0.8);
    background-color: gray;
    transition: all 250ms linear;
}

.edk_switch input[type="checkbox"]::after {
    content: 'OFF';
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    font-size: 12px;
    transition: left 250ms linear;
}

.edk_switch input[type="checkbox"]:checked {
    background-color: tomato;
    border-color: tomato;
}

.edk_switch input[type="checkbox"]:checked::after {
    content: 'ON';
    left: 3px;
    right: 0;
    transition: all 250ms linear;
}

.edk_switch input[type="checkbox"]:checked::before {
    background-color: white;
    left: 50%;
}

.edk_switch input[type="checkbox"]:disabled {
    border-color: lightgray;
    opacity: 0.7;
    cursor: not-allowed;
}

.edk_switch input[type="checkbox"]:disabled:before {
    background-color: lightgray;
}

.edk_switch input[type="checkbox"]:disabled+span {
    opacity: 0.7;
    cursor: not-allowed;
}

.edk_switch input[type="checkbox"]:focus-visible {
    outline-offset: max(2px, 0.1em);
    outline: max(2px, 0.1em) solid tomato;
}

.edk_switch input[type="checkbox"]:enabled:hover {
    box-shadow: 0 0 0 max(4px, 0.2em) lightgray;
}

/* ==================================== switch ==================================== */


/* =================================== input[radio] =================================== */
/* 웹접근성 유지 radio */
.edk_WAI.radio+label {
    display: inline-block;
    position: relative;
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    padding-left: calc(var(--input-padding-x, 16px) + 8px);
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    font-size: var(--input-font-size, 16px);
    font-weight: 400;
    color: #222;
}

/* 바꿀 checkbox 체크하기 전 */
.edk_WAI.radio+label:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    /* font-size에 맞게 크기 조절 */
    width: var(--input-icon-size, 16px);
    height: var(--input-icon-size, 16px);
    transform: translateY(-50%);

    /* 선택하기 전 checkbox 이미지 */
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    background: var(--radio-default-img, url('/static/common/img/icon_radio_default.png')) top left / cover no-repeat;
}

/* 바꿀 checkbox 체크 후 */
.edk_WAI.radio:checked+label:before {
    /* 선택 후 checkbox 이미지 */
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    background-image: var(--radio-active-img, url('/static/common/img/icon_radio_check.png'));
}

/* =================================== input[radio] =================================== */

/* ==================================== file 리뉴얼 ==================================== */
.edk_file_wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.edk_file_wrap .file_remove {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    width: 20px;
    overflow: hidden;
    display: flex;
}

.edk_file_wrap .input_flex_area {
    gap: 8px;
}

.input_flex_area .file_box {
    flex-grow: 1;
    position: relative;
    display: flex;
}

.edk_file_wrap .file_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edk_file_wrap .file_item {
    position: relative;
}

.edk_file_wrap .file_item.img {
    width: calc((100% - 16px) / 3);
}

.edk_file_wrap .file_item.img .img_wrap {
    height: 100%;
}

.edk_file_wrap .file_item.img .img_wrap img {
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.edk_file_wrap .file_item.img .file_remove {
    top: 16px;
    left: auto;
    right: 16px;
    transform: translateY(0);
}

.edk_file_wrap .file_item.text {
    width: 100%;
    padding-left: 28px;
}

/* ==================================== file 리뉴얼 end ==================================== */


/* ==================================== find_addr (주소찾기) ==================================== */
.edk_find_addr>div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.edk_find_addr>div>input {
    border: none;
    width: calc(100% - 110px);
}

.edk_find_addr>div>button {
    max-width: 102px;
}

.edk_find_addr>input:not(:first-of-type) {
    display: none;
}

.edk_find_addr>input:first-of-type {
    width: 100%;
}

/* ==================================== find_addr (주소찾기) ==================================== */



/* ==================================== input 영역 리뉴얼 ==================================== */
.edk_input_wrap {
    position: relative;
}

.edk_input_wrap .input_title {
    display: block;
    margin-bottom: 8px;
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    font-size: var(--input-title-size, 14px);
    font-weight: 700;
    color: #222;
}

.edk_input_wrap .input_sub_text {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #5E5E5E;
}

.input_title .required {
    color: var(--main-color);
}

.input_flex_area {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.edk_input_wrap .input_flex_area {
    gap: 16px;
}

.edk_input_wrap .input_flex_area:not(:last-of-type) {
    margin-bottom: 8px;
}


.input_flex_area .btn_default {
    display: block;
    width: fit-content;
    flex-shrink: 0;
}


.edk_input_wrap .value_viewer {
    position: absolute;
    width: 22px;
    display: flex;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    opacity: 0.5;
}

.edk_input_wrap .inter_text {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    width: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edk_input_wrap .input_flex_area .btn_default {
    flex-shrink: 0;
}

.edk_input_wrap .message_input {
    margin-top: 4px;
    font-size: 12px;
}

.edk_input_wrap .message_input.float {
    position: absolute;
    bottom: 0;
    margin: 0;
    padding-top: 4px;
    transform: translateY(100%);
}

.edk_input_wrap .message_input.error {
    color: var(--error-color);
}

.edk_input_wrap .message_input.complete {
    color: var(--success-color);
}

/* 약관 확인할 수 있는 버튼 함께 있는 약관 */
.input_checkbox_wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0 16px;
}

.input_checkbox_wrap .edk_checkbox_area {
    flex-grow: 1;
}

.input_checkbox_wrap .btn_terms {
    flex-shrink: 0;
    /* var(--): admin, owner, www 각 base style css에 적용할 root 선언 시 자동변경 ***common input var(--) 값 변경 금지*** */
    font-size: var(--input-font-size, 16px);
    cursor: pointer;
    text-decoration: underline;
    color: var(--main-color);
}

/* ==================================== input 영역 리뉴얼 end==================================== */



/* tablet */
@media screen and (max-width: 1023px) {}

/* mobile */
@media screen and (max-width: 767px) {}