/**
 * WooCommerce Smart Search - Search Form Styles
 *
 * @package WooCommerce_Smart_Search
 */

/* Base form styles */
.wss-search-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Form container - transparent background, flexbox layout */
.wss-form-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    width: 100%;
}

/* Input styles */
.wss-search-input {
    flex: 1;
    min-width: 0;
    /* Allow input to shrink in flex container */
    padding: 8px 24px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    background-color: #FFFFFF !important;
    border: 2px solid #796D64 !important;
    border-radius: 50px !important;
    outline: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box !important;
}

.wss-search-input:focus {
    border-color: #5a5249 !important;
    box-shadow: 0 0 0 3px rgba(121, 109, 100, 0.1) !important;
}

.wss-search-input::placeholder {
    color: #999;
    opacity: 1;
}

/* Button styles */
.wss-search-button {
    padding: 8px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    background-color: transparent !important;
    color: #E87722 !important;
    border: 2px solid #E87722 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    box-sizing: border-box !important;
}

.wss-search-button:hover,
.wss-search-button:focus {
    background-color: #E87722 !important;
    color: #FFFFFF !important;
    outline: none !important;
}

.wss-search-button:active {
    transform: translateY(1px);
}

/* Input-only variant - full width input */
.wss-search-input-only .wss-form-container {
    gap: 0;
}

.wss-search-input-only .wss-search-input {
    width: 100%;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .wss-search-form {
        max-width: 100%;
    }

    .wss-form-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .wss-search-input {
        width: 90%;
    }

    /* Button with fixed width */
    .wss-search-button {
        width: 120px !important;
    }

    /* Keep input-only variant in row */
    .wss-search-input-only .wss-form-container {
        flex-direction: row;
    }
}

@media screen and (max-width: 480px) {
    .wss-search-input {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .wss-search-button {
        padding: 10px 24px !important;
        font-size: 14px !important;
    }
}

/* Loading state (optional - for future enhancement) */
.wss-search-form.wss-loading .wss-search-input,
.wss-search-form.wss-loading .wss-search-button {
    opacity: 0.6;
    pointer-events: none;
}