/*
 * PS8calculate2026
 * Stage 3A visual restyle.
 * Scoped to .ps8calc2026-container to avoid conflicts with the live calculator plugin.
 */

.ps8calc2026-container {
    --ps8-navy: #102a5c;
    --ps8-navy-dark: #061b3d;
    --ps8-blue: #0f56a6;
    --ps8-green: #28803e;
    --ps8-green-bright: #43ad4f;
    --ps8-soft-green: #f1fff5;
    --ps8-soft-blue: #f4f8ff;
    --ps8-bg: #f6f8fb;
    --ps8-card: #ffffff;
    --ps8-border: #d9e2ef;
    --ps8-border-dark: #c5d1e1;
    --ps8-text: #10235a;
    --ps8-muted: #6b7280;
    --ps8-shadow: 0 12px 28px rgba(11, 42, 91, 0.12);
    --ps8-shadow-soft: 0 6px 16px rgba(11, 42, 91, 0.10);

    width: min(100%, 760px);
    margin: 0 auto;
    padding: 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ps8-text);
    box-sizing: border-box;
}

.ps8calc2026-container *,
.ps8calc2026-container *::before,
.ps8calc2026-container *::after {
    box-sizing: border-box;
}

.ps8calc2026-title-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
    padding: 22px 22px 22px 26px;
    overflow: hidden;
    border: 1px solid var(--ps8-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(67, 173, 79, 0.12), transparent 36%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--ps8-shadow-soft);
}

.ps8calc2026-title-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, var(--ps8-green), var(--ps8-green-bright));
}

.ps8calc2026-title-icon {
    display: grid;
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ps8-green-bright), var(--ps8-green));
    box-shadow: 0 10px 20px rgba(40, 128, 62, 0.24);
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.ps8calc2026-title-text h2 {
    margin: 0 0 5px;
    color: var(--ps8-navy-dark);
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: uppercase;
}

.ps8calc2026-title-text p {
    margin: 0;
    color: var(--ps8-muted);
    font-size: clamp(15px, 3.5vw, 19px);
    font-weight: 600;
    line-height: 1.4;
}

.ps8calc2026-title-text p span {
    margin: 0 9px;
    color: var(--ps8-border-dark);
}

.ps8calc2026-form-card,
.ps8calc2026-result-card {
    border: 1px solid var(--ps8-border);
    border-radius: 16px;
    background: var(--ps8-card);
    box-shadow: var(--ps8-shadow-soft);
}

.ps8calc2026-form-card {
    margin-bottom: 18px;
    padding: 24px;
}

.ps8calc2026-field {
    margin-bottom: 21px;
}

.ps8calc2026-field label {
    display: block;
    margin: 0 0 9px;
    color: var(--ps8-navy-dark);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

.ps8calc2026-field label span {
    font-weight: 800;
}

.ps8calc2026-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
}

.ps8calc2026-input-icon {
    position: absolute;
    left: 0;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 56px;
    place-items: center;
    border: 1px solid #cfe7d5;
    border-radius: 10px;
    background: #f0fff4;
    color: var(--ps8-green);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.ps8calc2026-input-shell input {
    width: 100%;
    min-height: 56px;
    padding: 13px 14px 13px 75px;
    border: 1px solid var(--ps8-border-dark);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ps8-text);
    font-size: 18px;
    line-height: 1.2;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.ps8calc2026-input-shell input:focus {
    border-color: var(--ps8-green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(40, 128, 62, 0.13);
}

.ps8calc2026-input-shell input:disabled {
    background-color: #f2f4f7;
    color: #7c8490;
    cursor: not-allowed;
}

.ps8calc2026-money-shell input {
    padding-right: 78px;
}

.ps8calc2026-currency-pill {
    position: absolute;
    right: 0;
    display: grid;
    width: 68px;
    height: 56px;
    place-items: center;
    border-left: 1px solid var(--ps8-border-dark);
    border-radius: 0 10px 10px 0;
    background: #f8fafc;
    color: var(--ps8-text);
    font-size: 16px;
    font-weight: 800;
    pointer-events: none;
}

.ps8calc2026-buttons {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.ps8calc2026-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
}

.ps8calc2026-buttons button span {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.ps8calc2026-primary-btn {
    border: 0;
    background: linear-gradient(135deg, var(--ps8-green-bright), var(--ps8-green));
    box-shadow: 0 8px 18px rgba(40, 128, 62, 0.25);
    color: #ffffff;
}

.ps8calc2026-primary-btn:hover,
.ps8calc2026-primary-btn:focus {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.ps8calc2026-secondary-btn {
    border: 2px solid var(--ps8-green);
    background: #ffffff;
    color: var(--ps8-green);
}

.ps8calc2026-secondary-btn:hover:not(:disabled),
.ps8calc2026-secondary-btn:focus:not(:disabled) {
    background: #f3fff6;
}

.ps8calc2026-secondary-btn.inactive,
.ps8calc2026-secondary-btn:disabled {
    border-color: #c9c9c9;
    background: #eeeeee;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
}

.ps8calc2026-output {
    display: none;
}

.ps8calc2026-result-card {
    margin-top: 16px;
    overflow: hidden;
}

.ps8calc2026-result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--ps8-navy-dark), var(--ps8-navy));
    color: #ffffff;
}

.ps8calc2026-result-card-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.ps8calc2026-result-card-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
}

.ps8calc2026-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
}

.ps8calc2026-output table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    margin: 0;
}

.ps8calc2026-output th,
.ps8calc2026-output td {
    padding: 13px 11px;
    border: 1px solid #d6dde8;
    color: var(--ps8-text);
    text-align: center;
    vertical-align: middle;
}

.ps8calc2026-output th {
    background: #f8fafc;
    color: var(--ps8-navy-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ps8calc2026-output td {
    background: #ffffff;
    font-size: 15px;
    line-height: 1.35;
}

.ps8calc2026-discount-value {
    color: var(--ps8-green);
    font-weight: 800;
}

.ps8calc2026-mini-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--ps8-border);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ps8calc2026-mini-summary-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 18px 18px;
}

.ps8calc2026-mini-summary-item + .ps8calc2026-mini-summary-item {
    border-left: 1px solid var(--ps8-border);
}

.ps8calc2026-mini-icon {
    display: grid;
    grid-row: span 2;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #eef5ff;
    color: var(--ps8-blue);
    font-size: 22px;
    font-weight: 800;
}

.ps8calc2026-mini-label {
    color: var(--ps8-muted);
    font-size: 14px;
    font-weight: 700;
}

.ps8calc2026-mini-summary-item strong {
    color: var(--ps8-navy-dark);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
}

.ps8calc2026-interest-card,
.ps8calc2026-rate-summary {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 18px;
    padding: 22px 22px;
}

.ps8calc2026-interest-card {
    border-left: 5px solid var(--ps8-blue);
}

.ps8calc2026-interest-icon,
.ps8calc2026-rate-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    align-self: start;
    border-radius: 50%;
    color: #ffffff;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.ps8calc2026-interest-icon {
    background: linear-gradient(135deg, #1668d8, #0c4cab);
}

.ps8calc2026-rate-icon {
    background: linear-gradient(135deg, var(--ps8-green-bright), var(--ps8-green));
}

.ps8calc2026-interest-lines,
.ps8calc2026-rate-content {
    min-width: 0;
}

.ps8calc2026-rate-summary {
    border-color: #bde8c8;
    border-left: 5px solid var(--ps8-green);
    background:
        radial-gradient(circle at top right, rgba(67, 173, 79, 0.12), transparent 34%),
        linear-gradient(135deg, #f4fff7 0%, #ffffff 100%);
}

.ps8calc2026-rate-summary h3 {
    margin: 0 0 12px;
    color: var(--ps8-green);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.15;
}

.ps8calc2026-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed #d6dde8;
}

.ps8calc2026-result-row:first-child {
    padding-top: 0;
}

.ps8calc2026-result-row:last-of-type {
    border-bottom: 0;
}

.ps8calc2026-result-row span {
    min-width: 0;
    color: var(--ps8-text);
    font-size: 16px;
    line-height: 1.35;
}

.ps8calc2026-result-row strong {
    white-space: nowrap;
    color: var(--ps8-navy-dark);
    font-size: 17px;
    font-weight: 900;
    text-align: right;
}

.ps8calc2026-total-row span,
.ps8calc2026-total-row strong {
    color: var(--ps8-navy-dark);
    font-weight: 900;
}

.ps8calc2026-note {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 11px;
    align-items: start;
    margin: 15px 0 0;
    color: #505b68;
    font-size: 14px;
    line-height: 1.45;
}

.ps8calc2026-note span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--ps8-green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    font-style: normal;
}

@media only screen and (max-width: 680px) {
    .ps8calc2026-container {
        padding: 12px;
    }

    .ps8calc2026-title-card {
        gap: 14px;
        padding: 18px 17px 18px 20px;
        border-radius: 15px;
    }

    .ps8calc2026-title-icon {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        font-size: 30px;
    }

    .ps8calc2026-title-text p span {
        margin: 0 6px;
    }

    .ps8calc2026-form-card {
        padding: 19px;
        border-radius: 15px;
    }

    .ps8calc2026-field {
        margin-bottom: 19px;
    }

    .ps8calc2026-field label {
        font-size: 17px;
    }

    .ps8calc2026-input-icon {
        width: 52px;
        height: 54px;
        font-size: 22px;
    }

    .ps8calc2026-input-shell input {
        min-height: 54px;
        padding-left: 66px;
        font-size: 17px;
    }

    .ps8calc2026-currency-pill {
        width: 62px;
        height: 54px;
    }

    .ps8calc2026-buttons button {
        min-height: 58px;
        font-size: 18px;
    }

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

    .ps8calc2026-mini-summary-item + .ps8calc2026-mini-summary-item {
        border-top: 1px solid var(--ps8-border);
        border-left: 0;
    }

    .ps8calc2026-interest-card,
    .ps8calc2026-rate-summary {
        grid-template-columns: 54px 1fr;
        gap: 14px;
        padding: 18px 16px;
    }

    .ps8calc2026-interest-icon,
    .ps8calc2026-rate-icon {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }

    .ps8calc2026-result-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ps8calc2026-result-row strong {
        text-align: left;
    }
}

@media only screen and (max-width: 420px) {
    .ps8calc2026-title-card {
        align-items: flex-start;
    }

    .ps8calc2026-title-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 27px;
    }

    .ps8calc2026-title-text h2 {
        font-size: 26px;
    }

    .ps8calc2026-title-text p {
        font-size: 14px;
    }

    .ps8calc2026-form-card {
        padding: 16px;
    }

    .ps8calc2026-output table {
        min-width: 560px;
    }

    .ps8calc2026-output th,
    .ps8calc2026-output td {
        padding: 11px 9px;
        font-size: 13px;
    }
}

/* PS8calculate2026 Stage 3B v2 alignment overrides */

/* Force form inputs into a real icon column + input column. */
.ps8calc2026-container .ps8calc2026-input-shell {
    position: static !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 56px !important;
}

.ps8calc2026-container .ps8calc2026-money-shell {
    grid-template-columns: 58px minmax(0, 1fr) 68px !important;
}

.ps8calc2026-container .ps8calc2026-input-icon {
    position: static !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    display: grid !important;
    width: 58px !important;
    height: 56px !important;
    place-items: center !important;
    border: 1px solid #cfe7d5 !important;
    border-right: 0 !important;
    border-radius: 10px 0 0 10px !important;
    background: #f0fff4 !important;
    color: #28803e !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* Keep the existing simple icons, but make them centered and harmless. */
.ps8calc2026-container .ps8calc2026-input-icon {
    overflow: hidden !important;
    text-align: center !important;
}

.ps8calc2026-container .ps8calc2026-input-shell input {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 1px solid #c5d1e1 !important;
    border-radius: 0 10px 10px 0 !important;
    background: #ffffff !important;
    color: #10235a !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    box-shadow: none !important;
}

.ps8calc2026-container .ps8calc2026-money-shell input {
    border-radius: 0 !important;
}

.ps8calc2026-container .ps8calc2026-input-shell input:focus {
    border-color: #28803e !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(40, 128, 62, 0.13) !important;
}

.ps8calc2026-container .ps8calc2026-input-shell input:disabled {
    background-color: #f2f4f7 !important;
    color: #7c8490 !important;
    cursor: not-allowed !important;
}

.ps8calc2026-container .ps8calc2026-input-shell input[type="date"] {
    padding-right: 12px !important;
}

.ps8calc2026-container .ps8calc2026-input-shell input[type="date"]::-webkit-calendar-picker-indicator {
    width: 24px !important;
    height: 24px !important;
    margin-right: 4px !important;
    cursor: pointer !important;
    opacity: 0.95 !important;
}

.ps8calc2026-container .ps8calc2026-currency-pill {
    position: static !important;
    right: auto !important;
    display: grid !important;
    width: 68px !important;
    height: 56px !important;
    min-height: 56px !important;
    place-items: center !important;
    align-self: stretch !important;
    border: 1px solid #c5d1e1 !important;
    border-left: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    background: #f8fafc !important;
    color: #10235a !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    pointer-events: none !important;
}

/* Table padding fix: first column no longer touches the card edge. */
.ps8calc2026-container .ps8calc2026-table-wrap {
    padding: 0 12px 12px !important;
    background: #ffffff !important;
}

.ps8calc2026-container .ps8calc2026-output table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
}

.ps8calc2026-container .ps8calc2026-output th,
.ps8calc2026-container .ps8calc2026-output td {
    padding: 13px 13px !important;
}

.ps8calc2026-container .ps8calc2026-output th:first-child,
.ps8calc2026-container .ps8calc2026-output td:first-child {
    padding-left: 18px !important;
}

/* Rate summary icon should represent rate/percent, not growth/arrow. */
.ps8calc2026-container .ps8calc2026-rate-icon {
    font-size: 31px !important;
    font-weight: 900 !important;
}

/* Mobile scaling. */
@media only screen and (max-width: 680px) {
    .ps8calc2026-container .ps8calc2026-input-shell {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        min-height: 54px !important;
    }

    .ps8calc2026-container .ps8calc2026-money-shell {
        grid-template-columns: 54px minmax(0, 1fr) 62px !important;
    }

    .ps8calc2026-container .ps8calc2026-input-icon {
        width: 54px !important;
        height: 54px !important;
    }

    .ps8calc2026-container .ps8calc2026-input-shell input {
        min-height: 54px !important;
        font-size: 17px !important;
    }

    .ps8calc2026-container .ps8calc2026-currency-pill {
        width: 62px !important;
        height: 54px !important;
        min-height: 54px !important;
    }
}

/* End PS8calculate2026 Stage 3B v2 alignment overrides */

/* PS8calculate2026 Stage 3C CSS icon system */

/* Remove dependency on Unicode symbol glyphs. */
.ps8calc2026-container .ps8calc2026-title-icon,
.ps8calc2026-container .ps8calc2026-input-icon,
.ps8calc2026-container .ps8calc2026-btn-icon,
.ps8calc2026-container .ps8calc2026-result-card-icon,
.ps8calc2026-container .ps8calc2026-mini-icon {
    position: relative !important;
    overflow: hidden !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
}

.ps8calc2026-container .ps8calc2026-title-separator {
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    margin: 0 10px !important;
    border-radius: 50% !important;
    background: #c5d1e1 !important;
    vertical-align: middle !important;
}

/* Calculator icon: outline box + grid dots. */
.ps8calc2026-container .ps8calc2026-css-calculator::before,
.ps8calc2026-container .ps8calc2026-css-calculate::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 24px !important;
    height: 30px !important;
    transform: translate(-50%, -50%) !important;
    border: 3px solid currentColor !important;
    border-radius: 4px !important;
    background:
        linear-gradient(currentColor, currentColor) 50% 7px / 14px 3px no-repeat,
        radial-gradient(circle, currentColor 2px, transparent 3px) 6px 15px / 8px 8px repeat !important;
}

/* Calendar icon: box + top bar + binder marks. */
.ps8calc2026-container .ps8calc2026-css-calendar::before,
.ps8calc2026-container .ps8calc2026-css-months::before,
.ps8calc2026-container .ps8calc2026-css-schedule::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 25px !important;
    height: 25px !important;
    transform: translate(-50%, -50%) !important;
    border: 3px solid currentColor !important;
    border-radius: 5px !important;
    background:
        linear-gradient(currentColor, currentColor) 0 7px / 100% 3px no-repeat,
        radial-gradient(circle, currentColor 2px, transparent 3px) 6px 14px / 8px 8px repeat !important;
}

.ps8calc2026-container .ps8calc2026-css-calendar::after,
.ps8calc2026-container .ps8calc2026-css-months::after,
.ps8calc2026-container .ps8calc2026-css-schedule::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 17px !important;
    height: 5px !important;
    transform: translate(-50%, -16px) !important;
    border-left: 3px solid currentColor !important;
    border-right: 3px solid currentColor !important;
}

/* Money/wallet icon: simple wallet shape. */
.ps8calc2026-container .ps8calc2026-css-money::before,
.ps8calc2026-container .ps8calc2026-css-amount::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 28px !important;
    height: 21px !important;
    transform: translate(-50%, -50%) !important;
    border: 3px solid currentColor !important;
    border-radius: 5px !important;
}

.ps8calc2026-container .ps8calc2026-css-money::after,
.ps8calc2026-container .ps8calc2026-css-amount::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    transform: translate(4px, -50%) !important;
    border-radius: 50% !important;
    background: currentColor !important;
}

/* Reset icon: circular arrow approximation using CSS only. */
.ps8calc2026-container .ps8calc2026-css-reset::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 24px !important;
    height: 24px !important;
    transform: translate(-50%, -50%) rotate(-35deg) !important;
    border: 3px solid currentColor !important;
    border-right-color: transparent !important;
    border-radius: 50% !important;
}

.ps8calc2026-container .ps8calc2026-css-reset::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 0 !important;
    height: 0 !important;
    transform: translate(7px, -12px) rotate(20deg) !important;
    border-left: 7px solid currentColor !important;
    border-top: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
}

/* Restore usable button icon dimensions. */
.ps8calc2026-container .ps8calc2026-btn-icon {
    display: inline-block !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    color: currentColor !important;
}

/* Result and mini icon colors/sizes stay controlled by their existing containers. */
.ps8calc2026-container .ps8calc2026-result-card-icon,
.ps8calc2026-container .ps8calc2026-mini-icon {
    text-indent: 0 !important;
}

/* End PS8calculate2026 Stage 3C CSS icon system */

/* PS8calculate2026 Stage 3D output icon polish */
.ps8calc2026-container .ps8calc2026-interest-icon {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 31px !important;
    font-weight: 900 !important;
}
/* End PS8calculate2026 Stage 3D output icon polish */

/* PS8calculate2026 Stage 4A custom date picker */

.ps8calc2026-container .ps8calc2026-date-display {
    cursor: pointer !important;
}

.ps8calc2026-container .ps8calc2026-date-display:disabled {
    cursor: not-allowed !important;
}

.ps8calc2026-datepicker-panel {
    position: absolute;
    z-index: 999999;
    max-width: calc(100vw - 24px);
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(6, 27, 61, 0.20);
    color: #10235a;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.ps8calc2026-datepicker-panel[hidden] {
    display: none !important;
}

.ps8calc2026-dp-shell {
    background:
        radial-gradient(circle at top right, rgba(67, 173, 79, 0.10), transparent 38%),
        #ffffff;
}

.ps8calc2026-dp-header {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #061b3d, #102a5c);
    color: #ffffff;
}

.ps8calc2026-dp-title {
    min-width: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.ps8calc2026-dp-nav {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ps8calc2026-dp-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ps8calc2026-dp-years {
    display: flex;
    gap: 8px;
    padding: 12px 12px 8px;
    background: #f7fbff;
    border-bottom: 1px solid #e2e8f0;
}

.ps8calc2026-dp-year {
    flex: 1;
    min-height: 34px;
    border: 1px solid #c5d1e1;
    border-radius: 9px;
    background: #ffffff;
    color: #10235a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.ps8calc2026-dp-year.is-selected {
    border-color: #28803e;
    background: #28803e;
    color: #ffffff;
}

.ps8calc2026-dp-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.ps8calc2026-dp-month {
    min-height: 35px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #f6f8fb;
    color: #10235a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.ps8calc2026-dp-month.is-selected {
    border-color: #28803e;
    background: #eaffef;
    color: #28803e;
}

.ps8calc2026-dp-month:disabled {
    background: #f1f1f1;
    color: #b9b9b9;
    cursor: not-allowed;
}

.ps8calc2026-dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 12px 12px 5px;
}

.ps8calc2026-dp-weekdays span {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.ps8calc2026-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 0 12px 14px;
}

.ps8calc2026-dp-day {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #ffffff;
    color: #10235a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.ps8calc2026-dp-day:hover:not(:disabled),
.ps8calc2026-dp-day:focus:not(:disabled) {
    border-color: #28803e;
    background: #f1fff5;
}

.ps8calc2026-dp-day.is-today:not(.is-selected) {
    border-color: #0f56a6;
    color: #0f56a6;
}

.ps8calc2026-dp-day.is-selected {
    border-color: #28803e;
    background: #28803e;
    color: #ffffff;
}

.ps8calc2026-dp-day:disabled {
    background: #f4f4f4;
    color: #c0c0c0;
    cursor: not-allowed;
}

.ps8calc2026-dp-day.is-blank {
    min-height: 36px;
}

@media only screen and (max-width: 420px) {
    .ps8calc2026-dp-header {
        grid-template-columns: 58px minmax(0, 1fr) 58px;
        padding: 10px;
    }

    .ps8calc2026-dp-title {
        font-size: 15px;
    }

    .ps8calc2026-dp-nav {
        font-size: 11px;
    }

    .ps8calc2026-dp-months {
        gap: 6px;
        padding: 10px;
    }

    .ps8calc2026-dp-day {
        min-height: 34px;
    }
}

/* End PS8calculate2026 Stage 4A custom date picker */

/* PS8calculate2026 Stage 4B date picker interaction fixes */

/* Button text alignment fix. */
.ps8calc2026-datepicker-panel button {
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-nav {
    min-height: 38px !important;
    padding: 0 !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-day {
    min-height: 36px !important;
    padding: 0 !important;
}

/* Header title now shows month only; year is controlled below. */
.ps8calc2026-datepicker-panel .ps8calc2026-dp-title {
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
}

/* Year dropdown. */
.ps8calc2026-datepicker-panel .ps8calc2026-dp-year-wrap {
    position: relative !important;
    padding: 12px 12px 8px !important;
    background: #f7fbff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-year-toggle {
    width: 100% !important;
    min-height: 38px !important;
    border: 1px solid #28803e !important;
    border-radius: 9px !important;
    background: #28803e !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-year-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 8px !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 6px solid currentColor !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-year-menu {
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-year-wrap.is-open .ps8calc2026-dp-year-menu {
    display: grid !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-year-option {
    min-height: 36px !important;
    border: 1px solid #c5d1e1 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #10235a !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-year-option.is-selected {
    border-color: #28803e !important;
    background: #eaffef !important;
    color: #28803e !important;
}

/* Remove old year strip styling from Stage 4A if still present. */
.ps8calc2026-datepicker-panel .ps8calc2026-dp-years {
    display: none !important;
}

/* Month buttons should change the calendar view only. */
.ps8calc2026-datepicker-panel .ps8calc2026-dp-month {
    min-height: 36px !important;
    padding: 0 !important;
}

/* End PS8calculate2026 Stage 4B date picker interaction fixes */

/* PS8calculate2026 Stage 4D early discount highlights */

.ps8calc2026-datepicker-panel .ps8calc2026-dp-day.is-discount-window:not(.is-selected):not(:disabled) {
    border-color: #43ad4f !important;
    background: #e6fbea !important;
    color: #145c2a !important;
    box-shadow: inset 0 0 0 1px rgba(67, 173, 79, 0.22) !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-day.is-discount-window.is-today:not(.is-selected):not(:disabled) {
    border-color: #0f56a6 !important;
    background:
        linear-gradient(0deg, rgba(230, 251, 234, 0.92), rgba(230, 251, 234, 0.92)),
        #ffffff !important;
    color: #0f56a6 !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-day.is-discount-window.is-selected {
    border-color: #28803e !important;
    background: #28803e !important;
    color: #ffffff !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-legend {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px 14px 14px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #f7fbff !important;
    color: #10235a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.ps8calc2026-datepicker-panel .ps8calc2026-dp-legend-swatch {
    display: block !important;
    width: 30px !important;
    height: 26px !important;
    border: 1px solid #43ad4f !important;
    border-radius: 8px !important;
    background: #e6fbea !important;
    box-shadow: inset 0 0 0 1px rgba(67, 173, 79, 0.22) !important;
}

/* End PS8calculate2026 Stage 4D early discount highlights */