.dsr {
    --dsr-accent: var(--primaryBtn, #c00);
    --dsr-accent-hover: var(--primaryBtn-hover, #950809);
    --dsr-ink: #202124;
    --dsr-muted: #61656b;
    --dsr-line: #d9dadd;
    --dsr-error: #b42318;
    color: var(--dsr-ink);
    width: 100%;
}

.dsr-page {
    padding-bottom: clamp(48px, 8vw, 96px);
    padding-top: clamp(36px, 6vw, 72px);
}

.dsr-page--showing-result {
    padding-top: clamp(16px, 2vw, 28px);
}

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

.dsr [hidden] {
    display: none !important;
}

.dsr-lookup {
    border: 1px solid var(--dsr-line);
    padding: clamp(28px, 5vw, 64px);
}

.dsr-header {
    max-width: 900px;
}

.dsr-eyebrow {
    color: var(--dsr-accent);
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2 !important;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.dsr-title {
    color: var(--dsr-ink);
    display: block;
    float: none;
    font-family: var(--headings-font-family, inherit);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.05;
    margin: 0;
}

.dsr-lead {
    clear: both;
    color: var(--dsr-muted);
    font-size: clamp(18px, 2vw, 24px) !important;
    line-height: 1.35 !important;
    margin: 12px 0 0;
    max-width: 920px;
}

.dsr-form {
    margin-top: clamp(30px, 4vw, 52px);
    max-width: 980px;
}

.dsr-vin-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 9px;
}

.dsr-search-row {
    align-items: stretch;
    display: flex;
    gap: 16px;
}

.dsr-input {
    appearance: none;
    background: #fff;
    border: 1px solid #73767a;
    border-radius: 3px;
    color: var(--dsr-ink);
    flex: 1 1 auto;
    font: inherit;
    font-size: 20px;
    height: 58px;
    letter-spacing: 0.08em;
    min-width: 0;
    padding: 0 18px;
    text-transform: uppercase;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dsr-input::placeholder {
    color: #8a8d91;
    letter-spacing: normal;
    text-transform: none;
}

.dsr-input:focus {
    border-color: var(--dsr-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsr-accent) 18%, transparent);
    outline: none;
}

.dsr-input[aria-invalid="true"] {
    border-color: var(--dsr-error);
}

.dsr-submit,
.dsr-recall {
    align-items: center;
    border-radius: 3px;
    color: #fff;
    display: inline-flex;
    float: none;
    font-family: var(--headings-font-family, inherit);
    font-size: 18px;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 58px;
    padding: 0 34px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.dsr-submit:hover,
.dsr-submit:focus,
.dsr-recall:hover,
.dsr-recall:focus {
    color: #fff;
    text-decoration: none;
}

.dsr-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.dsr-spinner {
    animation: dsr-spin 0.75s linear infinite;
    border: 2px solid color-mix(in srgb, currentColor 45%, transparent);
    border-radius: 50%;
    border-top-color: currentColor;
    display: none;
    height: 18px;
    margin-left: 10px;
    width: 18px;
}

.dsr.is-loading .dsr-spinner {
    display: inline-block;
}

@keyframes dsr-spin {
    to { transform: rotate(360deg); }
}

.dsr-field-error {
    color: var(--dsr-error);
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin: 8px 0 0;
    min-height: 20px;
}

.dsr-help {
    color: var(--dsr-muted);
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin: 20px 0 0;
    max-width: 1040px;
}

.dsr-captcha {
    margin-top: 20px;
}

.dsr-captcha p {
    margin: 0 0 10px;
}

.dsr-message {
    align-items: flex-start;
    background: #fff6f5;
    border-left: 4px solid var(--dsr-error);
    display: flex;
    gap: 14px;
    margin-top: 28px;
    max-width: 980px;
    padding: 18px 20px;
}

.dsr-message--empty {
    background: var(--tableHighlight, #f3f3f3);
    border-left-color: var(--dsr-muted);
    max-width: none;
}

.dsr-message-icon {
    fill: none;
    flex: 0 0 24px;
    height: 24px;
    stroke: var(--dsr-error);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 24px;
}

.dsr-message-title {
    font-size: 21px;
    line-height: 1.2;
    margin: 0;
}

.dsr-message-copy {
    color: var(--dsr-muted);
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 4px 0 0;
}

.dsr-result {
    width: 100%;
}

.dsr-result-toolbar,
.dsr-result-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.dsr-result-toolbar {
    border-bottom: 1px solid var(--dsr-line);
    margin-bottom: clamp(32px, 5vw, 64px);
    padding-bottom: 20px;
}

.dsr-back {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--dsr-ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 17px;
    gap: 10px;
    padding: 0;
}

.dsr-back:hover,
.dsr-back:focus {
    color: var(--dsr-accent);
}

.dsr-back-icon {
    align-items: center;
    background: var(--dsr-accent);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.dsr-back-icon svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-width: 2;
    width: 18px;
}

.dsr-brand {
    height: auto;
    max-height: 36px;
    max-width: 190px;
    object-fit: contain;
    width: auto;
}

.dsr-result-heading {
    gap: 32px;
}

.dsr-vehicle-type {
    align-items: center;
    border: 1px solid var(--dsr-line);
    border-radius: 999px;
    color: var(--dsr-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    min-height: 40px;
    padding: 0 18px;
    text-transform: uppercase;
}

.dsr-recall {
    flex: 0 0 auto;
    min-height: 52px;
}

.dsr-vehicle,
.dsr-history,
.dsr-warranty {
    margin-top: clamp(38px, 6vw, 72px);
}

.dsr-section-title {
    border-bottom: 2px solid var(--dsr-accent);
    font-family: var(--headings-font-family, inherit);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 22px;
    padding-bottom: 10px;
}

.dsr-facts {
    display: grid;
    gap: 0 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.dsr-fact {
    border-bottom: 1px solid #ececee;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.1fr);
    padding: 13px 0;
}

.dsr-fact dt {
    color: var(--dsr-muted);
}

.dsr-fact dd {
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.dsr-table-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

.dsr-history-table {
    border: 1px solid #e5e5e5;
    border-collapse: collapse;
    min-width: 780px;
    width: 100%;
}

.dsr .dsr-history-table th,
.dsr .dsr-history-table td {
    border-left: 0;
    border-right: 0;
    font-size: 14px;
    line-height: 1.3;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.dsr .dsr-history-table thead th {
    background: var(--secondary, #000);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media screen and (min-width: 681px) {
    .dsr .dsr-history-table th:first-child,
    .dsr .dsr-history-table td:first-child,
    .dsr .dsr-history-table th:nth-child(2),
    .dsr .dsr-history-table td:nth-child(2),
    .dsr .dsr-history-table th:last-child,
    .dsr .dsr-history-table td:last-child {
        white-space: nowrap;
        width: 1%;
    }

    .dsr .dsr-history-table th:nth-child(4),
    .dsr .dsr-history-table td.dsr-provider {
        min-width: 200px;
    }
}

.dsr-history-table tbody tr {
    border-top: 1px solid #ececee;
    transition: background 0.15s linear;
}

.dsr-history-table tbody tr:hover {
    background: var(--tableHighlight, rgba(121, 111, 110, 0.1));
}

.dsr-provider strong,
.dsr-provider span {
    display: block;
}

.dsr-provider span {
    color: var(--dsr-muted);
    font-size: 13px;
    margin-top: 3px;
}

.dsr-doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dsr-doc-link {
    align-items: center;
    border: 1px solid var(--dsr-line);
    color: var(--dsr-ink);
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    line-height: 1.2;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.dsr-doc-link::after {
    color: var(--dsr-accent);
    content: '↗';
    font-size: 17px;
    line-height: 1;
}

.dsr-doc-link:hover,
.dsr-doc-link:focus {
    border-color: var(--dsr-accent);
    color: var(--dsr-accent);
    text-decoration: none;
}

.dsr-docs--empty {
    color: var(--dsr-muted);
}

.dsr-warranty-copy {
    color: var(--dsr-muted);
    font-size: 17px !important;
    line-height: 1.45 !important;
    margin: 0 0 20px;
}

.dsr-warranty-link {
    align-items: center;
    border-radius: 3px;
    color: #fff;
    display: inline-flex;
    font-family: var(--headings-font-family, inherit);
    font-size: 17px;
    font-weight: 600;
    min-height: 50px !important;
    padding: 0 24px;
    text-decoration: none;
    text-transform: uppercase;
}

.dsr-warranty-link:hover,
.dsr-warranty-link:focus {
    color: #fff;
    text-decoration: none;
}

.dsr-sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media screen and (max-width: 680px) {
    .dsr-lookup {
        border-left: 0;
        border-right: 0;
        margin: 0 -20px;
        padding: 30px 20px;
    }

    .dsr-search-row,
    .dsr-result-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dsr-vehicle-type {
        align-self: flex-start;
    }

    .dsr-submit,
    .dsr-recall,
    .dsr-warranty-link {
        width: 100%;
    }

    .dsr-facts {
        grid-template-columns: 1fr;
    }

    .dsr-fact {
        gap: 12px;
        grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    }

    .dsr-brand {
        max-height: 28px;
        max-width: 145px;
    }

    .dsr-table-scroll {
        overflow-x: visible;
    }

    .dsr-history-table {
        border: 0;
        display: block;
        min-width: 0;
    }

    .dsr-history-table thead {
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
    }

    .dsr-history-table tbody,
    .dsr-history-table tr,
    .dsr-history-table td {
        display: block;
    }

    .dsr .dsr-history-table tbody tr:not(.headrow) {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 16px;
        padding: 8px 16px 14px;
    }

    .dsr-history-table tr:last-child {
        margin-bottom: 0;
    }

    .dsr .dsr-history-table tbody tr:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .dsr .dsr-history-table td {
        align-items: baseline;
        border: 0;
        border-bottom: 1px solid #f1f1f1;
        column-gap: 12px;
        display: grid;
        grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
        overflow-wrap: anywhere;
        padding: 8px 0;
        text-align: right;
    }

    .dsr .dsr-history-table td:last-child {
        border-bottom: 0;
    }

    .dsr-history-table td::before {
        color: #666;
        content: attr(data-label);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        text-align: left;
    }

    .dsr-history-table td.dsr-provider span {
        grid-column: 2;
        text-align: right;
    }

    .dsr-doc-links {
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dsr-spinner {
        animation-duration: 1.5s;
    }
}
