.cpt-search-widget-20c69bae {
    font-family: inherit;
}

.cpt-search-form-20c69bae {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}

.cpt-search-input-20c69bae,
.cpt-search-category-20c69bae {
    flex-grow: 1;
    padding: 0 15px; /* Removed top/bottom padding to let height handle it */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    height: 40px; /* Explicit height */
    line-height: 40px; /* Vertically center text */
    box-sizing: border-box;
    -webkit-appearance: none; /* Remove default styling on iOS */
    -moz-appearance: none;
    appearance: none;
}

/* Ensure select arrow remains visible */
select.cpt-search-category-20c69bae {
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
    padding-right: 30px;
}

.cpt-search-button-20c69bae {
    padding: 0 24px;
    background-color: #61ce70;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    height: 40px; /* Explicit height to match inputs */
    line-height: 40px; /* Vertically center text */
    transition: all 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.cpt-search-results-grid-20c69bae {
    display: grid;
    gap: 20px;
}

.cpt-search-result-item-20c69bae {
    background: #ffffff; /* Default, overridden by Elementor controls */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cpt-search-result-item-20c69bae:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cpt-search-result-item-20c69bae a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cpt-search-result-image-20c69bae {
    width: 100%;
    /* padding-top will be set by the aspect ratio control */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    /* Margin controlled in elementor */
}

.cpt-search-result-content-20c69bae {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Padding will be set by Elementor controls */
    padding: 15px; 
}

.cpt-search-result-meta-20c69bae {
    font-size: 0.8rem;
    color: #999;
    /* margin controlled by elementor */
    margin-bottom: 5px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpt-search-result-title-20c69bae {
    font-size: 1.2rem;
    /* margin controlled by elementor */
    margin-bottom: 10px;
    margin-top: 0;
    color: #333;
    font-weight: 600;
}

.cpt-search-result-excerpt-20c69bae {
    font-size: 0.9rem;
    color: #666;
    /* margin controlled by elementor */
    margin-bottom: 15px;
    margin-top: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.cpt-search-read-more-20c69bae {
    display: inline-block;
    align-self: flex-start;
    /* margin controlled by elementor */
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.3s;
}

.cpt-search-highlight-20c69bae {
    background-color: rgba(255, 255, 0, 0.3);
    color: #000;
    padding: 0 2px;
}

.cpt-search-loading,
.cpt-search-error,
.cpt-search-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
}
