/* 전체 레이아웃 */
body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 40px 20px 20px 20px;
    background-color: #f0f2f5;
    color: #1a1a1a;
    line-height: 1.5;
    /* 단독 페이지에서는 텍스트 선택 허용 */
}

/* 단독 페이지에서는 h1 표시 */
.page-header {
    position: relative;
    margin: 0 0 30px 0;
    text-align: center;
}


.header-order-id {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 15px;
    color: #888;
    font-weight: 400;
}

h1 {
    color: #1a1a1a;
    text-align: center;
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    border-bottom: 3px solid #03c75a;
    padding-bottom: 15px;
}

/* 편집 가능한 요소들은 텍스트 선택 허용 */
input, 
textarea, 
[contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* textarea 포커스시 placeholder 숨김 */
textarea:focus::placeholder {
    opacity: 0;
    visibility: hidden;
}

main {
    max-width: 860px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 모바일 대응 */


/* 섹션 스타일링 */
section {
    margin-bottom: 20px;
    padding: 20px 25px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
}

section:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

h2 {
    color: #1a1a1a;
    margin: 5px 0;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background-color: #03c75a;
    border-radius: 2px;
}

/* 사이즈 입력 영역 */
.size-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="number"] {
    width: 60px;
    padding: 12px;
    margin: 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    text-align: right;
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]:focus {
    border-color: #03c75a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.1);
}

/* Chrome, Safari, Edge에서 화살표 제거 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.unit {
    margin-left: 8px;
    color: #495057;
    font-weight: 500;
}

.separator {
    color: #495057;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 8px;
}

/* 체크박스 스타일링 */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* 체크박스 라인 기본 스타일 */
.menu-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 0;
    position: relative;
    overflow: hidden;
}

/* 체크박스 레이블 스타일 수정 */
label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* 체크박스와 텍스트를 감싸는 새로운 스타일 */
.checkbox-text-wrapper {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 5px 0;
    cursor: pointer;
}

.checkbox-text-wrapper:hover {
    background-color: #f8f9fa;
}

/* quantity-input 위치 조정 */
.quantity-input {
    display: none;
    align-items: center;
    margin-left: 20px;
    padding: 0;
    height: 28px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: absolute;
    box-sizing: border-box;
}

input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #03c75a;
    margin-top: 0;
}

/* 체크박스가 체크되었을 때 텍스트 스타일 */
input[type="checkbox"]:checked + span {
    color: #03c75a;
    font-weight: 600;
}

/* 수량 입력 컨트롤 */
.quantity-input button {
    width: 28px;
    height: 28px;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-size: 14px;
    box-sizing: border-box;
}

.quantity-input button:hover {
    background-color: #e9ecef;
}

.quantity-input button.minus-btn {
    border-radius: 4px 0 0 4px;
}

.quantity-input button.plus-btn {
    border-radius: 0 4px 4px 0;
}

.quantity-input input[type="number"] {
    width: 40px;
    height: 28px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background-color: #fff;
    font-size: 14px;
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    box-shadow: none;
    box-sizing: border-box;
}

/* Chrome, Safari, Edge에서 화살표 제거 */
.quantity-input input[type="number"]::-webkit-outer-spin-button,
.quantity-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input input[type="number"]:focus {
    border-color: #e9ecef;
    outline: none;
    box-shadow: none;
}

.quantity-text {
    margin-left: 18px;
    color: #666;
    font-size: 16px;
    white-space: nowrap;
    font-weight: 600;
}

/* 체크박스 체크시 quantity-input 표시 */
input[type="checkbox"]:checked ~ .quantity-input,
.menu-line:has(input[type="checkbox"]:checked) .quantity-input {
    display: flex;
    position: static; /* 체크 시 normal flow로 복원 */
    opacity: 1;
    visibility: visible;
    height: 28px;
    transform: translateX(0) scale(1);
    transition: 
        opacity 0.25s ease-in,
        transform 0.28s cubic-bezier(0.33, 1, 0.68, 1),
        visibility 0s linear 0s; /* 즉시 visible로 변경 */
}

/* 메뉴 레이아웃 */
.horizontal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.horizontal-menu .menu-line {
    margin-right: 15px;
    padding: 2px 0;
}

.horizontal-menu .checkbox-text-wrapper {
    min-width: 120px;
    height: 26px;
}

.vertical-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.vertical-menu .menu-line:first-child {
    margin-top: 0;
}

.divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 7px 0;
    width: 100%;
}

.sub-title {
    font-weight: 600;
    color: #03c75a;
    margin: 7px 0;
    font-size: 1.1em;
}

/* 경고 텍스트 */
.warning-text {
    display: none;
    color: #e03131;
    font-size: 0.9em;
    margin-top: 8px;
    padding: 5px 10px;
    background-color: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #e03131;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

#option6Warning {
    display: none;
    color: #e03131;
    font-size: 0.9em;
    margin-top: 8px;
    margin-left: 32px;
    padding: 5px 10px;
    background-color: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #e03131;
    text-align: left;
    width: auto;
    max-width: 350px;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.button-group .naver-btn {
    flex: 3;
    height: 54px;
    font-size: 16px;
    background-color: #03c75a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-group .clear-cart {
    flex: 1;
    height: 54px;
    font-size: 16px;
    background-color: #fff;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#calculate {
    width: 100%;
}

.naver-btn {
    background-color: #03c75a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.naver-btn:hover {
    background-color: #02b350;
}

.clear-cart {
    background-color: #fff;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-cart:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* 주문 목록 - 항목/펼침에 따라 자동 높이 확장 */
.order-list {
    min-height: 120px;
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    list-style-type: none;
}

/* 폴더트리 접이식 스타일 */
.order-header   { display:flex; align-items:center; cursor:pointer; gap:6px; }
.order-toggle   { font-size:11px; color:#6366f1; min-width:16px; flex-shrink:0; user-select:none; }
.order-summary-text { flex:1; font-size:14px; color:#495057; line-height:1.5; }
.order-num          { color:#adb5bd; font-size:13px; margin-right:3px; }
.order-detail   { padding:6px 0 4px 22px; }
.order-tree     { border-left:2px solid #e9ecef; padding-left:10px; }
.tree-row       { display:block; padding:2px 0; font-size:13px; color:#6c757d; }
.tree-branch    { font-family:monospace; color:#adb5bd; margin-right:3px; }
.tree-label     { }
.tree-cost      { color:#495057; font-weight:600; margin-left:5px; }

.order-list::-webkit-scrollbar {
    width: 8px;
}

.order-list::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.order-list::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 4px;
    border: 2px solid #f1f3f5;
}

.order-list::-webkit-scrollbar-thumb:hover {
    background-color: #868e96;
}

.empty-message {
    text-align: center;
    color: #868e96;
    font-size: 0.9em;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    margin: 10px 0;
}

.empty-cart-message {
    text-align: center;
    color: #868e96;
    font-size: 15px;
    padding: 15px 0;
    width: auto;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
}

.order-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    display: block;
}

.order-item:last-child {
    border-bottom: none;
}

.order-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    margin-right: 10px;
}

/* 주문 목록의 material type 표시 스타일 */
.order-text span {
    font-weight: 600;
    margin-right: 1px;
}

.edit-btn {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: invert(32%) sepia(95%) saturate(500%) hue-rotate(185deg) brightness(90%) contrast(95%);
}

.edit-btn:hover {
    opacity: 1;
}

/* 텍스트 영역 */
textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    resize: none;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    overflow-y: hidden;
}

textarea:focus {
    border-color: #03c75a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.1);
}

/* 주문 요약 정보 스타일 */
.order-summary {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.order-summary:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.summary-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    min-width: 140px;
    text-align: center;
}

.summary-item strong {
    margin-bottom: 5px;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.summary-item span {
    font-size: 18px;
    font-weight: 600;
}

.summary-item span::after {
    content: '원';
    display: inline;
    font-size: 16px;
    margin-left: 4px;
    margin-right: 2px;
}

.summary-separator {
    font-size: 20px;
    font-weight: bold;
    color: #adb5bd;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f5;
    border-radius: 50%;
    margin: 0px 20px;
}

.summary-item.discount {
    background-color: #fff5f8;
    border: 1px solid #fcc2d7;
}

.summary-item.discount strong,
.summary-item.discount span {
    color: #e64980;
}

.summary-item.final-price {
    background-color: #ebfbf2;
    border: 1px solid #d3f9d8;
    color: #03c75a;
    font-weight: bold;
    min-width: 160px;
}

.summary-item.final-price strong {
    color: #03c75a;
}

.summary-item.final-price span {
    color: #03c75a;
    font-size: 22px;
}

.summary-item.final-price span::after {
    font-size: 18px;
    margin-left: 5px;
}

/* 이미지 컨테이너 */
[id^="design"], 
[id^="post"] {
    margin: 10px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden; /* 애니메이션 중 내용 넘침 방지 */
    /* 체크 해제 시에도 공간을 차지하지 않도록 수정 */
    position: absolute; /* 기본적으로 absolute로 설정 */
    width: 100%;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transform: translateY(-8px) scale(0.98);
    transition: 
        opacity 0.12s ease-out,
        transform 0.15s cubic-bezier(0.19, 1, 0.22, 1),
        visibility 0s linear 0.15s; /* 지연된 visibility 변경 */
}

#post0, #post1 {
    margin: 0;
}

/* 체크박스 체크 시 이미지 컨테이너 표시 */
[id^="design"].show, 
[id^="post"].show {
    position: static; /* 체크 시 normal flow로 복원 */
    visibility: visible;
    height: auto;
    margin: 10px 0;
    padding: 15px;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: 
        opacity 0.3s ease-in,
        transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
        visibility 0s linear 0s; /* 즉시 visible로 변경 */
}

[id^="design"] img, 
[id^="post"] img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 비활성화된 체크박스 스타일 */
input[type="checkbox"]:disabled + span {
    color: #adb5bd;
}

label:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
}

/* 복수 구매 옵션 */
.data-options {
    margin-top: 15px;
    display: none;
    flex-direction: column;
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    align-items: center;
}

.data-options-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.data-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.data-options .step-anchor {
    top: -100px; /* 복수구매 옵션 앵커는 더 위로 배치 */
}

.data-options label {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.data-options input[type="radio"] {
    margin: 0px 5px 2px 5px;
}

.data-options label:last-child {
    margin-right: 0;
}

/* 이메일 복사 버튼 */
.copy-btn {
    display: none;
    padding: 8px 12px;
    background-color: #03c75a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 15px;
}

.copy-btn:hover {
    background-color: #02b350;
}

/* 주문 정보 */
.order-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #e7f5ff;
    border-radius: 8px;
    text-align: center;
}

.order-info p {
    margin: 0;
    color: #1971c2;
    font-weight: 500;
}

/* 주문 정보 그리드 레이아웃 */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.order-number, .order-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.order-number p, .order-qty p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.order-number span, .order-qty span {
    font-size: 22px;
    font-weight: 700;
    color: #03c75a;
}

.order-note {
    font-size: 13px;
    margin-top: 8px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

/* 새로운 주문 정보 스타일 */
.order-info-container {
    display: none; /* 초기에는 숨김 처리 */
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.order-info-box {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 0;
    width: 100%;
}

.order-info-item {
    flex: 1;
    border-radius: 16px;
    padding: 22px 15px;
    text-align: center;
    position: relative;
}

.order-info-item:first-child {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
    border: none;
}

.order-info-item:last-child {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
    border: none;
}

.order-info-title {
    font-size: 20px;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.order-info-item:first-child .order-info-title {
    color: #e0e7ff;
}

.order-info-item:last-child .order-info-title {
    color: #f3e8ff;
}

.order-info-value {
    font-size: 46px;
    font-weight: 800;
}

.order-info-item:first-child .order-info-value {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.order-info-item:last-child .order-info-value {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.unit-text {
    font-size: 30px;
    font-weight: 700;
    margin-left: 4px;
    color: #ffffff;
}

.copy-order-info-btn {
    margin-top: 22px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    animation: buttonBounce 1.2s ease-in-out infinite;
}

.copy-order-info-btn:active {
    animation-play-state: paused;
    transform: translateY(1px);
}

/* 버튼 위아래 움직임을 위한 애니메이션 */
@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 10px 18px rgba(59, 130, 246, 0.3);
    }
}

/* 주문 알림 메시지 */
.order-notification {
    background: linear-gradient(135deg, #fff5f6 0%, #ffe8eb 100%);
    border-left: 5px solid #ff6b81;
    margin: 25px 0;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 107, 129, 0.15);
    animation: pulse 2s infinite;
    text-align: center;
}

.order-notification.success {
    background: linear-gradient(135deg, #e6fffa 0%, #c6f6d5 100%);
    border-left: 5px solid #38b2ac;
    box-shadow: 0 5px 15px rgba(56, 178, 172, 0.15);
    animation: pulse-success 2s infinite;
}

.order-notification p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    letter-spacing: 0.5px;
}

.order-notification.success p {
    color: #2c7a7b;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 15px rgba(255, 107, 129, 0.15);
    }
    50% {
        box-shadow: 0 5px 20px rgba(255, 107, 129, 0.3);
    }
    100% {
        box-shadow: 0 5px 15px rgba(255, 107, 129, 0.15);
    }
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 5px 15px rgba(56, 178, 172, 0.15);
    }
    50% {
        box-shadow: 0 5px 20px rgba(56, 178, 172, 0.3);
    }
    100% {
        box-shadow: 0 5px 15px rgba(56, 178, 172, 0.15);
    }
}

/* 현수막 타입 선택 */
.banner-type-selection {
    margin-top: 15px;
}

.banner-options {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.banner-options label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    height: 50px;
    color: #8d96a0;
}

.banner-options label:first-child {
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.banner-options label:last-child {
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.banner-options label:hover {
    background-color: #e9ecef;
}

.banner-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.banner-options input[type="radio"]:checked + span {
    color: white;
    font-weight: 600;
}

.banner-options input[type="radio"]:checked + span::before {
    content: '✓ ';
}

.banner-options label:has(input[type="radio"]:checked) {
    background-color: #03c75a;
    border-color: #03c75a;
    box-shadow: 0 0 15px rgba(3, 199, 90, 0.25);
    transform: scale(1.02);
    z-index: 1;
}

.banner-description {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 0;
    border: 1px solid #e9ecef;
}

.pros-cons {
    display: flex;
    gap: 30px;
}

.pros, .cons {
    flex: 1;
}

.pros h3, .cons h3 {
    font-size: 16px;
    margin: 0px 0px 10px 0px;
    color: #495057;
}

.pros h3 {
    color: #03c75a;
}

.cons h3 {
    color: #ff6b6b;
}

.pros ul, .cons ul {
    padding-left: 20px;
    margin: 0;
}

.pros li, .cons li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* 비활성화된 체크박스 */
label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

label.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

input[type="checkbox"]:disabled + span {
    color: #adb5bd;
}

label:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
}



/* 커스텀 알림창 스타일 */
.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.custom-alert.show {
    display: flex;
    opacity: 1;
}

.custom-alert-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.custom-alert.show .custom-alert-container {
    transform: scale(1);
}

.custom-alert-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-alert-icon {
    display: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon {
    display: flex;
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
}

.error-icon {
    display: flex;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border: 3px solid #dc3545;
}

.warning-icon {
    display: flex;
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
}

.info-icon {
    display: flex;
    color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
    border: 2px solid #17a2b8;
}

.custom-alert-title {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: block;
}

.custom-alert-message {
    margin: 0 0 20px;
    font-size: 16px;
    color: #555;
}

.custom-alert-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.custom-alert-confirm-btn, 
.custom-alert-cancel-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 80px;
    transition: background-color 0.3s;
}

.custom-alert-confirm-btn {
    background-color: #5cb85c;
    color: white;
}

.custom-alert-confirm-btn:hover {
    background-color: #4cae4c;
}

.custom-alert-cancel-btn {
    background-color: #f5f5f5;
    color: #333;
}

.custom-alert-cancel-btn:hover {
    background-color: #e6e6e6;
}

.custom-alert-cancel-btn.red {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.custom-alert-cancel-btn.red:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 글머리 기호 스타일 */
.custom-alert-message ul {
    text-align: left;
    padding-left: 20px;
    margin: 15px 0;
}

.custom-alert-message ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
    text-align: left;
}

.custom-alert-message ul li::before {
    content: '•';
    color: #dc3545;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.custom-alert-message ul li strong {
    color: #dc3545;
    font-weight: bold;
}

.step-anchor {
    display: block;
    position: relative;
    top: -70px; /* 헤더 높이만큼 위로 오프셋 */
    visibility: hidden;
    height: 0;
    width: 0;
}

.alert-anchor {
    position: relative;
    display: block;
    height: 0;
    width: 100%;
    visibility: hidden;
}

.copy-order-info-btn::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    margin-right: 10px;
}

/* 봉미싱 옵션 스타일 */
.pole-options {
    display: none;
    align-items: center;
    transition: all 0.3s ease;
}

.pole-options label {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.pole-options input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* 봉미싱 체크박스가 체크되면 옵션 표시 */
input[name="post_processing"][value="pole_stitching"]:checked ~ .pole-options,
.menu-line:has(input[name="post_processing"][value="pole_stitching"]:checked) .pole-options {
    display: flex;
}

/* 선택된 라디오 버튼의 텍스트 스타일 */
.pole-options input[type="radio"]:checked + span {
    color: #03c75a;
    font-weight: 600;
}

/* 모바일 전용 줄바꿈 */
.mobile-br { display: none; }

/* ===== 모바일 대응 CSS (간단 버전) ===== */
@media (max-width: 768px), (pointer: coarse) {
    .mobile-br { display: block; height: 0; }

    /* Step 5-1 제목 줄바꿈: Row1=[Step 5-1. (선택사항) ▾] / Row2=[출력파일 or 참고파일 첨부] */
    section[data-step="5-1"] h2 {
        flex-wrap: wrap;
    }
    .h2-step-num {
        flex: 1 0 auto;
        white-space: nowrap;
        order: 1;
    }
    section[data-step="5-1"] h2 .accordion-arrow {
        order: 2;
    }
    .h2-step-title {
        flex: 0 0 100%;
        font-size: 0.92em;
        order: 3;
    }
    body {
        padding: 10px;
        font-size: 13px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    h1 {
        font-size: 1.3em;
        margin: 0;
    }

    .page-header {
        margin: 0 0 20px 0;
    }

    .header-order-id {
        font-size: 13px;
    }
    
    main {
        padding: 15px;
        border-radius: 12px;
        margin: 10px auto;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    
    section {
        margin-bottom: 15px;
        padding: 10px 8px;
        border-radius: 8px;
    }
    
    h2 {
        font-size: 14px;
    }
    
    h2::before {
        width: 4px;
        height: 16px;
    }
    
    .size-input {
        gap: 4px;
        padding: 8px 5px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    input[type="number"] {
        width: 45px;
        padding: 6px;
        font-size: 14px;
        text-align: center;
        min-width: 45px;
        max-width: 45px;
    }
    
    .button-group {
        gap: 8px;
        margin: 10px 0;
    }
    
    .button-group .naver-btn {
        flex: 4;
        height: 45px;
        font-size: 14px;
    }
    
    .button-group .clear-cart {
        flex: 1;
        height: 45px;
        font-size: 14px;
    }
    
    #calculate {
        height: 45px;
        font-size: 14px;
        margin: 10px 0;
    }
    
    .checkbox-text-wrapper {
        padding: 1px 5px;
        margin: 0;
    }

    .checkbox-text-wrapper span {
        font-size: 13px;
        line-height: 1.4;
    }

    .menu-line {
        margin-bottom: 1px;
    }

    /* 배너 타입 선택 폰트 축소 */
    .banner-options label {
        font-size: 15px;
        height: 34px;
    }

    /* 열재단·사방마감미싱 한 줄 강제 + 간격 */
    .horizontal-menu {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .horizontal-menu .menu-line {
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .horizontal-menu .checkbox-text-wrapper {
        min-width: unset;
        height: auto;
    }
    
    .warning-text {
        font-size: 12px;
        padding: 8px 10px;
        margin: 5px 0;
    }
    
    .order-list {
        padding: 12px;
    }
    
    /* 모바일에서 order-summary div 패딩 줄이기 */
    .order-summary {
        margin-top: 10px;
        padding: 10px;
    }
    
    /* 모바일에서 주문 요약 PC와 동일한 가로 배치 */
    .summary-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .summary-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        padding: 4px 2px;
        background-color: #f8f9fa;
        border-radius: 4px;
        flex: 3 1 0;
        text-align: center;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .summary-item strong {
        margin-bottom: 1px;
        color: #495057;
        font-size: 9px;
        font-weight: 600;
    }
    
    .summary-item span {
        font-size: 13px;
        font-weight: 600;
    }
    
    /* 할인 박스 스타일 */
    .summary-item.discount {
        background-color: #fff5f8;
        border: 1px solid #fcc2d7;
        flex: 2 1 0;
    }
    
    .summary-item.discount strong,
    .summary-item.discount span {
        color: #e64980;
    }
    
    /* 최종 주문금액 박스 스타일 */
    .summary-item.final-price {
        background-color: #ebfbf2;
        border: 1px solid #d3f9d8;
        color: #03c75a;
        font-weight: bold;
        flex: 3 1 0;
        min-width: 0;
    }
    
    .summary-item.final-price strong {
        color: #03c75a;
    }
    
    .summary-item.final-price span {
        color: #03c75a;
        font-size: 13px;
        font-weight: bold;
    }
    
    /* 구분자 (-, =) 스타일 */
    .summary-separator {
        font-size: 12px;
        font-weight: bold;
        color: #adb5bd;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f1f3f5;
        border-radius: 50%;
        margin: 0;
        flex-shrink: 0;
    }
    
    /* 모바일에서만 '원' 글자 제거 */
    .summary-item span::after {
        display: none;
    }
    
    /* 모바일에서 수량 입력 필드 레이아웃 개선 */
    .menu-line {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity-input {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
        justify-content: flex-start;
        height: auto !important;
    }
    
    .quantity-input button {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px;
        min-width: 36px;
        touch-action: manipulation;
    }
    
    .quantity-input input[type="number"] {
        width: 50px !important;
        height: 36px !important;
        font-size: 16px;
        min-width: 50px;
    }
    
    .quantity-text {
        margin-left: 12px;
        font-size: 14px;
        white-space: normal;
        line-height: 1.3;
    }
    
    /* 체크박스와 텍스트는 한 줄에, 수량 입력은 다음 줄에 */
    .checkbox-text-wrapper {
        width: 100%;
        margin-bottom: 0;
    }
    
    /* 모바일에서 구분자 마진 줄이기 */
    .separator {
        margin: 0 3px;
        font-size: 1em;
    }
    
    /* 모바일에서 input-wrapper 간격 조정 */
    .input-wrapper {
        display: flex;
        align-items: center;
        gap: 2px;
    }
    
    /* 모바일에서 unit 텍스트 크기 조정 */
    .unit {
        font-size: 12px;
        margin-left: 1px;
    }
}

/* ===== 주문서 잠금 오버레이 ===== */
.lock-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lock-overlay.show {
    opacity: 1;
}

.lock-overlay-box {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.lock-overlay-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.lock-overlay-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

.lock-overlay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.lock-overlay-row + .lock-overlay-row {
    border-top: 1px solid #e2e8f0;
}

.lock-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.lock-value {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.lock-overlay-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lock-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s;
}

.lock-btn:hover {
    opacity: 0.88;
}

.lock-btn-naver {
    background: #03c75a;
    color: #fff;
}

.lock-btn-edit {
    background: #f1f5f9;
    color: #475569;
}

.lock-btn-pay {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}

@media (max-width: 480px) {
    .lock-overlay-box {
        padding: 28px 20px;
    }

    .lock-overlay-title {
        font-size: 20px;
    }

    .lock-value {
        font-size: 18px;
    }
}
/* ===== 파일 업로드 섹션 ===== */
.step-optional {
    font-size: 13px;
    font-weight: 400;
    color: #868e96;
    margin-left: 6px;
}

.upload-desc {
    font-size: 14px;
    color: #868e96;
    margin: 0 0 12px;
    line-height: 1.6;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}

.upload-area.drag-over {
    border-color: #03c75a;
    background: #f0fff7;
}

.upload-area-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.upload-area-text {
    font-size: 13px;
    color: #868e96;
    margin: 0 0 10px;
    line-height: 1.5;
}

.upload-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    user-select: none;
}

.upload-btn:hover {
    border-color: #03c75a;
    color: #03c75a;
}

/* 파일 목록 */
.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.file-item.file-done {
    background: #f0fff7;
    border-color: #b2f0d1;
}

.file-item.file-error {
    background: #fff5f5;
    border-color: #ffc9c9;
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.file-status-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.file-progress-bar {
    width: 80px;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    overflow: hidden;
}

.file-progress-fill {
    height: 100%;
    background: #03c75a;
    border-radius: 3px;
    transition: width 0.2s;
}

.file-progress-text {
    font-size: 12px;
    color: #868e96;
    min-width: 32px;
}

.file-status-done {
    font-size: 13px;
    color: #03c75a;
    font-weight: 500;
}

.file-status-error {
    font-size: 13px;
    color: #e03131;
}

.file-delete-btn {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.file-delete-btn:hover {
    color: #e03131;
}

/* ===== 아코디언 ===== */
section[data-step] {
    padding: 0;           /* 기본 section padding 제거 → body에서 적용 */
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

section[data-step]:hover {
    box-shadow: none;     /* 기본 section:hover 박스쉐도우 제거 */
}

section[data-step] h2 {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 16px 20px;
    background: #f8f9fa;
    font-size: 16px;
    font-weight: 600;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
}

section[data-step] h2:hover {
    background: #e9ecef;
}

section[data-step].accordion-open h2 {
    border-bottom-color: #dee2e6;
    background: #fff;
}

.accordion-arrow {
    font-size: 18px;
    color: #adb5bd;
    transition: transform 0.25s;
    margin-left: auto;    /* 텍스트와 오른쪽 끝 사이 공간 확보 */
    padding-left: 8px;
    flex-shrink: 0;
}

section[data-step].accordion-open .accordion-arrow {
    transform: rotate(180deg);
    color: #495057;
}

/* 아코디언 열림/닫힘 */
.accordion-body {
    display: none;
    padding: 20px 25px;
}

section[data-step].accordion-open .accordion-body {
    display: block;
    animation: accordionOpen 0.25s ease forwards;
}

@keyframes accordionOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

section[data-step].accordion-closing .accordion-body {
    display: block;
    animation: accordionClose 0.2s ease forwards;
}

@keyframes accordionClose {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}

/* 다음 → 버튼 */
.accordion-next-btn {
    display: block;
    margin: 18px auto 4px;
    padding: 10px 32px;
    background: #03c75a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-next-btn:hover {
    background: #02a84a;
}

/* ===== payment.php 결제 페이지 ===== */
.payment-page {
    max-width: 540px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: 'Noto Sans KR', sans-serif;
}

.payment-header {
    text-align: center;
    margin-bottom: 28px;
}

.payment-header-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.payment-header-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.payment-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 14px;
}

.payment-summary-box {
    background: #f8f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.payment-summary-row:last-child {
    border-bottom: none;
}

.payment-summary-label {
    color: #718096;
    flex-shrink: 0;
    margin-right: 12px;
}

.payment-summary-value {
    color: #2d3748;
    text-align: right;
}

.payment-summary-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
}

.payment-price-highlight {
    font-size: 18px;
    font-weight: 700;
    color: #4f46e5;
}

.payment-quantity-note {
    font-size: 13px;
    font-weight: 400;
    color: #a0aec0;
    margin-left: 4px;
}

.payment-form-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-form-group {
    margin-bottom: 14px;
}

.payment-form-group:last-child {
    margin-bottom: 0;
}

.payment-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.payment-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.payment-form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.required-mark {
    color: #e53e3e;
    margin-left: 2px;
}

.optional-mark {
    color: #a0aec0;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.payment-submit-btn {
    width: 100%;
    padding: 17px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    box-sizing: border-box;
}

.payment-submit-btn:hover:not(:disabled) {
    opacity: 0.92;
}

.payment-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.payment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-notice {
    font-size: 13px;
    color: #a0aec0;
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

/* 결제 완료 페이지 */
.payment-complete-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.payment-complete-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.payment-complete-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
}

.payment-complete-sub {
    font-size: 16px;
    color: #718096;
    margin: 0 0 4px;
}

.payment-complete-notice {
    background: #f7f8ff;
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0 0;
    text-align: left;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
}

.payment-complete-notice p {
    margin: 0;
}

.payment-back-link {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: #a0aec0;
    text-decoration: none;
}

.payment-back-link:hover {
    color: #4f46e5;
}

/* ===== 개인정보 동의 박스 ===== */
.privacy-consent-box {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.privacy-consent-box.is-agreed {
    border-color: #6366f1;
    background: #f5f3ff;
}

.privacy-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.privacy-consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #6366f1;
    cursor: pointer;
}

.privacy-consent-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.privacy-consent-text strong {
    color: #2d3748;
}

.privacy-consent-detail {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f7f8ff;
    border-radius: 8px;
    font-size: 12px;
    color: #718096;
    line-height: 1.7;
}

/* ===== 배송방법 선택 ===== */
.delivery-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.delivery-option {
    flex: 1;
    cursor: pointer;
}

.delivery-option input[type="radio"] {
    /* display:none은 iOS Safari에서 change 이벤트 미발생 — 시각적으로만 숨김 */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    overflow: hidden;
}

.delivery-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.delivery-option input[type="radio"]:checked + .delivery-option-card {
    border-color: #6366f1;
    background: #f5f3ff;
}

.delivery-option-icon {
    font-size: 24px;
}

.delivery-option-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.delivery-option-fee {
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 6px;
}

.courier-fee {
    color: #e53e3e;
    background: #fff5f5;
}

.free-fee {
    color: #2f855a;
    background: #f0fff4;
}

.delivery-notice {
    font-size: 12px;
    color: #a0aec0;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* 관리자 PayApp 배지 */
.payapp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

/* 관리자 배송방법 배지 */
.delivery-badge {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 4px;
    vertical-align: middle;
}
