.dtl-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: #1f2328;
    background: transparent;
    padding: 24px 0;
    margin: 0 auto;
}

.dtl-widget::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: #f5f5f5;
    z-index: -1;
}

.dtl-headline h2 {
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
}

.dtl-headline h3 {
    margin: 4px 0 8px;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    color: #d30b1f;
}

.dtl-headline p {
    margin: 0 0 18px;
    max-width: 700px;
    color: #68707c;
    font-size: 16px;
    line-height: 1.5;
}

.dtl-top-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 18px;
    margin-top: 10px;
}

.dtl-loan-box,
.dtl-summary-box,
.dtl-offer-box,
.dtl-table-area,
.dtl-cta-row {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e6e8ec;
}

.dtl-loan-box {
    padding: 20px;
}

.dtl-box-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1e2630;
}

.dtl-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dtl-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dtl-field-full {
    grid-column: 1 / -1;
}

.dtl-field span,
.dtl-loan-type-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #7f8691;
}

.dtl-input {
    width: 100%;
    height: 46px;
    min-height: 46px;
    line-height: 46px;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    background: #f8f9fb;
    padding: 0 14px;
    font-size: 16px;
    color: #1e2630;
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
}

select.dtl-input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 32px;
}

.dtl-loan-type-label {
    margin-top: 14px;
    margin-bottom: 8px;
}

.dtl-type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dtl-type-btn {
    height: 44px;
    border: 1px solid #d4d8df;
    background: #f2f3f5;
    color: #59606a;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.dtl-type-btn.is-active {
    border-color: #d1091a;
    background: #d1091a;
    color: #fff;
}

.dtl-summary-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dtl-summary-box {
    padding: 16px 20px;
}

.dtl-summary-title {
    color: #d1091a;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.dtl-summary-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px dashed #e7e9ee;
}

.dtl-summary-item span {
    font-size: 12px;
    color: #7b818b;
}

.dtl-summary-value {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
}

.dtl-summary-item strong {
    margin-top: 4px;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.4px;
    white-space: nowrap;
    font-family: inherit;
}

.dtl-summary-item small {
    margin-top: 0;
    font-size: 11px;
    text-transform: uppercase;
    color: #8c949f;
    white-space: nowrap;
    font-family: inherit;
}

.dtl-summary-total strong {
    color: #d1091a;
}

.dtl-offer-box {
    background: #0080db;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.dtl-offer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.dtl-offer-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.dtl-table-area {
    margin-top: 18px;
    padding: 14px;
}

.dtl-table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dtl-table-heading h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.dtl-table-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dtl-expand-btn,
.dtl-print-btn {
    border: 1px solid #d9dee5;
    background: #f4f6f8;
    color: #4e5661;
    font-size: 12px;
    font-weight: 700;
    height: 34px;
    padding: 0 12px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-wrap: nowrap;
    font-family: inherit;
}

.dtl-expand-btn:hover,
.dtl-print-btn:hover {
    background: #e9edf2;
}

.dtl-print-icon,
.dtl-print-btn span {
    white-space: nowrap;
    line-height: 1;
}

.dtl-table-scroll {
    overflow-x: auto;
}

.dtl-table-area table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 14px;
    font-family: inherit;
}

.dtl-table-area thead th {
    background: #ebedf0;
    color: #7f8691;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #dfe3e8;
}

.dtl-table-area tbody td,
.dtl-table-area tfoot td {
    padding: 12px 10px;
    border-bottom: 1px solid #eceff3;
}

.dtl-table-area tbody tr:nth-child(even) {
    background: #f9fafc;
}

.dtl-table-area tbody td:nth-child(2),
.dtl-table-area tbody td:nth-child(3),
.dtl-table-area tbody td:nth-child(4),
.dtl-table-area tbody td:nth-child(5),
.dtl-table-area tfoot td:nth-child(3),
.dtl-table-area tfoot td:nth-child(4),
.dtl-table-area tfoot td:nth-child(5) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dtl-table-area tfoot td {
    font-size: 18px;
    font-weight: 800;
    background: #f4f6f8;
    font-family: inherit;
}

.dtl-table-area tfoot td:last-child {
    color: #d1091a;
}

.dtl-cta-row {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border: 0;
    background: transparent;
}

.dtl-contact-btn,
.dtl-pdf-btn {
    height: 54px;
    border-radius: 6px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.dtl-contact-btn {
    background: #d1091a;
    color: #fff;
}

.dtl-pdf-btn {
    background: #e6e8eb;
    color: #4f5661;
}

.dtl-banner {
    margin-top: 16px;
    border-radius: 10px !important;
    overflow: hidden !important;
    min-height: 232px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: stretch;
    background-clip: padding-box;
}

.dtl-banner-content {
    padding: 26px;
    max-width: 52%;
    color: #fff;
}

.dtl-banner-content h5 {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
}

.dtl-banner-content p {
    margin: 8px 0 18px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.dtl-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    color: #d1091a;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.dtl-activation-warning {
    background: #fff8e7;
    border: 1px solid #f0d58a;
    color: #8a6a1f;
    padding: 12px;
    border-radius: 6px;
}

.dtl-ellipsis-row td {
    text-align: center !important;
    color: #8b9099;
    font-weight: 700;
}

@media (max-width: 991px) {
    .dtl-top-grid {
        grid-template-columns: 1fr;
    }

    .dtl-banner-content {
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .dtl-widget {
        padding: 14px 0;
    }

    .dtl-headline h2,
    .dtl-headline h3 {
        font-size: 30px;
    }

    .dtl-fields-grid,
    .dtl-cta-row {
        grid-template-columns: 1fr;
    }

    .dtl-type-btn {
        font-size: 13px;
        padding: 0 8px;
    }

    .dtl-summary-item strong {
        font-size: 28px;
    }

    .dtl-table-area {
        padding: 12px 0 12px 10px;
        overflow: hidden;
    }

    .dtl-table-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        padding-right: 10px;
    }

    .dtl-table-heading h4 {
        flex: 1 1 100%;
        color: #d1091a;
        font-size: 22px;
        line-height: 1.2;
        max-width: none;
    }

    .dtl-table-tools {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .dtl-expand-btn,
    .dtl-print-btn {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .dtl-table-scroll {
        margin-top: 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .dtl-table-area table {
        min-width: 760px;
        font-size: 13px;
    }

    .dtl-table-area thead th,
    .dtl-table-area tbody td,
    .dtl-table-area tfoot td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .dtl-table-area thead th {
        font-size: 11px;
    }

    .dtl-table-area thead th:first-child,
    .dtl-table-area tbody td:first-child {
        left: 0;
        min-width: 72px;
        width: 72px;
        z-index: 3;
    }

    .dtl-table-area thead th:nth-child(2),
    .dtl-table-area tbody td:nth-child(2) {
        left: 72px;
        min-width: 142px;
        width: 142px;
        z-index: 3;
    }

    .dtl-table-area thead th:first-child,
    .dtl-table-area thead th:nth-child(2),
    .dtl-table-area tbody td:first-child,
    .dtl-table-area tbody td:nth-child(2) {
        position: sticky;
        background: #fff;
    }

    .dtl-table-area thead th:first-child,
    .dtl-table-area thead th:nth-child(2) {
        background: #ebedf0;
        z-index: 4;
    }

    .dtl-table-area tbody tr:nth-child(even) td:first-child,
    .dtl-table-area tbody tr:nth-child(even) td:nth-child(2) {
        background: #f9fafc;
    }

    .dtl-table-area thead th:nth-child(2),
    .dtl-table-area tbody td:nth-child(2) {
        box-shadow: 8px 0 12px -12px rgba(31, 35, 40, 0.6);
    }

    .dtl-table-area thead th:last-child,
    .dtl-table-area tbody td:last-child,
    .dtl-table-area tfoot td:last-child {
        position: sticky;
        right: 0;
        min-width: 126px;
        width: 126px;
        z-index: 3;
        background: #fff;
        box-shadow: -8px 0 12px -12px rgba(31, 35, 40, 0.6);
    }

    .dtl-table-area thead th:last-child {
        background: #ebedf0;
        z-index: 4;
    }

    .dtl-table-area tbody tr:nth-child(even) td:last-child {
        background: #f9fafc;
    }

    .dtl-table-area tfoot td {
        font-size: 15px;
    }

    .dtl-table-area tfoot td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        min-width: 214px;
        width: 214px;
        background: #f4f6f8;
        box-shadow: 8px 0 12px -12px rgba(31, 35, 40, 0.6);
    }

    .dtl-table-area tfoot td:last-child {
        background: #f4f6f8;
        z-index: 4;
    }
    .dtl-banner-content h5 {
        font-size: 30px;
    }
}
