/* STYLES FOR PARTS FINDER */

.pf-call-now {
    margin-top: 10px;
    color: #a50101;
}

.stg-pf-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 880px;
    margin: 0 auto;
    padding: 20px;
}

    .stg-pf-wrapper #stg-parts-form {
        background-color: #4db7b3;
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

@media (min-width:900px) {
    .stg-pf-wrapper #stg-parts-form {
        padding: 20px;
    }
}

.stg-pf-wrapper .stg-parts-finder {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /*margin-bottom: 20px;*/
}

.stg-pf-wrapper .stg-parts-years,
.stg-pf-wrapper .stg-parts-makes,
.stg-pf-wrapper .stg-parts-models {
    flex: 1 1 200px;
}

.stg-pf-wrapper select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
}

.stg-pf-wrapper .stg-parts-btn {
    flex: 0 0 auto;
}

.stg-pf-wrapper input[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Accordion styles */
.stg-pf-results {
    max-width: 800px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

@media (min-width:900px) {
    .stg-pf-results {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.stg-pf-results .pf-cat {
    border-bottom: 1px solid #ccc;
    position: relative;
}

    .stg-pf-results .pf-cat:last-child {
        border-bottom: none;
    }

.stg-pf-results .cat-heading {
    padding: 15px 40px 15px 15px;
    background-color: #f5f5f5;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

    .stg-pf-results .cat-heading.cat-heading-open {
        background-color: #e0e0e0;
    }

    .stg-pf-results .cat-heading::after {
        content: "+";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }

    .stg-pf-results .cat-heading.cat-heading-open::after {
        content: "-";
        font-size: 30px;
    }

.stg-pf-results .pf-subcat {
    padding: 15px;
    border-top: 1px solid #ccc;
}

.stg-pf-results .subcat-heading {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.stg-pf-results .pf-prod {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.stg-pf-results .pf-close {
    display: none;
}

.stg-pf-results .pf-open {
    display: block;
}

@media screen and (min-width: 768px) {
    .stg-pf-results .pf-prod {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
}

.stg-pf-results .pf-image img {
    max-width: 100px;
    height: auto;
}

.stg-pf-results .pf-name {
    flex: 1;
    font-size: 16px;
}

.stg-pf-results .pf-price {
    font-size: 18px;
    font-weight: bold;
}

.stg-pf-results .pf-action {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    text-align: center;
}

    .stg-pf-results .pf-action .button {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        background-color: #000;
        color: #fff;
        font-size: 16px;
        text-decoration: none;
        cursor: pointer;
    }

/* Loading spinner */
.stg-pf-wrapper .stg-parts-loading {
    text-align: center;
    font-size: 18px;
    display: none;
    margin-bottom: 10px;
    /*margin-top:10px;*/
}

    .stg-pf-wrapper .stg-parts-loading .loading-text {
        margin-right: 5px;
        display: inline-block;
        position: relative;
    }

    .stg-pf-wrapper .stg-parts-loading .loading-dots {
        position: absolute;
        text-align: left;
        right: -35px;
        width: 30px;
        top: 0;
    }

        .stg-pf-wrapper .stg-parts-loading .loading-dots::after {
            content: '';
            animation: dots 1.5s steps(5, end) infinite;
            text-align: left;
        }

@keyframes dots {
    0%, 20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%, 100% {
        content: '...';
    }
}
