/*modal style*/
.modal-layer {
    display: none;
    position: relative;
    width: 360px;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    padding: 20px 16px;
    border-radius: 4px;
    box-sizing: border-box;
    background: #fff;
}

.dim-layer {
    display: none;
    position: fixed;
    _position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 100%;
}

.dim-layer-on {
    display: flex;
}

.dim-layer .dim-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
}

.dim-layer .modal-layer {
    display: block;
}

.modal-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.modal-container {
    height: 100%;
    background: #fff;
    overflow: auto;
}

.modal-container .box-modal {
    overflow-y: auto;
}

.modal-layer .inp-frm {
    height: 44px;
}

.modal-layer textarea.inp-frm {
    height: 100px;
}


/*메시지 모달창*/
.modal-group-message .modal-message {
    margin: 20px 0 40px;
    text-align: center;
}

.modal-group-message .modal-message2 {
    margin: 10px 0 0px;
    text-align: center;
}

.modal-group-message .modal-message .ico {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #f2f2f2;
}

.modal-group-message .modal-message .tit {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 27px;
}

.modal-group-message .modal-message .tit span {
    color: #3658a6;
}

.modal-group-message .modal-message .tit span.tit-red {
    color: #C13528;
}

.modal-group-message .modal-message .txt {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 24px;
}


/*주문 완료 모달창*/
.modal-group .contact-group {
    margin-bottom: 20px;
}

.modal-group .contact-group .tit-contact {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.list-contact {
    padding: 6px 20px;
    border-radius: 4px;
    box-sizing: border-box;
    background: #f7f7f7;
}

.list-contact li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.list-contact li:last-child {
    border-bottom: none;
}

.list-contact .category {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.list-contact .txt-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-contact .txt-group .tit {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.list-contact .txt-group .txt {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.list-contact .txt-group .txt img {
    margin-right: 6px;
}

/* 점수 키패드 영역 */
.score-area {
    padding: 0 0 40px;
}

/* 3열 그리드 */
.score-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}



/* 기본 키 스타일 */
.score-grid .key {
    grid-column: span 2;
    height: 58px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background: #ffffff;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* 마지막 두 버튼은 3칸씩(= 반반) */
.score-grid .key-half {
    grid-column: span 3;
    background: #F4F4F4;
}

/* 호버/눌림 */
.score-grid .key:hover {
    background: #F4F4F4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.score-grid .key:active {
    background: #eef1f5;
}

/* 지우기(←) 키: 아이콘 느낌 */
.score-grid .key-back::before {
    content: "";
    display: inline-block;
    background-image: url(../img/delete-left.png);
    width: 23px;
    height: 15px;
}

.score-grid .key-back {
    background: #F4F4F4;
    color: #333;
}

/* 전체삭제 키 */
.score-grid .key-clear {
    background: #F4F4F4;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.score-grid .key-clear:hover {
    background: #F4F4F4;
}


/* 마지막 줄: +10이 두 칸 차지 */
.score-grid .key-wide {
    grid-column: span 2;
    /* 2칸 합치기 */
    background: #F4F4F4;
    /* 스샷처럼 연회색 */
    color: #444;
    font-weight: 600;
}

.score-grid .key-wide:hover {
    background: #EEEEEE;
}