.tbi_button_container {
    display: inline-block;
    margin: 10px 100px 10px 10px;
}

/* Wraps the RO preview card inside the plain (non-flex) admin__field-label.
   It used to be display:inline-block for the old fixed 310x64 button, which
   sized to content just fine. The new card's width:100% needs a real block
   to resolve against instead: an inline-block with no declared width of its
   own sizes via shrink-to-fit, and a 100%-wide child inside a shrink-to-fit
   box collapses toward near-zero rather than stretching, which is what was
   forcing the preview's flex-wrap to stack brand/divider/copy/details
   vertically into what looked like an overlapping pill. */
.tbi_button_container1 {
    position: relative;
    display: block;
    width: 100%;
}

#tbi_button1,
.tbi_button_ro {
    text-decoration: none !important;
    outline: 0 !important;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 495px;
    container-name: tbibankfppreview;
    container-type: inline-size;
}

#tbi_button_body1,
.tbi_button_body_ro {
    align-items: center;
    background: #fff !important;
    border: 1px solid #ebebeb;
    border-radius: 20px !important;
    box-shadow: 0 6px 12px rgb(0 0 0 / 12%) !important;
    box-sizing: border-box;
    color: #1c1e24 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between !important;
    min-height: 70px;
    padding: 12px !important;
    width: 100%;
}

.tbi_button_ro_info {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    min-width: 0;
}

.tbi_button_ro_brand {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
}

#tbi_button_logo1,
.tbi_button_ro_logo {
    display: block;
    height: 44px;
    max-width: 100%;
    width: auto;
}

.tbi_button_ro_divider {
    background: #ebebeb;
    display: block;
    flex: 0 0 1px;
    height: 44px;
    width: 1px;
}

.tbi_button_ro_copy {
    align-items: flex-start;
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 4px;
}

.tbi_button_ro_title {
    color: #ff5f20;
    font-family: 'Inter', open-sans;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    margin: 0;
    text-align: left;
    white-space: nowrap;
}

.tbi_button_line--ro-amount {
    color: #1c1e24;
    font-family: 'Inter', open-sans;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    margin: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
}

.tbi_button_ro_details {
    align-items: center;
    background: #ff5f20;
    border-radius: 12px;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    font-family: 'Inter', open-sans;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 24px;
    min-height: 40px;
    padding: 8px 16px;
    text-align: center;
    white-space: nowrap;
}

.text-orange {
    color: #ff6600;
}

/* A settings column too narrow for the row gets the widget's mobile layout
   rather than a half-wrapped card. flex-wrap above is the fallback for
   engines without container queries. */
@container tbibankfppreview (max-width: 479px) {
    #tbi_button_body1,
    .tbi_button_body_ro {
        align-items: stretch;
        flex-direction: column;
    }

    .tbi_button_ro_info {
        flex: 0 0 auto;
        width: 100%;
    }

    .tbi_button_ro_details {
        width: 100%;
    }
}
