/**
 * Search Results Styles
 * Symptom-grouped layout with clear visual hierarchy
 */

.rp-search-results-container {
    max-width:1200px;
    margin: 20px auto;
    padding: 0 10px;
}

/* Results Header */
.rp-results-header {
    background: linear-gradient(135deg, #F58940 0%, #FB893D 100%);
    color: #000000;  /* Changed from #ffffff to #000000 */
    padding: 10px 15px !important;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    line-height: 1.1 !important;
}

.rp-results-title-row {
    display: flex;
    justify-content: space-between;  /* Keep space-between for button positioning */
    align-items: center;
    margin-bottom: 2px !important;
    flex-direction: row !important;
    gap: 15px !important;
}

.rp-results-title {
   font-size: 1.2rem !important;
    margin: 0;
    font-weight: 700;
    flex: 1;
    line-height: 1.2 !important;
    text-align: center;
}

.rp-reset-link {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;  /* Changed from #ffffff */
    padding: 1px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.3);  /* Changed to black border */
}

.rp-reset-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rp-reset-icon {
    font-size: 0.9rem !important;
}

.rp-checkmark {
    font-size: 0.9rem !important;
    display: inline-block;
    margin-right: 10px;
}

.rp-results-subtitle {
    font-size: 1rem !important;
    margin: 3px 0 0 0 !important;
    opacity: 0.95;
    line-height: 1.2 !important;
    color: #000000 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* No Results */
.rp-no-results {
    background: #fff;
    padding: 60px 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 0 0 8px 8px;
}

.rp-no-results h2 {
    color: #d63638;
    margin-bottom: 20px;
}

/* Symptom Sections */
.rp-symptom-section {
    background: #ffffff;
    border: 3px solid #91DCFF;
    border-top: none;
    padding: 4px 10px !important;
    margin-bottom: 0;
}

.rp-symptom-section:last-of-type {
    border-radius: 0 0 8px 8px;
}

.rp-symptom-header {
    margin-bottom: 2px !important;
}

.rp-symptom-title {
   font-size: 0.9rem !important;
    color: #F58940;
    margin: 0 0 2px 0 !important;
    padding-bottom: 2px !important;
    border-bottom: 2px solid #91DCFF;
    font-weight: 700;
    line-height: 1.1 !important;
}

.rp-symptom-icon {
     font-size: 0.9rem !important;
    margin-right: 8px;
}

.rp-symptom-description {
    font-size: 0.7rem !important;
    color: #666;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Color coding for symptoms */
.rp-symptom-leaking .rp-symptom-title {
    border-bottom-color: #3b82f6;
}

.rp-symptom-wont_start .rp-symptom-title {
    border-bottom-color: #f59e0b;
}

.rp-symptom-noisy .rp-symptom-title {
    border-bottom-color: #ef4444;
}

/* Parts Grid - Compact horizontal cards */
.rp-parts-grid {
    display: flex;
    flex-direction: column;
    gap: 3px !important;
    margin-top: 3px !important;
}

/* Part Cards - Compact Layout */
.rp-part-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 3px !important;
    transition: all 0.3s ease;
}

.rp-part-card:hover {
    border-color: #91DCFF;
    box-shadow: 0 2px 8px rgba(145, 220, 255, 0.3);
    transform: translateY(-1px);
}

/* Hero cards */
.rp-hero-card {
    border-color: #F58940;
    border-width: 2px;
    background: #FFF8F3;
}

.rp-hero-card:hover {
    box-shadow: 0 3px 10px rgba(245, 137, 64, 0.2);
    border-color: #FB893D;
}

/* Supporting cards */
.rp-supporting-card {
    border-style: dashed;
    border-color: #91DCFF;
}

/* Compact horizontal layout */
.rp-part-compact-layout {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    align-items: center;
}

.rp-part-image-small {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.rp-part-image-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rp-part-info-compact {
    flex: 1;
}

.rp-part-title-compact {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.1;
}
.rp-part-title-compact a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rp-part-title-compact a:hover {
    color: #F58940;
}

.rp-supplier-part-compact {
   font-size: 0.75rem !important;
    color: #666;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 3px;
    margin: 0 0 6px 0;
    display: inline-block;
    border-left: 2px solid #91DCFF;
}

.rp-supplier-part-compact strong {
    color: #F58940;
}

.rp-part-explanation-compact {
    font-size: 12px !important;
    color: #666;
    line-height: 1.3 !important;
    margin: 0 0 6px 0;
}

.rp-part-explanation-compact *,
.rp-part-explanation-compact p,
.rp-part-explanation-compact span,
.rp-part-explanation-compact div,
.rp-part-explanation-compact a {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rp-part-explanation-compact > * {
    font-size: 12px !important;
}

.rp-part-actions-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.rp-part-price-compact {
    font-size: 0.6rem !important;
    font-weight: 700;
    color: #F58940;
    text-align: right;
}

.rp-price-each-compact {
    font-size: 0.6rem !important;
    font-weight: 400;
    color: #666;
    display: block;
}

.rp-add-to-cart-btn-compact {
    background-color: #F58940 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 5px 10px !important;
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
}

.rp-add-to-cart-btn-compact:hover {
    background-color: #FB893D !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 137, 64, 0.3) !important;
}

/* Help Footer */
.rp-help-footer {
    background: #f9fafb;
    border: 10px solid #2d7a3e; 
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 15px;
}

.rp-help-footer h3 {
    font-size: 1.2rem !important;
    color: #333;
    margin: 0 0 10px 0;
}

.rp-help-footer p {
    font-size: 1.2rem !important;
    color: #666;
    margin: 0 0 25px 0;
}

.rp-contact-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.rp-contact-btn {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.6rem !important;
    transition: all 0.3s ease;
}
.rp-contact-us-btn {
    background-color: #FFC107;
    color: #000000;
    padding: 12px 40px;
    font-size: 18px !important;  /* Increased from 16px */
    font-weight: 700;
    text-transform: uppercase;
}

.rp-contact-us-btn:hover {
    background-color: #FFD54F;
    transform: translateY(-2px);
}

.rp-phone-btn {
    background-color: #2d7a3e;
    color: #ffffff;
}

.rp-phone-btn:hover {
    background-color: #245d30;
    transform: translateY(-2px);
}

.rp-email-btn {
    background-color: #ffffff;
    color: #2d7a3e;
    border: 2px solid #2d7a3e;
}

.rp-email-btn:hover {
    background-color: #2d7a3e;
    color: #ffffff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .rp-results-header {
        padding: 15px;
    }
    
    .rp-results-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 2px !important;
    }
    
    .rp-results-title {
         font-size: 0.9rem !important;
    }
    
    .rp-symptom-section {
        padding: 5px 10px;
    }
    
     .rp-symptom-title {
        font-size: 0.95rem !important;  /* BIGGER */
    }
    
    .rp-part-title-compact {
        font-size: 0.9rem !important;  /* BIGGER */
    }
    
    .rp-part-compact-layout {
        grid-template-columns: 50px 1fr;
        gap: 10px;
    }
    
    .rp-part-image-small {
        width: 40px;
        height: 40px;
    }
    
    .rp-part-actions-compact {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
    
    .rp-contact-options {
        flex-direction: column;
    }
    
    .rp-contact-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
     .rp-results-title {
        font-size: 1rem !important;  /* BIGGER */
}
    
    .rp-checkmark {
        font-size: 1rem !important;  /* BIGGER */
    }
    
    .rp-part-title-compact {
        font-size: 0.85rem !important;  /* BIGGER */
    }
    
    .rp-part-explanation-compact {
        display: none !important;  /* HIDE DESCRIPTIONS */
    }
    
    .rp-add-to-cart-btn-compact {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;  /* BIGGER */
    }
}

/* Free Shipping Graphic on Results Page */
.rp-free-shipping-graphic {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.rp-free-shipping-graphic img {
    max-width: 140px !important;
    height: auto !important;
    border-radius: 15px !important;
    margin: 0 !important;
    display: block !important;
}

.rp-results-title-content {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rp-results-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .rp-free-shipping-graphic img {
        max-width: 150px !important;
    }
    
    .rp-results-title-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
}