.wp-block-custom-search-block {
    margin-bottom: 1.5em;
    display: inline-block;
    max-width: 100%;
}

.custom-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    /* La propriété gap dynamique gérée par le JS agira ici */
}

.custom-search-form input[type="search"] {
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
    margin: 0;
    height: 100%;
}

.custom-search-form input[type="search"]:focus {
    border-color: #007cba;
}

.custom-search-form button {
    box-sizing: border-box;
    background-color: #333;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espace entre la loupe et le texte (s'il y en a un) */
    transition: background-color 0.2s ease;
    margin: 0;
    height: 100%;
    font-size: 16px; /* S'assure que le texte du bouton est lisible */
}

.custom-search-form button:hover,
.custom-search-form button:focus {
    background-color: #007cba;
}

.custom-search-form button svg {
    display: block;
    flex-shrink: 0; /* Empêche l'icône de se déformer si le texte est très long */
}