/* ----------------------------------------
   AJWilds Product Search Widget Styles
----------------------------------------- */

.ajwilds-search-wrapper {
    display: block;
    width: 100%;
}

.ajwilds-search-form {
    display: inline-block;
    width: 100%;
}

.ajwilds-search-inner {
    display: flex;
    align-items: stretch; /* ensures button matches input height */
    width: 100%;
    gap: 0;
}

/* -------------------------
   INPUT FIELD
-------------------------- */
.ajwilds-search-input {
    flex: 1;
    font-size: 16px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    padding: 10px 12px;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ajwilds-search-input:focus {
    border-color: #888;
}

/* -------------------------
   SEARCH BUTTON (FULL HEIGHT)
-------------------------- */
.ajwilds-search-icon {
    align-self: stretch; /* makes button equal height to input */
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px; /* Elementor width control overrides this */
    border: none;
    border-left: 1px solid #ccc;
    border-radius: 0 4px 4px 0;

    background: transparent; /* Elementor overrides */
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ajwilds-search-icon:hover {
    opacity: 0.7;
}

/* -------------------------
   ICON INSIDE BUTTON
-------------------------- */
.ajwilds-search-icon svg {
    width: auto;      /* Elementor controls override */
    height: auto;     /* Elementor controls override */

    max-width: none;  /* prevents global responsive SVG rules */
    max-height: none; /* prevents vertical shrink */

    flex-shrink: 0;   /* prevents flexbox from collapsing the icon */

    stroke: currentColor;
}