
/* ROOT */
:root {
    --color-default: rgba(38, 38, 42, 1) ;
    --color-white: rgba(255, 255, 255, 1);
    --color-blue: rgba(89, 105, 253, 1);
    --color-lightblue: rgba(89, 105, 253, 1);
    --color-semygray: rgba(101, 101, 101, 1);
    --color-lightgray: #464646FF;
    --color-red: #FF3A4AFF;
}

@media all and (max-width:412px){
    :root { font-size: 14px; --font-size: 14px;}
}
@media all and (max-width:375px){
    :root { font-size: 13px; --font-size: 13px;}
}


html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td, header, article, section, aside, nav, figure, figcaption, adress, textarea, input[type=text], input[type=password] {
    margin:0;
    padding:0;
    vertical-align:baseline;
    background:transparent;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
body {
    font-family: 'Pretendard KR', 'Sans-serif';
    font-size: var(--font-size);
    font-weight: 400;
    color: var(--color-default);
    line-height:1.4;
}

a:link,
a:visited { color: var(--color-default); text-decoration:none;}

ul, ol {
    list-style:none;
}

address,caption,cite,code,dfn,var,em {
    font-style:normal;
    font-weight:normal;
}

select {
    width: 100%;
    height: 3.2rem;
    padding-left: 0.667rem;
    font-family: 'Pretendard KR', 'Sans-serif';
    font-size: var(--font-size);
    border:1px solid rgba(224, 224, 224, 1);
    background-color:var(--color-white);
    border-radius: 4px;
    transition: all .3s ease;
}
select[disabled] { background-color: #ccc;}
select:hover {
    border: 1px solid var(--color-default);
}

input[type=text], input[type=file], input[type=tel], input[type=password], textarea {
    width: 100%;
    height: 3.2rem;
    padding:0 0.667rem;
    font-family: 'Pretendard KR', 'Sans-serif';
    font-size: var(--font-size);
    border:1px solid rgba(224, 224, 224, 1);
    background-color:var(--color-white);
    border-radius: 4px;
    transition: all .3s ease;
    -webkit-appearance: none;
}
input[type=password] { padding-bottom: 6px; font-size: 34px;}
input[type=text]:focus, input[type=password]:focus, input[type=tel]:focus, textarea:focus {
    background-color:#ecf9ff;
}
input[type=text]:hover, input[type=password]:hover, input[type=tel]:hover, textarea:hover {
    border: 1px solid var(--color-default);
}
input[type=button] {
    cursor:pointer;
}
button {
    margin:0;
    padding:0;
    font-family: 'Pretendard KR', 'Sans-serif';
    font-size: var(--font-size);
    font-weight: 500;
    color: var(--color-default);
    border:0 none;
    background:transparent;
    cursor:pointer;
}
button::-moz-focus-inner {
    margin: -1px;
    padding: 0;
}

.ellipsis { overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}

/* clear */
.clearfix::after { display:block; clear:both; visibility:hidden; height:0; content:'.';}
* html .clearfix {
    height:1%;
}
.hidden {
    display:none;
}
.visible {
    position:absolute;
    top:-9999px;
    width:0;
    height:0;
    overflow:hidden;
    margin:0;
    padding:0;
    visibility:hidden;
    font-size:0;
    line-height:0;
}
hr { margin: 0; border: none;}


/* Table */
caption {
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    visibility: hidden;
    font-size: 0;
    line-height: 0;
}
table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells:show;
}
table th,
table td { vertical-align: middle;}


/* 컴포넌트 가이드 */
/* input */
.jm-input {position: relative; height: 40px; }
input[type="text"]{min-width: 100px; height:40px; padding: 12px 35px 12px 12px; border-radius: 4px; border: 1px solid #D6D6D6; background: #fff; color:#26262A; font-size:12px; vertical-align: middle; }
input[type="text"]::placeholder{color:#656565}
input[type="text"]:hover, input[type="text"]:focus{border:1px solid #26262A; outline:none; background-color: #fff;}
input[type="text"]:disabled{border:1px solid #D6D6D6; background-color: #EFEFEF; color:#656565; cursor: default;}
input[type="text"]:disabled::placeholder{color:#CBC8C2;}
input[type="text"].error{border:1px solid #FF3A4A; cursor: default;}
input[type="text"].error::placeholder{color:#656565;}

input[type="text"].has-clear ~ .jm-input-btn {
    display: block;
    cursor: pointer;
}

input[type="text"] ~ .jm-input-btn {
    position: absolute;
    top: 0;
    right: 5px;
    width: 30px;
    height: inherit;
    background: url('../images/btn_input.svg') center center no-repeat;
    text-indent: -9999px;
    display: none;
}

/* textara */
textarea{min-width: 100px; height:148px; padding: 12px; border-radius: 4px; border: 1px solid #D6D6D6; background: #fff; color:#26262A; vertical-align: middle; outline:none; font-size:12px;}
textarea::placeholder{color:#656565;}
textarea:hover, textarea:focus{border:1px solid #26262A; background-color: #fff;}
textarea:disabled{border:1px solid #D6D6D6; background-color: #EFEFEF; color:#656565; cursor: default;}
textarea.error{border:1px solid #FF3A4A; cursor: default;}
textarea.error::placeholder{color:#656565;}


/* radio botton */
.input_box input{position:absolute; width:0; height:0}
.input_box input + label{color:#656565; font-size:13px; }
.input_box input[type="checkbox"] + label:before {display:inline-block; width: 16px; height: 16px; background: url('../images/status=Default.svg') no-repeat center; vertical-align:middle; cursor: pointer; margin-right:8px; margin-top: -1px; content:'';}
.input_box input[type="checkbox"]:checked + label{color:#26262A;}
.input_box input[type="checkbox"]:checked + label:before{background: url('../images/status=Checked.svg') no-repeat center;border:none;}
.input_box input[type="radio"] + label::before {display:inline-block; width: 16px; height: 16px; background: url('../images/status=Default.svg') no-repeat center; vertical-align:middle; cursor: pointer; margin-right:8px; margin-top: -1px; content:'';}
.input_box input[type="radio"]:checked + label{color:#26262A;}
.input_box input[type="radio"]:checked + label:before {background: url('../images/status=Checked.svg') no-repeat center;border:none;}


/* combo box */
select{min-width: 100px; height:40px; padding: 12px; border-radius: 4px; border: 1px solid #D6D6D6; background: #fff; color:#656565; font-size:12px; vertical-align: middle;  flex: 1; transition: 0.4s; position: relative; appearance: none; -webkit-appearance: none; -moz-appearance: none; background: url(../images/Icon_arrow_off.svg) calc(100% - 12px) center no-repeat; padding-right: 30px; cursor: pointer;}
select::placeholder{color:#656565}
select:hover, select:focus{border:1px solid #26262A; outline:none; background-color: #fff;}
select:disabled{border:1px solid #D6D6D6; background-color: #EFEFEF; color:#656565; cursor: default;}
select:disabled::placeholder{color:#CBC8C2;}
select.error{border:1px solid #FF3A4A; cursor: default;}
select.error::placeholder{color:#656565;}
select.open {background: url(../images/Icon_arrow_on.svg) calc(100% - 12px) center no-repeat;}
/* Hide native dropdown */
select::-ms-expand {display: none;}
select option {display: none;}
select:focus {
    /* Prevent focus outline and native dropdown */
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom dropdown */
.custom-select-container {position: relative; width: 100%; display: block;}
.custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    z-index: 1000;
    border: 1px solid #D6D6D6;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.custom-select-container.open .custom-select-options {
    display: block !important;
    visibility: visible !important;
}
.custom-select-option {display: flex; justify-content: flex-start; background: #fff; padding: 0 8px; font-size:12px; color:#656565; cursor: pointer;}
.custom-select-option:first-child {border-radius: 4px 4px 0 0; padding-top: 8px;}
.custom-select-option:last-child {border-radius: 0 0 4px 4px; padding-bottom: 8px;}
.custom-select-option span {padding:12px 12px; flex:1 1 100%;}
.custom-select-option:hover span, .custom-select-option.selected span {background: #F7F7F7;}

.custom-select-trigger {
    min-width: 100px;
    height: 40px;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #D6D6D6;
    background: #fff;
    color: #656565;
    font-size: 12px;
    vertical-align: middle;
    flex: 1;
    transition: 0.4s;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url(../images/Icon_arrow_off.svg) calc(100% - 12px) center no-repeat;
    padding-right: 30px;
    cursor: pointer;
    text-align: left;
    width: 100%;
}
.custom-select-trigger:hover, .custom-select-trigger:focus{border:1px solid #26262A; outline:none; background-color: #fff;}
.custom-select-trigger.error{border:1px solid #FF3A4A; cursor: default;}
.custom-select-trigger.open {background: url(../images/Icon_arrow_on.svg) calc(100% - 12px) center no-repeat;}
.custom-select-trigger:focus {
    /* Prevent focus outline and native dropdown */
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
