/* NeoDGM 폰트 */
@import url('//cdn.jsdelivr.net/gh/neodgm/neodgm-webfont@latest/neodgm/style.css');

/* 달무리 폰트 정의 */
@font-face {
    font-family: 'Dalmoori';
    src: url('./fonts/dalmoori.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 프리텐다드 폰트 정의 */
@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Thin.subset.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-ExtraLight.subset.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Light.subset.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Regular.subset.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Medium.subset.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-SemiBold.subset.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Bold.subset.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-ExtraBold.subset.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./fonts/Pretendard-Black.subset.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* 가로 스크롤만 차단 */
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background-color: #f4f4f8;
    color: #333;
    font-weight: 400;
}

.container {
    max-width: none;
    width: 100%;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f8;
    padding: 0;
    padding-bottom: 80px;

    box-sizing: border-box;
    overflow-y: auto;
    /* 세로 스크롤 허용 */
    overflow-x: hidden;
    /* 가로 스크롤만 차단 */
}

/* 스크롤이 필요한 모든 요소에서 스크롤바 보이도록 설정 */
.modal-body,
.modal-content,
.container,
[class*="modal"] .modal-body,
.benefits-modal-content .modal-body,
.benefit-detail-content .modal-body,
#partnerCardModal .modal-body,
.modal-scroll-content {
    scrollbar-width: auto !important;
    /* Firefox */
    -ms-overflow-style: scrollbar !important;
    /* IE/Edge */
}

.modal-body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.container::-webkit-scrollbar,
[class*="modal"] .modal-body::-webkit-scrollbar,
.benefits-modal-content .modal-body::-webkit-scrollbar,
.benefit-detail-content .modal-body::-webkit-scrollbar,
#partnerCardModal .modal-body::-webkit-scrollbar,
.modal-scroll-content::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
}

.modal-body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.container::-webkit-scrollbar-track,
[class*="modal"] .modal-body::-webkit-scrollbar-track,
.benefits-modal-content .modal-body::-webkit-scrollbar-track,
.benefit-detail-content .modal-body::-webkit-scrollbar-track,
#partnerCardModal .modal-body::-webkit-scrollbar-track,
.modal-scroll-content::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

.modal-body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.container::-webkit-scrollbar-thumb,
[class*="modal"] .modal-body::-webkit-scrollbar-thumb,
.benefits-modal-content .modal-body::-webkit-scrollbar-thumb,
.benefit-detail-content .modal-body::-webkit-scrollbar-thumb,
#partnerCardModal .modal-body::-webkit-scrollbar-thumb,
.modal-scroll-content::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 4px !important;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.container::-webkit-scrollbar-thumb:hover,
[class*="modal"] .modal-body::-webkit-scrollbar-thumb:hover,
.benefits-modal-content .modal-body::-webkit-scrollbar-thumb:hover,
.benefit-detail-content .modal-body::-webkit-scrollbar-thumb:hover,
#partnerCardModal .modal-body::-webkit-scrollbar-thumb:hover,
.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
}


/* 헤더 */
.header {
    background: white;
    color: #333;
    padding: 30px 30px;
    position: relative;
    overflow: visible;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 80px;
}

.header-content {
    max-width: none;
    margin: 0;
    padding: 0 !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 100%;
}

.header h1 {
    font-family: 'Dalmoori', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 100%;
}

.header h1 .channel-version {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.8;
}

/* 워터마크 스타일은 watermark.css로 이동됨 */

/* 제품 영역 헤더 */
.products-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    gap: 10px;
    flex-wrap: nowrap;
}

.header-buttons-wrapper {
    display: flex;
    gap: 10px;
}

/* 구독 혜택 버튼 */
.subscription-benefits-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #333;
    color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Pretendard', sans-serif;
    white-space: nowrap;
}

.subscription-benefits-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    background: #555;
}

.benefits-icon {
    font-size: 15px;
}

/* 구독 혜택 모달 */
.benefits-modal-content {
    width: 95vw !important;
    height: 95vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 2.5vh auto !important;
    position: relative;
    top: 0 !important;
    transform: none !important;
}

.benefits-modal-content .modal-body {
    height: calc(95vh - 120px);
    overflow-y: auto;
    padding: 20px;
}

/* 혜택 그리드 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* 구독 혜택 모달의 혜택 버튼 */
.benefits-grid .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1;
}

.benefits-grid .benefit-item:hover {
    background: #ffe0e6;
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.benefits-grid .benefit-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.benefits-grid .benefit-item .benefit-name {
    display: none;
}

/* 혜택 상세 모달 */
.benefit-detail-content {
    width: 95vw !important;
    height: 95vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 2.5vh auto !important;
    position: relative;
    top: 0 !important;
    transform: none !important;
}

.benefit-detail-content .modal-body {
    height: calc(95vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

#benefitDetailContent {
    width: 100%;
    height: 100%;
}

#benefitDetailContent iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 이미지 영역 - 전체의 90% */
#benefitImageContainer {
    width: 100%;
    height: 90%;
    flex: 0 0 90%;
    overflow: auto;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 이미지 스타일 */
#benefitImageContainer img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 버튼 영역 - 전체의 10% */
.care-service-buttons {
    width: 100%;
    height: 10%;
    flex: 0 0 10%;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
}

/* 버튼 스타일 */
.care-service-buttons button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.care-service-buttons button:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
}

/* 활성화된 버튼 - 검정색 */
.care-service-buttons button.active,
.care-service-buttons button[style*="scale"] {
    background: linear-gradient(135deg, #000, #222) !important;
    color: #fff !important;
    border: 2px solid #666 !important;
    font-weight: 700 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.1) !important;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    width: 300px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 20px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

.search-bar button:hover {
    background: #f0f0f0;
}

/* 메인 컨텐츠 */
.main-content {
    display: flex;
    gap: 30px;
    padding: 20px 40px;
    max-width: none;
    margin: 0;
}

/* 계산기 사이드바 */
.calculator-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #dddddd;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.calculator-header {
    background: white;
    color: #333;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.calculator-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: 0;
}

.benefit-section {
    padding: 20px;
    flex: 1;
}

.benefit-item {
    background: #f8f8fc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.benefit-item.active {
    border-color: #333;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.benefit-item.total {
    border-color: #A50034;
    background: #fff5f7;
}

.benefit-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-family: 'Pretendard', sans-serif;
    text-align: left;
}

.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* 혹시 부모 요소에서 배경색이 적용되는 경우를 위한 추가 CSS */
.benefit-item[data-type="promotion"] .benefit-header {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.benefit-section .benefit-header {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.benefit-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.benefit-arrow.rotated {
    transform: rotate(180deg);
}

.benefit-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.benefit-toggle:hover {
    background: #f5f5f5;
}

.prepayment-section {
    border-color: #A50034;
    background: #fff5f7;
}

.prepayment-section .benefit-title {
    color: #8A002A;
}

.prepayment-price {
    color: #A50034 !important;
}

.prepayment-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.3;
    margin-bottom: 2px;
}

.benefit-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Pretendard', sans-serif;
    text-align: right;
}

.benefit-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.benefit-detail {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.3;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.small-text {
    font-size: 10px;
    color: #999;
}

.final-total {
    position: fixed;
    bottom: 10px;
    left: 20px;
    width: 320px;
    background: #333;
    color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.final-message {
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.9;
    font-family: 'Pretendard', sans-serif;
    text-align: left;
}

.final-price {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Pretendard', sans-serif;
    text-align: right;
}

/* 제품 메인 */
.products-main {
    flex: 1;
    min-width: 0;
    padding-left: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 380px));
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: start;
}

.products-grid.loaded {
    opacity: 1;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dddddd;
    position: relative;
    transition: all 0.3s;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
}

/* 제품 카드 호버 시 총 비용 섹션 표시 */
.product-card:hover .total-cost-section {
    max-height: 500px !important;
}

.product-image {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    /* 중앙 정렬 및 하단 여백 추가 */
    font-size: 48px;
    /* 폴백 아이콘 크기 증가 */
    color: #666;
}

.product-header-content {
    display: flex;
    align-items: center;
    gap: 0;
    /* 이미지와 텍스트 사이 간격 */
    margin-bottom: 15px;
    /* 이 섹션 아래 여백 */
}

.product-header-content .product-image {
    flex-shrink: 0;
    /* 이미지가 줄어들지 않도록 방지 */
    margin: 0;
    /* 이전 자동 여백 제거 */
}

.product-text-container {
    flex-grow: 1;
    /* 텍스트 컨테이너가 남은 공간을 모두 차지하도록 */
    min-width: 0;
    /* flex 아이템의 최소 너비 설정 (오버플로우 방지) */
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
}

.product-specs {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

.care-service-section {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.care-service-section .care-service-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto;
    text-align: center;
}

.care-service-section .care-service-btn:hover {
    background: #555;
    transform: translateY(-1px);
}

.product-price {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    min-height: 20px;
    width: 100%;
}

.price-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    font-family: 'Pretendard', sans-serif;
}

.price-value {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
}

.monthly-fee .price-value {
    color: #333;
}

.discount .price-value {
    color: #A50034;
}

.final-price {
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
    margin-top: 4px;
}

.final-price .price-label {
    font-weight: 600;
    color: #333;
}

.final-price .price-value {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

/* 기간별 가격 표시 스타일 */
.promotion-period .price-label {
    color: #A50034;
    font-weight: 600;
    font-size: 11px;
}

.promotion-final {
    background: linear-gradient(135deg, #ffe0e6, #f3f9ff);
    padding: 8px 10px;
    border-radius: 6px;
    margin: 2px 0 6px 0;
    border-left: 3px solid #A50034;
}

.promotion-final .price-label {
    color: #1565c0;
    font-weight: 600;
    font-size: 12px;
}

.promotion-final .price-value {
    color: #1565c0;
    font-size: 15px;
    font-weight: 700;
}

.basic-period .price-label {
    color: #666;
    font-weight: 600;
    font-size: 11px;
}

.basic-final {
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    padding: 8px 10px;
    border-radius: 6px;
    margin: 2px 0 4px 0;
    border-left: 3px solid #666;
}

.basic-final .price-label {
    color: #333;
    font-weight: 600;
    font-size: 12px;
}

.basic-final .price-value {
    color: #333;
    font-size: 15px;
    font-weight: 700;
}

.product-monthly {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.product-remove {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-remove:hover {
    background: #cc0000;
}

.promotion-table-container {
    width: 100%;
    margin-top: 12px;
}

.promotion-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    font-size: 12px;
}

.promotion-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.promotion-table tr:last-child {
    border-bottom: none;
}

.promotion-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.promotion-label {
    font-weight: 600;
    color: #555;
    width: 70px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    font-size: 11px;
}

.promotion-value {
    color: #333;
    background: white;
    font-size: 11px;
    line-height: 1.4;
}

.promotion-etc {
    color: #555;
    background: #f9f9f9;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}

.product-remove-top {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.product-card:hover .product-remove-top {
    opacity: 0.8;
    pointer-events: auto;
}

.product-remove-top:hover {
    background: #cc0000;
    opacity: 1 !important;
    transform: scale(1.1);
}

.product-compare-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
    font-weight: 500;
}

.product-card:hover .product-compare-btn {
    opacity: 0.9;
    pointer-events: auto;
}

.product-compare-btn:hover {
    background: #357abd;
    opacity: 1 !important;
    transform: scale(1.05);
}

/* 터치 디바이스에서는 항상 표시 */
@media (hover: none) and (pointer: coarse) {
    .product-compare-btn {
        opacity: 0.9;
        pointer-events: auto;
    }

    .product-remove-top {
        opacity: 0.8;
        pointer-events: auto;
    }
}

.add-product-card {
    background: white;
    border: 1px dashed #dddddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.05);
}

.add-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #333;
}

.add-product-content {
    text-align: center;
    color: #666;
}

.add-icon {
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
    opacity: 0.6;
}

.add-text {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    color: #333;
    letter-spacing: 0;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.welcome-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Pretendard', sans-serif;
}

.welcome-message p {
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Pretendard', sans-serif;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.product-header h2 {
    font-size: 24px;
    color: #333;
}

.product-count {
    color: #666;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 320px));
    gap: 15px;
    justify-content: start;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
}

.product-card.selected {
    border-color: #A50034;
    background: #ffe0e6;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.product-detail {
    font-size: 12px;
    color: #666;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monthly-fee {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 14px;
    color: #ddd;
}

.selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #A50034;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* 웰컴 섹션 */
.welcome-section {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.welcome-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.guide-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.guide-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.guide-text {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.start-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #555;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

/* 제품 선택 모달을 더 앞에 표시 */
#productModal {
    z-index: 10001;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    /* Reverted padding */
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    /* 기본 모달은 숨김 */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10001;
}

/* 제휴카드 모달은 스크롤 가능하도록 설정 */
#partnerCardModal .modal-content {
    overflow: visible;
}

#partnerCardModal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(90vh - 140px);
    /* 헤더와 푸터 높이 고려 */
}

/* 모달 내부 스크롤 영역을 별도로 분리 */
.modal-scroll-content {
    overflow-y: auto;
    flex: 1;
    /* 커스텀 스크롤바 스타일 */
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f8f8f8;
    /* 우측 패딩으로 스크롤바 공간 확보하고 둥근 모서리 유지 */
    padding-right: 4px;
    margin-right: -4px;
}

/* 스크롤 영역용 Webkit 브라우저 스크롤바 커스터마이징 */
.modal-scroll-content::-webkit-scrollbar {
    width: 8px;
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 10px;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-family: 'Pretendard', sans-serif;
}

/* 데스크탑에서 모바일 닫기 버튼 숨기기 */
.mobile-close-btn {
    display: none !important;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

/* 단계 표시기 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: #A50034;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #A50034;
    color: white;
}

.step.completed .step-number {
    background: #333;
    color: white;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.step.active .step-label {
    color: #A50034;
}

/* 단계 컨텐츠 */
.step-content {
    padding: 30px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.step-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    font-family: 'Pretendard', sans-serif;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 검색 섹션 */
.search-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.search-section input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-section input:focus {
    outline: none;
    border-color: #A50034;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.search-result-count {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.option-card {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    position: relative;
    overflow: visible;
}

.option-card:hover {
    border-color: #A50034;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

/* ==================================
   데스크탑 전용 배지 스타일 (769px 이상)
   ================================== */
@media (min-width: 769px) {

    /* 데스크탑 배지 기본 스타일 */
    .desktop-badge-activation {
        position: absolute;
        top: 5px;
        right: 5px;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: bold;
        background: #A50034;
        color: white;
        z-index: 10;
        display: block;
    }

    .desktop-badge-multiproduct {
        position: absolute;
        top: 5px;
        left: 5px;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: bold;
        background: #4CAF50;
        color: white;
        z-index: 10;
        display: block;
    }

    /* 모바일 배지 숨기기 */
    .mobile-badge-wrapper {
        display: none !important;
    }
}

/* ==================================
   모바일 스타일은 mobile.css로 이동됨
   ================================== */


/* 구 클래스 제거를 위한 오버라이드 (임시) */
.product-badge-desktop,
.product-badge-mobile,
.mobile-badge-container {
    display: none !important;
}

.option-card.selected {
    border-color: #A50034;
    background: #ffe0e6;
    color: #8A002A;
    font-weight: bold;
}

.option-card .option-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
    width: 100%;
    white-space: nowrap;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

.option-card .option-detail {
    font-size: clamp(10px, 2vw, 12px);
    color: #666;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
}

/* 선택 내역 */
.selection-summary {
    padding: 20px 30px;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}

.selection-summary h4 {
    margin-bottom: 15px;
    color: #333;
}

.selection-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-item {
    background: #A50034;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
}

/* 모달 푸터 */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Pretendard', sans-serif;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #A50034;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #8A002A;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-success {
    background: #333;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #555;
}

/* 제휴카드 관련 스타일 */
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.partner-card-btn {
    background: #A50034;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.partner-card-btn:hover {
    background: #8A002A;
}

.care-service-btn {
    background: #333;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: 8px;
}

.care-service-btn:hover {
    background: #555;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.care-service-btn.compact {
    background: #333;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: fit-content;
}

.care-service-btn.compact:hover {
    background: #555;
    transform: translateY(-1px);
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    border-color: #A50034 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.partner-card-info {
    background: #fff5f7;
    color: #8A002A;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
}

.partner-card-info .card-info-content {
    margin-bottom: 10px;
}

.partner-card-info .card-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.partner-card-info .card-benefit {
    color: #555;
    font-size: 12px;
    line-height: 1.4;
}

.partner-card-info .card-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.partner-card-info .care-service-btn {
    flex: 1;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-card-info .care-service-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.partner-card-info .partner-card-btn.small {
    flex: 1;
    padding: 8px 16px;
    font-size: 12px;
    background: #fff;
    color: #A50034;
    border: 1px solid #A50034;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.partner-card-info .partner-card-btn.small:hover {
    background: #A50034;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(165, 0, 52, 0.3);
}

.partner-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.partner-card-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.partner-card-option:hover {
    border-color: #A50034;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.partner-card-option.selected {
    border-color: #A50034;
    background: #ffe0e6;
    color: #8A002A;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-discount {
    font-size: 14px;
    color: #666;
}

.partner-card-option.selected .card-discount {
    color: #1565c0;
    font-weight: 600;
}

.partner-card-option.recommended {
    border-color: #A50034;
    background: linear-gradient(135deg, #fff5f7, #ffe0e6);
    position: relative;
}

.partner-card-option.recommended:hover {
    border-color: #8A002A;
    background: linear-gradient(135deg, #ffe0e6, #ffccd5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.15);
}

.recommended-icon {
    font-size: 14px;
    margin-right: 4px;
}

.recommended-badge {
    background: #A50034;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.partner-card-option.no-card-option {
    border-color: #bbb;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    opacity: 0.8;
}

.partner-card-option.no-card-option:hover {
    border-color: #6c757d;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
    opacity: 1;
}

.partner-card-option.no-card-option .card-name {
    color: #6c757d;
    font-weight: 500;
}

.partner-card-option.no-card-option .card-discount {
    color: #868e96;
}

.btn-danger {
    background: #ff4444;
    color: white;
    border: 1px solid #ff4444;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #cc0000;
    border-color: #cc0000;
}

.modal-body {
    padding: 20px 30px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #666;
}

.step-info {
    background: #f0f0f0;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-info-vertical {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.step-info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.step-info-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-back {
    background: #666;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #444;
}

.card-benefit {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
}



/* 반응형 디자인 */
/* 모바일 화면 (480px 이하) */
@media (max-width: 480px) {
    .products-header {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
        padding: 10px !important;
    }

    .header-buttons-wrapper {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .header-buttons-wrapper .subscription-benefits-btn {
        flex: 1 !important;
        margin: 0 !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    .products-header .screensaver-btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    .subscription-benefits-btn .benefits-icon {
        margin-right: 4px !important;
    }
}

/* ==================================
   태블릿/모바일 스타일은 mobile.css로 이동됨
   ================================== */

/* 전체 페이지 스크롤바 커스터마이징 */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

*::-webkit-scrollbar-thumb:hover {
    background: #666;
}

*::-webkit-scrollbar-corner {
    background: #f0f0f0;
}

/* 커스텀 알림창 폰트 스타일 */
.custom-alert .modal-content {
    font-family: 'Pretendard', sans-serif;
    max-width: 590px !important;
    /* 커스텀 알림창 너비 조정 */
}

/* 중간 화면 */
@media (max-width: 1200px) {
    .main-content {
        padding: 20px;
    }
}

/* 큰 화면 반응형 레이아웃 */
@media (min-width: 1400px) {
    .main-content {
        padding: 20px 30px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 280px));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
    }

    .product-card {
        padding: 15px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-info {
        font-size: 13px;
    }
}

@media (min-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 260px));
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 320px));
    }
}

@media (min-width: 1920px) {
    .main-content {
        padding: 20px 60px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 240px));
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
    }

    .product-card {
        padding: 12px;
    }
}

/* 초대형 화면 (2K, 4K) */
@media (min-width: 2560px) {
    .main-content {
        padding: 20px 80px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
        gap: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    }

    .product-card {
        padding: 15px;
    }
}

/* 문의하기 버튼 숨기기 */
#inquiry-button {
    display: none !important;
}

/* 인쇄용 스타일 */
@media print {
    body * {
        display: none !important;
    }

    #printQuotation {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: white !important;
        z-index: 999999 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #printQuotation * {
        display: revert !important;
        visibility: visible !important;
    }

    @page {
        size: A4;
        margin: 0;
    }

    @page: first {
        margin: 0;
    }

    .print-quotation {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: 11pt;
        color: #000;
        line-height: 1.5;
    }

    .print-header {
        border-bottom: 2px solid #333 !important;
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
    }

    .print-title {
        font-size: 20pt !important;
        font-weight: bold !important;
        margin-bottom: 10px !important;
        color: #000 !important;
    }

    .print-info {
        display: flex !important;
        justify-content: space-between !important;
        margin-bottom: 20px !important;
    }

    .print-info p {
        color: #000 !important;
        margin: 5px 0 !important;
    }

    .print-products {
        margin-bottom: 20px !important;
    }

    .print-products h3 {
        color: #000 !important;
        margin-bottom: 10px !important;
    }

    .print-product-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 20px !important;
    }

    .print-product-table th,
    .print-product-table td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
        text-align: left !important;
        color: #000 !important;
    }

    .print-product-table th {
        background-color: #f5f5f5 !important;
        font-weight: bold !important;
    }

    .print-summary {
        border-top: 2px solid #333 !important;
        padding-top: 20px !important;
        text-align: right !important;
    }

    .print-summary p {
        color: #000 !important;
        margin: 5px 0 !important;
    }

    .print-total {
        font-size: 14pt !important;
        font-weight: bold !important;
        color: #000 !important;
    }
}

/* 제품 비교 모달 스타일 */
.compare-modal-content {
    max-width: 900px !important;
    width: 90% !important;
    max-height: 85vh !important;
    /* 90vh -> 85vh */
}

.compare-modal-body {
    padding: 15px;
    /* 20px -> 15px */
    overflow-y: auto;
    max-height: calc(85vh - 100px);
    /* 90vh -> 85vh, 120px -> 100px */
}

.compare-products-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.compare-product-section {
    flex: 1;
    min-width: 300px;
}

.compare-product-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.base-product h3 {
    color: #4a90e2;
}

.compare-product h3 {
    color: #52c41a;
}

.compare-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compare-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-product-image {
    width: fit-content;
    height: 120px;
    /* 더 작게 조정 */
    min-width: 120px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    overflow: visible;
    /* 플로팅 버튼이 보이도록 */
    padding: 10px;
    position: relative;
}

.compare-product-image img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.compare-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.compare-product-type {
    font-size: 14px;
    color: #666;
    padding: 5px 10px;
    background: #e8f4fd;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.compare-product-price {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin: 8px 0;
    color: white;
}

.compare-product-price .price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
}

.compare-product-price .price-value {
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.compare-product-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.compare-select-btn {
    padding: 12px 24px;
    font-size: 16px;
}

.compare-options {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.compare-options-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.compare-options-buttons button {
    padding: 10px 20px;
    font-size: 14px;
}

.compare-product-selector {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.compare-type-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.compare-type-item {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-type-item:hover {
    background: #e8f4fd;
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.compare-type-item .type-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.compare-type-item .type-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: bold;
}

.compare-action-button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.compare-action-button:hover {
    background: #555;
    transform: translateY(-2px);
}

/* 차이점 강조 스타일 */
.compare-detail-diff {
    color: #ff4757 !important;
    font-weight: 700 !important;
    background: #fff5f5;
    margin: 0 -8px;
    padding: 5px 8px;
}

/* 플로팅 변경 버튼 */
.compare-change-btn:hover {
    background: #555 !important;
    transform: scale(1.1);
}

/* 가격 차액 표시 */
.price-difference {
    margin-top: 5px;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    display: inline-block;
    width: 100%;
}

.compare-product-details {
    margin: 8px 0;
    padding: 8px;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
    min-height: 110px;
    /* 항상 일정한 높이 유지 */
}

.compare-detail-item {
    font-size: 15px;
    color: #444;
    padding: 5px 0;
    font-weight: 500;
    line-height: 1.4;
}

.compare-detail-item+.compare-detail-item {
    border-top: 1px solid #eee;
}

/* 태블릿용 제품 비교 모달 최적화 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .compare-modal-content {
        max-height: 80vh !important;
        /* 태블릿에서 더 컴팩트하게 */
    }

    .compare-modal-body {
        padding: 10px;
        max-height: calc(80vh - 80px);
    }

    .compare-product-image {
        height: 100px;
        /* 모바일에서 더 작게 */
        min-width: 100px;
        padding: 8px;
    }

    .compare-products-container {
        gap: 20px;
        /* 간격 줄이기 */
    }

    .compare-product-title {
        font-size: 16px;
        /* 폰트 크기 줄이기 */
    }

    .compare-detail-item {
        font-size: 14px;
        /* 상세 정보 폰트 크기 줄이기 */
        padding: 4px 0;
    }
}

/* Flip board styles removed */

/* 화면이 좁을 때 반응형 처리 - 909px부터 2줄 레이아웃 */
@media (max-width: 950px) {



    /* 제품 헤더 2줄 레이아웃으로 변경 */
    .products-header {
        flex-wrap: wrap;
        /* 2줄로 나누기 */
        gap: 10px;
    }

    /* 버튼들을 두 번째 줄에 배치 */
    .header-buttons-wrapper {
        width: auto;
        justify-content: flex-start;
        order: 2;
        /* 두 번째 줄로 */
        flex-grow: 0;
    }

    /* 햄버거 메뉴도 두 번째 줄에 버튼들 옆에 */
    #hamburgerMenu {
        order: 2;
        margin-left: 10px;
    }

    /* 버튼과 햄버거를 감싸는 컨테이너 */
    .buttons-and-hamburger {
        display: flex;
        width: 100%;
        order: 2;
        align-items: center;
        gap: 10px;
    }


}

/* 세로모드에서도 화면이 좁을 때 */
@media (max-width: 768px) {


    /* 모바일에서 버튼 숨기기 */
    .header-buttons-wrapper {
        display: none !important;
    }
}

/* 가로모드 및 낮은 해상도 최적화 */
@media screen and (orientation: landscape) and (max-height: 800px) {

    /* 계산기 헤더 높이 줄이기 */
    .calculator-header {
        padding: 12px;
    }

    .calculator-header h2 {
        font-size: 17px;
    }

    /* 계산 영역 패딩 줄이기 */
    .benefit-section {
        padding: 10px;
    }

    /* 정상 구독료를 한 줄로 표시 */
    .benefit-item[data-type="single"] {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .benefit-item[data-type="single"] .benefit-title {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .benefit-item[data-type="single"] .benefit-price {
        margin-bottom: 0;
        margin-left: auto;
    }

    /* 추가 혜택 - 제목과 총액을 한 줄로, 세부사항은 아래에 */
    .benefit-item[data-type="promotion"] {
        position: relative;
    }

    .benefit-item[data-type="promotion"] .benefit-header {
        display: inline-block;
        margin-bottom: 0;
    }

    .benefit-item[data-type="promotion"] .benefit-header .benefit-title {
        margin-bottom: 0;
    }

    .benefit-item[data-type="promotion"] .benefit-price {
        position: absolute;
        top: 15px;
        right: 15px;
        margin-bottom: 0;
    }

    /* 세부사항은 아래에 유지 */
    .benefit-item[data-type="promotion"] .benefit-details {
        margin-top: 20px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .benefit-item[data-type="promotion"] .benefit-details .benefit-detail {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 3px;
    }

    /* 최종 체감 구독료 높이 줄이기 */
    .benefit-item.total {
        padding: 10px 15px;
    }

    .benefit-item.total .benefit-title {
        font-size: 13px;
        margin-bottom: 0;
    }

    .benefit-item.total .benefit-price {
        font-size: 16px;
        margin-bottom: 0;
    }

    /* 선납금액 섹션 높이 줄이기 */
    .prepayment-section {
        padding: 10px 15px;
        position: relative;
    }

    .prepayment-section .benefit-title {
        font-size: 13px;
        margin-bottom: 0;
        display: inline-block;
    }

    .prepayment-price {
        font-size: 16px;
        margin-bottom: 8px;
        position: absolute;
        top: 10px;
        right: 15px;
        font-weight: 700;
    }

    /* 선납금액 세부사항 위치 조정 */
    .prepayment-section .prepayment-details {
        margin-top: 25px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .prepayment-detail-item {
        font-size: 11px;
        padding: 3px 0;
        display: flex;
        justify-content: space-between;
    }

    /* 최종 체감 구독료 메시지 박스 높이 줄이기 */
    .final-total {
        padding: 10px !important;
    }

    .final-message {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .final-price {
        font-size: 18px !important;
        margin-bottom: 0 !important;
    }

    /* 총 비용 요약 섹션 컴팩트하게 */
    #totalCostSummary {
        padding: 8px !important;
        margin: 10px 10px 0px !important;
        font-size: 11px !important;
    }

    #totalCostSummary>div:first-child {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    #totalCostSummary>div {
        margin-bottom: 3px !important;
    }

    #totalCostSummary>div:last-child {
        margin-top: 4px !important;
        padding-top: 4px !important;
    }

    #totalCostSummary>div:last-child span:last-child {
        font-size: 13px !important;
    }
}

/* 퀵 체크 버튼 부드러운 간헐적 튀기기 애니메이션 */
@keyframes rocketBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-12px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-6px);
    }
}

/* 돋보기 아이콘 회전 애니메이션 */
@keyframes magnifyingGlassRotate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25%,
    75% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

.quick-check-btn {
    animation: rocketBounce 3s ease-in-out infinite !important;
    position: relative;
}

.quick-check-btn .benefits-icon {
    display: inline-block;
    animation: magnifyingGlassRotate 3s ease-in-out infinite;
}