.button.button--primary:before {
    background-color: unset;
}

#tbiButton {
    background: #f60;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #f60;
    border-radius: 8px;
    align-items: center;
    min-height: 62px;
    padding: 7px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
    text-decoration: none;
}

#tbiButton,
#tbiCartButton,
#tbiMiniCartButton,
#tbiCheckoutButton {
    gap: 0;
    text-align: center;
    line-height: 1.2;
}

.tbiCiShadowHost {
    display: block;
    width: 100%;
}

.tbiCiContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 2px;
    width: 100%;
    text-align: center;
}

.tbiCiTopRow {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 2px;
    margin: auto;
    justify-content: center;
    white-space: nowrap;
}

.tbiCiSubtext {
    display: block;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    width: 100%;
}

.tbiCiLabel {
   text-transform: none;
}

.tbiCiDisabled {
    opacity: 0.68;
    cursor: not-allowed;
}

#tbiCartButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f60;
    color: #fff;
    cursor: pointer;
    border: 1px solid #f60;
    margin-top: 12px;
    margin-bottom: 0;
    border-radius: 8px;
    min-height: 62px;
    box-sizing: border-box;
    transition: 0.3s linear all;
    width: 100%;
    padding: 8px 16px;
    text-decoration: none;
}

#tbiCheckoutButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f60;
    color: #fff;
    cursor: pointer;
    border: 1px solid #f60;
    padding: 9px 0;
    font-size: inherit;
    text-transform: none;
    margin: 12px auto 0 auto;
    min-height: 62px;
    min-width: 162px;
    border-radius: 8px;
    width: 100%;
}

#tbiMiniCartButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f60;
    color: #fff;
    cursor: pointer;
    border: 1px solid #f60;
    padding: 9px 0;
    margin: 12px auto 0 auto;
    min-height: 62px;
    min-width: 162px;
    width: 100%;
    text-decoration: none;
    border-radius: 8px;
}

.tbiLogo {
    max-width: 70px;
    height: 24px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: unset;
    display: block;
}

#tbiPopUpContainer {
    position: fixed;
    z-index: 9999999999;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, .3);
    top: 0;
    display: none;
    justify-content: center;
    align-items: center
}

#iframeContainer {
    width: 768px;
    height: 90vh;
    max-width: 100%;
    min-height: 400px;
    max-height: 720px;
    position: relative;
    background: #f4f4f4;
    border-radius: 24px
}

#tbiPopUpIframe {
    width: 100%;
    height: 100%;
    border-radius: 24px
}

#tbiLoading {
    position: absolute;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    width: 100px;
    height: 100px;
    max-width: 40%
}

/* allcourt.bg — PDP: <atc-submit-form> is an unstyled custom element, so it must
   become a full-width column before #tbiButton is appended under the native CTA. */
.main-product_btns-wrap .main-product_form-btns {
    width: 100%;
}

.main-product_btns-wrap atc-submit-form.main-product_atc-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-product_btns-wrap #tbiButton {
    margin-top: 12px;
}

/* allcourt.bg — cart page and cart drawer: the injected CTA is appended next to the native
   ПЛАЩАНЕ submit, so it has to claim a full-width line of its own whether the theme wrapper
   is a plain block or a nowrap flex row. */
.main-cart_btn-wrap:has(> #tbiCartButton),
.cart-drawer_btn-wrap:has(> #tbiMiniCartButton) {
    flex-direction: column;
    flex-wrap: wrap;
}

.main-cart_btn-wrap > #tbiCartButton,
.cart-drawer_btn-wrap > #tbiMiniCartButton {
    flex: 1 0 100%;
    margin-top: 12px;
    margin-bottom: 0;
}

@media (max-width:768px) {
    #tbiButton,
    #tbiCartButton,
    #tbiMiniCartButton,
    #tbiCheckoutButton {
        min-height: 58px;
    }
}
