/**
 * Child theme overrides for Ebizcharge_Ebizcharge::css/accounts/ebizcharge.css.
 *
 * Loaded from the theme's override of html/accounts/accounts.phtml, immediately
 * after the module CSS, so equal-specificity rules here win.
 */

/*
 * The module ships a bare `.current { background-color: #ccc; }` rule, which
 * bleeds onto the "current" item of the Magento customer account nav (the
 * grey block behind "Manage My Payment Methods") as well as the "Stored Cards"
 * tab on this page. Drop the shading in both places.
 */
.current,
.order-links .item.current,
.account-nav .item.current {
    background-color: transparent;
}

/*
 * Left-align the "Name on Card" and "Card Type & Number" headings so they sit
 * over their (left-aligned) cell contents. The module only ships a centering
 * helper, so the counterpart lives here.
 */
.my-credit-cards .text-align-left {
    text-align: left;
}

/*
 * Keep the edit / delete controls on a single line. The module floats the
 * delete form, which drops it below the edit icon once the 12% column gets
 * narrow; a flex row plus a pixel-based minimum keeps them side by side.
 */
.my-credit-cards .action-width {
    width: 1%;
    min-width: 110px;
    white-space: nowrap;
}

.my-credit-cards .ebiz-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.my-credit-cards .ebiz-card-actions form {
    margin: 0;
}
