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%;
    }
}

/**
 * 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%;
}
