﻿/* /web/common/css/quickOrder.css */

/* 1. 레이어 전체 배경 (딤 처리) */
#quick_order_layer.layerView {
    display: none; /* 기본 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

/* 2. 모달 컨테이너 */
.layer-quick-order {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* 3. 레이어 헤더 */
.layer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 0 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.layer-header p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.layer-header span {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
}

.layer-header span::before,
.layer-header span::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 2px;
    width: 20px;
    height: 2px;
    background-color: #888;
}
.layer-header span::before { transform: rotate(45deg); }
.layer-header span::after { transform: rotate(-45deg); }

/* 4. 레이어 내부 콘텐츠 스크롤 영역 */
.layer-con {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.layer-con label {
    font-size: 18px !important; /* 글씨 크기 확대 */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.layer-con input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #af2943; /* 체크 시 색상을 테마색으로 변경 */
}
/* 5. 상품 요약 정보 박스 */
.quick-item-spec {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.quick-item-spec img {
    border-radius: 8px;
}

/* 6. 입력 폼 레이아웃 */
.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
}

/* 입력창 공통 */
.input-full, 
#q_name, #q_mobile, #q_email, #q_zip, #q_addr1, #q_addr2, #q_pw, #q_pw_chk {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    background-color: #fff;
}

/* 읽기전용 (우편번호 등) */
.input-readonly, input[readonly] {
    background-color: #e9ecef !important;
    border: 1px solid #dee2e6;
    cursor: not-allowed;
}

/* 7. 우편번호/검색 행 조절 */
.zip-input-group, .search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.btn-address-search, .btn-search-go {
    width: 100px;
    height: 40px;
    background: #af2943;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.btn-search-go {
    background: #343a40;
}

/* 8. 수량 조절기 (보완 코드 통합) */
.slim-qty-box {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
    width: fit-content;
    background-color: #fff;
}

.slim-qty-box button {
    width: 35px;
    border: none;
    background: #f8f9fa;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.slim-qty-box input {
    width: 50px !important;
    border: none !important;
    height: 40px !important;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    padding: 0 !important;
}

/* 9. 검색 결과 선택 박스 (보완 코드 통합) */
#user_result_select {
    display: none;
    width: 100%;
    height: 38px;
    margin-top: 10px;
    border: 2px solid #333;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    background-color: #fff;
}

/* 10. 하단 버튼 영역 */
.btn-position {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.btn-position button {
    flex: 1;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.theme-btn {
    background: #af2943;
    color: #fff;
}

.theme-btn-1 {
    background: #fff;
    color: #333;
    border: 1px solid #ced4da !important;
}

/* 11. 텍스트 강조 및 기타 */
.span-info {
    display: block;
    font-size: 12px;
    color: #af2943;
    margin-top: 5px;
    line-height: 1.4;
}

#quickTotalPriceDisplay {
    font-size: 22px;
    color: #af2943;
    font-weight: bold;
}

/* 12. 모바일 최적화 */
@media screen and (max-height: 600px) {
    .layer-quick-order {
        max-height: 95vh;
    }
    .quick-item-spec {
        padding: 10px;
        margin-bottom: 10px;
    }
}

/* 검색 영역 및 셀렉트 박스 스타일 개선 */
#search_history_area {
    background: #f1f3f5;
    padding: 1px;
    border-radius: 8px;
    margin-bottom: 2px;
}

#search_mobile {
    flex: 1; /* 가득 채우기 */
    height: 40px;
    padding: 0 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}
#search_pw {
    flex: 1; /* 가득 채우기 */
    height: 40px;
    width: 30%;
    padding: 0 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* 비밀번호 상자 일렬 배치 */
.pw-row {
    display: flex;
    flex-direction: column; /* 위아래 일렬 */
    gap: 10px;
}

/* 주소 행 레이아웃 */
.address-row {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    gap: 10px;           /* 요소 사이 간격 */
    margin-bottom: 8px;  /* 아래쪽 입력창과의 간격 */
}

/* 주소 레이블 고정 너비 */
.address-row label {
    width: 80px;         /* 레이블 너비 고정 (필요시 조절) */
    flex-shrink: 0;
    margin-bottom: 0 !important; /* 기존 마진 제거 */
    font-weight: 600;
}

/* 기본 정렬 레이아웃 */
.address-main-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.address-main-row label {
    width: 60px;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}        

/* 레이블을 위로 올림 */
.label-block {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.span-info {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 16px;
    text-align: center;
}