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

.awp-search-form.awp-search-stacked {
    flex-direction: column;
}

.awp-search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.awp-search-input-wrapper.awp-search-icon-right {
    flex-direction: row-reverse;
}

.awp-search-input-wrapper input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit;
    color: inherit;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.awp-search-input-wrapper input[type="search"]:hover,
.awp-search-input-wrapper input[type="search"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Remove default search input styling */
.awp-search-input-wrapper input[type="search"]::-webkit-search-decoration,
.awp-search-input-wrapper input[type="search"]::-webkit-search-cancel-button,
.awp-search-input-wrapper input[type="search"]::-webkit-search-results-button,
.awp-search-input-wrapper input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}

.awp-search-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.awp-search-form button[type="submit"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.awp-search-form button[type="submit"]:focus {
    outline: none;
}

/* Default icon sizing fallback */
.awp-search-form button[type="submit"] i {
    font-size: inherit;
    line-height: 1;
}

.awp-search-form button[type="submit"] svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* Stacked layout button full width */
.awp-search-form.awp-search-stacked button[type="submit"] {
    width: 100%;
}
