/**
 * Maternal Newborn Care Copay Calculator Styles
 * 산모·신생아 건강관리 본인부담금 계산기
 *
 * @package Zipper
 */

.snc-hidden {
    display: none !important;
}

.snc-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.snc-input-col {
    position: sticky;
    top: 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.snc-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.snc-section,
.snc-result-summary,
.snc-chart-section,
.snc-table-section,
.snc-apply-section,
.snc-checklist-section {
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.snc-section-title,
.snc-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.snc-section-title i,
.snc-block-title i {
    color: #d4af37;
}

.snc-input-group {
    margin-bottom: 12px;
}

.snc-input-group:last-child {
    margin-bottom: 0;
}

.snc-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.snc-select,
.snc-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    background: #fbfaf8;
    color: #2d2a26;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.snc-select {
    padding: 10px 32px 10px 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236f6758' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.snc-input {
    padding: 10px 38px 10px 12px;
    text-align: right;
    font-weight: 600;
}

.snc-input::placeholder {
    color: #c4c0bc;
    font-weight: 400;
}

.snc-select:hover,
.snc-input:hover {
    border-color: #d4c67a;
}

.snc-select:focus,
.snc-input:focus {
    outline: none;
    background: #fff;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.snc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.snc-amount-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.snc-amount-wrap .snc-input {
    padding-right: 12px;
}

.snc-unit {
    position: static;
    font-size: 12px;
    color: #9a9488;
    pointer-events: none;
    white-space: nowrap;
}

.snc-korean-amount {
    margin-top: 4px;
    min-height: 16px;
    text-align: right;
    font-size: 11px;
    color: #b58913;
}

.snc-hint {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #8f897f;
}

.snc-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px;
    border-radius: 10px;
    background: #f5f3ef;
    border: 1px solid #e6e0d5;
}

.snc-mode-tab {
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #6c6458;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.snc-mode-tab.active {
    background: #fff;
    border-color: #d4af37;
    color: #4b432f;
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.16);
}

.snc-mode-panel {
    display: block;
}

.snc-checklist {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #5f5a56;
}

.snc-btn-group {
    display: flex;
    gap: 8px;
}

.snc-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.snc-btn-primary {
    flex: 1;
    color: #fff;
    background: linear-gradient(135deg, #d4af37 0%, #c49520 100%);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.26);
}

.snc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.34);
}

.snc-btn-ghost {
    color: #5f5a56;
    border: 1px solid #dfd8cb;
    background: #f5f3ef;
}

.snc-btn-ghost:hover {
    background: #fff;
    border-color: #d4c67a;
}

.snc-waiting {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    color: #7f755f;
    font-size: 13px;
    line-height: 1.5;
}

.snc-waiting i {
    color: #d4af37;
    font-size: 18px;
    flex-shrink: 0;
}

.snc-waiting p {
    margin: 0;
}

.snc-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
}

.snc-summary-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.18);
    color: #7b6521;
    font-size: 12px;
    font-weight: 700;
}

.snc-summary-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    color: #2d2a26;
}

.snc-main-value {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #b58913;
}

.snc-summary-note {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #7f786b;
}

.snc-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.snc-summary-item {
    border: 1px solid #e7ddc4;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.snc-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #6e665a;
}

.snc-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.35;
}

.snc-kpi-item .snc-summary-value {
    font-size: 22px;
    color: #b58913;
}

.snc-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.snc-block-sub {
    font-size: 12px;
    color: #7f786b;
}

.snc-chart-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    border: 1px solid #eee7d6;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.snc-chart-wrap canvas {
    max-height: 260px;
}

.snc-chart-fallback {
    margin-top: 10px;
    border: 1px dashed #d8c8a0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fffaf0;
    font-size: 12px;
    color: #6e665a;
    line-height: 1.45;
}

.snc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(63, 153, 98, 0.28);
}

.snc-download-btn:hover {
    box-shadow: 0 4px 12px rgba(54, 137, 86, 0.34);
    transform: translateY(-1px);
}

#sncDownloadBtn.tool-btn.tool-btn-excel,
.snc-download-btn.tool-btn.tool-btn-excel {
    color: #fff !important;
    background: linear-gradient(135deg, #59ab79 0%, #4f9f70 100%) !important;
    border: 1px solid #4f9f70 !important;
}

#sncDownloadBtn.tool-btn.tool-btn-excel:hover,
.snc-download-btn.tool-btn.tool-btn-excel:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #4f9f70 0%, #458b63 100%) !important;
}

.snc-table-wrap {
    overflow-x: auto;
}

.snc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.snc-table th,
.snc-table td {
    border-bottom: 1px solid #eee7d8;
    padding: 10px 8px;
    text-align: left;
    font-size: 12px;
    color: #3e382f;
    vertical-align: top;
}

.snc-table th {
    background: #faf7ef;
    color: #5f584d;
    font-weight: 700;
}

.snc-table tr.is-active {
    background: #fff8e8;
}

.snc-table-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #f5f3ef;
    color: #6b6358;
}

.snc-table-badge.is-ga {
    background: #f1f8ef;
    color: #3f7f4f;
}

.snc-table-badge.is-integrated {
    background: #f1f5fb;
    color: #3a5f90;
}

.snc-table-badge.is-ra {
    background: #fff1ed;
    color: #a5573f;
}

.snc-empty-row td {
    text-align: center;
    color: #7f786b;
    font-size: 12px;
}

.snc-apply-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.snc-apply-list a {
    color: #7d5f18;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.snc-apply-note {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    color: #6f675a;
    line-height: 1.5;
}

.snc-disclaimer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

.snc-disclaimer i {
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .snc-main-layout {
        grid-template-columns: 280px 1fr;
    }

    .snc-input-group input:not([type="radio"]):not([type="checkbox"]),
    .snc-select {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .snc-main-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .snc-input-col {
        position: static;
    }

    .snc-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .snc-grid-2 {
        grid-template-columns: 1fr;
    }

    .snc-chart-wrap {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .snc-section,
    .snc-result-summary,
    .snc-chart-section,
    .snc-table-section,
    .snc-apply-section,
    .snc-checklist-section {
        padding: 14px;
    }

    .snc-summary-grid {
        grid-template-columns: 1fr;
    }

    .snc-main-value {
        font-size: 28px;
    }

    .snc-summary-value {
        font-size: 16px;
    }

    .snc-kpi-item .snc-summary-value {
        font-size: 19px;
    }

    .snc-btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .snc-table {
        min-width: 580px;
    }

    .snc-main-layout,
    .snc-input-col,
    .snc-result-col {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .snc-select,
    .snc-input,
    .snc-btn,
    .snc-mode-tab {
        transition: none !important;
    }

    .snc-btn-primary:hover {
        transform: none !important;
    }
}
