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 {
    display: inline-block;
}

.tbi_button1 {
    text-decoration: none!important;
    outline: 0!important;
    display: inline-block;
    min-width: 250px;
    max-width: 90%;
}
.tbi_button_body1 {
    border-radius: 8px;
    height: 50px;
    -webkit-box-shadow: 0px 2px 4px 0px rgb(0 0 0 / 40%);
    box-shadow: 0px 2px 4px 0px rgb(0 0 0 / 40%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: #ff6600;
    color: #fff;
    padding: 3px 10px;
}

.tbi_button_line {
    font-family: 'Inter',open-sans;
    font-weight: 400;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 3px 10px;
    text-align: center;
    line-height: 20px;
}

#tbi_button_logo1 {
    max-height:40px;
    width:auto;
}

.tbi_button_container1 {
    position:relative;
    display:inline-block;
}

#tbi_button1 {
    text-decoration:none !important;
    outline:0 !important;
    display: inline-block;
    min-width:280px;
    max-width:100%;
}

#tbi_button_body1 {
    border-radius: 8px;
    height: 50px;
    border: 1px solid #e1e1e1;
    -webkit-box-shadow: 0px 2px 4px 0px rgb(0 0 0 / 40%);
    box-shadow: 0px 2px 4px 0px rgb(0 0 0 / 40%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    background:#f4f4f4;
    color:#000;
    padding: 3px 10px;
    align-items: center;
}

.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
}

#tbi_small_popup:hover {
    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: 768px;
    height: 90vh;
    max-width: 100%;
    min-height: 400px;
    max-height: 720px;
    position: relative;
    background: #F4F4F4;
    border-radius: 24px;
}

#tbi_popup_iframe {
    width: 100%;
    height: 100%;
    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: 767px) {
    #tbi_button_container{
        min-width: 100%;
    }

    #tbicheckout_small_popup {
        padding: 5px;
        max-width: 70px;
    }

    #tbi_popup_iframe {
        width: 100%;
    }

    #iframe_container,
    #tbi_popup_iframe {
        border-radius: 0;
        max-height: 2000px;
    }

    #tbi_popup_container {
        align-items: flex-end;
    }
}

@media only screen and (min-width: 769px) {
    #tbi_button_container{
        min-width: 70%;
    }
}

/** General Purpose **/
.leanpay img.payment-logo {
    vertical-align: middle;
    margin-right: 5px;
    height: 35px;
}

.installment-logo-wrapper {
    cursor: pointer;
    height: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    margin-top: 5px;
}

.installment-logo-wrapper span {
    line-height: 30px;
    margin-right: 5px;
}

.installment-logo-wrapper .installment-logo {
    height: 25px;
    position: relative;
    top: -2px;
    margin-left: 5px;
}

.leanpay label.label {
    display: inline-block;
    padding-top: 0px;
}

.leanpay label.label span {
    vertical-align: sub;
}

.leanpay .instructions {
    margin: 0;
}

.installment-additional-wrapper .installment-tooltip.hidden {
    display: none;
}

.installment-min-price .installment-price {
    color: #ffffff;
}

.installment-block-wrapper {
    padding: 5px;
}

.installment-block-wrapper .installment-block {
    margin-bottom: 5px;
    margin-top: 5px;
}

.installment-min-price .installment-price,
.installment-min-price .installment-message {
    line-height: 40px;
    padding: 7px;
}

.checkout-index-index .installment-min-price {
    display: flex;
    flex-wrap: wrap;
}

.installment-min-price .installment-message {
    padding: 6px;
}

.installment-additional-wrapper .installment-plans {
    width: 100%;
}

.installment-additional-wrapper .installment-plans,
.installment-additional-wrapper .installment-tooltip,
.installment-additional-wrapper .installment-title,
.installment-block-wrapper,
.installment-lowest-message {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.installment-lowest-message {
    margin: 5px 0;
}

.installment-additional-wrapper .installment-tooltip {
    -webkit-box-shadow: -2px -1px 10px 3px #a7a7a7;
    box-shadow: -2px -1px 10px 3px #a7a7a7;
    border-radius: 3px;
    background: #ffffff;
    position: absolute;
    z-index: 1000;
    padding: 15px;
    max-width: 75%;
}

.installment-wrapper {
    position: relative;
    border-top: 1px solid #e4e4e4;
}

.installment-additional-wrapper .installment-title,
.installment-slider-term .term-html,
.installment-slider-term .total {
    font-weight: bold;
}

.installment-additional-wrapper .installment-title .title-block,
.installment-additional-wrapper .installment-quick-information {
    margin: 5px 0;
}

.installment-wrapper-start {
    position: absolute;
    top: -11px;
    left: 50%;
    padding: 0 10px;
    background: #ffffff;
}

.installment-deposit {
    color: #9c9b9b;
}

.installment-links a:last-child {
    border-left: 1px solid #a7a7a7;
    padding-left: 5px;
}

.installment-info img {
    cursor: pointer;
}

.installment-slider-term {
    width: 100%;
}

.installment-additional-wrapper .installment-tooltip img {
    height: 30px;
}

.installment-slider-term .installment-slider {
    margin: 10px;
}

.installment-slider-term .total-html {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.installment-slider-term {
    margin: 5px 0;
}

.installment-slider .ui-slider-handle.ui-state-default.ui-corner-all {
    height: 20px;
    width: 20px;
    top: -5px;
    background: #F58466;
    cursor: pointer;
}

.installment-slider .ui-widget-header.ui-corner-all.ui-slider-range-min {
    height: 10px;
    background: #F58466;
}

/** Checkout **/
.checkout-index-index .installment-wrapper-start,
.checkout-index-index .installment-block,
.checkout-index-index .installment-quick-information,
.checkout-index-index .installment-links {
    display: none;
}

.checkout-index-index .installment-wrapper {
    border: none;
}

.checkout-index-index .installment-plans,
.checkout-index-index .installment-mouse {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.checkout-index-index .leanpay {
    position: relative;
}

.checkout-index-index .installment-additional-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.checkout-index-index .installment-logo-wrapper span {
    line-height: 40px;
}

.checkout-index-index .installment-additional-wrapper .installment-tooltip img {
    display: none;
}

.checkout-index-index .installment-logo-text {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.checkout-index-index .installment-logo{
    top: 0;
    height: 30px;
}

.checkout-index-index .installment-min-price {
    display: flex;
    flex-wrap: wrap;
}

@media screen and (min-width: 1200px) {
    .checkout-index-index .installment-info{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .checkout-index-index .installment-deposit{
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        -ms-flex-item-align: end;
        align-self: flex-end;
        margin-left: 10px;
    }

    .checkout-index-index .installment-wrapper {
        display: inline-block;
    }

    .checkout-index-index .installment-additional-wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        max-width: 540px;
    }
}
/**
 * Hyva Theme Styles for TBI FusionPay
 * Uses Tailwind CSS utility classes and custom styles
 */

/* Alpine.js x-cloak to prevent flash of unstyled content */
[x-cloak] {
    display: none !important;
}

/* TBI Button Animations */
.tbi-button {
    transition: all 0.2s ease-in-out;
}

.tbi-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tbi-button:active {
    transform: translateY(0);
}

/* Modal Backdrop Animation */
.modal-backdrop {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Iframe Loading State */
#tbi_loading {
    animation: fadeIn 0.3s ease-in-out;
}

#tbi_loading img {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success Message Styling */
.fusion-pay-custom-message {
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal Sizing */
@media (max-width: 640px) {
    #tbi_popup_iframe {
        height: 500px;
    }
}

@media (min-width: 768px) {
    #tbi_popup_iframe {
        height: 600px;
    }
}

/* Focus States for Accessibility */
.tbi-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Orange Text Color (matching brand) */
.text-orange-600 {
    color: #ea580c;
}

.text-orange {
    color: #ea580c;
}

/* Additional Button Variants */
.tbi-button-primary {
    background-color: #2563eb;
    color: #ffffff;
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.tbi-button-primary:hover {
    background-color: #1d4ed8;
}

.tbi-button-secondary {
    background-color: #e5e7eb;
    color: #1f2937;
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.tbi-button-secondary:hover {
    background-color: #d1d5db;
}

.fusionpay-hyva-product-button #tbi_button_container {
    display: block;
    min-width: 0;
    width: 100%;
}

.fusionpay-hyva-product-button .tbi_button1 {
    display: block;
    min-width: 0;
    max-width: 100%;
}

.fusionpay-hyva-product-button #tbi_button_body1 {
    width: 100%;
}
