/* Enhanced Accessible Search Styles */

.enhanced-search-root {
	background: #ffffff !important;
    margin: 1em 0;
    max-width: 100%;
}

.enhanced-search-container {
	background: #ffffff !important;
    width: 100%;
}

.enhanced-search-form {
	background: #ffffff !important;
    position: relative;
    width: 100%;
}

.enhanced-search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff !important;
	border-color: #ffffff !important;
    border-radius: 4px;
    padding: 4px;
}

.enhanced-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #444444 !important;
    background: #ffffff;
    color: #444444 !important;
    font-size: inherit !important;
    line-height: 1.5;
    min-width: 0;
}

.enhanced-search-input::placeholder {
    color: #444444 !important;
}

.enhanced-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #676767;
    border-radius: 4px;
    cursor: pointer;
    color: #000000;
}

.enhanced-search-button:hover {
    background: #777777;
}

.enhanced-search-icon {
    width: 22px;
    height: 22px;
    stroke: #444444;
    stroke-width: 3;
    fill: none;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* Focus styles */
.enhanced-search-input:focus {
    outline: none;
    background: #ffffff;
}

.enhanced-search-wrapper:focus-within {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.enhanced-search-button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .enhanced-search-wrapper {
        background: #333;
        border-color: #676767;
    }
    
    .enhanced-search-input {
        background: #333;
        color: #fff;
    }
    
    .enhanced-search-input::placeholder {
        color: #ccc;
    }
    
    .enhanced-search-button {
        background: #ffffff;
        border-color: #676767;
        color: #000000;
    }
    
    .enhanced-search-button:hover {
        background: #f0f0f0;
    }
    
    .enhanced-search-icon {
        stroke: #000000;
    }
    
    .enhanced-search-wrapper:focus-within {
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }
    
    .enhanced-search-button:focus {
        outline-color: #fff;
    }
}