/* MPWRD Credit Card EMI Calculator with GST */
.mpwrd-cc-emi-gst-calculator,
.mpwrd-cc-emi-gst-calculator * {
    box-sizing: border-box;
}

.mpwrd-cc-emi-gst-calculator {
    color: var(--ink, #1a2332);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
}

.mpwrd-cc-emi-gst-calculator {
            --ink: #1a2332;
            --ink-soft: #3d4a5c;
            --navy: #1e3a5f;
            --navy-deep: #152a45;
            --gold: #c5922a;
            --gold-soft: #e8c56a;
            --paper: #f7f4ef;
            --surface: #ffffff;
            --line: #d7d0c4;
            --muted: #6b7280;
            --track: #e6e0d6;
            --unit: #f0ebe3;
            --summary: #f9f6f1;
            --emi: #1e3a5f;
            --gst: #8b5a2b;
        }

        .mpwrd-cc-emi-gst-calculator .calculator-shell {
            border: 1px solid var(--line);
            background: var(--surface);
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 0.8) inset,
                0 18px 40px rgba(26, 35, 50, 0.1);
            overflow: visible;
        }

        .mpwrd-cc-emi-gst-calculator .calculator-content {
            padding: 22px 20px 20px;
        }

        .mpwrd-cc-emi-gst-calculator .inputs-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 4px;
        }

        .mpwrd-cc-emi-gst-calculator .field {
            margin-bottom: 0;
            border: 2px dotted #b8a98c;
            background: linear-gradient(180deg, #fffefb, var(--summary));
            padding: 14px 12px;
            min-width: 0;
        }

        .mpwrd-cc-emi-gst-calculator .field-top {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
            margin-bottom: 0;
        }

        .mpwrd-cc-emi-gst-calculator .field-label {
            text-align: center;
            font-size: 13px;
            font-weight: 700;
            color: var(--navy);
        }

        .mpwrd-cc-emi-gst-calculator .input-group {
            display: flex;
            align-items: stretch;
            width: 100%;
            max-width: none;
            box-shadow: 0 1px 2px rgba(26, 35, 50, 0.04);
        }

        .mpwrd-cc-emi-gst-calculator .text-input {
            width: 100%;
            height: 34px;
            border: 1px solid #c8bfb0;
            padding: 0 10px;
            font-size: 14px;
            font-weight: 600;
            outline: none;
            background: #fffefb;
            color: var(--ink);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .mpwrd-cc-emi-gst-calculator .text-input:focus {
            border-color: var(--navy);
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
        }

        .mpwrd-cc-emi-gst-calculator .unit-box {
            min-width: 36px;
            height: 34px;
            border: 1px solid #c8bfb0;
            border-left: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--unit);
            font-size: 13px;
            color: var(--navy);
            font-weight: 700;
        }

        .mpwrd-cc-emi-gst-calculator .unit-toggle {
            display: flex;
        }

        .mpwrd-cc-emi-gst-calculator .unit-toggle .unit-box {
            cursor: pointer;
            border-left: 1px solid #c8bfb0;
            min-width: 44px;
            background: #f4efe7;
            color: var(--muted);
            font-weight: 600;
        }

        .mpwrd-cc-emi-gst-calculator .unit-toggle .unit-box:first-child {
            border-left: 0;
        }

        .mpwrd-cc-emi-gst-calculator .unit-toggle .unit-box.is-active {
            background: var(--navy);
            border-color: var(--navy);
            color: #fff;
            font-weight: 700;
        }

        .mpwrd-cc-emi-gst-calculator .slider-block {
            margin-left: 174px;
            max-width: none;
            width: calc(100% - 174px);
        }

        .mpwrd-cc-emi-gst-calculator .slider-input {
            width: 100%;
            appearance: none;
            height: 4px;
            border-radius: 999px;
            background: linear-gradient(
                to right,
                var(--gold) 0%,
                var(--gold) var(--fill, 50%),
                var(--track) var(--fill, 50%),
                var(--track) 100%
            );
            outline: none;
        }

        .mpwrd-cc-emi-gst-calculator .slider-input::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold));
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 1px 4px rgba(26, 35, 50, 0.28);
        }

        .mpwrd-cc-emi-gst-calculator .slider-input::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--gold);
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 1px 4px rgba(26, 35, 50, 0.28);
        }

        .mpwrd-cc-emi-gst-calculator .ticks {
            display: flex;
            justify-content: space-between;
            font-size: 10px;
            color: #8a8278;
            margin-top: 5px;
            letter-spacing: 0.02em;
        }

        .mpwrd-cc-emi-gst-calculator .results-panel {
            margin-top: 10px;
            border-top: 1px solid var(--line);
            padding-top: 20px;
        }

        .mpwrd-cc-emi-gst-calculator .section-heading {
            margin: 0 0 14px;
            font-family: Georgia, "Times New Roman", serif;
            font-size: 15px;
            font-weight: 700;
            color: var(--navy-deep);
            letter-spacing: 0.01em;
        }

        .mpwrd-cc-emi-gst-calculator .result-box {
            border: 2px dotted #b8a98c;
            background: linear-gradient(180deg, #fffefb, var(--summary));
            padding: 20px 22px;
            margin-bottom: 22px;
            display: grid;
            grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
            gap: 22px;
            align-items: center;
        }

        .mpwrd-cc-emi-gst-calculator .result-metrics {
            min-width: 0;
        }

        .mpwrd-cc-emi-gst-calculator .result-metric {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 14px 4px;
            border-bottom: 1px solid #e6dfd2;
        }

        .mpwrd-cc-emi-gst-calculator .result-metric:last-child {
            border-bottom: 0;
        }

        .mpwrd-cc-emi-gst-calculator .result-metric .label {
            font-size: 13px;
            color: var(--ink-soft);
            font-weight: 600;
        }

        .mpwrd-cc-emi-gst-calculator .result-metric .value {
            font-size: 18px;
            font-weight: 700;
            color: var(--navy-deep);
            letter-spacing: -0.02em;
            text-align: right;
        }

        .mpwrd-cc-emi-gst-calculator .result-metric.is-primary .value {
            color: var(--gold);
        }

        .mpwrd-cc-emi-gst-calculator .result-chart {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 8px 4px;
            border-left: 1px solid #e6dfd2;
        }

        .mpwrd-cc-emi-gst-calculator .chart-title {
            width: 100%;
            text-align: center;
            font-size: 13px;
            font-weight: 700;
            color: var(--navy-deep);
            line-height: 1.35;
        }

        .mpwrd-cc-emi-gst-calculator .chart-title span {
            display: block;
            margin-top: 2px;
            font-size: 12px;
            font-weight: 600;
            color: var(--muted);
        }

        .mpwrd-cc-emi-gst-calculator .pie-wrap {
            width: 180px;
            height: 180px;
        }

        .mpwrd-cc-emi-gst-calculator .pie-wrap svg {
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        .mpwrd-cc-emi-gst-calculator .pie-principal {
            fill: var(--navy);
            stroke: #fff;
            stroke-width: 2;
        }

        .mpwrd-cc-emi-gst-calculator .pie-interest {
            fill: var(--gold);
            stroke: #fff;
            stroke-width: 2;
            filter: drop-shadow(0 2px 3px rgba(26, 35, 50, 0.16));
        }

        .mpwrd-cc-emi-gst-calculator .pie-gst {
            fill: var(--gst);
            stroke: #fff;
            stroke-width: 2;
            filter: drop-shadow(0 2px 3px rgba(26, 35, 50, 0.16));
        }

        .mpwrd-cc-emi-gst-calculator .legend-dot.gst {
            background: var(--gst);
        }

        .mpwrd-cc-emi-gst-calculator .result-metrics.is-cc {
            display: grid;
            gap: 0;
        }

        .mpwrd-cc-emi-gst-calculator .slice-label {
            fill: #ffffff;
            font-size: 13px;
            font-weight: 700;
            pointer-events: none;
        }

        .mpwrd-cc-emi-gst-calculator .chart-legend {
            width: 100%;
            max-width: 210px;
        }

        .mpwrd-cc-emi-gst-calculator .legend-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: 12px;
            margin-bottom: 8px;
        }

        .mpwrd-cc-emi-gst-calculator .legend-item:last-child {
            margin-bottom: 0;
        }

        .mpwrd-cc-emi-gst-calculator .legend-left {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--ink-soft);
            font-weight: 600;
        }

        .mpwrd-cc-emi-gst-calculator .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }

        .mpwrd-cc-emi-gst-calculator .legend-dot.principal {
            background: var(--navy);
        }

        .mpwrd-cc-emi-gst-calculator .legend-dot.interest {
            background: var(--gold);
        }

        .mpwrd-cc-emi-gst-calculator .legend-item strong {
            color: var(--ink);
            font-size: 12px;
        }

        .mpwrd-cc-emi-gst-calculator .start-date-box {
            border: 2px dotted #b8a98c;
            background: #f3f3f3;
            padding: 18px 16px;
            margin-bottom: 16px;
        }

        .mpwrd-cc-emi-gst-calculator .start-date-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
            flex-wrap: nowrap;
        }

        .mpwrd-cc-emi-gst-calculator .start-date-label {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            white-space: nowrap;
        }

        .mpwrd-cc-emi-gst-calculator .month-year-picker {
            position: relative;
            width: 220px;
            flex-shrink: 0;
        }

        .mpwrd-cc-emi-gst-calculator .month-year-trigger {
            width: 100%;
            height: 40px;
            border: 1px solid #9ec3e8;
            background: #fff;
            padding: 0;
            display: flex;
            align-items: stretch;
            overflow: hidden;
            cursor: pointer;
        }

        .mpwrd-cc-emi-gst-calculator .month-year-picker.is-open .month-year-trigger {
            border-color: #5b9bd5;
            box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.2);
        }

        .mpwrd-cc-emi-gst-calculator .month-year-value {
            flex: 1;
            display: flex;
            align-items: center;
            padding: 0 12px;
            font-size: 13px;
            font-weight: 600;
            color: #222;
            text-align: left;
        }

        .mpwrd-cc-emi-gst-calculator .month-year-icon {
            width: 40px;
            border-left: 1px solid #cfd8e3;
            background: #f7f7f7;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 14px;
        }

        .mpwrd-cc-emi-gst-calculator .month-year-calendar {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            bottom: auto;
            left: 50%;
            transform: translateX(-50%);
            width: 280px;
            min-width: 280px;
            max-width: calc(100vw - 24px);
            border: 1px solid #d0d0d0;
            background: #fff;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            z-index: 50;
            padding: 12px 12px 14px;
            box-sizing: border-box;
        }

        .mpwrd-cc-emi-gst-calculator .month-year-picker.is-open .month-year-calendar {
            display: block;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            padding: 0 4px;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-year {
            font-size: 18px;
            font-weight: 700;
            color: #111;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-nav {
            width: 28px;
            height: 28px;
            border: 0;
            background: transparent;
            cursor: pointer;
            font-size: 18px;
            color: #444;
            line-height: 1;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-nav:hover {
            color: #111;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-months {
            display: grid;
            grid-template-columns: repeat(4, minmax(56px, 1fr));
            gap: 8px;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-month {
            border: 0;
            background: transparent;
            width: 100%;
            min-width: 0;
            height: 36px;
            padding: 0 2px;
            font-size: 13px;
            font-weight: 600;
            color: #222;
            cursor: pointer;
            border-radius: 2px;
            white-space: nowrap;
            word-break: keep-all;
            overflow-wrap: normal;
            line-height: 36px;
            text-align: center;
            box-sizing: border-box;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-month:hover {
            background: #f0f0f0;
        }

        .mpwrd-cc-emi-gst-calculator .calendar-month.is-selected {
            background: #1f4e79;
            color: #fff;
        }

        .mpwrd-cc-emi-gst-calculator .amortization-box {
            border: 1px solid #d0d0d0;
            background: #fff;
            margin-bottom: 8px;
            overflow: hidden;
            width: 100%;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table {
            width: 100%;
            min-width: 0;
            border-collapse: collapse;
            table-layout: fixed;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table th,
.mpwrd-cc-emi-gst-calculator .year-summary-table td {
            border: 1px solid #d0d0d0;
            padding: 8px 4px;
            text-align: center;
            vertical-align: middle;
            white-space: normal;
            word-break: break-word;
            font-size: 12px;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table thead th {
            background: #f5f5f5;
            font-weight: 700;
            color: #222;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            line-height: 1.25;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(1),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(1) {
            text-align: center !important;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(2),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(2),
.mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(3),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(3),
.mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(4),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(4),
.mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(5),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(5),
.mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(6),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(6) {
            text-align: right !important;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.year-row td {
            background: #fff;
            font-weight: 600;
            color: #222;
            transition: background-color 0.25s ease;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.year-row {
            cursor: pointer;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.year-row:hover td {
            background: #fafafa;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.year-row.is-open td {
            background: #f7f7f7;
        }

        .mpwrd-cc-emi-gst-calculator .year-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border: 1px solid #bbb;
            background: #fff;
            color: #555;
            font-size: 10px;
            font-weight: 700;
            line-height: 1;
            box-sizing: border-box;
            transition: transform 0.25s ease, background-color 0.25s ease;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.year-row.is-open .year-toggle {
            background: #f0f0f0;
        }

        .mpwrd-cc-emi-gst-calculator .year-cell {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-weight: 700;
            color: #222;
            width: 100%;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row {
            display: none;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row.is-open,
.mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row.is-closing {
            display: table-row;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row td {
            background: #e8e8e8;
            font-weight: 500;
            font-size: 12px;
            color: #333;
            box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.04);
            opacity: 0;
            transform: translateY(-6px);
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row.is-open td {
            animation: monthRowOpen 0.28s ease forwards;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row.is-closing td {
            animation: monthRowClose 0.22s ease forwards;
        }

        .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row:nth-child(even) td {
            background: #dedede;
        }

        @keyframes monthRowOpen {
            from {
                opacity: 0;
                transform: translateY(-6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes monthRowClose {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(-4px);
            }
        }

        .mpwrd-cc-emi-gst-calculator .table-note {
            margin: 12px 0 0;
            font-size: 12px;
            color: var(--muted);
        }

        @media (max-width: 720px) {
            .mpwrd-cc-emi-gst-calculator .calculator-content {
                padding: 18px 16px 16px;
            }

            .mpwrd-cc-emi-gst-calculator .inputs-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
            }

            .mpwrd-cc-emi-gst-calculator .field-label {
                text-align: center;
            }

            .mpwrd-cc-emi-gst-calculator .slider-block {
                margin-left: 0;
                max-width: none;
                width: 100%;
            }

            .mpwrd-cc-emi-gst-calculator .input-group {
                max-width: none;
            }

            .mpwrd-cc-emi-gst-calculator .result-box {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .mpwrd-cc-emi-gst-calculator .result-chart {
                border-left: 0;
                border-top: 1px solid #e6dfd2;
                padding-top: 16px;
            }

            .mpwrd-cc-emi-gst-calculator .result-metric .value {
                font-size: 16px;
            }

            .mpwrd-cc-emi-gst-calculator .start-date-row {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .mpwrd-cc-emi-gst-calculator .start-date-label {
                text-align: left;
                white-space: normal;
            }

            .mpwrd-cc-emi-gst-calculator .month-year-picker {
                width: 100%;
            }

            .mpwrd-cc-emi-gst-calculator .month-year-calendar {
                left: 50%;
                right: auto;
                width: 280px;
                min-width: 280px;
                transform: translateX(-50%);
            }

            .mpwrd-cc-emi-gst-calculator .amortization-box {
                overflow: hidden;
            }

            .mpwrd-cc-emi-gst-calculator .year-summary-table {
                min-width: 0;
                width: 100%;
            }

            .mpwrd-cc-emi-gst-calculator .year-summary-table th,
.mpwrd-cc-emi-gst-calculator .year-summary-table td {
                padding: 6px 3px;
                font-size: 11px;
                white-space: normal;
                word-break: break-word;
            }

            .mpwrd-cc-emi-gst-calculator .year-summary-table thead th {
                font-size: 10px;
                letter-spacing: 0.02em;
                white-space: normal;
            }

            .mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(2),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(2),
.mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(3),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(3),
.mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(4),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(4),
.mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(6),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(6) {
                text-align: right !important;
            }

            .mpwrd-cc-emi-gst-calculator .year-summary-table th:nth-child(5),
.mpwrd-cc-emi-gst-calculator .year-summary-table td:nth-child(5) {
                display: none;
            }

            .mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row.is-open,
.mpwrd-cc-emi-gst-calculator .year-summary-table tbody tr.month-row.is-closing {
                display: table-row;
            }

            .mpwrd-cc-emi-gst-calculator .year-cell {
                gap: 4px;
            }
        }