/* 해더 일부 css 무력화 */
.breadcrumb{display:none!important;}

/* GW_basic responsive.css 의 padding 강제 제거 */
.main_boundary,.sub_boundary{padding:0!important;}
*{box-sizing:border-box;}
body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Noto Sans KR",sans-serif;background:#f5f5f5;}

/* =========================
   전체 컨테이너
========================= */
.form-container{max-width:1200px;margin:0 auto;padding:20px;padding-bottom:40px;}

/* =========================
   폼 섹션
========================= */
.form-section{background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:24px;margin-bottom:20px;box-shadow:0 2px 8px rgba(0,0,0,.04);}
.form-section h3{margin:0 0 20px;padding-bottom:12px;border-bottom:2px solid #003380ff;font-size:18px;font-weight:700;color:#333;display:flex;align-items:center;gap:8px;}
.form-section h3 i{color:#003380ff;}
.form-section>p{margin:-8px 0 16px;font-size:14px;color:#666;}

/* =========================
   폼 그룹
========================= */
.form-group{margin-bottom:20px;}
.form-group:last-child{margin-bottom:0;}
.form-group label{display:block;margin:8px;font-size:14px;font-weight:600;color:#333;}
.form-group input[type="text"],.form-group input[type="number"],.form-group input[type="date"],.form-group input[type="datetime-local"],.form-group select,.form-group textarea{width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;color:#333;background:#fff;box-sizing:border-box;transition:all .3s ease;}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#003380ff;box-shadow:0 0 0 3px rgba(0,51,128,.1);}
.form-group textarea{min-height:120px;resize:vertical;font-family:inherit;line-height:1.5;}
.form-group small{display:block;margin-top:6px;font-size:13px;color:#666;line-height:1.4;}

/* =========================
   폼 신청 버튼 
========================= */
.request-event-btn{padding:6px 14px;background:#003380ff;color:#fff;border:none;border-radius:16px;cursor:pointer;font-size:8px;font-weight:600;margin-left:8px;transition:all .3s ease;vertical-align:middle;}
.request-event-btn:hover{background:rgb(0,44,110);transform:translateY(-1px);}

/* =========================
   날짜 입력
========================= */
.date-range{display:flex;gap:12px;align-items:center;}
.date-range input{flex:1;}
.date-range span{color:#999;font-weight:500;font-size:14px;}

/* =========================
   이미지 업로드
========================= */
.current-image{margin-bottom:12px;padding:12px;background:#f9f9f9;border-radius:8px;}
.current-image img{max-width:200px;border-radius:8px;display:block;}
.current-image p{margin:8px 0 0;font-size:13px;color:#666;}
.image-upload{border:2px dashed #d0d0d0;text-align:center;border-radius:12px;cursor:pointer;background:#f9f9f9;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;}
.image-upload:hover{border-color:#003380ff;background:#f0f7ff;}
.image-upload p{margin:0 0 4px;font-size:15px;font-weight:600;color:#666;}
.image-upload small{font-size:13px;color:#999;}
.upload-placeholder{display:block;}
.image-preview{display:none;}
.image-preview img{width:200px;height:200px;object-fit:cover;margin:0 auto;}

/* =========================
   판매 기간 (통판 관련)
========================= */
.sale-period-group{background:#f8f9fa;padding:20px;border-radius:12px;margin-bottom:20px;border:2px solid #e9ecef;}
.period-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #dee2e6;}
.period-header h4{margin:0;font-size:16px;color:#333;display:flex;align-items:center;gap:8px;}
.period-badge{padding:6px 15px;border-radius:20px;font-size:13px;font-weight:600;}
.period-badge.direct{background:#e3f2fd;color:#1976d2;}
.period-badge.online{background:#fff3e0;color:#f57c00;}
.info-text{color:#1976d2!important;font-weight:500;}
.warning-text{color:#f57c00!important;font-weight:500;}
.required-badge{display:inline-block;padding:2px 8px;background:#ff4444;color:#fff;border-radius:4px;font-size:11px;margin-left:8px;}

/* 경고 박스 */
.warning-box,#onlineDateWarn{margin-top:12px;padding:12px 16px;border:1px solid #fca5a5;background:#fef2f2;border-radius:8px;font-size:13px;color:#dc2626;line-height:1.5;}
.warning-box i{margin-right:6px;}

/* 체크박스 그룹 */
.checkbox-group{margin-top:15px;padding:15px;background:#fff;border-radius:8px;}
.checkbox-group label,.toggle-label{display:flex;align-items:center;cursor:pointer;font-weight:500;gap:10px;}
.checkbox-group input[type="checkbox"],.toggle-label input[type="checkbox"]{width:20px;height:20px;margin:0;cursor:pointer;}
.toggle-text{display:flex;align-items:center;gap:8px;}

/* =========================
   에디터 버튼
========================= */
.editor-btn{width:100%;padding:14px;background:#4CAF50;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .3s ease;}
.editor-btn:hover{background:#45a049;transform:translateY(-2px);box-shadow:0 4px 12px rgba(76,175,80,.3);}
.editor-btn i{font-size:16px;}
#description-preview{margin-top:12px;padding:16px;background:#f9f9f9;border:1px solid #e0e0e0;border-radius:8px;min-height:60px;}
#description-preview.has-content{display:block!important;background:#fff;}
#description-preview small{color:#999;font-size:13px;}

/* =========================
   해시태그 입력
========================= */
.hashtag-input{display:flex;gap:8px;}
.hashtag-input input{flex:1;}

/* 인포 사용 */
/* =========================
   인포 액션 버튼
========================= */
.info-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.info-download-btn,
.info-use-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-download-btn {
    background: #4CAF50;
    color: #fff;
}

.info-download-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.info-use-btn {
    background: #003380ff;
    color: #fff;
}

.info-use-btn:hover {
    background: #002760;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 128, 0.3);
}

.hint {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    margin-left: 6px;
}

/* =========================
   상품 옵션 리스트
========================= */
.item-list-section{background:#f9f9f9;padding:20px;border-radius:8px;margin-bottom:20px;}
.item-list-row{background:#fff;padding:20px;margin-bottom:16px;border:1px solid #e8e8e8;border-radius:12px;position:relative;box-shadow:0 2px 4px rgba(0,0,0,.04);}
.item-list-row:last-child{margin-bottom:0;}
.item-list-row .remove-btn{position:absolute;top:16px;right:16px;background:#ff4444;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:13px;font-weight:600;transition:all .3s ease;}
.item-list-row .remove-btn:hover{background:#ff2222;transform:translateY(-2px);}
.add-item-btn{width:100%;padding:14px;background:#fff;color:#4CAF50;border:2px dashed #4CAF50;border-radius:8px;cursor:pointer;font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .3s ease;}
.add-item-btn:hover{background:#f0f8f0;border-style:solid;}
.toggle-btn {display: none;}
/* =========================
   배송 방법
========================= */
.shipping-info-box{background:#f8f9fa;padding:20px;border-radius:12px;margin-bottom:20px;}
.shipping-info-box .info-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#fff;border-radius:8px;margin-bottom:12px;}
.shipping-info-box .info-item:last-child{margin-bottom:0;}
.shipping-info-box .label{font-weight:600;color:#333;min-width:150px;font-size:14px;}
.shipping-info-box .value{color:#666;display:flex;align-items:center;gap:8px;font-size:14px;}
.ship-method-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;}
.ship-method-item{padding:20px;border:2px solid #e0e0e0;border-radius:12px;cursor:pointer;transition:all .3s ease;background:#fff;}
.ship-method-item:hover{border-color:#003380ff;}
.ship-method-item.selected{border-color:#003380ff;background:#f0f7ff;}
.ship-method-item input[type="checkbox"]{width:18px;height:18px;margin-right:8px;}
.ship-method-item label{display:flex;align-items:center;margin-bottom:0;cursor:pointer;}

/* 택배 박스 숨김 처리 */
#shipBoxDelivery{display:none;}
#shipBoxDelivery.show{display:block;}

/* =========================
   제출 버튼
========================= */
.submit-section{text-align:center;padding:30px 20px;}
.submit-btn{padding:16px 60px;background:#003380ff;color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px rgba(0,51,128,.2);}
.submit-btn:hover{background:#002760;transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,51,128,.3);}

/* =========================
   반응형 - 태블릿
========================= */
@media (max-width:1024px){
.form-container{padding:16px;}
.form-section{padding:20px;}
.ship-method-group{grid-template-columns:1fr;}
}

/* =========================
   반응형 - 모바일
========================= */
@media (max-width:768px){
.form-container{padding:10px;padding-bottom:80px;}
.form-section{padding:16px;margin-bottom:12px;border-radius:8px;}
.form-section h3{font-size:16px;margin-bottom:16px;}
.form-group{margin-bottom:16px;}
.form-group label{font-size:13px;}
.form-group input,.form-group select,.form-group textarea{padding:10px;font-size:14px;}
.form-group small{display:flex;font-size:9px;align-items:center;}
.date-range{flex-direction:column;gap:8px;}
.date-range span{display:none;}
.image-upload{width:100%;min-height:auto;padding:0;border-radius:1px;justify-content:flex-start;gap:10px;}
.image-preview{width:100%;}
.image-preview img{width:100%;height:auto;max-width:100%;object-fit:contain;display:block;}
.current-image img{max-width:100%;height:auto;display:block;}
.sale-period-group{padding:16px;}
.period-header{flex-direction:column;align-items:flex-start;gap:8px;}
.shipping-info-box .info-item{flex-direction:column;align-items:flex-start;gap:12px;}
.shipping-info-box .label{min-width:auto;}
.ship-method-group{gap:12px;}
.item-list-section{padding:12px;}
.item-list-row{padding:16px;}
.item-list-row .remove-btn{position:static;width:100%;margin-top:12px;}
.submit-section{position:fixed;bottom:0;left:0;right:0;padding:12px 16px;background:#fff;border-top:1px solid #e0e0e0;box-shadow:0 -2px 10px rgba(0,0,0,.05);z-index:100;}
.submit-btn{width:100%;padding:14px;font-size:15px;box-shadow:none;}
.submit-btn:hover{transform:none;}


/* 테이블 스타일 */
.item-table{overflow-x:visible;}
.item-table table{display:block;border:none;}
.item-table thead{display:none;}
.item-table tbody{display:block;}

/* 각 행 기본 스타일 */
.item-table tbody tr{
    display:flex;
    flex-wrap:wrap;
    background:#fff;
    border:1px solid #e0e0e0;
    border-radius:8px;
    padding:12px;
    margin-bottom:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.item-table tbody tr.editing-row{
    background:#f8f9ff;
    border:2px solid #003380ff;
    display:block;
}

/* 기본적으로 보이는 요소들 - 가로 배치 */
.item-table tbody td{
    border:none;
    padding:0;
}

.item-table tbody td::before{
    display:none;
}

/* 이미지 */
.item-table tbody td.td-image{
    width:70px;
    flex-shrink:0;
    margin-right:10px;
}

.item-table tbody td.td-image img{
    width:60px!important;
    height:60px!important;
    border-radius:6px;
}

/* 옵션명 */
.item-table tbody td.td-name{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    margin-right:10px;
    font-size:14px;
    font-weight:500;
}

.item-table tbody td.td-name .item-desc{
    display:none;
}

/* 가격 */
.item-table tbody td.td-price{
    width:auto;
    flex-shrink:0;
    display:flex;
    align-items:center;
    font-weight:600;
    color:#003380ff;
    font-size:14px;
}

/* 기본적으로 숨겨지는 요소들 */
.item-table tbody td.td-group,
.item-table tbody td.td-stock,
.item-table tbody td.td-limit{
    display:none;
    width:100%;
    padding:8px 0;
    border-top:1px solid #f0f0f0;
}

.item-table tbody td.td-group::before,
.item-table tbody td.td-stock::before,
.item-table tbody td.td-limit::before{
    content:attr(data-label);
    font-weight:600;
    color:#003380ff;
    display:inline-block;
    margin-right:8px;
    font-size:12px;
}

/* Actions - 전체 너비, 항상 표시 */
.item-table tbody td.td-actions{
    width:100%;
    display:flex;
    gap:6px;
    padding-top:10px;
    margin-top:10px;
    border-top:1px solid #e0e0e0;
}

.item-table tbody td.td-actions input[type="hidden"]{
    display:none;
}

/* 토글 버튼 */
.toggle-btn{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:6px 10px;
    background:#f0f0f0;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:12px;
    cursor:pointer;
    transition:all 0.3s;
}

.toggle-icon{
    transition:transform 0.3s;
    font-size:10px;
}

/* 확장된 상태 */
.item-table tbody tr.expanded .toggle-icon{
    transform:rotate(180deg);
}

.item-table tbody tr.expanded td.td-group,
.item-table tbody tr.expanded td.td-stock,
.item-table tbody tr.expanded td.td-limit{
    display:block;
}

.item-table tbody tr.expanded td.td-name .item-desc{
    display:block;
    font-size:12px;
    color:#666;
    margin-top:4px;
}

/* 수정/삭제 버튼 */
.edit-item-btn,
.delete-item-btn,
.save-item-btn,
.cancel-edit-btn{
    flex:1;
    padding:8px;
    font-size:12px;
}

/* 수정 모드일 때 */
.item-table tbody tr.editing-row td{
    display:block;
    width:100%;
    padding:4px 0;
}

.item-table tbody tr.editing-row td::before{
    content:attr(data-label);
    font-weight:600;
    color:#003380ff;
    display:block;
    margin-bottom:4px;
    font-size:12px;
}

.item-table tbody tr.editing-row td.td-image::before{
    content:'이미지';
}

.item-table tbody tr.editing-row td input[type="text"],
.item-table tbody tr.editing-row td input[type="number"],
.item-table tbody tr.editing-row td select{
    width:100%;
    padding:8px;
    margin-top:4px;
}

.item-table tbody tr.editing-row td.td-actions{
    border-top:1px solid #e0e0e0;
    margin-top:8px;
    padding-top:8px;
}

.item-table tbody tr.editing-row td.td-actions::before{
    display:none;
}


    
}


/* =========================
   반응형 - 작은 모바일
========================= */
@media (max-width:480px){
.form-container{padding:0px;}
.form-section{padding:10px;}
.form-section h3{font-size:15px;}
.editor-btn{font-size:14px;padding:12px;}
.period-header h4{font-size:14px;}
.period-badge{font-size:11px;padding:4px 10px;}
}

/* =========================
   프린트용
========================= */
@media print{
.submit-section,.remove-btn,.add-item-btn{display:none;}
}

/* 준수사항 섹션 - 변경 없음 */
.terms-agreement {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
}

.terms-summary {
    margin-bottom: 15px;
}

.terms-summary > p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 13px;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.terms-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #4b5563;
    line-height: 1.4;
    font-size: 13px;
}

.terms-list li:before {
    content: "•";
    position: absolute;
    left: 6px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 12px;
}

.view-terms-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
}

.view-terms-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.terms-checkbox {
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.5;
}

/* ============================================
   준수사항 모달 전용 스타일
   ============================================ */

/* 모달 오버레이 */
.agree-modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* 모달 카드 */
.agree-modal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    position: relative;
}

/* 모달 헤더 */
.agree-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.agree-modal-header strong {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 닫기 버튼 */
.agree-modal-x {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.agree-modal-x:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

/* 모달 바디 */
.agree-modal-body {
    padding: 15px 20px;
    max-height: 55vh;
    overflow-y: auto;
}

/* 모달 푸터 */
.agree-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* 동의 버튼 */
.agree-btn-primary {
    padding: 10px 20px;
    background: #003380ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.agree-btn-primary:hover {
    background: #004499;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 128, 0.3);
}

/* 준수사항 모달 */
.terms-modal {
    max-width: 550px;
    max-height: 70vh;
    overflow-y: auto;
}

.terms-content h4 {
    font-size: 16px;
    color: #1f2937;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 700;
}

.terms-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.terms-number {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.terms-text {
    flex: 1;
    color: #374151;
    line-height: 1.5;
    padding-top: 2px;
    font-size: 13px;
}

.terms-notice {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 8px;
    text-align: center;
}

.terms-notice strong {
    color: #dc2626;
    font-size: 12px;
    line-height: 1.5;
    display: block;
}

/* 반응형 */
@media (max-width: 768px) {
    .terms-agreement {
        padding: 12px;
    }
    
    .terms-summary > p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .terms-list li {
        padding: 5px 0 5px 18px;
        font-size: 12px;
    }
    
    .terms-list li:before {
        left: 5px;
        font-size: 11px;
    }
    
    .view-terms-btn {
        width: 100%;
        padding: 12px;
    }
    
    .terms-checkbox {
        padding: 10px;
    }
    
    .checkbox-label span {
        font-size: 11px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    /* 모달 모바일 스타일 */
    .agree-modal-overlay {
        align-items: flex-start;
        padding-top: 120px;
        overflow-y: auto;
    }
    
    .agree-modal-card {
        margin-bottom: 20px;
        max-height: calc(100vh - 140px);
    }
    
    .agree-modal-header {
        padding: 10px 16px;
    }
    
    .agree-modal-header strong {
        font-size: 16px;
    }
    
    .agree-modal-body {
        max-height: 65vh;
        padding: 12px 15px;
    }
    
    .agree-modal-footer {
        padding: 12px 15px;
    }
    
    .agree-btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .terms-modal {
        max-width: 90%;
        max-height: calc(100vh - 140px);
        margin: 0 auto 20px;
    }
    
    .terms-content h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .terms-item {
        flex-direction: row;
        gap: 10px;
        padding: 8px 10px;
        margin-bottom: 10px;
    }
    
    .terms-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .terms-text {
        font-size: 12px;
    }
    
    .terms-notice {
        padding: 10px 12px;
        margin-top: 12px;
    }
    
    .terms-notice strong {
        font-size: 12px;
    }
}