body {
    color: black;
}

[x-cloak] {
    display: none !important;
}

.tbi-logo {
    margin-left: 15px;
}

.fusion-pay-custom-message {
    line-height: 3;
    background: #dbffd9;
    margin: 20px 0;
    border: 1px solid green;
    border-radius: 5px;
    padding: 0 20px;
}

.fusion-pay-custom-message p {
    line-height: 1.5;
}

#repayment-plans-container {
    margin: 0 20px 20px 20px;
}

@media (min-width: 412px) {
    #payment-method-description {
        margin-left: 20px;
    }
}

label[for="fusionpay"] {
    display: inline-flex;
    align-items: center;
}

#tbi_button {
    cursor: pointer;
}

#tbi_button_container,
.tbi_button_container_ro {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
}

.tbi_button1,
.tbi_button_ro,
#tbi_button1 {
    text-decoration: none !important;
    outline: 0 !important;
    display: inline-block;
    box-sizing: border-box;
    /* width: 100%; */
    max-width: 560px;
}

.tbi_button_body1,
.tbi_button_body_ro,
#tbi_button_body1 {
    align-items: center;
    background: #fff !important;
    border: 1px solid #e7e7e7;
    border-radius: 24px !important;
    box-shadow: 0 12px 26px rgb(17 24 39 / 12%) !important;
    box-sizing: border-box;
    color: #1f2430 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    justify-content: space-between !important;
    width: 310px;
    max-width: 560px;
    height: 64px;
    padding: 8px !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#tbi_button:hover .tbi_button_body_ro,
#tbi_button:focus-within .tbi_button_body_ro,
.tbi_button_body_ro:hover {
    background: #f3f3f3 !important;
    box-shadow: none !important;
    transform: translateY(-4px);
}

.tbi_button_ro_brand {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
}

#tbi_button_logo1,
.tbi_button_ro_logo {
    height: auto;
    margin: 0;
    max-height: 44px;
    width: 44px;
}

.tbi_button_ro_copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* ------------------------
 * RO offer state animation
 * ------------------------ */

.tbi_button_ro_state_viewport {
    display: flex;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.tbi_button_body_ro--bnpl .tbi_button_ro_state_viewport,
.tbi_button_body_ro--standard .tbi_button_ro_state_viewport {
    justify-content: flex-start;
    min-height: 48px;
}

.tbi_button_ro_state_track {
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(0);
    transition: transform 0.24s ease;
    will-change: transform;
    width: 100%;
}

.tbi_button_ro_state_track.is-animating-up {
    transform: translateY(-100%);
}

.tbi_button_ro_state_track.is-animating-down {
    transform: translateY(100%);
}

.tbi_button_ro_state_track.is-resetting {
    transition: none;
}

.tbi_button_ro_state {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 4px;
    /* min-height: 48px; */
    width: 100%;
}

.tbi_button_ro_state--next {
    left: 0;
    pointer-events: none;
    position: absolute;
}

/* A -> B: B starts above and slides down into view. */
.tbi_button_ro_state_track.direction-down .tbi_button_ro_state--next {
    top: -100%;
}

/* B -> A: A starts below and slides up into view. */
.tbi_button_ro_state_track.direction-up .tbi_button_ro_state--next {
    top: 100%;
}

.tbi_button_body_ro--bnpl .tbi_button_ro_state,
.tbi_button_body_ro--standard .tbi_button_ro_state {
    align-items: flex-start;
    font-size: 14px;
}

.tbi_button_ro_title {
    color: #ff6600;
    display: block;
    font-family: 'Inter', open-sans;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
    text-align: left;
    white-space: nowrap;
}

.tbi_button_line--ro-amount {
    color: #202532;
    display: block;
    font-family: 'Inter', open-sans;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
}

.tbi_button_ro_details {
    background: #ffe8db;
    border-radius: 18px;
    color: #ff6600;
    flex: 0 0 auto;
    font-family: 'Inter', open-sans;
    font-size: 16px;
    font-weight: 600;
    line-height: 0.75;
    padding: 10px 14px;
    white-space: nowrap;
}

.text-orange {
    color: #ff6600;
}

#tbi_small_popup {
    max-width: 800px;
    background: #fff;
    padding: 6px 6px;
    border: 1px solid #f46424;
    border-radius: 8px;
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    cursor: pointer;
    transition: 0.3s ease-in;
    opacity: 0.8;
}

#tbi_small_popup:hover {
    opacity: 1;
    box-shadow: 0 0 20px rgb(0 0 0 / 60%);
    transition: 0.3s ease-out;
}

#tbi_big_popup {
    width: 90vw;
    height: 220px;
    max-width: 400px;
    max-height: 0;
    margin: 8px 0 0 0;
    border-radius: 8px;
    opacity: 0;
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    position: relative;
    overflow: hidden;
    transition: 300ms ease-in-out;
}

.tbi_expand {
    opacity: 1 !important;
    max-height: 400px !important;
    max-width: 400px !important;
}

#tbi_popup_container {
    position: fixed;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.3);
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    left: 0;
}

#tbi_popup_container.show {
    display: flex;
}

#iframe_container {
    width: 460px;
    height: 400px;
    max-width: calc(100vw - 32px);
    min-height: 400px;
    max-height: 720px;
    position: relative;
    background: #F4F4F4;
    border-radius: 24px;
}

#tbi_popup_iframe {
    width: 100%;
    height: 400px;
    max-height: 720px;
    border-radius: 24px;
}

#tbi_loading {
    position: absolute;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    width: 130px;
    height: 130px;
    max-width: 50%;
}

#tbi_loading_text {
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    width: 100%;
}

@media only screen and (max-width: 640px) {
    #tbi_button_container,
    .tbi_button_container_ro,
    .tbi_button1,
    .tbi_button_ro,
    #tbi_button1,
    .tbi_button_body1,
    .tbi_button_body_ro,
    #tbi_button_body1 {
        max-width: 400px;
    }

    .tbi_button_line--ro-amount {
        font-size: 14px !important;
    }

    .tbi_button_ro_details {
        font-size: 16px;
        padding: 10px 14px;
    }
}

@media only screen and (max-width: 767px) {
    #tbicheckout_small_popup {
        padding: 5px;
        max-width: 70px;
    }

    #tbi_popup_iframe {
        width: 100%;
    }

    #iframe_container {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
    }

    #iframe_container,
    #tbi_popup_iframe {
        border-radius: 0;
        max-height: 2000px;
    }

    #tbi_popup_container {
        align-items: flex-end;
    }
}
