/* =============================================================================
   Accept.Blue — Checkout Styles
   ============================================================================= */

/* Hide the "optional" label on the card name field */
.woocommerce form #acceptbluecard-card-name_field .optional {
    display: none;
}

/* -----------------------------------------------------------------------------
   Accepted-card logos
   -----------------------------------------------------------------------------
   Both checkouts render the same set: classic through the gateway's get_icon(),
   Blocks through acceptblue-card-block.js. Neither wrapped them, so the <img>
   tags inherited whatever the theme said about images — and a theme that
   declares `img { display: block }`, which many do for responsive images, put
   every logo on a line of its own underneath the title.

   A flex row on the wrapper settles it whatever the theme says about `display`
   on the images themselves, because a flex container blockifies its children
   and lays them out along the main axis regardless. That is why none of this
   needs !important: it does not have to win a specificity argument about `img`,
   only to own a class no theme targets.
   -------------------------------------------------------------------------- */
.ab-gateway-icons {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;
}

.ab-gateway-icons img {
    width: 32px;
    height: auto;
    /* A theme's `img { max-width: 100% }` resolves against the flex line, not
       the label, and can shrink the logos to a few pixels in a narrow column. */
    max-width: none;
    margin: 0;
    padding: 0;
    float: none;
    box-shadow: none;
    vertical-align: middle;
}
