@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.dou-sdf-catalog { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }

/* Part Finder v2 discovery, search and application states */
.dou-sdf-catalog .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dou-sdf-search {
    overflow: hidden;
    border: 1px solid #d7e0ec;
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(245, 158, 11, 0.12), transparent 25%),
        linear-gradient(135deg, #142142 0%, #1e315f 100%);
    box-shadow: 0 12px 32px rgba(20, 33, 66, 0.12);
}

.dou-sdf-search__intro {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 20px 10px;
}

.dou-sdf-search__intro > span {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #ffd58c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.dou-sdf-search__intro h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.25;
}

.dou-sdf-search__intro p {
    margin: 3px 0 0;
    color: #c8d2e5;
    font-size: 12px;
    line-height: 1.45;
}

.dou-sdf-search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 20px 20px;
}

.dou-sdf-search__form input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: #fff;
    color: #142142;
    font-size: 14px;
    font-weight: 750;
    outline: none;
}

.dou-sdf-search__form input::placeholder {
    color: #98a2b3;
    font-weight: 600;
}

.dou-sdf-search__form input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.dou-sdf-search__form button {
    min-width: 132px;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #f59e0b;
    color: #142142;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.dou-sdf-search__form button:hover,
.dou-sdf-search__form button:focus-visible {
    background: #ffb733;
    outline: none;
    transform: translateY(-1px);
}

.dou-sdf-search__form button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.dou-sdf-search__panel {
    padding: 14px;
    border-top: 1px solid #e4e9f0;
    background: #f8fafc;
}

.dou-sdf-search__panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 3px;
}

.dou-sdf-search__panel-heading > span {
    color: #536078;
    font-size: 12px;
    font-weight: 800;
}

.dou-sdf-search__panel-heading button {
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.dou-sdf-search__panel-heading button:hover,
.dou-sdf-search__panel-heading button:focus-visible {
    color: #142142;
    outline: none;
    text-decoration: underline;
}

.dou-sdf-search__results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dou-sdf-search-result {
    min-width: 0;
    padding: 13px;
    border: 1px solid #dde4ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 33, 66, 0.04);
}

.dou-sdf-search-result__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.dou-sdf-search-result__identity {
    min-width: 0;
}

.dou-sdf-search-result__code {
    display: block;
    color: #142142;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.dou-sdf-search-result__description {
    margin: 3px 0 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.dou-sdf-search-result__badge {
    flex: 0 0 auto;
    max-width: 148px;
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.dou-sdf-search-result__badge.is-available {
    background: #ecfdf3;
    color: #027a48;
}

.dou-sdf-search-result__badge.is-unavailable {
    background: #fff8e9;
    color: #9a5700;
}

.dou-sdf-search-result__actions {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.dou-sdf-search-result__copy {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    background: #fff;
    color: #142142;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.dou-sdf-search-result__copy:hover,
.dou-sdf-search-result__copy:focus-visible {
    border-color: #f2b84a;
    background: #fffaf0;
    outline: none;
}

.dou-sdf-search-result__commerce {
    margin-top: 10px;
}

.dou-sdf-search-result__missing {
    margin: 10px 0 0;
    padding: 9px 10px;
    border: 1px solid #f1d79b;
    border-radius: 10px;
    background: #fffaf0;
    color: #756342;
    font-size: 10px;
    line-height: 1.45;
}

.dou-sdf-search__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border: 1px dashed #d8e0ea;
    border-radius: 12px;
    background: #fff;
    color: #667085;
    font-size: 12px;
    text-align: center;
}

.dou-sdf-search__empty.is-error {
    border-color: #f0b9b4;
    color: #b42318;
}

.dou-sdf-catalog__or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dou-sdf-catalog__or::before,
.dou-sdf-catalog__or::after {
    height: 1px;
    flex: 1 1 auto;
    background: #e3e8ef;
    content: "";
}

.dou-sdf-applications {
    margin-top: 10px;
}

.dou-sdf-applications__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    background: #f8fafc;
    color: #142142;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.dou-sdf-applications__toggle::before {
    margin-right: 6px;
    color: #f59e0b;
    content: "β–";
    font-size: 13px;
}

.dou-sdf-applications__toggle:hover,
.dou-sdf-applications__toggle:focus-visible {
    border-color: #f2b84a;
    background: #fffaf0;
    outline: none;
}

.dou-sdf-applications__toggle:disabled {
    cursor: wait;
    opacity: 0.65;
}

.dou-sdf-applications__panel {
    margin-top: 8px;
    padding: 9px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #f8fafc;
}

.dou-sdf-applications__summary,
.dou-sdf-applications__empty,
.dou-sdf-applications__more {
    margin: 0;
    color: #667085;
    font-size: 10px;
    line-height: 1.45;
}

.dou-sdf-applications__summary {
    margin-bottom: 7px;
    color: #536078;
    font-weight: 850;
}

.dou-sdf-applications__empty.is-error {
    color: #b42318;
}

.dou-sdf-applications__more {
    margin-top: 7px;
    color: #98a2b3;
}

.dou-sdf-applications__list {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
}

.dou-sdf-application {
    padding: 8px;
    border: 1px solid #e6ebf1;
    border-radius: 9px;
    background: #fff;
}

.dou-sdf-application__title {
    display: block;
    color: #142142;
    font-size: 11px;
    font-weight: 900;
}

.dou-sdf-application__details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.dou-sdf-application__details > span {
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
    padding: 4px 6px;
    border-radius: 7px;
    background: #f2f4f7;
}

.dou-sdf-application__details small {
    color: #98a2b3;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.dou-sdf-application__details b {
    color: #536078;
    font-size: 9px;
    font-weight: 850;
}

.dou-sdf-selected__content > .dou-sdf-applications {
    margin-top: 12px;
}

.dou-sdf-search-result .dou-sdf-selected__products {
    margin-top: 0;
}

.dou-sdf-search-result .dou-sdf-selected-product {
    grid-template-columns: 48px minmax(0, 1fr);
}

.dou-sdf-search-result .dou-sdf-selected-product img {
    width: 48px;
    height: 48px;
}

@media (max-width: 900px) {
    .dou-sdf-search__results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dou-sdf-search {
        border-radius: 16px;
    }

    .dou-sdf-search__intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 16px 15px 8px;
    }

    .dou-sdf-search__form {
        grid-template-columns: 1fr;
        padding: 9px 15px 15px;
    }

    .dou-sdf-search__form input,
    .dou-sdf-search__form button {
        min-height: 50px;
    }

    .dou-sdf-search__form button {
        width: 100%;
    }

    .dou-sdf-search__panel {
        padding: 10px;
    }

    .dou-sdf-search-result__head {
        flex-direction: column;
    }

    .dou-sdf-search-result__badge {
        max-width: none;
        width: fit-content;
    }

    .dou-sdf-applications__toggle {
        min-height: 42px;
    }
}

@media (max-width: 430px) {
    .dou-sdf-search__panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dou-sdf-search__panel-heading button {
        padding-left: 0;
    }

    .dou-sdf-search-result {
        padding: 11px;
    }
}

/* === DPF V2 PREMIUM WIDE DESKTOP === */
@media (min-width: 1181px) {
    .dou-sdf-catalog {
        width: min(1500px, calc(100vw - 80px));
        max-width: none;
        margin-left: 50%;
        transform: translateX(-50%);
        padding: clamp(22px, 2vw, 32px);
    }

    .dou-sdf-catalog__filters {
        grid-template-columns:
            minmax(0, 0.85fr)
            minmax(0, 1.10fr)
            minmax(0, 0.95fr)
            minmax(0, 1.30fr)
            minmax(0, 1.15fr)
            minmax(0, 1.05fr);
        gap: 12px;
    }

    .dou-sdf-catalog__workspace {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 390px);
        gap: 18px;
    }

    .dou-sdf-catalog__drawing-stage {
        min-height: 540px;
    }

    .dou-sdf-catalog__drawing-stage > img {
        max-height: 760px;
    }

    .dou-sdf-catalog__crumb {
        max-width: 320px;
    }
}

/* === DPF V2 NAVIGATION REFINEMENT === */

.dou-sdf-catalog__filters {
    padding: 14px 16px;
    border-color: #e5eaf1;
    border-radius: 16px;
    background: #fafbfd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.dou-sdf-catalog__field > span {
    margin-bottom: 6px;
    color: #7d899d;
    font-size: 9px;
    letter-spacing: .11em;
}

.dou-sdf-catalog__field select {
    min-height: 42px;
    padding: 8px 34px 8px 12px;
    border-color: #d8e0ea;
    border-radius: 10px;
    background-color: #fff;
    font-size: 13px;
    font-weight: 750;
}

.dou-sdf-catalog__context {
    min-height: 48px;
    align-items: center;
    margin-top: 10px;
    padding: 8px 12px;
    border-color: #e8edf3;
    border-radius: 12px;
    background: #fff;
}

.dou-sdf-catalog__context-label {
    padding: 0 10px 0 0;
    border-right: 1px solid #e7ebf0;
    color: #98a2b3;
    font-size: 9px;
}

.dou-sdf-catalog__crumbs {
    gap: 5px;
}

.dou-sdf-catalog__crumb {
    max-width: 300px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f7f9fc;
}

.dou-sdf-catalog__crumb small {
    font-size: 8px;
}

.dou-sdf-catalog__crumb strong {
    font-size: 10px;
    font-weight: 800;
}

.dou-sdf-catalog__crumb-separator {
    font-size: 14px;
}

.dou-sdf-applications__toggle::before {
    content: "›";
    margin-right: 6px;
    color: #f59e0b;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.dou-sdf-applications__toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}



/* === DPF V2 HOTSPOT SIZE REFINEMENT === */
.dou-sdf-hotspot {
    min-width: 18px;
    min-height: 18px;
    border-width: 2px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.22);
}

.dou-sdf-hotspot:hover,
.dou-sdf-hotspot:focus-visible,
.dou-sdf-hotspot.is-active {
    transform: scale(1.12);
    background: rgba(245, 158, 11, 0.58);
}

.dou-sdf-hotspot.is-active {
    box-shadow: 0 0 0 4px rgba(20, 33, 66, 0.18);
}

@media (max-width: 760px) {
    .dou-sdf-hotspot {
        min-width: 22px;
        min-height: 22px;
    }
}

/* DPF V2 DRAWING FALLBACK FIX */
.dou-sdf-catalog__image-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: auto;
}

.dou-sdf-catalog__image-fallback[hidden],
.dou-sdf-catalog__drawing-stage > img:not([hidden]) ~ .dou-sdf-catalog__image-fallback {
    display: none !important;
}

/* === DPF V2 HOTSPOT VISUAL TARGET === */
.dou-sdf-hotspot {
    overflow: visible;
    border-color: #f59e0b;
    border-width: 2px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.18);
}

.dou-sdf-hotspot::after {
    position: absolute;
    inset: -3px;
    border: 2px solid rgba(245, 158, 11, 0.82);
    border-radius: 8px;
    content: "";
    pointer-events: none;
}

.dou-sdf-hotspot:hover::after,
.dou-sdf-hotspot:focus-visible::after,
.dou-sdf-hotspot.is-active::after {
    inset: -4px;
    border-color: #f59e0b;
}


/* === DPF V2 READABLE HOTSPOT LABELS === */
.dou-sdf-hotspot {
    overflow: visible;
}

.dou-sdf-hotspot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 2px solid #f59e0b;
    border-radius: 7px;
    background: #fff7e6;
    box-shadow: 0 2px 7px rgba(20, 33, 66, .16);
    color: #142142;
    content: attr(data-position);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dou-sdf-hotspot:hover::before,
.dou-sdf-hotspot:focus-visible::before,
.dou-sdf-hotspot.is-active::before {
    min-width: 25px;
    height: 25px;
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .20);
}

@media (max-width: 760px) {
    .dou-sdf-hotspot::before {
        min-width: 27px;
        height: 27px;
        font-size: 12px;
    }
}

/* === DPF V2 UI POLISH V1: PREMIUM SEARCH RESULT CARD === */
.dou-sdf-search__results {
    grid-template-columns: 1fr;
    gap: 12px;
}

.dou-sdf-search-result {
    padding: 18px;
    border-color: #dbe3ed;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(20, 33, 66, .07);
}

.dou-sdf-search-result__head {
    gap: 16px;
}

.dou-sdf-search-result__code {
    font-size: 20px;
    letter-spacing: .005em;
}

.dou-sdf-search-result__description {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.dou-sdf-search-result__badge {
    max-width: 190px;
    padding: 6px 10px;
    border: 1px solid transparent;
    font-size: 9px;
    letter-spacing: .01em;
}

.dou-sdf-search-result__badge.is-available {
    border-color: #ccebd8;
}

.dou-sdf-search-result__badge.is-unavailable {
    border-color: #f1d79b;
}

.dou-sdf-search-result__actions {
    margin-top: 14px;
}

.dou-sdf-search-result__copy,
.dou-sdf-search-result .dou-sdf-applications__toggle {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 11px;
}

.dou-sdf-search-result__commerce {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #d7eadf;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fff9 0%, #fff 100%);
}

.dou-sdf-search-result__commerce-label {
    display: block;
    margin: 0 0 8px 2px;
    color: #4f6f5b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .10em;
}

.dou-sdf-search-result .dou-sdf-selected__products {
    gap: 10px;
    margin-top: 0;
}

.dou-sdf-search-result .dou-sdf-selected-product {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 88px;
    padding: 12px;
    border-color: #d8e7de;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(20, 33, 66, .04);
}

.dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
    grid-template-columns: minmax(0, 1fr) auto;
}

.dou-sdf-search-result .dou-sdf-selected-product.is-no-image .dou-sdf-selected-product__body {
    grid-column: auto;
}

.dou-sdf-search-result .dou-sdf-selected-product img {
    width: 64px;
    height: 64px;
    border: 1px solid #edf1f5;
}

.dou-sdf-search-result .dou-sdf-selected-product__title {
    font-size: 14px;
    line-height: 1.4;
}

.dou-sdf-search-result .dou-sdf-selected-product__sku {
    margin-top: 2px;
    font-size: 10px;
}

.dou-sdf-search-result .dou-sdf-selected-product__stock {
    margin-top: 4px;
    padding: 4px 7px;
    font-size: 9px;
}

.dou-sdf-search-result .dou-sdf-selected-product__price {
    margin-top: 4px;
    font-size: 15px;
}

.dou-sdf-search-result .dou-sdf-selected-product__cta {
    grid-column: auto;
    min-width: 150px;
    min-height: 42px;
    align-self: center;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 11px;
}

.dou-sdf-search-result__missing {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    font-size: 11px;
}

@media (min-width: 1280px) {
    .dou-sdf-search__results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dou-sdf-search-result {
        padding: 14px;
    }

    .dou-sdf-search-result__code {
        font-size: 19px;
    }

    .dou-sdf-search-result__description {
        font-size: 12px;
    }

    .dou-sdf-search-result .dou-sdf-selected-product,
    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
    }

    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image .dou-sdf-selected-product__body {
        grid-column: 1 / -1;
    }

    .dou-sdf-search-result .dou-sdf-selected-product img {
        width: 56px;
        height: 56px;
    }

    .dou-sdf-search-result .dou-sdf-selected-product__cta {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }
}

/* === DPF UI V1.2 COMPACT RESULT ROW === */

/* One typography contract across the whole Part Finder component. */
.dou-sdf-catalog,
.dou-sdf-catalog button,
.dou-sdf-catalog input,
.dou-sdf-catalog select,
.dou-sdf-catalog textarea,
.dou-sdf-catalog a {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.dou-sdf-catalog {
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dou-sdf-search-result__code {
    font-weight: 800;
}

.dou-sdf-search-result__description,
.dou-sdf-selected-product__sku {
    font-weight: 500;
}

.dou-sdf-search-result__badge,
.dou-sdf-search-result__copy,
.dou-sdf-applications__toggle,
.dou-sdf-selected-product__title,
.dou-sdf-selected-product__cta {
    font-weight: 700;
}

/* Remove the bulky nested commerce-card treatment. */
.dou-sdf-search-result__commerce {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.dou-sdf-search-result__commerce-label {
    display: none;
}

.dou-sdf-search-result .dou-sdf-selected__products {
    min-width: 0;
    margin: 0;
}

.dou-sdf-search-result .dou-sdf-selected-product,
.dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dou-sdf-search-result .dou-sdf-selected-product img {
    width: 44px;
    height: 44px;
    border: 1px solid #e6ebf1;
    border-radius: 9px;
}

.dou-sdf-search-result .dou-sdf-selected-product__body {
    min-width: 0;
    gap: 2px;
}

.dou-sdf-search-result .dou-sdf-selected-product__title {
    overflow: hidden;
    color: #142142;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.dou-sdf-search-result .dou-sdf-selected-product__sku {
    color: #7b879b;
    font-size: 9px;
}

.dou-sdf-search-result .dou-sdf-selected-product__stock {
    margin-top: 2px;
    padding: 3px 6px;
    font-size: 8px;
}

.dou-sdf-search-result .dou-sdf-selected-product__price {
    margin-top: 2px;
    font-size: 13px;
}

/* Compact icon actions. Existing button text stays in the DOM for accessibility. */
.dou-sdf-search-result__actions {
    margin: 0;
}

.dou-sdf-search-result__copy,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle {
    position: relative;
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #d7dfeb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(20, 33, 66, .04);
    color: #142142;
    font-size: 0;
    line-height: 0;
}

.dou-sdf-search-result__copy::before,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle::before {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
    background: currentColor;
    content: "";
    transform: none;
}

.dou-sdf-search-result__copy::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 7V5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h2Zm3 0h2a3 3 0 0 1 3 3v2h2V5h-7v2Zm2 3H6v7h7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 7V5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h2Zm3 0h2a3 3 0 0 1 3 3v2h2V5h-7v2Zm2 3H6v7h7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM5 15a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm14 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM11 8h2v3h5a2 2 0 0 1 2 2v2h-2v-2h-5v2h-2v-2H6v2H4v-2a2 2 0 0 1 2-2h5V8Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM5 15a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm14 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM11 8h2v3h5a2 2 0 0 1 2 2v2h-2v-2h-5v2h-2v-2H6v2H4v-2a2 2 0 0 1 2-2h5V8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dou-sdf-search-result__copy:hover,
.dou-sdf-search-result__copy:focus-visible,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle:hover,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle:focus-visible {
    border-color: #f59e0b;
    background: #fff8e9;
    box-shadow: 0 4px 12px rgba(20, 33, 66, .08);
    color: #9a5700;
    outline: none;
    transform: none;
}

.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle[aria-expanded="true"] {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #142142;
}

.dou-sdf-search-result > .dou-sdf-applications {
    margin: 0;
}

/* Desktop: a single compact result row. */
@media (min-width: 1100px) {
    .dou-sdf-search-result {
        display: grid;
        grid-template-columns:
            minmax(330px, 1.05fr)
            42px
            42px
            minmax(330px, 1.35fr);
        grid-template-areas: "head copy applications commerce";
        column-gap: 12px;
        row-gap: 0;
        align-items: center;
        min-height: 82px;
        padding: 13px 16px;
    }

    .dou-sdf-search-result:only-child {
        grid-column: 1 / -1;
    }

    .dou-sdf-search-result__head {
        grid-area: head;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        min-width: 0;
    }

    .dou-sdf-search-result__identity {
        min-width: 0;
    }

    .dou-sdf-search-result__code {
        font-size: 18px;
        line-height: 1.15;
    }

    .dou-sdf-search-result__description {
        overflow: hidden;
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dou-sdf-search-result__badge {
        max-width: 160px;
        padding: 5px 8px;
        white-space: nowrap;
    }

    .dou-sdf-search-result__actions {
        grid-area: copy;
    }

    .dou-sdf-search-result > .dou-sdf-applications {
        grid-area: applications;
    }

    .dou-sdf-search-result__commerce {
        grid-area: commerce;
    }

    .dou-sdf-search-result .dou-sdf-selected-product {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image .dou-sdf-selected-product__body {
        grid-column: auto;
    }

    .dou-sdf-search-result .dou-sdf-selected-product__cta {
        grid-column: auto;
        min-width: 112px;
        min-height: 38px;
        padding: 0 12px;
        font-size: 10px;
    }

    /* When applications are expanded, only that control grows vertically. */
    .dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__panel {
        width: min(360px, 40vw);
        max-height: 320px;
    }
}

/* Tablet: identity/actions first line, commerce immediately below. */
@media (min-width: 761px) and (max-width: 1099px) {
    .dou-sdf-search-result {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px 42px;
        grid-template-areas:
            "head copy applications"
            "commerce commerce commerce";
        gap: 10px;
        align-items: center;
        padding: 14px;
    }

    .dou-sdf-search-result__head {
        grid-area: head;
    }

    .dou-sdf-search-result__actions {
        grid-area: copy;
    }

    .dou-sdf-search-result > .dou-sdf-applications {
        grid-area: applications;
    }

    .dou-sdf-search-result__commerce {
        grid-area: commerce;
        padding-top: 10px;
        border-top: 1px solid #edf1f5;
    }

    .dou-sdf-search-result .dou-sdf-selected-product {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* Mobile remains compact but prioritizes readable tap targets. */
@media (max-width: 760px) {
    .dou-sdf-search-result {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px 44px;
        grid-template-areas:
            "head copy applications"
            "commerce commerce commerce";
        gap: 10px;
        align-items: start;
        padding: 13px;
    }

    .dou-sdf-search-result__head {
        grid-area: head;
        display: block;
    }

    .dou-sdf-search-result__badge {
        width: fit-content;
        margin-top: 7px;
    }

    .dou-sdf-search-result__actions {
        grid-area: copy;
    }

    .dou-sdf-search-result > .dou-sdf-applications {
        grid-area: applications;
    }

    .dou-sdf-search-result__commerce {
        grid-area: commerce;
        padding-top: 10px;
        border-top: 1px solid #edf1f5;
    }

    .dou-sdf-search-result__copy,
    .dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .dou-sdf-search-result .dou-sdf-selected-product,
    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .dou-sdf-search-result .dou-sdf-selected-product.has-image {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .dou-sdf-search-result .dou-sdf-selected-product__cta {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
    }
}

/* === DPF UI V1.3 RESULT ROW ALIGNMENT FIX === */

/*
 * v1.3 fixes:
 * - hard-hide the original action text while keeping it in the DOM/accessibility tree;
 * - move availability out of the identity block visually;
 * - align identity, matched product, status and the two actions on one desktop row;
 * - keep the existing tablet/mobile layout intact.
 */

/* Robust icon-only action buttons. */
.dou-sdf-search-result__copy,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle {
    position: relative !important;
    overflow: hidden !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    border-radius: 11px !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    white-space: nowrap !important;
}

.dou-sdf-search-result__copy::before,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle::before {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    background: #142142 !important;
    content: "" !important;
    transform: translate(-50%, -50%) !important;
}

.dou-sdf-search-result__copy:hover::before,
.dou-sdf-search-result__copy:focus-visible::before,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle:hover::before,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle:focus-visible::before {
    background: #9a5700 !important;
}

.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle[aria-expanded="true"]::before {
    background: #142142 !important;
}

/* Keep the exact icons from v1.2, but make their placement deterministic. */
.dou-sdf-search-result__copy::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 7V5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h2Zm3 0h2a3 3 0 0 1 3 3v2h2V5h-7v2Zm2 3H6v7h7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 7V5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h2Zm3 0h2a3 3 0 0 1 3 3v2h2V5h-7v2Zm2 3H6v7h7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM5 15a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm14 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM11 8h2v3h5a2 2 0 0 1 2 2v2h-2v-2h-5v2h-2v-2H6v2H4v-2a2 2 0 0 1 2-2h5V8Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM5 15a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm14 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM11 8h2v3h5a2 2 0 0 1 2 2v2h-2v-2h-5v2h-2v-2H6v2H4v-2a2 2 0 0 1 2-2h5V8Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* Typography normalization inside the result row. */
.dou-sdf-search-result,
.dou-sdf-search-result * {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
}

.dou-sdf-search-result__code,
.dou-sdf-selected-product__title {
    letter-spacing: 0 !important;
}

.dou-sdf-search-result__code {
    font-weight: 800 !important;
}

.dou-sdf-search-result__description,
.dou-sdf-selected-product__sku {
    font-weight: 500 !important;
}

.dou-sdf-search-result__badge,
.dou-sdf-selected-product__title {
    font-weight: 700 !important;
}

/* Final desktop row architecture. */
@media (min-width: 1100px) {
    .dou-sdf-search-result {
        display: grid !important;
        grid-template-columns:
            minmax(230px, .75fr)
            minmax(320px, 1.35fr)
            auto
            44px
            44px !important;
        grid-template-areas:
            "identity product badge copy applications" !important;
        gap: 14px !important;
        align-items: center !important;
        min-height: 76px !important;
        padding: 12px 16px !important;
    }

    /*
     * The badge is currently inside .dou-sdf-search-result__head.
     * display:contents lets identity and badge become direct grid items
     * without changing JS/DOM/API behaviour.
     */
    .dou-sdf-search-result__head {
        display: contents !important;
    }

    .dou-sdf-search-result__identity {
        grid-area: identity !important;
        min-width: 0 !important;
    }

    .dou-sdf-search-result__badge {
        grid-area: badge !important;
        align-self: center !important;
        justify-self: end !important;
        width: max-content !important;
        max-width: 180px !important;
        margin: 0 !important;
        padding: 6px 9px !important;
        white-space: nowrap !important;
    }

    .dou-sdf-search-result__actions {
        grid-area: copy !important;
        display: block !important;
        width: 44px !important;
        margin: 0 !important;
    }

    .dou-sdf-search-result > .dou-sdf-applications {
        grid-area: applications !important;
        width: 44px !important;
        margin: 0 !important;
    }

    .dou-sdf-search-result__commerce,
    .dou-sdf-search-result__missing {
        grid-area: product !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 0 16px !important;
        border: 0 !important;
        border-left: 1px solid #e8edf3 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .dou-sdf-search-result__commerce-label {
        display: none !important;
    }

    .dou-sdf-search-result .dou-sdf-selected__products {
        min-width: 0 !important;
        margin: 0 !important;
    }

    .dou-sdf-search-result .dou-sdf-selected-product,
    .dou-sdf-search-result .dou-sdf-selected-product.is-no-image {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        align-items: center !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .dou-sdf-search-result .dou-sdf-selected-product.has-image {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
    }

    .dou-sdf-search-result .dou-sdf-selected-product__body {
        min-width: 0 !important;
    }

    .dou-sdf-search-result .dou-sdf-selected-product__title {
        display: block !important;
        overflow: hidden !important;
        margin: 0 !important;
        color: #142142 !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .dou-sdf-search-result .dou-sdf-selected-product__sku {
        display: block !important;
        margin-top: 3px !important;
        color: #7b879b !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    .dou-sdf-search-result .dou-sdf-selected-product__cta {
        grid-column: auto !important;
        min-width: 112px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        font-size: 10px !important;
    }

    .dou-sdf-search-result__code {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.15 !important;
    }

    .dou-sdf-search-result__description {
        display: block !important;
        overflow: hidden !important;
        margin: 4px 0 0 !important;
        color: #667085 !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /*
     * Expanded applications may grow below the row,
     * but the closed control itself stays exactly 44x44.
     */
    .dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__panel {
        position: absolute !important;
        z-index: 20 !important;
        width: min(390px, 42vw) !important;
        margin-top: 7px !important;
        transform: translateX(calc(-100% + 44px)) !important;
        box-shadow: 0 12px 28px rgba(20, 33, 66, .14) !important;
    }
}

/* Tablet/mobile: prevent old text from ever returning while preserving v1.2 wrapping. */
@media (max-width: 1099px) {
    .dou-sdf-search-result__copy,
    .dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle {
        text-indent: -9999px !important;
        color: transparent !important;
        font-size: 0 !important;
    }

    .dou-sdf-search-result__copy::before,
    .dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle::before {
        background: #142142 !important;
    }
}

/* === DPF UI V1.4 BUTTON WEIGHT REFINEMENT === */
.dou-sdf-catalog button,
.dou-sdf-catalog .dou-sdf-search__form button,
.dou-sdf-catalog .dou-sdf-search__panel-heading button,
.dou-sdf-catalog .dou-sdf-catalog__language-button,
.dou-sdf-catalog .dou-sdf-applications__toggle,
.dou-sdf-catalog .dou-sdf-selected__copy,
.dou-sdf-catalog .dou-sdf-search-result__copy,
.dou-sdf-catalog .dou-sdf-catalog__zoom button {
    font-weight: 500 !important;
}

/* === DPF UI V1.5A SEARCH ICON BUTTON === */

.dou-sdf-search__form {
    align-items: center;
}

/* Desktop / tablet */
.dou-sdf-search__form button[type="submit"] {
    position: relative !important;
    overflow: visible !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    color: transparent !important;
    font-size: 0 !important;
    font-weight: 500 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    white-space: nowrap !important;
}

.dou-sdf-search__form button[type="submit"]::before {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    margin: 0 !important;
    background: #142142 !important;
    content: "" !important;
    transform: translate(-50%, -50%) !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm8.9 12.5 2.6 2.6-1.4 1.4-2.6-2.6 1.4-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm8.9 12.5 2.6 2.6-1.4 1.4-2.6-2.6 1.4-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* Custom note on hover / keyboard focus. */
.dou-sdf-search__form button[type="submit"]::after {
    position: absolute !important;
    right: 0 !important;
    bottom: calc(100% + 9px) !important;
    z-index: 50 !important;
    display: block !important;
    min-width: max-content !important;
    padding: 7px 10px !important;
    border-radius: 9px !important;
    background: #142142 !important;
    box-shadow: 0 9px 22px rgba(20, 33, 66, .20) !important;
    color: #fff !important;
    content: attr(data-tooltip) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(5px) !important;
    transition: opacity 120ms ease, transform 120ms ease !important;
}

.dou-sdf-search__form button[type="submit"]:hover::after,
.dou-sdf-search__form button[type="submit"]:focus-visible::after {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.dou-sdf-search__form button[type="submit"]:hover::before,
.dou-sdf-search__form button[type="submit"]:focus-visible::before {
    background: #9a5700 !important;
}

/*
 * Existing responsive CSS makes the search button full-width.
 * Override it so the icon stays compact, while the input uses the rest.
 */
@media (max-width: 760px) {
    .dou-sdf-search__form {
        grid-template-columns: minmax(0, 1fr) 54px !important;
    }

    .dou-sdf-search__form button[type="submit"] {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        border-radius: 13px !important;
    }

    .dou-sdf-search__form button[type="submit"]::after {
        right: 0 !important;
        font-size: 10px !important;
    }
}

/* === DPF UI V1.6 TOOLTIPS + SELECTED ACTION ICONS === */

/* Shared tooltip behavior for all icon buttons. */
.dou-sdf-search__form button[type="submit"],
.dou-sdf-search-result__copy,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle,
.dou-sdf-selected__copy,
[data-selected-content] .dou-sdf-applications__toggle {
    position: relative !important;
    overflow: visible !important;
}

.dou-sdf-search__form button[type="submit"]::after,
.dou-sdf-search-result__copy::after,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle::after,
.dou-sdf-selected__copy::after,
[data-selected-content] .dou-sdf-applications__toggle::after {
    position: absolute !important;
    right: 0 !important;
    bottom: calc(100% + 9px) !important;
    z-index: 60 !important;
    display: block !important;
    min-width: max-content !important;
    padding: 7px 10px !important;
    border-radius: 9px !important;
    background: #142142 !important;
    box-shadow: 0 9px 22px rgba(20, 33, 66, .20) !important;
    color: #fff !important;
    content: attr(data-tooltip) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(5px) !important;
    transition: opacity 120ms ease, transform 120ms ease !important;
}

.dou-sdf-search__form button[type="submit"]:hover::after,
.dou-sdf-search__form button[type="submit"]:focus-visible::after,
.dou-sdf-search-result__copy:hover::after,
.dou-sdf-search-result__copy:focus-visible::after,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle:hover::after,
.dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle:focus-visible::after,
.dou-sdf-selected__copy:hover::after,
.dou-sdf-selected__copy:focus-visible::after,
[data-selected-content] .dou-sdf-applications__toggle:hover::after,
[data-selected-content] .dou-sdf-applications__toggle:focus-visible::after {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Selected-part action row: compact icon buttons with same behavior as the result row. */
.dou-sdf-selected__content .dou-sdf-selected__copy,
.dou-sdf-selected__content .dou-sdf-applications {
    display: inline-block !important;
    vertical-align: top !important;
    margin: 12px 8px 0 0 !important;
}

.dou-sdf-selected__content .dou-sdf-selected__copy,
.dou-sdf-selected__content .dou-sdf-applications__toggle {
    position: relative !important;
    overflow: visible !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #d7dfeb !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(20, 33, 66, .04) !important;
    color: transparent !important;
    font-size: 0 !important;
    font-weight: 500 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    white-space: nowrap !important;
}

.dou-sdf-selected__content .dou-sdf-selected__copy::before,
.dou-sdf-selected__content .dou-sdf-applications__toggle::before {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    background: #142142 !important;
    content: "" !important;
    transform: translate(-50%, -50%) !important;
}

.dou-sdf-selected__content .dou-sdf-selected__copy::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 7V5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h2Zm3 0h2a3 3 0 0 1 3 3v2h2V5h-7v2Zm2 3H6v7h7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 7V5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h2Zm3 0h2a3 3 0 0 1 3 3v2h2V5h-7v2Zm2 3H6v7h7v-7Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.dou-sdf-selected__content .dou-sdf-applications__toggle::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM5 15a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm14 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM11 8h2v3h5a2 2 0 0 1 2 2v2h-2v-2h-5v2h-2v-2H6v2H4v-2a2 2 0 0 1 2-2h5V8Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM5 15a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm14 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM11 8h2v3h5a2 2 0 0 1 2 2v2h-2v-2h-5v2h-2v-2H6v2H4v-2a2 2 0 0 1 2-2h5V8Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.dou-sdf-selected__content .dou-sdf-selected__copy:hover,
.dou-sdf-selected__content .dou-sdf-selected__copy:focus-visible,
.dou-sdf-selected__content .dou-sdf-applications__toggle:hover,
.dou-sdf-selected__content .dou-sdf-applications__toggle:focus-visible {
    border-color: #f59e0b !important;
    background: #fff8e9 !important;
    box-shadow: 0 4px 12px rgba(20, 33, 66, .08) !important;
    outline: none !important;
}

.dou-sdf-selected__content .dou-sdf-selected__copy:hover::before,
.dou-sdf-selected__content .dou-sdf-selected__copy:focus-visible::before,
.dou-sdf-selected__content .dou-sdf-applications__toggle:hover::before,
.dou-sdf-selected__content .dou-sdf-applications__toggle:focus-visible::before {
    background: #9a5700 !important;
}

.dou-sdf-selected__content .dou-sdf-applications__toggle[aria-expanded="true"] {
    border-color: #f59e0b !important;
    background: #f59e0b !important;
}

.dou-sdf-selected__content .dou-sdf-applications__toggle[aria-expanded="true"]::before {
    background: #142142 !important;
}

.dou-sdf-selected__content .dou-sdf-applications__panel {
    margin-top: 10px !important;
}

@media (max-width: 760px) {
    .dou-sdf-search__form button[type="submit"]::after,
    .dou-sdf-search-result__copy::after,
    .dou-sdf-search-result > .dou-sdf-applications .dou-sdf-applications__toggle::after,
    .dou-sdf-selected__copy::after,
    [data-selected-content] .dou-sdf-applications__toggle::after {
        font-size: 10px !important;
    }
}

/* === DPF UI V1.7 SELECTED CARD ACTION ROW === */

/* Selected-part panel: cleaner action row above the commerce card. */
.dou-sdf-selected__actions-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 12px 0 14px !important;
}

.dou-sdf-selected__actions-row .dou-sdf-selected__copy,
.dou-sdf-selected__actions-row .dou-sdf-applications {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
    flex: 0 0 auto !important;
}

.dou-sdf-selected__actions-row .dou-sdf-applications__toggle {
    margin: 0 !important;
}

[data-selected-content] .dou-sdf-selected__products {
    margin-top: 0 !important;
}

[data-selected-content] .dou-sdf-selected-product {
    margin-top: 0 !important;
}

[data-selected-content] .dou-sdf-selected__copy::after,
[data-selected-content] .dou-sdf-applications__toggle::after {
    left: 0 !important;
    right: auto !important;
}

@media (max-width: 760px) {
    .dou-sdf-selected__actions-row {
        gap: 8px !important;
        margin: 10px 0 12px !important;
    }
}

/* === DPF UI V1.8 SELECTED META INLINE ROW === */

[data-selected-content] .dou-sdf-selected__inline-row {
    display: flex !important;
    align-items: end !important;
    gap: 10px !important;
    margin: 10px 0 14px !important;
}

[data-selected-content] .dou-sdf-selected__meta-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(84px, 1fr)) !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

[data-selected-content] .dou-sdf-selected__meta-row > * {
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
}

[data-selected-content] .dou-sdf-selected__meta-row > * * {
    letter-spacing: 0 !important;
}

[data-selected-content] .dou-sdf-selected__meta-row > * > *:first-child {
    font-size: 10px !important;
    line-height: 1.1 !important;
}

[data-selected-content] .dou-sdf-selected__meta-row > * > *:last-child {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
}

[data-selected-content] .dou-sdf-selected__inline-row .dou-sdf-selected__actions-row {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

[data-selected-content] .dou-sdf-selected__inline-row .dou-sdf-selected__copy,
[data-selected-content] .dou-sdf-selected__inline-row .dou-sdf-applications {
    margin: 0 !important;
}

@media (max-width: 760px) {
    [data-selected-content] .dou-sdf-selected__inline-row {
        align-items: center !important;
        gap: 8px !important;
    }

    [data-selected-content] .dou-sdf-selected__meta-row {
        grid-template-columns: repeat(2, minmax(72px, 1fr)) !important;
        gap: 8px !important;
    }

    [data-selected-content] .dou-sdf-selected__meta-row > * {
        min-height: 44px !important;
        padding: 7px 9px !important;
    }

    [data-selected-content] .dou-sdf-selected__meta-row > * > *:first-child {
        font-size: 9px !important;
    }

    [data-selected-content] .dou-sdf-selected__meta-row > * > *:last-child {
        font-size: 11px !important;
    }

    [data-selected-content] .dou-sdf-selected__inline-row .dou-sdf-selected__actions-row {
        gap: 6px !important;
    }
}

/* === DPF UI V1.9A SELECTED FACTS SINGLE ROW FIX === */

/*
 * Actual post-v1.8 structure:
 *
 * .dou-sdf-selected__facts
 *   ├─ position <span>
 *   └─ .dou-sdf-selected__inline-row
 *        ├─ quantity <span class="dou-sdf-selected__meta-row">
 *        └─ .dou-sdf-selected__actions-row
 *
 * Flatten the inline wrapper so all four visual items share one row:
 * POSITION | QUANTITY | COPY | WHERE-USED
 */

[data-selected-content] .dou-sdf-selected__facts {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 10px 0 14px !important;
}

[data-selected-content] .dou-sdf-selected__inline-row {
    display: contents !important;
    margin: 0 !important;
}

/* POSITION */
[data-selected-content] .dou-sdf-selected__facts > span,
/* QUANTITY */
[data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    border: 1px solid #e0e6ee !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}

/* Remove old v1.8 grid behavior from QUANTITY. */
[data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row {
    grid-template-columns: none !important;
}

/* labels */
[data-selected-content] .dou-sdf-selected__facts > span > small,
[data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row > small {
    display: block !important;
    margin: 0 !important;
    color: #98a2b3 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

/* values */
[data-selected-content] .dou-sdf-selected__facts > span > strong,
[data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row > strong {
    display: block !important;
    margin: 0 !important;
    color: #142142 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

/* COPY + WHERE USED */
[data-selected-content] .dou-sdf-selected__actions-row {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
}

[data-selected-content] .dou-sdf-selected__actions-row .dou-sdf-selected__copy,
[data-selected-content] .dou-sdf-selected__actions-row .dou-sdf-applications,
[data-selected-content] .dou-sdf-selected__actions-row .dou-sdf-applications__toggle {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

[data-selected-content] .dou-sdf-selected__actions-row .dou-sdf-selected__copy,
[data-selected-content] .dou-sdf-selected__actions-row .dou-sdf-applications__toggle {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
}

/* Narrow panel: keep one row, reduce info boxes before reducing actions. */
@media (max-width: 430px) {
    [data-selected-content] .dou-sdf-selected__facts {
        gap: 6px !important;
    }

    [data-selected-content] .dou-sdf-selected__facts > span,
    [data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row {
        min-height: 42px !important;
        padding: 5px 7px !important;
    }

    [data-selected-content] .dou-sdf-selected__actions-row {
        gap: 6px !important;
    }

    [data-selected-content] .dou-sdf-selected__actions-row .dou-sdf-selected__copy,
    [data-selected-content] .dou-sdf-selected__actions-row .dou-sdf-applications__toggle {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }
}

/* === DPF UI V1.10 MATCHED FACT BOXES === */

/*
 * Make POSITION and QUANTITY visually identical:
 * - same width
 * - same height
 * - same internal spacing
 * - same alignment
 */

[data-selected-content] .dou-sdf-selected__facts > span,
[data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row {
    flex: 0 0 92px !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 6px 9px !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}

[data-selected-content] .dou-sdf-selected__facts > span > small,
[data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row > small {
    margin: 0 !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

[data-selected-content] .dou-sdf-selected__facts > span > strong,
[data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row > strong {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
}

@media (max-width: 430px) {
    [data-selected-content] .dou-sdf-selected__facts > span,
    [data-selected-content] .dou-sdf-selected__inline-row > .dou-sdf-selected__meta-row {
        flex: 0 0 82px !important;
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 5px 7px !important;
    }
}

/* === DPF UI V1.11 SELECTED ROW STRUCTURAL RESET === */

/*
 * Final selected-part meta row.
 * This intentionally overrides the previous v1.8-v1.10 layout rules.
 */
[data-selected-content] .dou-sdf-selected__facts {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 14px !important;
}

[data-selected-content] .dou-sdf-selected__compact-row {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

[data-selected-content] .dou-sdf-selected__compact-fact {
    display: flex !important;
    box-sizing: border-box !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    flex: 0 0 92px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    border: 1px solid #dfe6ef !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    text-align: center !important;
}

[data-selected-content] .dou-sdf-selected__compact-fact > small {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    color: #98a2b3 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

[data-selected-content] .dou-sdf-selected__compact-fact > strong {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    color: #142142 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

[data-selected-content] .dou-sdf-selected__compact-row > .dou-sdf-selected__copy,
[data-selected-content] .dou-sdf-selected__compact-row > .dou-sdf-applications {
    display: inline-flex !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    flex: 0 0 44px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

[data-selected-content] .dou-sdf-selected__compact-row > .dou-sdf-applications {
    position: relative !important;
}

[data-selected-content] .dou-sdf-selected__compact-row .dou-sdf-applications__toggle {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
}

[data-selected-content] .dou-sdf-selected__compact-row .dou-sdf-applications__panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    z-index: 40 !important;
    width: min(340px, 82vw) !important;
    margin: 0 !important;
    box-shadow: 0 12px 28px rgba(20, 33, 66, .14) !important;
}

/* Kill the obsolete wrappers visually if an older browser render left them around. */
[data-selected-content] .dou-sdf-selected__inline-row,
[data-selected-content] .dou-sdf-selected__actions-row {
    margin: 0 !important;
}

@media (max-width: 430px) {
    [data-selected-content] .dou-sdf-selected__compact-row {
        gap: 6px !important;
    }

    [data-selected-content] .dou-sdf-selected__compact-fact {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        flex-basis: 78px !important;
        padding: 4px 6px !important;
    }

    [data-selected-content] .dou-sdf-selected__compact-row > .dou-sdf-selected__copy,
    [data-selected-content] .dou-sdf-selected__compact-row > .dou-sdf-applications,
    [data-selected-content] .dou-sdf-selected__compact-row .dou-sdf-applications__toggle {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        flex-basis: 42px !important;
    }
}

/* === DPF UI V1.12 FACT CONTENT RESET === */

/*
 * Hard reset old v1.8 child rules so POSITION and QUANTITY are truly identical.
 */
[data-selected-content] .dou-sdf-selected__compact-fact {
    display: flex !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    flex: 0 0 92px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    text-align: center !important;
}

/* Kill every legacy size/padding rule on the label and value. */
[data-selected-content] .dou-sdf-selected__compact-fact > small,
[data-selected-content] .dou-sdf-selected__compact-fact > strong {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
}

[data-selected-content] .dou-sdf-selected__compact-fact > small {
    color: #98a2b3 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

[data-selected-content] .dou-sdf-selected__compact-fact > strong {
    color: #142142 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
}

/* Re-assert the final centered row. */
[data-selected-content] .dou-sdf-selected__compact-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

@media (max-width: 430px) {
    [data-selected-content] .dou-sdf-selected__compact-fact {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        flex-basis: 78px !important;
        padding: 5px 6px !important;
        gap: 3px !important;
    }
}

/* === DPF UI V1.13 SELECTED TOOLTIP POSITION FIX === */

/*
 * The selected-part panel is narrow. Anchor its action tooltips
 * from the right edge so they expand leftwards and remain visible.
 */
[data-selected-content] .dou-sdf-selected__copy::after,
[data-selected-content] .dou-sdf-applications__toggle::after {
    left: auto !important;
    right: 0 !important;
    bottom: calc(100% + 9px) !important;
    transform: translateY(5px) !important;
}

[data-selected-content] .dou-sdf-selected__copy:hover::after,
[data-selected-content] .dou-sdf-selected__copy:focus-visible::after,
[data-selected-content] .dou-sdf-applications__toggle:hover::after,
[data-selected-content] .dou-sdf-applications__toggle:focus-visible::after {
    transform: translateY(0) !important;
}

/* Keep the tooltip above the commerce card and nearby drawing content. */
[data-selected-content] .dou-sdf-selected__compact-row,
[data-selected-content] .dou-sdf-selected__copy,
[data-selected-content] .dou-sdf-applications,
[data-selected-content] .dou-sdf-applications__toggle {
    overflow: visible !important;
}

[data-selected-content] .dou-sdf-selected__copy::after,
[data-selected-content] .dou-sdf-applications__toggle::after {
    z-index: 100 !important;
}

/* === DPF UI V1.14 PARTS HEADER STACK === */

/*
 * Parts-list header:
 * one clean title line, search field directly below.
 */
.dou-sdf-catalog__parts-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 14px 17px !important;
}

.dou-sdf-catalog__parts-heading > div {
    display: flex !important;
    min-width: 0 !important;
    align-items: baseline !important;
    gap: 10px !important;
    white-space: nowrap !important;
}

.dou-sdf-catalog__parts-heading > div > span {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: #8993a6 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: .09em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.dou-sdf-catalog__parts-heading h3 {
    display: inline-block !important;
    overflow: hidden !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #142142 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.dou-sdf-catalog__parts-heading input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

@media (max-width: 430px) {
    .dou-sdf-catalog__parts-heading {
        gap: 8px !important;
        padding: 12px 13px !important;
    }

    .dou-sdf-catalog__parts-heading > div {
        gap: 7px !important;
    }

    .dou-sdf-catalog__parts-heading > div > span {
        font-size: 8px !important;
    }

    .dou-sdf-catalog__parts-heading h3 {
        font-size: 15px !important;
    }

    .dou-sdf-catalog__parts-heading input {
        min-height: 40px !important;
    }
}

/* === DPF UI V1.16 PARTS FILTER FULL WIDTH === */

/*
 * Ensure the parts-list filter control spans the full available width
 * below the one-line title row.
 */
.dou-sdf-catalog__parts-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
}

.dou-sdf-catalog__parts-heading > :last-child {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-self: stretch !important;
}

.dou-sdf-catalog__parts-heading > :last-child input,
.dou-sdf-catalog__parts-heading > input,
.dou-sdf-catalog__parts-heading .dou-sdf-catalog__parts-filter,
.dou-sdf-catalog__parts-heading .dou-sdf-catalog__parts-search {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 430px) {
    .dou-sdf-catalog__parts-heading > :last-child input,
    .dou-sdf-catalog__parts-heading > input,
    .dou-sdf-catalog__parts-heading .dou-sdf-catalog__parts-filter,
    .dou-sdf-catalog__parts-heading .dou-sdf-catalog__parts-search {
        width: 100% !important;
    }
}

/* === DPF V2 PRODUCTION THEME ISOLATION: SEARCH INPUT BOX MODEL === */
.dou-sdf-catalog .dou-sdf-search__form input[type="search"] {
    box-sizing: border-box !important;
}
/* === DPF 0.4.6 VIN RESULT LAYOUT ===
 * VIN can return several compatible fitments at once. Keep those rows full-width
 * so the existing desktop result-card architecture has the space it was designed for.
 * Normal part-search results are intentionally unchanged.
 */
.dou-sdf-search__results.is-tractor-results {
    grid-template-columns: 1fr !important;
}
