/*
 * This file is part of Advanced Custom Fields Multiple Coordinates.
 *
 * Advanced Custom Fields Multiple Coordinates is free software: you can redistribute it
 * and/or modify it under the terms of the GNU General Public License as
 * published by he Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * Advanced Custom Fields Multiple Coordinates is distributed in the hope that it will
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Advanced Custom Fields Multiple Coordinates.
 * If not, see <http://www.gnu.org/licenses/>.
 *
 * Loaded on the ACF field group editor only.
 */

/*
 * ACF's field type browser lays each card out as a 120px wide column flexbox
 * with `justify-content: center; align-items: center`, but never sets
 * `text-align` on `.field-type-label`. Centering the label *box* is enough
 * while the label fits on one line, because the box is then exactly as wide as
 * the text. As soon as the label wraps, the box grows to the width of the
 * widest line and the lines inside it fall back to `text-align: start`, so the
 * card renders left aligned next to all the centred ones. It is ACF's own
 * default and it hits every field type with a long enough label — the built-in
 * oEmbed card behaves identically. Supplying the missing `text-align` fixes it
 * for good, so our label can be as long as it needs to be.
 */
.acf-modal.acf-browse-fields-modal .acf-field-picker .field-type-label {
    text-align: center;
}
