.sofinco-widget {
    border: 3px solid #2a363b;
    border-radius: 8px;
    padding: 10px;
    margin: 20px 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.sofinco-widget label{
    color: #333;
}

.sofinco-widget__header {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.sofinco-widget__price {
    font-size: 20px;
    font-weight: bold;
    color: #D6101F;
    margin-bottom: 2px;
}

.sofinco-widget__period {
    font-size: 16px;
    color: #495057;
    margin-bottom: 8px;
}

.sofinco-widget__duration {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sofinco-widget__info-icon {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sofinco-widget__info-icon:hover {
    opacity: 1;
}

.sofinco-widget__details {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.sofinco-widget__taeg,
.sofinco-widget__total {
    margin-bottom: 4px;
}

.sofinco-widget__total {
    font-weight: 500;
}

@media (max-width: 768px) {
    .sofinco-widget {
        padding: 15px;
        margin: 15px 0;
    }

    .sofinco-widget__price {
        font-size: 24px;
    }

    .sofinco-widget__period {
        font-size: 14px;
    }
}

/* Styles pour la modale */
.sofinco-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.sofinco-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.sofinco-modal__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.sofinco-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sofinco-modal__header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.sofinco-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sofinco-modal__close:hover {
    color: #333;
}

.sofinco-modal__body {
    padding: 20px;
}

.desktop__stepper-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.desktop__stepper-item {
    counter-increment: step-counter;
    margin-bottom: 30px;
    position: relative;
    padding-left: 50px;
    list-style: none;
}

.desktop__stepper-item::marker {
    display: none;
}

.desktop__stepper-item:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #D6101F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.desktop__stepper-text {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.credit-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.credit-table__head-cell {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.credit-table__details-cell {
    padding: 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.credit-table__row--tight {
    background: #fff;
}

.credit-table__row--mensualities .credit-table__details-cell {
    font-weight: bold;
    color: #D6101F;
}

.split_payment-legal {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.split_payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.split_payment-item {
    margin-bottom: 10px;
}

.split_payment-item p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.process_complete-container {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border-radius: 4px;
    color: #155724;
}

.sofinco-widget__results{
    display: flex;
    justify-content: space-evenly;
    gap: 8px;
}
.sofinco-widget__summary{
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.sofinco-widget__summary-box {
    background: #838383;
    color: white;
    border-radius: 6px;
    line-height: 18px;
    padding: 6px;
    display: flex;
    align-items: center;
}

.sofinco-widget__results{
    margin-top: 20px;
}

.sofinco-widget__label{
    font-size: 16px;
    border: 1px solid #333;
    display: inline-block;
    padding: 0 5px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.sofinco-widget__result-value{
    font-weight: bold;
}

.rangeslider__fill {
    background: #D6101F!important;
}

.sofinco-widget__detail-link a{
    color: #D6101F!important;
}

#sofinco-widget-month{
    font-weight: bold;
}
.sofinco-widget__title{
    color: #2a363b;
}
.sofinco-widget__title img{
    height: 18px;
    vertical-align: middle;
    margin-top: -2px;
}


@media (max-width: 768px) {
    .sofinco-modal__content {
        width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }

    .sofinco-modal__header,
    .sofinco-modal__body {
        padding: 15px;
    }

    .desktop__stepper-item {
        padding-left: 40px;
    }

    .desktop__stepper-item:before {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .credit-table {
        font-size: 12px;
    }

    .credit-table__head-cell,
    .credit-table__details-cell {
        padding: 8px;
    }
}


@media (max-width: 550px) {
    .sofinco-widget__results,sofinco-widget__summary{
        font-size: 12px;
    }
}
