/**
 * Discount Calculator Styles
 * Discount Calculator localized styles (ZH-TW)
 *
 * @package Zipper
 */

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

.dcc-intro {
    display: grid;
    gap: 10px;
}

.dcc-lead {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.7;
    color: #5f5a56;
}

.dcc-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dcc-section:hover {
    border-color: #e1d6af;
    box-shadow: 0 4px 14px rgba(45, 42, 38, 0.08);
}

.dcc-section-title,
.dcc-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
}

.dcc-section-title i,
.dcc-subtitle i,
.dcc-input-tip i,
.dcc-disclaimer i {
    color: #d4af37;
}

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

.dcc-mode-btn {
    min-height: 48px;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    color: #5f5a56;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dcc-mode-btn:hover,
.dcc-mode-btn.is-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.14);
}

.dcc-mode-note,
.dcc-input-hint,
.dcc-table-note,
.dcc-compare-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6d665e;
}

.dcc-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

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

.dcc-input-label {
    font-size: 13px;
    font-weight: 700;
    color: #5f5a56;
}

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

.dcc-amount-input,
.dcc-rate-input,
.dcc-qty-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #fff;
    color: #2d2a26;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dcc-amount-input:hover,
.dcc-rate-input:hover,
.dcc-qty-input:hover {
    border-color: #d4c67a;
}

.dcc-amount-input:focus,
.dcc-rate-input:focus,
.dcc-qty-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.dcc-amount-input::placeholder,
.dcc-rate-input::placeholder,
.dcc-qty-input::placeholder {
    color: #c4c0bc;
    font-weight: 400;
}

.dcc-unit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e8e4dc;
    background: #faf9f7;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dcc-input-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fcf7e8;
    border: 1px solid #efe0a8;
    font-size: 13px;
    line-height: 1.6;
    color: #6c6244;
}

.dcc-preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dcc-preset-btn {
    padding: 9px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 999px;
    background: #fff;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dcc-preset-btn:hover,
.dcc-preset-btn.is-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #8a6500;
}

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

.dcc-btn-group .tool-btn {
    flex: 1;
}

.dcc-tip-section {
    gap: 12px;
}

.dcc-tip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #5f5a56;
    font-size: 14px;
    line-height: 1.6;
}

.dcc-waiting {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 20px;
    border: 1px solid #f1d6bf;
    border-radius: 14px;
    background: #fff8f1;
    color: #9e6f46;
}

.dcc-waiting i {
    font-size: 28px;
}

.dcc-result-hero {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.96) 54%, rgba(232, 228, 220, 0.72) 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 10px 24px rgba(45, 42, 38, 0.08);
}

.dcc-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dcc-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dcc-status-badge.is-neutral {
    background: rgba(95, 90, 86, 0.12);
    color: #5f5a56;
}

.dcc-status-badge.is-savings {
    background: rgba(15, 123, 77, 0.12);
    color: #0f7b4d;
}

.dcc-status-badge.is-reverse {
    background: rgba(138, 101, 0, 0.12);
    color: #8a6500;
}

.dcc-status-badge.is-warning {
    background: rgba(193, 109, 50, 0.14);
    color: #9e6f46;
}

.dcc-copy-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    color: #8a6500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dcc-copy-btn:hover {
    background: #fff;
    border-color: #d4af37;
    transform: translateY(-1px);
}

.dcc-hero-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: #2d2a26;
    word-break: break-all;
}

.dcc-hero-value .unit {
    font-size: 24px;
    font-weight: 600;
    margin-left: 4px;
    color: #5f5a56;
}

.dcc-hero-label {
    font-size: 14px;
    font-weight: 700;
    color: #5f5a56;
}

.dcc-hero-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4f4a45;
}

.dcc-formula-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px dashed rgba(212, 175, 55, 0.56);
    color: #5f5a56;
    font-size: 13px;
    line-height: 1.7;
}

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

.dcc-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e8e4dc;
    background: #fff;
    box-shadow: 0 1px 3px rgba(45, 42, 38, 0.05);
}

.dcc-kpi-label {
    font-size: 12px;
    font-weight: 700;
    color: #8a6500;
}

.dcc-kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: #2d2a26;
}

.dcc-kpi-note {
    font-size: 12px;
    line-height: 1.6;
    color: #7a756d;
}

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

.dcc-flow-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #eee5d1;
    background: #fcfbf8;
}

.dcc-flow-label {
    font-size: 12px;
    font-weight: 700;
    color: #8a6500;
}

.dcc-flow-value {
    font-size: 18px;
    font-weight: 800;
    color: #2d2a26;
}

.dcc-flow-note {
    font-size: 12px;
    line-height: 1.6;
    color: #756d64;
}

.dcc-compare-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dcc-compare-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dcc-compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #5f5a56;
}

.dcc-compare-head strong {
    color: #2d2a26;
    font-size: 14px;
}

.dcc-compare-track {
    height: 12px;
    border-radius: 999px;
    background: #ece7de;
    overflow: hidden;
}

.dcc-compare-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.dcc-compare-bar.base {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
}

.dcc-compare-bar.actual {
    background: linear-gradient(135deg, #2d2a26 0%, #5f5a56 100%);
}

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

.dcc-summary-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.dcc-summary-table th,
.dcc-summary-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee7da;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
}

.dcc-summary-table th {
    width: 36%;
    color: #6d665e;
    font-weight: 700;
}

.dcc-summary-table td {
    color: #2d2a26;
    font-weight: 600;
}

.dcc-summary-table tbody tr:last-child th,
.dcc-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.dcc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #faf6ef;
    border: 1px solid #eadfca;
    font-size: 13px;
    line-height: 1.7;
    color: #6f665d;
}

@media (max-width: 900px) {
    .dcc-input-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dcc-mode-toggle,
    .dcc-kpi-grid,
    .dcc-flow-grid {
        grid-template-columns: 1fr;
    }

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

    .dcc-result-hero {
        padding: 18px;
    }

    .dcc-hero-value {
        font-size: 34px;
    }

    .dcc-copy-btn {
        width: 38px;
        height: 38px;
    }
}
