.mortgage-rating-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rating-header {
    text-align: center;
    margin-bottom: 30px;
}

.rating-header h3 {
    color: #00ac5e;
    margin-bottom: 10px;
    font-weight: 700;
}

.banks-rating-container {
    margin-bottom: 30px;
}

.rating-loader {
    text-align: center;
    padding: 40px;
    color: #666;
}

.bank-rating-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bank-rating-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.bank-rating-card.top-offer {
    border: 2px solid #00ac5e;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.top-offer-badge {
    position: absolute;
    top: -5px;
    right: 15px;
    background: #00ac5e;
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 10px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-logo-small {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bank-details h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.bank-details .program-name {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.bank-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.offer-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.offer-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #00ac5e;
    margin-bottom: 5px;
}

.offer-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.rating-programs {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.rating-programs h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.program-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.program-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-tab:hover {
    background: #e9ecef;
    border-color: #00ac5e;
}

.program-tab.active {
    background: #00ac5e;
    color: white;
    border-color: #00ac5e;
}

.action-block {
    margin-top: 25px;
}

.action-note {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .mortgage-rating-widget {
        padding: 20px 15px;
    }
    
    .bank-offers {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .program-tabs {
        justify-content: center;
    }
    
    .program-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
}