.coverage-preset-group {
    display: flex;
    width: 100%;
    border: 1px solid var(--blue, #0047BB);
    border-radius: 8px;
    overflow: hidden;
}

.choose-policy-coverage {
    flex: 1 1 0;
    /* 0 lets a long translated label shrink instead of forcing the row wider than the card -
       "Personalizada" is half again the width of "Custom". */
    min-width: 0;
    padding: 10px 4px;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    background-color: var(--white, #ffffff);
    border: 0;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* Dividers between segments, not around the group - the container draws that edge. */
    .choose-policy-coverage + .choose-policy-coverage {
        border-left: 1px solid var(--blue, #0047BB);
    }

    /* The tab showing. */
    .choose-policy-coverage.choose-policy-coverage-selected {
        color: var(--white, #ffffff);
        background-color: var(--blue, #0047BB);
    }

    /* Without this Bootstrap's focus ring stays on whichever preset was clicked last and
       competes with the selected state. */
    .choose-policy-coverage:focus {
        box-shadow: none;
        outline: none;
    }

.coverage-field {
    position: relative;
    margin-bottom: 16px;
}

    .coverage-field .coverage-field-label {
        position: absolute;
        top: -7px;
        left: 12px;
        z-index: 1;
        margin: 0;
        padding: 0 5px;
        background-color: var(--white, #ffffff);
        font-size: 12px;
        font-weight: normal;
        color: #555555;
        max-width: calc(100% - 28px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .coverage-field select.form-control.carrier-options {
        height: 42px;
        padding-top: 7px;
        padding-bottom: 4px;
        border: 1px solid var(--blue, #0047BB);
        border-radius: 8px;
        font-size: 15px;
        color: #333333;
    }

        .coverage-field select.form-control.carrier-options:disabled {
            background-color: #f5f5f5;
            color: #888888;
        }

/* ---- Vehicle cards under the policy coverages ----------------------------------------- */

.vehicle-coverage-heading {
    color: var(--blue, #0047BB);
    font-size: 20px;
    font-weight: bold;
}

.vehicle-coverage-card {
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
}

.vehicle-coverage-card-logo {
    width: 56px;
    max-height: 40px;
    object-fit: contain;
}

.vehicle-coverage-card-name {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.vehicle-coverage-card-count {
    font-size: 14px;
    color: #666666;
}

.vehicle-coverage-card-ownership {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

.vehicle-coverage-card-toggle {
    color: #333333;
    background: none;
    border: 0;
    padding: 0 6px;
}

.vehicle-coverage-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}

.vehicle-coverage-item-title {
    color: #666666;
}

.vehicle-coverage-item-value {
    font-weight: bold;
    color: #333333;
    text-align: right;
    white-space: nowrap;
}

/* Under Continue on the vehicle summary when the coverage options could not be loaded -
   the coverages step is never skipped, so this is where the customer is held. */
.coverages-load-error {
    margin-top: 10px;
    color: #b42318;
    font-size: 14px;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
}
