/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.wc_payment_method.payment_method_simplur_synchrony_financial label img {
    height: 40px;
    width: auto;
    margin-right: 0;
}

.simplur-synchrony-financing-modal table thead {
    background-color: #8b0000;
    color: #fff;
}

.simplur-synchrony-financing-modal ul {
    list-style-type: disc;
    margin-bottom: 1rem;
}

.simplur-synchrony-financing-modal li::after,
.simplur-synchrony-financing-modal li::before {
    content: none !important;
}

.simplur-synchrony-financing-modal table {
    border-spacing: 0;
}

.simplur-synchrony-financing-modal table thead th,
.simplur-synchrony-financing-modal table tbody th {
    text-align: center;
    vertical-align: top;
    border: 1px solid #dee2e6;
    padding: .75rem;
}

.synchrony-modal-body.wpdi-offer,
.synchrony-modal-body.epni-offer {
    display: none;
}

.simplur-synchrony-financing-modal[offertype="epni"] .epni-offer {
    display: block;
}

.simplur-synchrony-financing-modal[offertype="wpdi"] .wpdi-offer {
    display: block;
}

.synchrony-financing-disclaimer {
    font-weight: bold;
    font-size: 13px;
}

.synchrony-financing-disclaimer a {
    pointer-events: none;
    cursor: default;
}

.synchrony-financing-disclaimer:hover a {
    text-decoration: underline;
}

div.simplur-synchrony-financing-modal .synchrony-modal-dialog table,
div.simplur-synchrony-financing-modal .synchrony-modal-dialog p,
div.simplur-synchrony-financing-modal .synchrony-modal-dialog ul {
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: .2px;
}


div.simplur-synchrony-financing-modal .synchrony-modal-dialog ul {
    padding: 0px 15px;
}

div.simplur-synchrony-financing-modal .synchrony-modal-dialog strong {
    font-weight: 700;
}

div.simplur-synchrony-financing-modal .synchrony-modal-dialog p,
div.simplur-synchrony-financing-modal div.synchrony-modal-dialog div.synchrony-modal-body ul li,
div.simplur-synchrony-financing-modal .synchrony-modal-dialog td,
div.simplur-synchrony-financing-modal .synchrony-modal-dialog th,
div.simplur-synchrony-financing-modal .synchrony-modal-dialog p span {
    line-height: 1.5;
}

div.simplur-synchrony-financing-modal .synchrony-modal-header {
    border-bottom: 1px solid #ccc;
    margin-bottom: 12px;
}

div.simplur-synchrony-financing-modal .synchrony-modal-header h5 {
    font-size: 1.25rem;
    margin-block: 0 .5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Modal overlay (background) */
.simplur-synchrony-payment-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Modal content */
.simplur-synchrony-financing-modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 720px;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease-out;
    overflow-y: auto;
    max-height: 85vh; /* Limit height to prevent overflow */
    box-sizing: border-box;

}

/* Close button */
.simplur-synchrony-payment-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Animation for modal entrance */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal open state */
.simplur-synchrony-payment-modal-overlay.active {
    display: flex;
}

/* Button to trigger modal */
.simplur-synchrony-payment-open-modal-btn {
    cursor: pointer;
}