.wwtc-main-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
}

.wwtc-input-col,
.wwtc-result-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    box-sizing: border-box;
}

.wwtc-result-col {
    gap: 16px;
}

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

.wwtc-section,
.wwtc-result-summary,
.wwtc-chart-section,
.wwtc-evidence-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.wwtc-section:hover,
.wwtc-result-summary:hover,
.wwtc-chart-section:hover,
.wwtc-evidence-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

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

.wwtc-section-title i {
    color: #d4af37;
}

.wwtc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wwtc-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
}

.wwtc-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
    line-height: 1.35;
}

.wwtc-label-hint {
    font-size: 11px;
    font-weight: 500;
    color: #8c8578;
}

.wwtc-amount-input,
.wwtc-number-input,
.wwtc-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    font-size: 14px;
    color: #2d2a26;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wwtc-amount-input:hover,
.wwtc-number-input:hover,
.wwtc-select:hover {
    border-color: #d4c67a;
}

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

.wwtc-amount-input::placeholder,
.wwtc-number-input::placeholder {
    color: #c4c0bc;
    font-weight: 400;
}

.wwtc-korean-amount {
    min-height: 16px;
    font-size: 11px;
    color: #d4af37;
    font-weight: 600;
}

.wwtc-hint {
    font-size: 12px;
    color: #8c8984;
    line-height: 1.45;
}

.wwtc-rate-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border-radius: 10px;
    background: #f5f3f0;
    border: 1px solid #ece6dc;
}

.wwtc-rate-tab {
    border: 1px solid transparent;
    background: transparent;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
}

.wwtc-rate-tab:hover {
    color: #2d2a26;
    border-color: #e3d9c1;
}

.wwtc-rate-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #c99f2f 100%);
    color: #fff;
    border-color: #bf9528;
    box-shadow: 0 2px 8px rgba(201, 159, 47, 0.3);
}

.wwtc-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wwtc-calculate-btn,
.wwtc-reset-btn {
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wwtc-calculate-btn {
    flex: 1;
    border: 1px solid #c79d2d;
    background: linear-gradient(135deg, #d4af37 0%, #c59528 100%);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

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

.wwtc-reset-btn {
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid #d8d2c8;
    background: #f9f7f3;
    color: #5f5a56;
    font-weight: 500;
}

.wwtc-reset-btn:hover {
    background: #f3efe8;
    box-shadow: 0 2px 8px rgba(120, 113, 102, 0.15);
}

.wwtc-waiting {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    background: #faf9f7;
}

.wwtc-waiting-icon {
    font-size: 40px;
    color: #d4af37;
    opacity: 0.4;
}

.wwtc-waiting-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
}

.wwtc-waiting-desc {
    font-size: 13px;
    color: #8c8984;
    line-height: 1.45;
}

.wwtc-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.wwtc-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #7b6732;
    background: #f7efd9;
    border: 1px solid #ecd9a3;
}

.wwtc-summary-title {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #4f472f;
}

.wwtc-summary-main {
    margin-top: 8px;
    font-size: 34px;
    font-weight: 800;
    color: #2d2a26;
    letter-spacing: -0.02em;
}

.wwtc-summary-row {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px dashed #ebddbb;
    padding-top: 8px;
}

.wwtc-summary-row-label {
    font-size: 12px;
    font-weight: 600;
    color: #6f685b;
}

.wwtc-summary-row-value {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    text-align: right;
}

.wwtc-rate-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wwtc-rate-card {
    border: 1px solid #e6e0d7;
    background: #fff;
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wwtc-rate-card:hover {
    border-color: #d9c58c;
    box-shadow: 0 2px 8px rgba(181, 154, 75, 0.18);
    transform: translateY(-1px);
}

.wwtc-rate-card.active {
    border-color: #d4af37;
    background: #fffaf0;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.wwtc-rate-card-label {
    font-size: 12px;
    font-weight: 700;
    color: #7a6c47;
}

.wwtc-rate-card-total {
    font-size: 20px;
    font-weight: 800;
    color: #2d2a26;
    letter-spacing: -0.01em;
}

.wwtc-rate-card-meta {
    font-size: 11px;
    color: #7f786b;
    line-height: 1.35;
}

.wwtc-chart-title,
.wwtc-evidence-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
}

.wwtc-chart-title i,
.wwtc-evidence-title i {
    color: #d4af37;
}

.wwtc-chart-wrap {
    width: 100%;
    max-width: 100%;
    height: 260px;
    position: relative;
}

.wwtc-chart-wrap canvas {
    width: 100% !important;
    max-width: 100%;
}

.wwtc-chart-fallback {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e8e0d0;
    background: #fcfaf5;
}

.wwtc-chart-fallback-text {
    margin: 0;
    font-size: 12px;
    color: #6f6758;
    line-height: 1.45;
}

.wwtc-fallback-table,
.wwtc-evidence-table {
    width: 100%;
    border-collapse: collapse;
}

.wwtc-fallback-table th,
.wwtc-fallback-table td,
.wwtc-evidence-table th,
.wwtc-evidence-table td {
    border-bottom: 1px solid #ece5d7;
    padding: 8px 6px;
    text-align: left;
    font-size: 12px;
    color: #4f4a42;
    line-height: 1.45;
}

.wwtc-fallback-table th,
.wwtc-evidence-table th {
    background: #f8f5ee;
    font-weight: 700;
    color: #5f5a56;
}

.wwtc-fallback-table td:last-child,
.wwtc-evidence-table td:nth-child(2) {
    font-weight: 700;
    color: #2d2a26;
}

.wwtc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f7f5f1;
    border: 1px solid #e4dfd5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: #9e9a96;
    line-height: 1.55;
}

.wwtc-disclaimer i {
    margin-top: 2px;
    color: #c8a95b;
}

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

    .wwtc-input-col,
    .wwtc-result-col {
        max-width: 100%;
        overflow: hidden;
    }

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

@media (max-width: 768px) {
    .wwtc-section,
    .wwtc-result-summary,
    .wwtc-chart-section,
    .wwtc-evidence-section {
        padding: 14px;
    }

    .wwtc-summary-main {
        font-size: 30px;
    }

    .wwtc-rate-cards {
        grid-template-columns: 1fr;
    }

    .wwtc-chart-wrap {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .wwtc-main-layout,
    .wwtc-input-col,
    .wwtc-result-col,
    .wwtc-section,
    .wwtc-result-summary,
    .wwtc-chart-section,
    .wwtc-evidence-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    .wwtc-input-row {
        grid-template-columns: 1fr;
    }

    .wwtc-rate-tabs {
        grid-template-columns: 1fr;
    }

    .wwtc-summary-main {
        font-size: 26px;
    }

    .wwtc-summary-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .wwtc-summary-row-value {
        text-align: left;
    }

    .wwtc-btn-group {
        flex-direction: column;
    }

    .wwtc-calculate-btn,
    .wwtc-reset-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wwtc-section,
    .wwtc-result-summary,
    .wwtc-chart-section,
    .wwtc-evidence-section,
    .wwtc-rate-tab,
    .wwtc-rate-card,
    .wwtc-calculate-btn,
    .wwtc-reset-btn,
    .wwtc-amount-input,
    .wwtc-number-input,
    .wwtc-select {
        transition: none !important;
    }

    .wwtc-section:hover,
    .wwtc-result-summary:hover,
    .wwtc-chart-section:hover,
    .wwtc-evidence-section:hover,
    .wwtc-rate-card:hover,
    .wwtc-calculate-btn:hover,
    .wwtc-reset-btn:hover {
        transform: none !important;
    }
}
