/* ===== FINANCING MODAL - MOBILE FIRST COMPACT DESIGN ===== */
.financing-modal-content-mobile {
    widt.financing-modal-content .financing-modal-header h3 {
    color: white;
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.financing-modal-content .financing-modal-header h3 i {
    font-size: 0.88rem;
    color: white;
    flex-shrink: 0;
    margin-right: 0.5rem;
    font-weight: normal;
}
    max-width: 600px;
    height: 80vh;
    max-height: 600px;
    background: linear-gradient(135deg, var(--xcocar-green) 0%, var(--xcocar-dark-gray) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border-radius: 0;
}

.financing-modal.modal-active .financing-modal-content-mobile {
    transform: scale(1);
}

/* Top Benefits Section - De tre viktigaste punkterna */
.financing-modal-top-benefits {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, 
        var(--xcocar-green) 0%, 
        var(--xcocar-dark-gray) 100%
    );
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.financing-modal-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.financing-modal-logo-mobile {
    height: 35px;
    width: auto;
}

.financing-modal-logo-section h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.benefit-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Specifika highlight-effekter för varje badge */
.badge-compare {
    border-left: 4px solid #3b82f6;
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.3);
}

.badge-transparent {
    border-left: 4px solid #10b981;
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.3);
}

.badge-flexible {
    border-left: 4px solid #f59e0b;
    box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.3);
}

.benefit-badge i {
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.benefit-badge span {
    line-height: 1.3;
}

/* Content Section */
.financing-modal-content {
    flex: 1;
    padding: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--xcocar-green) 0%, var(--xcocar-dark-gray) 100%);
    display: flex;
    flex-direction: column;
}

.financing-modal-content .financing-modal-header {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.financing-modal-content .financing-modal-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.financing-modal-content .financing-modal-body {
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    flex: 1;
    overflow: hidden;
}

.financing-modal-content .financing-modal-body p {
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    background: transparent;
}

.financing-modal-content .financing-modal-body ul {
    padding-left: 1.2rem;
    background: transparent;
}

.financing-modal-content .financing-modal-body li {
    line-height: 1.4;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    background: transparent;
}

/* Fixa alla element i modal-body för att ha rätt färger */
.financing-modal-content .financing-modal-body * {
    background: transparent !important;
    color: white;
}

.financing-modal-content .financing-modal-body h4 {
    color: white !important;
    background: transparent !important;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.financing-modal-content .financing-modal-body h5 {
    color: white !important;
    background: transparent !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.financing-modal-content .financing-modal-body .financing-detail-content {
    background: transparent !important;
    color: white;
}

.financing-modal-content .financing-modal-body .financing-detail-grid {
    background: transparent !important;
}

.financing-modal-content .financing-modal-body .detail-category {
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 1rem 1rem 1.25rem 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Example box styling */
.financing-highlight-box {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1rem 1.5rem 1rem;
    margin: 1rem 0;
    color: white;
}

.financing-highlight-box h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.financing-highlight-box h5 i {
    color: #fbbf24;
}

.financing-highlight-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Table styling för partners, rates och timeline */
.partner-table, .rates-table, .timeline-table, .transparency-table {
    width: 100%;
    margin-top: 0.05rem;
    margin-bottom: 0.5rem;
}

.partner-row, .rate-row, .timeline-row, .transparency-row {
    display: grid;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.partner-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rate-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.timeline-row {
    grid-template-columns: 1fr 80px 1.2fr;
    gap: 0.5rem;
}

.partner-row:first-child, 
.rate-row:first-child, 
.timeline-row:first-child {
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 0.15rem;
}

.partner-row:last-child {
    border-bottom: none;
    font-style: italic;
    text-align: center;
    grid-column: 1 / -1;
    padding-bottom: 0.3rem;
}

.rate-row:last-child, 
.timeline-row:last-child, 
.transparency-row:last-child {
    border-bottom: none;
    padding-bottom: 0.3rem;
}

/* Transparency och security tables använder samma styling som andra tabeller */
.transparency-row, .security-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .financing-modal-content-mobile {
        width: 98%;
        max-height: 90vh;
    }
    
    .financing-modal-top-benefits {
        padding: 1rem 0.75rem;
        gap: 0.5rem;
    }
    
    .benefit-badge {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .benefit-badge i {
        font-size: 1rem;
    }
    
    .financing-modal-content {
        padding: 1rem 0.75rem;
    }
    
    .financing-modal-content .financing-modal-header h3 {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .financing-modal-content .financing-modal-body h4 {
        font-size: 0.9rem;
    }
    
    .financing-modal-content .financing-modal-body p {
        font-size: 0.85rem;
    }
    
    .financing-modal-content .financing-modal-body li {
        font-size: 0.8rem;
    }
    
    /* Fix timeline table column layout for mobile */
    .timeline-row {
        grid-template-columns: 1fr 70px 1.5fr;
        gap: 0.4rem;
        font-size: 0.8rem;
    }
    
    .timeline-row span:last-child {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Rates disclaimer styling */
.rates-disclaimer {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border-left: 3px solid #fff;
}

.rates-disclaimer p {
    margin: 0;
    color: white !important;
    font-style: italic;
    font-size: 0.8rem;
    line-height: 1.4;
}

.rates-disclaimer small {
    color: white !important;
}

.rates-disclaimer i {
    margin-right: 0.3rem;
    color: white;
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .financing-modal-top-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .benefit-badge {
        flex: 1;
        min-width: calc(50% - 0.375rem);
    }
    
    .benefit-badge:last-child {
        flex-basis: 100%;
    }
}