/*
 * Parts Finder 0.3.38 refinements.
 * Loaded after public.css so the premium layout stays intact.
 */

/* The quick-code field should be prominent, but not dominate the full page. */
.dou-parts-finder--full .dou-smart-search-field {
    width: min(100%, 1080px);
    max-width: 100%;
    min-width: 0;
    padding: 14px 16px 13px;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(20, 33, 66, 0.045);
}

.dou-parts-finder--full .dou-smart-search-field > label {
    margin-bottom: 7px;
    font-size: 12px;
}

/*
 * Woodmart can apply generic search-form sizing after plugin styles.
 * Lock the control and input to their own card so they can never extend past it.
 */
.dou-parts-finder--full .dou-smart-search-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

body .dou-parts-finder--full .dou-smart-parts-form .dou-smart-search-control input[type="search"] {
    position: static !important;
    inset: auto !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 56px 0 17px;
    border-radius: 13px;
    box-sizing: border-box !important;
    font-size: 15px;
    transform: none !important;
}

.dou-parts-finder--full .dou-smart-search-icon {
    right: 21px;
    width: 17px;
    height: 17px;
}

.dou-parts-finder--full .dou-smart-search-icon::after {
    right: -6px;
    bottom: -4px;
    width: 8px;
}

.dou-parts-finder--full .dou-smart-search-field > small {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
}

/* Dependent Brand -> Series -> Model states. */
.dou-filter-field select:disabled {
    border-color: #e1e6ee;
    background-color: #f3f5f8;
    color: #929bad;
    cursor: not-allowed;
    opacity: 1;
}

.dou-filter-field select.is-loading {
    cursor: wait;
}

.dou-filter-field select.is-load-error {
    border-color: #edc7c7;
    background-color: #fff7f7;
    color: #9a4444;
}

@media (max-width: 1100px) {
    .dou-parts-finder--full .dou-smart-search-field {
        width: 100%;
    }
}

@media (max-width: 900px) {
    body .dou-parts-finder--full .dou-smart-parts-form .dou-smart-search-control input[type="search"] {
        min-height: 53px;
        padding-right: 53px;
        font-size: 14px;
    }

    .dou-parts-finder--full .dou-smart-search-icon {
        right: 20px;
    }
}

@media (max-width: 640px) {
    .dou-parts-finder--full .dou-smart-search-field {
        padding: 13px;
        border-radius: 14px;
    }

    body .dou-parts-finder--full .dou-smart-parts-form .dou-smart-search-control input[type="search"] {
        min-height: 50px;
        padding: 0 49px 0 14px;
        border-radius: 11px;
        font-size: 13px;
    }

    .dou-parts-finder--full .dou-smart-search-icon {
        right: 17px;
        width: 16px;
        height: 16px;
    }
}
