/* CreditCardDelticore Payment Form Styles */

/* Payment step container */
#paymentServerCardStep,
#paymentServerAuthStep {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive iframe wrapper */
.creditcard-delticore-iframe-wrapper {
    width: 100%;
    max-width: 640px;
    position: relative;
}

/* Make iframe responsive */
#paymentServerCardIframe,
#paymentServerAuthIframe {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    border: none;
}

#paymentServerCardIframe {
    min-height: 390px;
}

#paymentServerAuthIframe {
    min-height: 440px;
}

/* Loading state styling */
#paymentServerLoading {
    text-align: center;
    padding: 40px 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#paymentServerCardStatus {
    padding: 10px;
    font-size: 14px;
}

/* Ensure the additional creditcardDelticore container fits properly */
#additionalcreditcardDelticore {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 700px) {
    #paymentServerCardIframe {
        min-height: 565px;
    }
}

@media screen and (max-width: 499px) {
    #paymentServerCardIframe {
        min-height: 565px;
    }
}

/* Mobile adjustments - only apply below 500px */
@media screen and (max-width: 499px) {
    .creditcard-delticore-iframe-wrapper {
        max-width: 100%;
    }
}