.fiserv-checkout-fields {
    margin-top: 12px;
}

.fiserv-main-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* =========================
   MARCAS
========================= */

.fiserv-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    gap: 12px;
    margin: 8px 0 22px;
}

.fiserv-brand-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    width: 100%;
    min-height: 76px;

    border: 1px solid #d6d6d6;
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;

    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.fiserv-brand-card:hover {
    border-color: #999;
    transform: translateY(-1px);
}

.fiserv-brand-card.is-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.16);
}

.fiserv-brand-radio {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.fiserv-brand-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-left: 20px;
}

.fiserv-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: min(100%, 96px);
    max-height: 42px;
    object-fit: contain;
}

.fiserv-brand-name-no-image {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

/* =========================
   CONFIGS / BANCOS / STORES
========================= */

.fiserv-configs-wrapper {
    margin-top: 10px;
}

.fiserv-configs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fiserv-config-block {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.fiserv-config-toggle {
    width: 100%;
    border: none;
    background: #f8f8f8;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.fiserv-config-toggle:hover {
    background: #f0f0f0;
}

.fiserv-config-block.is-open .fiserv-config-toggle {
    background: #eef5fb;
}

.fiserv-config-title {
    color: #222;
}

.fiserv-config-arrow {
    font-size: 14px;
    color: #666;
}

.fiserv-config-installments {
    padding: 10px 14px 14px;
    border-top: 1px solid #e5e5e5;
}

/* =========================
   CUOTAS
========================= */

.fiserv-installment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.fiserv-installment-option input[type="radio"] {
    margin: 0;
}

.fiserv-installment-option.is-selected .fiserv-installment-label {
    font-weight: 700;
    color: #2271b1;
}

.fiserv-installment-label {
    font-size: 14px;
    color: #222;
}

@media (max-width: 480px) {
    .fiserv-brand-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .fiserv-brand-card {
        min-height: 72px;
        padding: 10px 12px;
    }

    .fiserv-brand-card-content {
        margin-left: 18px;
    }

    .fiserv-brand-logo {
        max-width: min(100%, 84px);
        max-height: 36px;
    }
}

.payment_method_fiserv_connect > label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
 
.payment_method_fiserv_connect > label img {
    order: -1;
    margin: 0;
    max-height: 34px;
    width: auto;
    display: inline-block;
}