/* Download Search Plugin Styles */

.download-search-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.download-search-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.download-search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.download-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
}

.download-search-input {
    width: 100%;
    padding: 14px 44px 14px 48px !important;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    height: auto !important;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.download-search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.download-search-input::placeholder {
    color: #aaa;
}

.download-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
	box-shadow:none
}

.download-search-clear:hover {
    color: #555;
}

/* Category dropdown */
.download-search-select-wrapper {
    position: relative;
    min-width: 180px;
    display: flex;
    align-items: center;
}

.download-search-select {
    width: 100%;
    height: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.download-search-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.download-search-select:hover {
    border-color: #bbb;
}

.download-search-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #999;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.download-search-select-wrapper:hover .download-search-select-arrow {
    color: #0066cc;
}

/* Result info */
.download-search-info {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #888;
    min-height: 18px;
}

.download-search-info:empty {
    display: none;
}

.download-search-info .ds-highlight {
    color: #0066cc;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .download-search-form {
        flex-wrap: wrap;
    }

    .download-search-select-wrapper {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .download-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .download-search-container {
        padding: 0 15px;
    }
}
