/* ======================================== */
/* === 새로운 휴대폰 시세표 결과 페이지 스타일 === */
/* ======================================== */

/* 기본 컨테이너 스타일 */
.calculator-container {
    width: 980px;
    margin: 0 auto;
    padding: 0 20px 40px;
    overflow: visible;
}

@media (max-width: 1024px) {
    .calculator-container {
        width: 100%;
    }
}

.new-phone-black {
    color: var(--ssadang-black) !important;
}

/* 데스크톱 레이아웃 래퍼 */
.desktop-layout-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 100vh;
}

/* 왼쪽 컬럼 - 상세 정보 */
.left-column-details {
    flex: 1;
    min-width: 0;
    padding: 10px 30px 30px 0;
    min-height: 120vh;
}

/* 제품 제목 섹션 */
.phone-title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    margin-bottom: 10px;
    gap: 8px;
}

.phone-title-section-top {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 뒤로가기 버튼 */
.back-button {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ssadang-black);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

/* 제목 컨텐츠 */
.title-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    flex: 1;
}

/* 구매 상담 카운트 뱃지 */
.phone-consult-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    background-color: var(--ssadang-brand-bg);
    border: 1px solid var(--ssadang-brand-2);
    border-radius: 20px;
}

.consult-count-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--ssadang-brand-2);
    line-height: 1.4;
}

.phone-title-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

.phone-title-section h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: var(--ssadang-black);
}

.model-dropdown-icon {
    font-size: 16px;
    color: var(--ssadang-black);
    transition: transform 0.2s ease;
}

.phone-title-section.active .model-dropdown-icon {
    transform: rotate(180deg);
}

/* 모델 선택 콤보박스 */
.model-combobox {
    position: absolute;
    top: 16.6%;
    left: 51%;
    transform: translateX(-50%);
    width: 200px;
    max-height: 500px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.model-combobox.show {
    display: block;
}

/* 모바일에서 모델 콤보박스 슬라이드업 스타일 */
@media (max-width: 768px) {
    .model-combobox {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 1px solid #ddd;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .model-combobox.show {
        transform: translateY(0);
    }
}

.model-combobox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    background: var(--ssadang-bg-gray);
}

.model-combobox-header span {
    font-weight: 600;
    color: var(--ssadang-black);
}

.close-combobox {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--ssadang-gray);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.model-categories {
    max-height: 400px;
    overflow-y: auto;
}

.model-category {
    border-bottom: 1px solid #eee;
}

.model-category:last-child {
    border-bottom: none;
}

.model-category h3 {
    margin: 0;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ssadang-black)333aa;
    background: var(--ssadang-bg-gray);
    border-bottom: 1px solid #eee;
}

.model-list {
    padding: 8px 0;
}

.model-item {
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: var(--ssadang-black);
}

.model-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--ssadang-border-gray);
}

@media (max-width: 768px) {
    .model-item {
        padding: 10px 20px;
    }
}

.model-item:hover {
    background-color: var(--ssadang-border-gray);
}

.model-item.current {
    background-color: var(--ssadang-brand-bg);
    color: var(--ssadang-brand-2);
    font-weight: 600;
}

/* 모바일에서 콤보박스 스타일 */
@media (max-width: 768px) {
    .model-combobox {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 1px solid #ddd;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .model-combobox.show {
        transform: translateY(0);
    }

    .phone-title-section {
        padding: 8px;
        margin: 0;
    }

    .phone-title-section h1 {
        font-size: 20px;
    }

    .back-button {
        font-size: 16px;
        min-width: 36px;
        height: 36px;
        padding: 6px;
    }
}

.storage-selector {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
}

/* 제품 이미지 컨테이너 */
.phone-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

/* 데스크탑 알림받기 floating action button */
.desktop-notification-fab {
    position: fixed;
    right: calc(50% - 620px);
    bottom: 130px;
    /* floating-action-btn (60px)보다 높게 배치 */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #d8dce4;
    color: var(--ssadang-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}


.desktop-notification-fab:active {
    transform: translateY(1px);
}

.desktop-notification-fab i {
    font-size: 20px;
}

.desktop-notification-fab.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.desktop-notification-fab.active i {
    color: #2e7d32;
}

@media (max-width: 1023px) {
    .desktop-notification-fab {
        display: none;
    }
}

/* 제품 이미지 */
.phone-image-result {
    text-align: center;
}

.phone-image-result img {
    max-width: 280px;
    height: 230px;
    border-radius: 12px;
}

/* 모바일용 통신사 로고 (기본적으로 숨김) */
.phone-provider-logo-mobile {
    display: none;
}

/* 색상 정보 섹션 */
.color-info-section {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-display {
    text-align: center;
    margin-bottom: 20px;
}

.color-value {
    font-size: 16px;
    color: var(--ssadang-black);
    font-weight: 600;
    display: block;
}

/* 색상 스와치 */
.color-swatches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 용량 선택 버튼 */
.storage-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.storage-btn {
    flex: 1;
    min-width: 80px;
    padding: 5px 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ssadang-black)333cc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.storage-btn.active {
    border-color: var(--ssadang-brand-2);
    background: var(--ssadang-brand-bg);
    color: var(--ssadang-brand-2);
}

/* 통신사 정보 */
.provider-info-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-gray);
    margin-bottom: 10px;
}

.provider-info-text strong {
    color: var(--ssadang-black);
    font-weight: 600;
}

/* 현재 통신사 선택 섹션 */
.current-provider-section {
    margin-bottom: 10px;
}

.current-provider-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-gray);
    margin-bottom: 10px;
}

.current-provider-selector {
    position: relative;
    width: 100%;
}

.current-provider-btn {
    width: 100%;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ssadang-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.current-provider-btn:hover {
    border-color: var(--ssadang-brand-2);
    background-color: var(--ssadang-brand-bg);
}

.current-provider-check {
    color: var(--ssadang-brand-2);
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.current-provider-name {
    flex: 1;
    text-align: left;
    font-weight: 600;
}

.current-provider-btn i {
    color: var(--ssadang-gray);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.current-provider-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid var(--ssadang-border-gray);
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
}

.current-provider-menu-item {
    width: 100%;
    padding: 12px 16px;
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: var(--ssadang-black);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.current-provider-menu-item:last-child {
    border-bottom: none;
}

.current-provider-menu-item:hover {
    background-color: var(--ssadang-brand-bg);
    color: var(--ssadang-brand-2);
}

/* 통신사 버튼 */
.provider-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.provider-btn {
    flex: 1;
    min-width: 0;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-btn.active {
    border-color: var(--ssadang-brand-2);
    background: var(--ssadang-brand-bg);
}

.provider-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--ssadang-border-gray);
    border-color: #ddd;
}

.provider-logo {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 0;
}


.selection-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ssadang-gray);
}

/* 색상 선택 */
.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #0000000a;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.color-swatch.active {
    border-color: var(--ssadang-brand-2);
}

span#usimTotalAmount {
    font-size: 14px;
}

/* 옵션 버튼 */
.option-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    width: 100%;
}

.option-btn {
    flex: 1;
    min-width: 0;
    padding: 5px 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--ssadang-black)333cc;
}

.option-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--ssadang-border-gray);
    border-color: #ddd;
}

.option-btn.active {
    border-color: var(--ssadang-brand-2);
    background: var(--ssadang-brand-bg);
    color: var(--ssadang-brand-2);
    font-weight: 600;
}

/* 오른쪽 컬럼 - 가격 요약 */
.right-column-summary.detail-price-container {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: var(--right-column-top, 100px);
    border: 1px solid var(--ssadang-black);
    transition: top 0.3s ease;
    border-radius: 8px;
    padding: 24px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: fit-content;
    align-self: flex-start;
}

/* 모바일 뷰에서 데스크탑 레이아웃 초기 숨김 (JavaScript 실행 전에도 적용) */
@media (max-width: 1023px) {
    .right-column-summary.detail-price-container {
        display: none;
    }

    .right-column-summary-mobile {
        display: block;
    }

    .mobile-summary-compact,
    .mobile-compact-button {
        display: flex;
    }
}

/* 가격 요약 섹션 */
.price-summary-section {
    margin-bottom: 10px;
}

.price-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
}

.price-summary-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ssadang-black);
}

.price-summary-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--ssadang-brand);
}

/* 가격 내역 */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 2px;
}

.breakdown-row.detail {
    font-size: 14px;
    color: var(--ssadang-gray);
    padding-left: 8px;
    margin-bottom: 2px;
}

.breakdown-row.detail.add-service {
    padding-left: 5px;
}

.breakdown-label {
    color: var(--ssadang-black);
    font-weight: 500;
    font-size: 16px;
}

.breakdown-row.detail .breakdown-label {
    color: var(--ssadang-gray);
    font-size: 14px;
}

.ssadang-label {
    color: var(--ssadang-brand-2) !important;
    font-weight: 700 !important;
}

.breakdown-label small {
    color: var(--ssadang-gray);
    font-size: 12px;
    display: inline;
    margin-left: 8px;
}

.breakdown-value {
    font-weight: 500;
    color: var(--ssadang-gray);
    font-size: 14px;
}

.breakdown-value.final {
    color: var(--ssadang-black);
    font-size: 16px;
}

.required-term {
    color: var(--ssadang-gray);
    font-size: 12px;
    margin-left: 2px;
    border: 1px solid var(--ssadang-gray);
    padding: 2px;
    border-radius: 5px;
}

/* 총 월 납부 금액 */
.total-monthly-payment .breakdown-row {
    align-items: baseline;
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.total-label small {
    font-size: 13px;
    font-weight: normal;
    color: var(--ssadang-gray);
    display: block;
    margin-top: 4px;
}

.total-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--ssadang-black);
}

/* 구분선 */
.section-divider {
    height: 1px;
    background: var(--ssadang-border-gray);
    margin: 15px 0;
}

/* 요금제 및 부가서비스 섹션 */
.rate-plan-services-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
    border-bottom: 1px dashed var(--ssadang-black)33320;
    padding-bottom: 8px;
}

.rate-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-plan-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);
}

.rate-plan-total {
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);
}

.rate-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-plan-name {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
    padding-left: 8px;
}

.rate-plan-price {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.rate-plan-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
}

.rate-plan-discount-label {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.rate-plan-discount-amount {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.rate-plan-notice {
    display: flex;
    margin-top: 8px;
    justify-content: flex-end;
}

.rate-plan-notice-text {
    font-size: 12px;
    color: var(--ssadang-gray);
    font-weight: 400;
    line-height: 1.5;
}

/* 부가서비스 섹션 */
.add-services-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 16px 0;
}

.add-services-header {
    display: flex;
    align-items: center;
}

.add-services-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);
}

.add-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 0 8px;
}

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

.add-service-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
}

/*
.add-service-checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--ssadang-brand);
}*/

.add-service-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
}

.add-service-name {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.add-service-term {
    font-size: 14px;
    color: var(--ssadang-gray);
    margin-left: 4px;
}

.add-service-price {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

/* 가격 계산 섹션 */
.price-calculation-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--ssadang-gray);
    padding-bottom: 24px;
}

/* 데스크탑 구매원금 표시 행 (24개월 할부일 때만 표시) */
.desktop-purchase-title-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: -14px;
}

.desktop-purchase-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ssadang-gray);
}

.desktop-delivery-price {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
    text-decoration: line-through;
    padding-left: 12px;
}

.price-calculation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-calculation-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.price-calculation-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--ssadang-brand);
}

.desktop-price-breakdown-chevron {
    transition: transform 0.3s ease;
    color: var(--ssadang-gray);
    font-size: 14px;
    margin-left: 8px;
}

.price-breakdown {
    padding: 12px;
    background: var(--ssadang-bg-gray);
    border-radius: 8px;
    margin-bottom: 8px;
}

/* 월 납부 예상 금액 */
.total-monthly-payment {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-bottom: 1px dashed var(--ssadang-gray);
    padding-bottom: 24px;

}

.total-monthly-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0 0;
}

/* 6개월 후 변경 가능한 요금제 섹션 */
.alternative-plans-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--ssadang-gray);
    padding-bottom: 24px;

}

.alternative-plans-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);
}

.alternative-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px dashed var(--ssadang-black)33320;
}

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

.alternative-plan-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alternative-plan-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.plan-tooltip-icon {
    width: 16px;
    height: 16px;
    color: var(--ssadang-brand-2);
    cursor: pointer;
    flex-shrink: 0;
}

.plan-tooltip-content {
    visibility: hidden;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 10px 12px;
    position: absolute;
    z-index: 11;
    left: 0;
    top: 100%;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    pointer-events: none;
    white-space: normal;
    word-break: keep-all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-tooltip-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
}

.alternative-plan-name {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.alternative-plan-restricted-message {
    font-size: 12px;
    color: var(--ssadang-black);
    font-weight: 500;
    text-align: center;
    background: var(--ssadang-bg-gray);
    border-radius: 8px;
    padding: 12px;
    line-height: 1.5;
}

.alternative-plan-amount {
    font-size: 13px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.alternative-plan-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);
}

.alternative-plans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 싸당 할인 메시지 */
.ssadang-discount-message {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px;
    background-color: var(--ssadang-brand-bg);
    border-radius: 8px;
}

.ssadang-discount-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-brand-2);
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-discount-chevron {
    color: var(--ssadang-brand-2);
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.ssadang-discount-text span {
    font-weight: 700;
}

.desktop-lump-sum-saving-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--ssadang-black);
    text-align: center;
}

.desktop-lump-sum-saving-text span {
    font-weight: 700;
    font-size: 12px;
}

/* 모바일 반응형 */
@media (max-width: 1023px) {

    .price-calculation-amount {
        font-size: 28px;
    }

    .rate-plan-total {
        font-size: 18px;
    }

    .ssadang-discount-text span {
        font-size: 16px;
    }
}

/* 주의사항 */
.sidebar-notice {
    font-size: 10px;
    color: var(--ssadang-gray);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.5;
    letter-spacing: -0.1px;
    word-break: keep-all;
}

/* 신청 버튼 */
.apply-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: var(--ssadang-brand);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.apply-button:active {
    transform: translateY(0);
}

/* 공유 버튼 */
.btn-share {
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
    background: var(--ssadang-border-gray);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.btn-share svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 가격하락 알람받기 버튼 */
.btn-favorite {
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-brand-2);
    background: var(--ssadang-brand-bg);
    border: 1px solid var(--ssadang-brand-2);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .btn-share {
        margin-top: 0;
        width: 20%;
        padding: 10px;
    }

    .btn-favorite {
        margin-top: 0;
        width: 20%;
        padding: 10px;
    }
}

/* ======================================== */
/* === 모바일 전용 스타일 (-mobile 접미사) === */
/* ======================================== */

/* 모바일 레이아웃 래퍼 */
.desktop-layout-wrapper-mobile {
    flex-direction: column;
    gap: 20px;
    min-height: auto;
    padding-bottom: 10px;
    /* 슬라이드업 공간 확보 */
}

/* 모바일 왼쪽 컬럼 */
.left-column-details-mobile {
    padding: 20px;
    min-height: auto;
    width: 100%;
    flex: 1;
}

/* 모바일 오른쪽 컬럼 - 하단 슬라이드업 */
.right-column-summary-mobile {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 11;
    border-top: 1px solid var(--ssadang-black)33340;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* 모바일에서 데스크톱 오른쪽 컬럼 숨김 (중복 보장) */
.desktop-layout-wrapper-mobile .right-column-summary.detail-price-container {
    display: none;
}

/* 데스크톱에서 모바일 컴팩트 요소들 숨김 */
@media (min-width: 1024px) {

    .mobile-summary-compact,
    .mobile-compact-button,
    .right-column-summary-mobile {
        display: none;
    }
}

/* 모바일에서만 모바일 컴팩트 요소들 보임 */
.desktop-layout-wrapper-mobile .mobile-summary-compact,
.desktop-layout-wrapper-mobile .mobile-compact-button {
    display: flex;
}

.right-column-summary-mobile.active {
    transform: translateY(0);
}

/* 모바일 컴팩트 요약 (펼치기 전) */
.mobile-summary-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 8px;
}

.mobile-summary-compact .mobile-compact-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

/*
.mobile-summary-compact .mobile-compact-title {
    flex: 0 0 auto;
}

.mobile-summary-compact .mobile-compact-price {
    flex: 1 1 auto;
    text-align: right;
}*/

.mobile-compact-title {
    font-size: 14px;
    color: var(--ssadang-black);
    font-weight: 600;
}

.mobile-compact-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--ssadang-brand);
}

/* 모바일 컴팩트 버튼 */
.mobile-compact-button {
    display: flex;
    align-items: stretch;
}

.mobile-compact-button .btn-kakaochannel-move {
    width: 28%;
    padding: 10px;
    font-weight: 600;
    color: var(--ssadang-gray);
    background: #d8dce4;
    border: none;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

#phoneNotificationText {
    font-size: 14px;
}


.mobile-compact-button .btn-kakaochannel-move:active {
    transform: translateY(1px);
}

.mobile-compact-button .btn-kakaochannel-move i {
    font-size: 14px;
}

.mobile-compact-button .btn-kakaochannel-move.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.mobile-compact-button .btn-kakaochannel-move.active i {
    color: #2e7d32;
}

.mobile-compact-button .apply-button {
    width: 75%;
    margin: 0;
    padding: 16px;
    border-radius: 0;
}

/* 모바일 슬라이드업 헤더 */
.mobile-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: var(--ssadang-border-gray);
    border-radius: 20px 20px 0 0;
}

.mobile-slide-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--ssadang-black);
}

.mobile-slide-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ssadang-black);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

/* === 모바일 토글 버튼 (라운드, 중앙 배치) === */
.mobile-summary-compact {
    position: relative;
    /* 중앙 배치 기준 */
}

.mobile-slide-toggle {
    display: none;
}

/* 모바일 슬라이드 토글 chevron 애니메이션 */
@keyframes bounceUp {

    0%,
    100% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(2px);
    }
}

.mobile-slide-toggle i.fa-chevron-up {
    animation: bounceUp 0.8s ease-in-out infinite;
}

.mobile-slide-toggle.active i.fa-chevron-down {
    animation: bounceDown 0.8s ease-in-out infinite;
}

/* 모바일 슬라이드업 컨텐츠 */
.mobile-slide-content {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    border-radius: 15px 15px 0 0;
    z-index: 11;
}

.mobile-slide-content.expanded {
    max-height: 500px;
    overflow-y: auto;
    opacity: 1;
    transition: max-height 0.2s ease, transform 0.2s ease;
}

/* 모바일 슬라이드가 열렸을 때 백그라운드 스크롤 방지 */
body.mobile-slide-open,
html.mobile-slide-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (max-width: 1023px) {

    body.mobile-slide-open,
    html.mobile-slide-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* 모바일 슬라이드 드래그 바 */
.mobile-slide-drag-bar {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.mobile-slide-drag-bar:active {
    cursor: grabbing;
}

.mobile-slide-drag-bar::before {
    content: '';
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.mobile-slide-drag-bar:active::before {
    background-color: var(--ssadang-gray);
}

/* Dark background overlay for mobile slide-up */
.mobile-slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-slide-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 모바일 가격 컨테이너 */
.detail-price-container-mobile {
    padding-bottom: 1px;
    background: #f0f0f0;
}

/* 모바일 구매원금 섹션 */
.mobile-purchase-section {
    background: #fff;
    border-radius: 0 0 12px 12px;
    margin-bottom: 12px;
}

.mobile-purchase-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px 20px;
}

/* 구매원금: title-row + amount-row만 고정 (드래그바가 top:0 sticky라 top을 아래로 내림) */
.mobile-purchase-sticky {
    position: sticky;
    top: 30px;
    /* 30px(height) + 16px(padding 8px*2) */
    z-index: 6;
    /* drag-bar(10) 아래, 일반 컨텐츠 위 */
    background: #fff;
    padding: 0 20px 6px;
}

.mobile-purchase-title-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: -8px;
}

.mobile-purchase-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.mobile-delivery-price {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
    text-decoration: line-through;
    padding-left: 12px;
}

.mobile-purchase-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mobile-purchase-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--ssadang-black);
    flex: 1;
    min-width: 0;
}

.mobile-installment-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-installment-toggle-label {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
    white-space: nowrap;
}

.mobile-installment-badge {
    color: var(--ssadang-gray);
    padding: 12px;
    border-radius: 8px;
    font-weight: 400;
    white-space: normal;
    flex-shrink: 0;
    background: var(--ssadang-bg-gray);
    margin-bottom: 8px;
    line-height: 1.5;
}

.mobile-installment-badge span {
    font-size: 12px;
    color: var(--ssadang-gray);
}

/* 데스크탑 할부 뱃지 (모바일과 동일한 스타일) */
.desktop-installment-badge {
    color: var(--ssadang-gray);
    font-weight: 500;
    text-align: right;
    margin-top: -14px;
}

.desktop-installment-badge span {
    font-size: 12px;
    font-weight: 400;
}

.mobile-discount-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--ssadang-brand-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-discount-summary-text {
    flex: 1;
    font-size: 14px;
    color: var(--ssadang-brand-2);
    font-weight: 600;
}

.mobile-discount-summary-text span {
    font-weight: 700;
    font-size: 18px;
}

.mobile-discount-chevron {
    color: var(--ssadang-brand-2);
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-discount-summary.active .mobile-discount-chevron {
    transform: rotate(180deg);
}

.mobile-discount-accordion {
    padding: 12px;
    background: var(--ssadang-bg-gray);
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-discount-accordion.active .mobile-discount-chevron {
    transform: rotate(180deg);
}

.mobile-discount-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-additional-support-notice {
    font-size: 12px;
    color: var(--ssadang-gray);
    font-weight: 400;
    width: 100%;
    letter-spacing: -0.42px;
}

/*.mobile-discount-detail-row#mobileAdditionalSupportNotice {
    justify-content: flex-end;
}*/

.mobile-discount-detail-label {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.mobile-discount-detail-value {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 600;
}

/* 모바일 월 납부 요금 섹션 */
.mobile-monthly-payment-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 12px;

}

.mobile-monthly-payment-header {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-monthly-payment-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
    margin-bottom: -8px;
}

.mobile-monthly-payment-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mobile-monthly-payment-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--ssadang-black);
    flex: 1;
    min-width: 0;
}

.mobile-contract-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-contract-toggle-label {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
    white-space: nowrap;
}

.mobile-monthly-payment-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.mobile-monthly-payment-discount-label {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.mobile-monthly-payment-discount-amount {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 600;
}

.mobile-monthly-payment-subtext {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.mobile-rate-plan-notice {
    display: flex;
    margin-top: 8px;
    justify-content: flex-end;
}

.mobile-rate-plan-notice-text {
    font-size: 12px;
    color: var(--ssadang-gray);
    font-weight: 500;
    line-height: 1.5;
}

/* 모바일 부가서비스 섹션 */
.mobile-add-services-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 12px;
    flex-direction: column;
}

.mobile-add-services-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.mobile-add-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;    
}

.mobile-add-service-item:last-child {
    border-bottom: none;
}

.mobile-add-service-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-add-service-name {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

.mobile-add-service-term {
    font-size: 14px;
    color: var(--ssadang-gray);
}

.mobile-add-service-price {
    font-size: 14px;
    color: var(--ssadang-black);
    font-weight: 600;
    margin-top: 4px;
}

/* 모바일 토글 스위치 */
.mobile-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mobile-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.mobile-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.mobile-toggle-switch input:checked+.mobile-toggle-slider {
    background-color: var(--ssadang-brand-2);
}

.mobile-toggle-switch input:checked+.mobile-toggle-slider:before {
    transform: translateX(20px);
}


/* mobile-installment-toggle-label 도 disabled 시 opacity 0.5 처리 */
.mobile-installment-toggle-label.disabled {
    opacity: 0.3;
}

.mobile-toggle-switch input:disabled+.mobile-toggle-slider {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 데스크탑 토글 스위치 (모바일과 동일한 스타일) */
.desktop-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.desktop-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.desktop-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ssadang-border-gray);
    transition: 0.3s;
    border-radius: 24px;
}

.desktop-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.desktop-toggle-switch input:checked+.desktop-toggle-slider {
    background-color: var(--ssadang-brand-2);
}

.desktop-toggle-switch input:checked+.desktop-toggle-slider:before {
    transform: translateX(20px);
}

.desktop-toggle-switch input:disabled+.desktop-toggle-slider {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 데스크탑 대체 요금제 아코디언 */
.alternative-plans-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-alternative-plans-chevron {
    transition: transform 0.3s ease;
}

.alternative-plans-content {
    margin-top: 8px;
}

/* 모바일 절약 섹션 */
.mobile-savings-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 12px;
}

.mobile-savings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-savings-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.mobile-savings-chevron {
    color: var(--ssadang-gray);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-savings-section.active .mobile-savings-chevron {
    transform: rotate(180deg);
}

.mobile-savings-content {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-savings-plan-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--ssadang-bg-gray);
    border-radius: 8px;
}

/* 모바일 절약 섹션: 첫 안내/첫 항목 간격 */
#mobileSavingsPlansContainer .mobile-savings-plan-item:first-of-type {
    margin-bottom: 6px;
}

.mobile-savings-plan-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ssadang-black);
    font-weight: 500;
}

.mobile-savings-plan-info-icon {
    color: var(--ssadang-brand-2);
    font-size: 14px;
}

/* 모바일 절약 섹션의 툴팁 아이콘도 데스크탑과 동일한 스타일 적용 */
.mobile-savings-plan-name .plan-tooltip-icon {
    width: 16px;
    height: 16px;
    color: var(--ssadang-gray);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-savings-plan-name .plan-tooltip-content {
    visibility: hidden;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 10px 12px;
    position: absolute;
    z-index: 11;
    left: 0;
    top: 100%;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    pointer-events: none;
    white-space: normal;
    word-break: keep-all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-savings-plan-name .plan-tooltip-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
}

.mobile-savings-plan-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ssadang-black);
    font-weight: 600;
    justify-content: space-evenly;
}

.mobile-savings-plan-savings {
    color: var(--ssadang-brand-2);
    font-weight: 600;
}

/* 모바일 신청 버튼 */
.mobile-apply-button {
    width: 100%;
    padding: 15px;
    background: #5C72ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* 모바일 반응형 조정 */
@media (max-width: 768px) {
    .calculator-container-mobile {
        padding: 0 20px;
    }

    .left-column-details-mobile {
        padding: 0;
    }

    .consult-count-text {
        font-size: 12px;
    }

    .phone-title-section-mobile h1 {
        font-size: 20px;
    }

    .phone-image-result-mobile {
        max-width: 250px;
        padding: 14px;
    }

    .provider-buttons-mobile {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }

    .provider-btn-mobile {
        flex: 1;
        min-width: 0;
        padding: 8px 4px;
    }

    .provider-logo-mobile {
        width: 20px;
        height: 20px;
    }

    .color-swatches-mobile {
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: space-between;
    }

    .color-swatch-mobile {
        flex: 1;
        min-width: 0;
        width: auto;
        height: 32px;
    }

    /* 모바일에서 이미지와 색상 레이아웃 조정 */
    .phone-image-container {
        flex-direction: column;
        align-items: center;
    }

    .phone-image-result {
        max-width: 250px;
        position: static;
    }

    /* 모바일에서 통신사 로고 표시 */
    .phone-provider-logo-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0 0;
        width: 100%;
    }

    .phone-provider-logo-mobile .provider-logo {
        object-fit: contain;
    }

    .color-info-section {
        position: static;
        transform: none;
        width: 100%;
        align-items: center;
        flex-direction: column;
    }

    .color-display {
        margin-bottom: 15px;
    }

    .color-swatches {
        flex-direction: row;
        justify-content: center;
    }

    .color-swatch {
        width: 35px;
        height: 35px;
    }

    .storage-buttons {
        justify-content: center;
    }

    .storage-btn {
        min-width: 70px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .mobile-slide-toggle {
        display: block;
        position: absolute;
        top: -14px;
        /* 섹션 상단에 살짝 겹치게 */
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        color: var(--ssadang-gray);
        border: 1px solid var(--ssadang-gray);
        border-radius: 6px;
        padding: 4px 16px;
        font-size: 12px;
        font-weight: 600;
        z-index: 12;
        /* 주변 요소보다 위 */
    }

    .phone-image-result img {
        height: 160px;
    }
}

/* 구분선 */
.content-divider {
    width: 100%;
    height: 10px;
    background: var(--ssadang-border-gray);
    margin: 30px 0;
}

/* 탭 컨테이너 */
.tab-container {
    width: 100%;
}

/* 탭 네비게이션 */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: var(--tab-navigation-top, 50px);
    background: #fff;
    z-index: 10;
    transition: top 0.3s ease-in-out;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-gray);
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--ssadang-brand-2);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ssadang-brand-2);
}

/* 탭 컨텐츠 */
.tab-content {
    padding: 20px 0;
}

.tab-panel {
    display: block;
    margin-bottom: 40px;
}

.tab-panel:last-child {
    margin-bottom: 0;
}

/* 요금제 탭 스타일 */
.rate-plan-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.plan-highlight {
    background: var(--ssadang-bg-gray);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.plan-highlight span:first-child {
    font-size: 14px;
    color: var(--ssadang-black);
}

.plan-duration {
    background: var(--ssadang-brand);
    color: white !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.plan-details {
    margin-bottom: 25px;
}

.plan-detail-item {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ssadang-border-gray);
}

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

.detail-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--ssadang-gray);
}

.detail-value {
    color: var(--ssadang-black);
    font-weight: 500;
    font-size: 14px;
}

.penalty-guide h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.penalty-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 13px;
}

.penalty-table th,
.penalty-table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
}

.penalty-table th {
    background: var(--ssadang-bg-gray);
    font-weight: 600;
}

.penalty-note {
    font-size: 12px;
    color: var(--ssadang-gray);
    line-height: 1.4;
    margin-bottom: 0;
}

.penalty-links {
    margin-top: 4px;
}

.penalty-link-item {
    font-size: 12px;
    color: var(--ssadang-gray);
    line-height: 1.4;
    margin-bottom: 4px;
}

.penalty-link-item a {
    text-decoration: underline;
    color: var(--ssadang-gray);
}

.penalty-link-item a:hover {
    color: var(--ssadang-black);
}

/* 필독사항 탭 스타일 */
.important-notice-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.notice-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-item {
    display: flex;
    gap: 10px;
}

.notice-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.notice-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.notice-content h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.notice-content p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

.notice-table th,
.notice-table td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: left;
}

.notice-table th {
    background: var(--ssadang-bg-gray);
    font-weight: 600;
}

/* 개통방법 탭 스타일 */
.activation-method-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.activation-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--ssadang-border-gray);
}

.step-content h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.step-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* 구매후기 탭 스타일 */
.purchase-review-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ssadang-black);
}

/* 모바일 반응형 */
@media (max-width: 1023px) {
    .tab-navigation {
        position: sticky;
        top: var(--tab-navigation-top-mobile, 0);
        z-index: 1;
        transition: top 0.3s ease-in-out;
    }

    .tab-btn {
        padding: 12px 8px;
        font-size: 13px;
    }

    .tab-content {
        padding: 15px 0;
    }

    .notice-item,
    .step-item {
        gap: 10px;
    }

    .notice-icon,
    .step-icon {
        align-self: flex-start;
    }

    .penalty-table,
    .notice-table {
        font-size: 11px;
    }

    .penalty-table th,
    .penalty-table td,
    .notice-table th,
    .notice-table td {
        padding: 6px;
    }

    .option-buttons-mobile {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .option-btn-mobile {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .option-btn-mobile small {
        font-size: 11px;
        display: block;
        margin-top: 2px;
    }
}

/* 더 작은 화면에서의 버튼 조정 */
@media (max-width: 480px) {
    .provider-buttons-mobile {
        gap: 4px;
    }

    .provider-btn-mobile {
        padding: 6px 2px;
    }

    .provider-logo-mobile {
        width: 18px;
        height: 18px;
    }

    .option-buttons-mobile {
        gap: 4px;
    }

    .option-btn-mobile {
        padding: 10px 4px;
        font-size: 12px;
    }

    .option-btn-mobile small {
        font-size: 10px;
    }

    .color-swatches-mobile {
        gap: 3px;
    }

    .color-swatch-mobile {
        height: 28px;
    }
}

/* 매우 작은 화면에서의 버튼 조정 */
@media (max-width: 360px) {
    .provider-buttons-mobile {
        gap: 2px;
    }

    .provider-btn-mobile {
        padding: 4px 1px;
    }

    .provider-logo-mobile {
        width: 16px;
        height: 16px;
    }

    .option-buttons-mobile {
        gap: 2px;
    }

    .option-btn-mobile {
        padding: 8px 2px;
        font-size: 11px;
    }

    .option-btn-mobile small {
        font-size: 9px;
    }

    .color-swatches-mobile {
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: space-between;
    }

    .color-swatch-mobile {
        flex: 1;
        min-width: 0;
        width: auto;
        height: 30px;
    }

    .color-swatches-mobile {
        gap: 2px;
    }

    .color-swatch-mobile {
        height: 26px;
    }
}

/* 모바일 가격 상세 스타일 */
.price-breakdown-mobile {
    margin: 15px 0;
}

.breakdown-row-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-row-mobile:last-child {
    border-bottom: none;
}

.breakdown-label-mobile {
    font-size: 14px;
    color: var(--ssadang-gray);
}

.breakdown-value-mobile {
    font-size: 14px;
    font-weight: 500;
    color: var(--ssadang-black);
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-btn small {
    font-size: 12px;
    color: var(--ssadang-gray);
}

/* 로딩 상태 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 부가서비스 토글 버튼 스타일 */
.service-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-btn {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: var(--ssadang-border-gray);
    color: var(--ssadang-gray);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.toggle-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}


.toggle-text {
    font-weight: 500;
}

/* 부가서비스 체크박스 및 클릭 스타일 */
.service-label-container {
    display: flex;
    align-items: flex-start;
    gap: 3px;
    cursor: pointer;
    position: relative;
    /* 툴팁 위치 기준 */
}

.service-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--ssadang-brand-2);
    pointer-events: none;
    /* 체크박스 직접 클릭 방지 */
}

.service-name {
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-name:hover {
    color: var(--ssadang-black);
}

/* 필수 부가서비스 툴팁 */
.tooltip-text {
    visibility: hidden;
    width: auto;
    min-width: 160px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 100;
    left: 0;
    top: 100%;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 10px;
    margin-left: 0;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

/* KT 캐치콜 플러스: 물음표 툴팁 (hover + 모바일 click) */
.kt-question-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.kt-question-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--ssadang-black);
    color: #fff;
    background: var(--ssadang-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.kt-question-icon:focus {
    outline: none;
}

/* 데스크탑: hover 시 툴팁 표시 */
.kt-question-tooltip:hover .tooltip-text,
/* 모바일: click 시(is-open) 툴팁 표시 */
.kt-question-tooltip.is-open .tooltip-text {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 캐치콜 플러스 툴팁: 멀티라인/좌측 정렬 */
.kt-catchcall-tooltip.tooltip-text {
    text-align: left;
    min-width: 226px;
    max-width: 260px;
    line-height: 1.5;
    left: -7px;
}

/* disabled 체크박스가 있는 라벨 컨테이너 hover/포커스 시 툴팁 표시 */
.service-label-container:hover .service-checkbox:disabled~.tooltip-text,
.service-label-container:focus-within .service-checkbox:disabled~.tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 기존 토글 버튼 스타일 제거 (더 이상 사용하지 않음) */
.service-controls,
.toggle-container,
.toggle-btn,
.toggle-text {
    display: none;
}

/* 부가서비스 term 정보 스타일 */
.service-term-row {
    padding-left: 30px;
    margin-bottom: 2px;
    font-size: 12px;
    color: var(--ssadang-black)33360;
}

.service-term-text {
    font-size: 12px;
    color: var(--ssadang-black)33360;
}

/* 휴대폰성지 전용 로그인 모달 스타일 */
.phone-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-login-modal.active {
    display: flex;
    opacity: 1;
}

.phone-login-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.phone-login-modal.active .phone-login-modal-content {
    transform: translateY(0);
}

.phone-login-modal-header {
    margin-bottom: 30px;
}

.phone-login-modal-header h3 {
    font-size: 22px;
    color: var(--ssadang-black);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.phone-login-modal-header p {
    font-size: 16px;
    color: var(--ssadang-gray);
    margin: 0;
}

.phone-login-modal-close {
    position: absolute;
    top: 4px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ssadang-gray);
    transition: color 0.2s ease;
}

.phone-login-modal-close:hover {
    color: var(--ssadang-black);
}

.phone-kakao-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 25px;
    background-color: #FEE500;
    color: #000;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.phone-kakao-login-btn svg {
    margin-right: 10px;
    flex-shrink: 0;
}

/* 카카오 로그인 로딩 오버레이 */
.kakao-login-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kakao-login-loading-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.kakao-login-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.kakao-login-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FEE500;
    border-radius: 50%;
    animation: kakao-login-spin 1s linear infinite;
}

.kakao-login-loading-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

@keyframes kakao-login-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .phone-login-modal-content {
        padding: 24px 18px;
        max-width: 350px;
    }

    .phone-login-modal-header h3 {
        font-size: 18px;
    }

    .phone-login-modal-header p {
        font-size: 14px;
    }

    .phone-kakao-login-btn {
        font-size: 14px;
        padding: 16px 20px;
    }

    .kakao-login-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .kakao-login-loading-text {
        font-size: 16px;
    }
}

/* 카카오 로그인 실패 메시지 오버레이 */
.kakao-login-error-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.kakao-login-error-overlay.active {
    display: flex;
    opacity: 1;
}

.kakao-login-error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: kakao-login-error-slide-in 0.3s ease;
}

.kakao-login-error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
}

.kakao-login-error-text {
    color: var(--ssadang-black);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.kakao-login-error-desc {
    color: var(--ssadang-gray);
    font-size: 16px;
    margin: 0;
    text-align: center;
}

.kakao-login-error-close {
    width: 100%;
    padding: 14px 24px;
    background-color: #FEE500;
    color: #3C1E1E;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.kakao-login-error-close:hover {
    background-color: #FDD835;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

@keyframes kakao-login-error-slide-in {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .kakao-login-error-content {
        padding: 30px 20px;
        max-width: 350px;
    }

    .kakao-login-error-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .kakao-login-error-text {
        font-size: 18px;
    }

    .kakao-login-error-desc {
        font-size: 14px;
    }

    .kakao-login-error-close {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* 상담 전용 클립보드 모달 스타일 */
.consult-clipboard-modal {
    display: none;
    /* 기본적으로 숨김 */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    /* 어두운 배경 */
    align-items: center;
    justify-content: center;
}

.consult-clipboard-modal.active {
    display: flex;
    /* 활성화 시 flex로 표시 */
}

.consult-clipboard-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 24px;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .consult-clipboard-modal-content {
        padding: 34px 14px;
        margin: auto 20px;
    }
}

.consult-clipboard-modal-close {
    color: #bbb;
    position: absolute;
    top: 2px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.consult-clipboard-modal-close:hover,
.consult-clipboard-modal-close:focus {
    color: black;
    text-decoration: none;
}

.consult-clipboard-modal h2.consult-model-name {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0 8px 0;
    line-height: 1.4;
    color: var(--ssadang-gray);
}

.consult-clipboard-modal h2.consult-model-name strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--ssadang-brand-2);
    background-color: var(--ssadang-brand-bg);
    padding: 4px;
    border-radius: 4px;
}

.consult-clipboard-modal h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.4;
    color: var(--ssadang-black);
}

.consult-clipboard-modal p {
    font-size: 14px;
    color: var(--ssadang-gray);
    margin-bottom: 0;
    line-height: 1.5;
}

.consult-clipboard-modal p strong {
    font-size: 16px;
    color: var(--ssadang-gray);
    font-weight: 500;
}

/* 이미지와 유사한 채팅 입력창 스타일 */
.consult-clipboard-fake-chat {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.consult-clipboard-fake-chat img {
    width: 100%;
    height: 100%;
    max-width: 500px;
    object-fit: contain;
}

.consult-clipboard-action-btn {
    background-color: #5C72ff;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
}

/* 상담 타입 선택 스타일 */
.consult-type-selection {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    justify-content: center;
}

.consult-type-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 160px;
}

.consult-type-option:first-child {
    background-color: #FEE500;
    color: #381E1F;
}

.consult-type-option:last-child {
    background-color: var(--ssadang-brand-2);
}

.consult-type-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.consult-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 64px;
    height: 64px;
    font-size: 64px;
}

.consult-type-icon img {
    width: 100%;
}

.consult-type-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.consult-type-option:first-child .consult-type-title {
    color: #381E1F;
}

.consult-type-option:last-child .consult-type-title {
    color: #fff;
}

.consult-type-subtitle {
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

.consult-type-option:first-child .consult-type-subtitle {
    color: #381E1F;
}

.consult-type-option:last-child .consult-type-subtitle {
    color: #fff;
}

/* 상담 타입 안내 문구 컨테이너 */
.consult-type-notices {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 14px;
}

.consult-type-notice {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 8px;
    position: relative;
}

.consult-type-notice.chat-notice {
    background-color: #FFFAC7;
    color: #381E1F;
}

.consult-type-notice.chat-notice::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #FFFAC7;
}

.consult-type-notice.call-notice {
    background-color: var(--ssadang-brand-bg);
    color: var(--ssadang-brand-2);
}

.consult-type-notice.call-notice::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--ssadang-brand-bg);
}

/* 전화 상담 신청 성공 메시지 스타일 */
.phone-consult-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 46px 40px;
    text-align: center;
    height: 100%;
    min-height: 300px;
}

.phone-consult-success-message .phone-success-icon {
    font-size: 40px;
    color: var(--ssadang-brand-2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--ssadang-brand-bg);
    animation: successPulse 0.6s ease-out;
}

.phone-consult-success-message .phone-success-text {
    font-size: 16px;
    color: var(--ssadang-black);
    font-weight: 500;
    line-height: 1.6;
}

.phone-consult-success-message .phone-success-text strong {
    font-size: 24px;
    color: var(--ssadang-brand-2);
    line-height: 2.8;
}


@keyframes successPulse {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .consult-type-selection {
        gap: 12px;
    }

    .consult-type-option {
        min-height: 140px;
        padding: 20px 8px;
    }

    .consult-type-icon {
        width: 56px;
        height: 56px;
    }

    .consult-type-title {
        font-size: 16px;
    }

    .consult-type-subtitle {
        font-size: 12px;
    }

    .consult-type-notices {
        gap: 12px;
    }

    .consult-type-notice {
        font-size: 12px;
        padding: 10px 8px;
    }

    .phone-consult-success-message {
        padding: 30px 15px;
    }

    .phone-consult-success-message .phone-success-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .phone-consult-success-message .phone-success-text {
        font-size: 14px;
    }

    .phone-consult-success-message .phone-success-text strong {
        font-size: 16px;
    }

    .consult-clipboard-modal h2.consult-model-name,
    .consult-clipboard-modal h2.consult-model-name strong {
        font-size: 14px;
    }

    .consult-clipboard-modal h3 {
        font-size: 20px;
    }
}

/* ======================================== */
/* === 구매후기 스타일 === */
/* ======================================== */

.purchase-review-content {
    padding: 20px 0;
}

.purchase-review-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ssadang-black);
    margin-bottom: 20px;
}

.customer-review-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.customer-review-card {
    background: #fff;
    padding: 0 15px 15px 0;
    border-bottom: 1px solid var(--ssadang-border-gray);
}

.review-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.review-date {
    font-size: 14px;
    color: var(--ssadang-gray);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 14px;
    line-height: 1.5;
}

.review-content {
    margin-top: 10px;
}

.review-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ssadang-black)333aa;
    margin: 0;
    word-break: keep-all;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .purchase-review-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .review-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .reviewer-name {
        font-size: 15px;
    }

    .review-content p {
        font-size: 14px;
    }

    .star {
        font-size: 16px;
    }

    .scroll-to-top-btn {
        bottom: 150px;
    }

    .main-footer {
        padding: 30px 0 130px 0;
    }
}

/* 추가지원금 안내 텍스트 스타일 */
.additional-support-notice {
    font-size: 10px !important;
    font-weight: 500;
    line-height: 1.5;
    width: 100%;
    text-align: right;
    letter-spacing: -0.1px;
    word-break: keep-all;
}

/* 알림받기 모달 스타일 */
.phone-notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-notification-modal.active {
    display: flex;
    opacity: 1;
}

.phone-notification-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-notification-modal.active .phone-notification-modal-content {
    transform: translateY(0);
}

.phone-notification-modal-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ssadang-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.phone-notification-modal-close:hover {
    color: var(--ssadang-black);
}

.phone-notification-modal-header {
    padding: 40px 40px 0 40px;
    margin-bottom: 14px;
}

.phone-notification-modal-header h3 {
    font-size: 22px;
    color: var(--ssadang-black);
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}

.phone-notification-modal-body {
    padding: 0 40px;
    margin-bottom: 40px;
    flex: 1;
}

.phone-notification-modal-body p {
    font-size: 16px;
    color: var(--ssadang-gray);
    margin: 0;
    line-height: 1.6;
}

.alarm-notification-image {
    margin-bottom: 12px;
}

.alarm-notification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.alarm-notification-badge {
    display: inline-flex;
    align-items: center;
    color: var(--ssadang-brand-2);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
}

.phone-notification-modal-footer {
    display: flex;
    width: 100%;
    border-top: 1px solid #f0f0f0;
}

.phone-notification-modal-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.phone-notification-modal-btn-cancel {
    background: var(--ssadang-border-gray);
    color: var(--ssadang-black);
    border-radius: 0 0 0 12px;
}

.phone-notification-modal-btn-cancel:hover {
    background: #e8e8e8;
}

.phone-notification-modal-btn-submit {
    background: var(--ssadang-brand-2);
    color: #fff;
    border-radius: 0 0 12px 0;
}

.phone-notification-modal-btn-submit:hover {
    background: #6b56d9;
}

@media (max-width: 768px) {
    .phone-notification-modal-content {
        max-width: 350px;
    }

    .phone-notification-modal-header {
        padding: 32px 24px 0 24px;
        margin-bottom: 12px;
    }

    .phone-notification-modal-header h3 {
        font-size: 18px;
    }

    .phone-notification-modal-body {
        padding: 0 12px;
        margin-bottom: 32px;
    }

    .phone-notification-modal-body p {
        font-size: 14px;
    }

    .alarm-notification-badges {
        margin-bottom: 16px;
    }

    .alarm-notification-badge {
        font-size: 14px;

    }

    .phone-notification-modal-btn {
        font-size: 15px;
        padding: 14px 20px;
    }

    .phone-notification-modal-btn-cancel,
    .phone-notification-modal-btn-submit {
        border-radius: 0;
    }
}

/* 가격 알림 팝업 스타일 (슬라이드) */
.phone-price-alert-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 350px;
    background-color: var(--ssadang-black);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    /* 데스크탑에서는 숨김 */
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    z-index: 12;
    transform: translateX(calc(100% + 130px));
    transition: transform 0.6s ease-in-out;
    cursor: pointer;
}

.phone-price-alert-popup.show {
    transform: translateX(0);
}

.phone-price-alert-popup-icon {
    font-size: 2rem;
    margin-right: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.phone-price-alert-popup-text {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
    flex: 1;
}

.phone-price-alert-popup-text p {
    margin: 0;
}

.phone-price-alert-popup-text p:first-child {
    font-weight: 500;
    color: #fff;
}

.phone-price-alert-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    opacity: 0.7;
}

.phone-price-alert-close-btn:hover {
    color: #fff;
    opacity: 1;
}

@media (max-width: 768px) {
    .phone-price-alert-popup {
        display: flex;
        /* 모바일에서만 표시 */
        bottom: 70px;
        right: 95px;
        max-width: calc(100% - 100px);
        padding: 14px;
    }

    .phone-price-alert-popup-icon {
        font-size: 14px;
        margin-right: 8px;
    }

    .phone-price-alert-popup-text {
        font-size: 14px;
    }

    .phone-price-alert-popup-tail {
        position: absolute;
        bottom: -9px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid var(--ssadang-black);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

    /* /phone/price/{랜덤값} 경로에서만 적용되는 스타일 */
    body.phone-price-result-page .main-header {
        display: none;
    }

    body.phone-price-result-page .main-content {
        padding-top: 0;
    }

    /* phone-title-section을 상단 고정 */
    body.phone-price-result-page .phone-title-section {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
        padding: 10px 0;
        border-radius: 0;
    }

    /* tab-navigation을 phone-title-section 아래에 고정 */
    body.phone-price-result-page .tab-navigation {
        top: var(--phone-title-height, 60px);
    }
}

/* ======================================== */
/* === phone-price-result-page: 계산기 FAB === */
/* ======================================== */

/* 전역 상담 FAB 숨김(이 페이지에서만) */
body.phone-price-result-page #floating-action {
    display: none !important;
}

/* floating-action-btn 위치에 임시 계산기 버튼 */
body.phone-price-result-page .ndc-fab {
    position: fixed;
    right: calc(50% - 620px);
    bottom: 60px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--ssadang-point-color-pink-two);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 8px #462cc50f;
    z-index: 1;
}

body.phone-price-result-page .ndc-fab:hover {
    transform: scale(1.06);
}

body.phone-price-result-page .ndc-fab:active {
    transform: translateY(1px);
}

.ndc-fab-icon {
    width: 100%;
    bottom: 7px;
    right: 1px;
    position: relative;
    transform: scale(0.7);
}

@media (max-width: 1024px) {
    body.phone-price-result-page .ndc-fab {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 70px;
        font-size: 13px;
    }
}

/* ======================================== */
/* === 할인·납부 계산기(모달) === */
/* ======================================== */

body.ndc-modal-open {
    overflow: hidden;
}

html.ndc-modal-open {
    overflow: hidden;
}

.ndc-open-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--ssadang-border-gray);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    color: var(--ssadang-black);
    margin-top: 12px;
}

.ndc-open-trigger-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--ssadang-black);
}

.ndc-open-trigger i {
    color: var(--ssadang-gray);
}

.ndc-open-trigger--mobile {
    margin: 10px 0 4px;
}

.ndc-modal {
    position: fixed;
    inset: 0;
    z-index: 12;
    display: none;
    align-items: center;
    justify-content: center;
}

.ndc-modal.is-open {
    display: flex;
}

.ndc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ndc-modal-sheet {
    position: relative;
    width: calc(100% - 24px);
    max-width: 520px;
    max-height: 88vh;
    height: 88vh;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22);
}

.ndc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px;
    border-bottom: 1px solid var(--ssadang-border-gray);
}

.ndc-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);
    margin-left: 24px;
}

.ndc-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ssadang-black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
}

.ndc-modal-close-right {
    font-size: 13px;
    font-weight: 400;
    color: var(--ssadang-gray);
}

.ndc-modal-body {
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    height: 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* flex 자식 요소들이 축소되지 않도록 하여 스크롤 가능하게 함 */
.ndc-modal-body>* {
    flex-shrink: 0;
}

.ndc-summary {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
}

.ndc-summary-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/*
.ndc-summary-label {
    font-size: 12px;
    color: var(--ssadang-gray);
    font-weight: 400;
}*/

.ndc-summary-value {
    font-size: 12px;
    color: var(--ssadang-gray);
    font-weight: 400;
}

.ndc-summary-msg {
    font-size: 20px;
    font-weight: 600;
    color: var(--ssadang-black);
}

.ndc-summary-highlight {
    color: var(--ssadang-point-color-pink-one);
    font-weight: 700;
    font-size: 20px;
}

.ndc-toggle {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 999px;
    border: 1px solid #d8dce4;
    background: #d8dce4;
    padding: 2px;
    overflow: hidden;
}

.ndc-toggle-btn {
    position: relative;
    z-index: 1;
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ssadang-gray-2);
    cursor: pointer;
}

.ndc-toggle-btn.is-active {
    color: var(--ssadang-black);
}

.ndc-toggle-glider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: #fff;
    border-radius: 999px;
    transition: transform 180ms ease;
}

.ndc-toggle.is-right .ndc-toggle-glider {
    transform: translateX(100%);
}

.ndc-hero-card {
    display: flex;
    flex-direction: column;
    gap: 38px;
    padding: 14px 50px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: var(--ssadang-bg-gray);
    border: 1px solid var(--ssadang-bg-gray);
}

.ndc-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: var(--ssadang-bg-gray);
    border: 1px solid var(--ssadang-border-gray);
    min-height: 260px;
}

.ndc-chart--hero {
    background: transparent;
    border: none;
    padding: 0;
    min-height: 220px;
}

.ndc-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ndc-chart-amount {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--ndc-pillar-h, 0%) + 10px);
    font-size: 16px;
    font-weight: 400;
    color: #c3c7cf;
    line-height: 1.2;
    white-space: nowrap;
}

.ndc-chart-pillar-wrap {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 170px;
    position: relative;
}

.ndc-chart-pillar {
    width: 100%;
    max-width: 80px;
    height: 60%;
    border-radius: 16px 16px 12px 12px;
    transition: height 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ndc-chart-pillar {
    background: #d8dce4;
}

.ndc-chart-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--ssadang-gray);
}

.ndc-chart-bar.is-win .ndc-chart-amount {
    color: var(--ssadang-point-color-pink-one);
    font-weight: 600;
}

.ndc-chart-bar.is-win .ndc-chart-pillar {
    background: var(--ssadang-point-color-pink-one);
    filter: saturate(1.05);
}

.ndc-section-note {
    font-size: 14px;
    color: var(--ssadang-gray);
    font-weight: 400;
}

.ndc-list {
    display: flex;
    flex-direction: column;
    /* 툴팁(말풍선)이 리스트 바깥으로 나올 수 있어야 해서 visible */
    overflow: visible;
    background: #fff;
}

.ndc-list-row {
    width: 100%;
    border: none;
    background: #fff;
    cursor: pointer;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ndc-list-row+.ndc-list-row {
    border-top: 2px solid var(--ssadang-bg-gray);
}

.ndc-list-row--static {
    cursor: default;
    /* 툴팁/아이콘 등 내부 인터랙션은 허용 */
    pointer-events: auto;
}

.ndc-list-row--static .ndc-list-arrow {
    display: none;
}

.ndc-list-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.ndc-list-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--ssadang-black);
}

.ndc-list-sub {
    display: flex;
    align-items: center;
}

.ndc-list-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.ndc-required-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ndc-tip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ndc-tip-btn {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: var(--ssadang-gray);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ndc-tip-btn i {
    font-size: 16px;
    line-height: 1;
    color: var(--ssadang-black);
}

.ndc-tip-bubble {
    position: absolute;
    top: -85px;
    right: -13px;
    transform: translateY(6px);
    background: var(--ssadang-black);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 240px;
    max-width: 280px;    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0ms linear 160ms;
    z-index: 20;
}

.ndc-tip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 16px;
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: var(--ssadang-black) transparent transparent transparent;
}

/* PC: hover */
.ndc-tip-wrap:hover .ndc-tip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 160ms ease, transform 160ms ease;
}

/* Mobile: click(toggled class) */
.ndc-tip-wrap.is-open .ndc-tip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 160ms ease, transform 160ms ease;
}

.ndc-tip-bubble span {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

@media (max-width: 768px) {
    .ndc-tip-bubble {
        top: -86px;
        right: -14px;
        min-width: 220px;
        max-width: 260px;
    }
}

.top-change {
    top: -50px;
}

.ndc-list-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--ssadang-black);
}

.ndc-list-arrow {
    color: var(--ssadang-gray);
    font-size: 12px;
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 변경할 요금제/부가서비스 선택 모달 */
.ndc-select-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 0ms linear 220ms;
}

.ndc-select-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 220ms ease;
}

.ndc-select-modal.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.ndc-select-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 220ms ease;
}

.ndc-select-modal.is-open .ndc-select-modal-backdrop {
    opacity: 1;
}

.ndc-select-modal.is-closing .ndc-select-modal-backdrop {
    opacity: 0;
}

.ndc-select-modal-sheet {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    max-height: 78vh;
    height: 48vh;
    overflow: hidden;
    min-height: 0;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22);
    transform: translateY(110%);
    transition: transform 220ms ease;
}

.ndc-select-modal.is-open .ndc-select-modal-sheet {
    transform: translateY(0);
}

.ndc-select-modal.is-closing .ndc-select-modal-sheet {
    transform: translateY(110%);
}

.ndc-select-modal-header {
    display: flex;
    align-items: center;    
    gap: 10px;
    padding: 34px 20px 14px;    
    flex-shrink: 0;
}

.ndc-select-modal-title-wrap {
    display: flex;
    flex-direction: column;    
    justify-content: flex-start;
    gap: 2px;    
    min-width: 0;
}

.ndc-select-modal-subtitle {
    font-size: 12px;
    color: var(--ssadang-gray);
    font-weight: 400;
    line-height: 1.2;
}

.ndc-select-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);    
}

.ndc-select-modal-close-left {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--ssadang-black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 10px;
    width: 40px;
    height: 40px;
}

.ndc-select-modal-body {
    padding: 16px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    height: 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.ndc-select-modal-footer {
    padding: 14px 20px 16px;    
    background: #fff;
    flex-shrink: 0;
}

.ndc-select-apply-btn {
    width: 100%;
    padding: 16px 14px;
    border: none;
    border-radius: 14px;
    background: var(--ssadang-brand-2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ndc-select-apply-btn:active {
    transform: translateY(1px);
}

.ndc-select-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ndc-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;    
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ndc-select-option-input {
    width: 18px;
    height: 18px;
    accent-color: var(--ssadang-brand-2);
    flex-shrink: 0;
}

.ndc-select-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ndc-select-option-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--ssadang-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ndc-plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ssadang-brand-bg);
    border: 1px solid var(--ssadang-brand-bg);
    color: var(--ssadang-brand-2);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
    flex-shrink: 0;
}

.ndc-select-option-price {
    font-size: 14px;
    font-weight: 400;
    color: var(--ssadang-black);
    flex-shrink: 0;
}

.ndc-select-option:hover {
    background: var(--ssadang-bg-gray);
}

.ndc-select-option.is-selected {
    border-color: var(--ssadang-brand-2);
    background: var(--ssadang-brand-bg);
}

.ndc-select-option-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ssadang-black);
}

.ndc-select-option-check {
    color: var(--ssadang-brand);
    font-size: 14px;
}

.ndc-select-services-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 부가서비스: 체크박스 리스트(UI) */
.ndc-svc-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 6px;    
    background: #fff;
    cursor: pointer;
}

.ndc-svc-option--none {
    padding-top: 6px;
}

.ndc-svc-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ndc-svc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ndc-svc-check {
    width: 18px;
    height: 18px;
    accent-color: var(--ssadang-brand-2);
    flex-shrink: 0;
    border-radius: 999px;
}

.ndc-svc-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--ssadang-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ndc-svc-price {
    font-size: 14px;
    font-weight: 400;
    color: var(--ssadang-black);
    flex-shrink: 0;
}

.ndc-select-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ssadang-gray);
    font-size: 14px;
}

.ndc-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ssadang-brand-bg);
    border: 1px solid var(--ssadang-brand-bg);
    color: var(--ssadang-brand-2);
    font-size: 10px;
    font-weight: 400;
}

.ndc-accordion {
    border: 1px solid var(--ssadang-border-gray);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.ndc-accordion-btn {
    width: 100%;
    border: none;
    background: #fff;
    cursor: pointer;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ssadang-gray);
    font-weight: 900;
    font-size: 13px;
}

.ndc-accordion-chevron {
    transition: transform 160ms ease;
    color: #c3c7cf;
    font-size: 12px;
}

.ndc-accordion-btn.is-open .ndc-accordion-chevron {
    transform: rotate(180deg);
}

.ndc-accordion-body {
    border-top: 1px solid var(--ssadang-border-gray);
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ndc-basis-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ndc-basis-title {
    font-size: 12px;
    font-weight: 900;
    color: var(--ssadang-black);
}

.ndc-basis-content {
    font-size: 12px;
}

.ndc-basis-block--total {
    padding-top: 12px;
    border-top: 1px solid var(--ssadang-border-gray);
}

.ndc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--ssadang-border-gray);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
}

.ndc-breakdown-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ndc-breakdown-row--total {
    border-top: 1px solid var(--ssadang-border-gray);
    padding-top: 12px;
    margin-top: 4px;
}

.ndc-breakdown-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ndc-breakdown-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--ssadang-black);
}

.ndc-breakdown-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--ssadang-gray);
}

.ndc-breakdown-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    color: var(--ssadang-black);
    font-weight: 800;
    font-size: 12px;
    min-width: 120px;
}

.ndc-breakdown-muted {
    color: var(--ssadang-gray);
    font-weight: 700;
}

.ndc-breakdown-compare {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.ndc-breakdown-compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ndc-compare-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ssadang-gray);
}

.ndc-compare-value {
    font-size: 12px;
    font-weight: 900;
    color: var(--ssadang-black);
}

.ndc-footnote {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 2px 0;
}

.ndc-footnote-text {
    font-size: 11px;
    color: var(--ssadang-gray);
    font-weight: 300;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ndc-modal {
        align-items: stretch;
        justify-content: stretch;
    }

    .ndc-modal-sheet {
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .ndc-chart {
        min-height: 240px;
    }

    .ndc-chart--hero {
        min-height: 220px;
    }
}

/* ======================================== */
/* === 계산 근거 오버레이 스타일 === */
/* ======================================== */

.ndc-calc-basis-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: var(--ssadang-bg-gray);
    cursor: pointer;
    color: var(--ssadang-gray);
    font-size: 14px;
    font-weight: 400;
    transition: background 0.2s ease;
}

.ndc-calc-basis-btn i {    
    font-size: 12px;
    color:var(--ssadang-gray);
}

.ndc-calc-basis-close span,
.ndc-calc-basis-btn span {
    font-size: 16px;
    color:var(--ssadang-gray);
}

.ndc-calc-basis-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 10;
    display: none;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
}

.ndc-calc-basis-overlay.is-open {
    display: flex;
}

.ndc-calc-basis-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ndc-calc-basis-content>* {
    flex-shrink: 0;
}

.ndc-calc-basis-close {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #f9f9f9;
    cursor: pointer;
    color: var(--ssadang-gray);
    font-size: 14px;
    font-weight: 400;
    transition: background 0.2s ease;
}

.ndc-calc-basis-close i {
    font-size: 12px;
}

.ndc-calc-basis-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 14px 24px;
    margin-bottom: 8px;
    border-bottom: 16px solid #d8dce4;
}

.ndc-calc-basis-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ndc-calc-basis-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ssadang-black);
    padding: 4px 0;
}

.ndc-calc-basis-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ndc-calc-basis-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.ndc-calc-basis-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ndc-calc-basis-row--total {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px dashed #e0e0e0;
}

.ndc-calc-basis-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--ssadang-gray);
}

.ndc-calc-basis-label small {
    font-size: 16px;    
}

.ndc-calc-basis-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--ssadang-gray);
    text-align: right;
}

.ndc-calc-basis-value--discount {
    color: var(--ssadang-gray);
}

.ndc-calc-basis-value--badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ssadang-black);
}

.ndc-calc-basis-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 300;
    color: #fff;
}

.ndc-calc-basis-badge--a {
    background: var(--ssadang-point-color-pink-one);
}

.ndc-calc-basis-badge--b {
    background: var(--ssadang-point-color-mint-one);
}

.ndc-calc-basis-grand-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--ssadang-bg-gray);
    border-radius: 16px;
    margin-top: 8px;
}

.ndc-calc-basis-grand-total-pink {
    background: var(--ssadang-point-color-pink-bg);
    border: 1px solid var(--ssadang-point-color-pink-one);

}
.ndc-calc-basis-grand-total-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndc-calc-basis-grand-total-plus {
    font-size: 16px;
    font-weight: 700;
    color: var(--ssadang-gray);
}

.ndc-calc-basis-grand-total-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ndc-calc-basis-grand-total-label {
    font-size: 17px;
    font-weight: 400;
    color: var(--ssadang-gray);
    line-height: 1;
}

.ndc-calc-basis-grand-total-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--ssadang-black);
}

@media (max-width: 1024px) {
    .ndc-calc-basis-overlay {
        border-radius: 0;
    }

    .ndc-calc-basis-grand-total-value {
        font-size: 20px;
    }
}