/* Global Finance Message Styling finmatch-p-25-02-10-19-00 */
/* Ensure the finance message is always on its own line */
.finance-message {
    display: flex;               /* Use flex to align items */
    flex-wrap: wrap;             /* Allow wrapping if necessary */
    width: 100%;                 /* Full width */
    margin-top: 0px;             /* Space between price and message */
    text-align: inherit;         /* Inherit text alignment */
    font-size: 1em;              /* Default font size */
    font-weight: normal;         /* Regular font weight */
    visibility: visible !important;  /* Prevent any visibility overrides */
    opacity: 1 !important;       /* Ensure it's fully visible */
    pointer-events: auto !important; /* Ensure it's interactable */
    position: relative;          /* Ensure it's in the flow of the document */
    z-index: 1;                  /* Ensure it's above other elements */
    color: inherit;              /* Inherit text color from parent elements */
    white-space: normal;         /* Allow the message to wrap onto multiple lines */
    word-wrap: break-word;       /* Break long words to avoid overflow */
    overflow: visible;           /* Ensure the container expands to fit the content */
    align-items: center;         /* Align items vertically in the center */
}

.finance-message a {
    display: inline-block;       /* Keep the link together as a block */
    white-space: nowrap;         /* Prevent "Learn More" from breaking onto multiple lines */
    margin-left: 5px;            /* Adjust spacing between the message and the link */
    text-decoration: underline;  /* Default to underlined */
    color: #ff6c00;              /* Hyperlink color */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Class for overriding text color via merchant configuration */
.finance-message.override-text-color {
    color: #333; /* Example override, can be changed via merchant config */
}

@media (max-width: 768px) {
    .finance-message {
        font-size: 0.9em;        /* Slightly reduce font size for better fit on smaller screens */
    }

    .finance-message a {
        margin-left: 3px;       /* Reduce the space between the message and link */
    }
}

/* Flexbox Container for Finance Message Alignment */
.finance-message-container {
    display: flex;
    flex-direction: column;             /* Stack elements vertically */
    align-items: inherit;               /* Removed direct alignment */
}

/* Hyperlink (Learn More) Styling */
.finance-message a {
    text-decoration: underline;         /* Default to underlined */
    font-weight: normal;                /* Regular font weight */
    color: #ff6c00;                     /* Hyperlink color */
    transition: color 0.3s ease;        /* Smooth color transition */
}

/* Hide Learn More link on collection pages */
.collection-page .finance-message a {
    display: none;                      /* Hide "Learn More" on collection pages */
}

/* Ensure message on product and cart pages has a visible "Learn More" link */
.product-page .finance-message a,
.cart-page .finance-message a {
    display: inline;                    /* Show the "Learn More" link */
}

/* Ensure the finance message always starts on a new line */
.cart-page .finance-message {
    display: block !important;         /* Force the message to behave as a block element */
    width: 100% !important;            /* Full width to ensure it takes up its space */
    margin-top: 0.5em !important;      /* Add space between the price and the message */
    text-align: inherit;               /* Inherit alignment from its parent */
    font-size: 1em;                    /* Default font size */
    font-weight: normal;               /* Regular font weight */
    visibility: visible !important;    /* Prevent any visibility overrides */
    pointer-events: auto !important;   /* Ensure it's interactable */
    position: relative;                /* Ensure it's in the flow of the document */
    white-space: normal;               /* Allow the message to wrap */
    word-wrap: break-word;             /* Break long words to avoid overflow */
}

/* Adjust link behavior to prevent orphaning */
.cart-page .finance-message a {
    display: inline-block;             /* Keep "Learn More" together as one block */
    white-space: nowrap;               /* Prevent breaking between "Learn" and "More" */
    margin-left: 5px;                  /* Space between the message text and the link */
}


/* Optional: Flexbox layout for cart page finance message container */
.cart-page .finance-message-container {
    display: flex;
    flex-direction: column;     /* Stack elements vertically */
    align-items: flex-start;    /* Align elements to the left by default */
}




/* Modal and other styles */
/* Base modal styling without hiding it */
.custom-modal {
    position: fixed;
    z-index: 10000 !important; /* Ensure it's above all other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    font-family: 'Plus Jakarta Sans', sans-serif !important; /* Force the font family */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Modal visibility */
.custom-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal content */
.custom-modal-content {
    background-color: #fff !important; /* Force white background */
    margin: 5% auto;
    padding: 30px;
    border: none; /* No border */
    width: 80%;
    max-width: 600px;
    color: #053937 !important; /* Ensure consistent text color */
    border-radius: 10px;
    position: relative;
    z-index: 10001; /* Ensure content is above background */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

/* Adjust dropdown text size for mobile */
@media (max-width: 768px) {
    .dropdown-select {
        font-size: 0.9em; /* Reduce text size by 10% */
    }
    .custom-modal-content {
        width: 90%;  /* Make modal full width on mobile */
        margin: 5; 
        border-radius: 10; 
    }
}

/* Close button */
.custom-modal-close {
    color: #ff6c00 !important; /* Force close button color */
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Close button hover */
.custom-modal-close:hover {
    color: #053937 !important; /* Ensure hover color consistency */
}

.modal-logo {
    max-width: 170px !important;  
    height: auto !important;      
    margin-bottom: 20px;
}


.inline-logo {
    width: 170px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.image-responsive {
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Section Heading and Icon Styles */
.section-wrapper {
    margin: 25px 0;
}

.header-icon {
    display: inline-block;
    width="50";
    height="50";         
    vertical-align: middle;
    margin-right: 10px;
}

.header-title {
    display: inline-block;
    vertical-align: middle;
}

.header-title .section-heading {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-style: normal !important;
    font-weight: bold; /* Ensure bold font for headings */
    font-size: 1.25em; /* Clear and consistent font size */
    color: #ff6c00 !important; /* Force the color to your desired orange */
    margin: 0; /* Reset margins to control spacing */
    line-height: 1.2; /* Adjust line height for clarity */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .header-title .section-heading {
        font-size: 1.15em; /* Slightly reduce size for mobile */
    }
}

/* Dropdown select styling */
.dropdown-select {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 1.5em;
    padding: 10px 15px;
    font-size: 1em;
    color: #333 !important; /* Force text color */
    background-color: #f9f9f9 !important; /* Force background color */
    border: none !important; /* Remove borders */
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"%3E%3Cpath fill="%23333" d="M2 2L0 0h4z"/%3E%3C/svg%3E') !important; /* Force arrow */
    background-repeat: no-repeat;
    background-position: right 10px center !important;
    background-size: 12px;
}

/* Ensure the dropdown's options are the same width as the dropdown container */
.dropdown-select option {
    width: 100%; /* Ensure options fill the same width as the dropdown */
    padding: 10px; /* Adjust padding for better spacing */
}

/* Focus & hover state for dropdown */
.dropdown-select:focus, 
.dropdown-select:hover {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    outline: none !important;
}

/* Forcing the dropdown menu to match the width of the select box */
.dropdown-container {
    position: relative; /* Required for absolute positioning of the dropdown list */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dropdown-select {
        height: 60px;  /* Larger height for mobile */
        font-size: 0.9em;
        padding: 12px;
        background-color: #f9f9f9 !important;
    }
}


/* Representative Example Table Styles */
.rep-example-container {
    padding: 10px;
    background-color: #f9f9f9 !important;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.rep-example-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    font-size: 1em;
    table-layout: fixed;
    border: none; /* Remove any outer borders */
}

.rep-example-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd; /* Light grey horizontal lines */
    border-top: none;   /* Remove any top borders */
    border-left: none;  /* Remove any left borders */
    border-right: none; /* Remove any right borders */
    vertical-align: middle;
}

.rep-example-table td:first-child {
    font-weight: bold;
    width: 60%;
}

.rep-example-table td:last-child {
    text-align: right;        /* Right align all numbers */
}

/* Optional: Remove any potential borders from the rows */
.rep-example-table tr {
    border: none; /* Ensure no border is set for rows */
}


/* Terms and conditions */
.terms-list {
    margin: 10px 0;
    padding-left: 20px;
}

.terms-conditions-text {
    margin-top: 10px;
}

.warning-text {
    color: red;
    margin-top: 15px;
}

.credit-product-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #053937 !important;
    margin-bottom: 10px;
    text-align: center;
}